:root {
  color-scheme: light;
  --page: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #fbfbfd;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.12);
  --link: #0066cc;
  --dark: #050507;
  --dark-ink: #f5f5f7;
  --dark-muted: #b8c3c8;
  --teal: #31d7ca;
  --blue: #3a8fd8;
  --gold: #c79b55;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 58px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(251, 251, 253, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
}

.brand,
nav {
  display: flex;
  min-width: 0;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  background: var(--ink);
  color: var(--surface);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

nav {
  gap: 26px;
}

nav a {
  color: rgba(29, 29, 31, 0.78);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.language-switcher {
  display: flex;
  min-width: 0;
  max-width: min(360px, 42vw);
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 10px;
}

.language-switcher a {
  color: rgba(29, 29, 31, 0.72);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.language-switcher a[aria-current="page"] {
  color: var(--ink);
}

nav a:hover,
.language-switcher a:hover,
.link-cta:hover,
.support-links a:hover,
.site-footer a:hover {
  text-decoration: underline;
}

main {
  overflow: hidden;
}

main > section {
  scroll-margin-top: 58px;
}

h1,
h2,
h3,
p,
dl {
  margin-top: 0;
}

h1,
h2,
h3,
strong,
dd,
.brand,
.eyebrow {
  overflow-wrap: anywhere;
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  margin: 0 auto 18px;
  font-size: 72px;
  line-height: 1.02;
  font-weight: 760;
}

h2 {
  margin-bottom: 14px;
  font-size: 54px;
  line-height: 1.04;
  font-weight: 760;
}

h3 {
  margin-bottom: 10px;
  font-size: 28px;
  line-height: 1.12;
  font-weight: 720;
}

p {
  color: var(--muted);
  font-size: 19px;
}

.eyebrow {
  margin-bottom: 9px;
  color: inherit;
  font-size: 17px;
  font-weight: 700;
}

.hero {
  display: grid;
  min-height: 100vh;
  padding: 112px 24px 38px;
  gap: 34px;
  align-items: end;
  text-align: center;
}

.hero-copy {
  width: min(1050px, 100%);
  margin: 0 auto;
}

.hero-subline {
  width: min(780px, 100%);
  margin: 0 auto;
  font-size: 25px;
  line-height: 1.32;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 22px;
}

.link-cta {
  color: var(--link);
  font-size: 19px;
  font-weight: 500;
  text-decoration: none;
}

.link-cta::after {
  content: " >";
}

.hero-media {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: var(--dark);
  padding: clamp(18px, 3vw, 34px);
  box-shadow: var(--shadow);
}

.hero-shot-wall {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(12px, 2.2vw, 26px);
  align-items: end;
  max-width: 920px;
  margin: 0 auto;
}

.hero-shot,
.design-screenshot,
.screenshot-showcase img,
.device-screen {
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.device-screen {
  aspect-ratio: 760 / 1652;
  background: var(--dark);
}

.hero-shot {
  border-radius: 30px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

.hero-shot.side {
  opacity: 0.82;
}

.main-shot {
  position: relative;
  z-index: 1;
}

.feature-grid,
.designs,
.quality,
.ai,
.pricing,
.support {
  padding: 12px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feature-tile,
.quality,
.ai,
.pricing,
.support {
  border-radius: 8px;
  background: var(--surface);
}

.feature-tile {
  display: grid;
  min-height: 610px;
  align-content: space-between;
  padding: 58px;
  overflow: hidden;
}

.feature-tile-wide {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 0.78fr) minmax(300px, 0.62fr);
  gap: 42px;
  align-items: center;
}

.dark-tile {
  background: var(--dark);
  color: var(--dark-ink);
}

.dark-tile p {
  color: var(--dark-muted);
}

.light-tile {
  background: var(--surface-soft);
}

.video-tile {
  position: relative;
  padding: 0;
  background: var(--dark);
  color: var(--dark-ink);
}

.video-frame-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  width: 100%;
  min-height: 610px;
}

.video-frame-grid img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 304px;
  object-fit: cover;
}

.video-tile-copy {
  position: absolute;
  inset: auto 0 0;
  padding: 44px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.video-tile p {
  color: var(--dark-muted);
}

.timeline-visual {
  display: grid;
  gap: 12px;
}

.timeline-visual span {
  display: block;
  height: 48px;
  border-radius: 8px;
  background: rgba(245, 245, 247, 0.14);
}

.timeline-visual span:nth-child(2),
.timeline-visual span:nth-child(4) {
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.timeline-visual span:nth-child(3) {
  width: 74%;
}

.timeline-visual span:nth-child(5) {
  width: 58%;
}

.designs {
  background: var(--page);
}

.section-copy {
  width: min(980px, 100%);
  padding: 92px 24px 42px;
}

.section-copy.centered {
  margin: 0 auto;
  text-align: center;
}

.section-copy p {
  font-size: 22px;
}

.design-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.design-card {
  display: grid;
  min-width: 0;
  min-height: 500px;
  align-content: start;
  gap: 18px;
  padding: 28px;
  overflow: visible;
  border-radius: 8px;
  background: var(--surface);
}

.design-card h3,
.design-card p {
  margin: 0;
}

.design-card h3 {
  font-size: 27px;
}

.design-card p {
  font-size: 17px;
}

.design-screenshot {
  width: min(100%, 260px);
  margin: 0 auto;
  border-radius: 24px;
  background: var(--dark);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.14);
}

.real-media {
  padding: 12px;
  background: var(--page);
}

.real-media[hidden] {
  display: none;
}

.screenshot-showcase,
.video-showcase,
.excerpt-showcase {
  display: grid;
  gap: 12px;
}

.screenshot-showcase {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.video-showcase {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.screenshot-showcase figure,
.video-showcase figure,
.excerpt-showcase figure {
  min-width: 0;
  margin: 0;
  border-radius: 8px;
  background: var(--surface);
}

.screenshot-showcase figure {
  display: grid;
  align-content: start;
  gap: 0;
  padding: 18px 18px 0;
}

.video-showcase video {
  display: block;
  width: 100%;
  background: var(--dark);
  object-fit: cover;
}

.screenshot-showcase img {
  width: min(100%, 300px);
  margin: 0 auto;
  border-radius: 26px;
  background: var(--dark);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.compact-copy {
  padding-top: 64px;
}

.excerpt-showcase {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.excerpt-showcase img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--dark);
}

.video-showcase video {
  aspect-ratio: 16 / 9;
}

.screenshot-showcase figcaption,
.video-showcase figcaption,
.excerpt-showcase figcaption {
  padding: 18px;
  color: var(--muted);
  font-size: 17px;
  overflow-wrap: anywhere;
}

.video-showcase figure,
.excerpt-showcase figure {
  overflow: hidden;
}

.design-preview {
  position: relative;
  display: grid;
  min-height: 220px;
  gap: 10px;
  padding: 14px;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
  color: var(--dark-ink);
}

.preview-hero {
  min-height: 102px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(49, 215, 202, 0.64), rgba(58, 143, 216, 0.64)),
    url("./assets/video-excerpts/topdown-field-01.jpg") center / cover;
}

.preview-metrics,
.creator-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.preview-metrics span,
.creator-controls span {
  display: grid;
  min-width: 0;
  min-height: 30px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  color: var(--dark-ink);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-align: center;
}

.preview-row {
  width: 72%;
  height: 10px;
  border-radius: 8px;
  background: rgba(245, 245, 247, 0.18);
}

.preview-row.wide {
  width: 100%;
}

.magic .design-preview,
.review .design-preview {
  align-content: center;
}

.step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 32px;
  color: rgba(245, 245, 247, 0.58);
  font-weight: 800;
}

.step::after {
  content: "";
  height: 12px;
  border-radius: 8px;
  background: rgba(245, 245, 247, 0.16);
}

.step.complete,
.step.active {
  color: var(--teal);
}

.step.active::after,
.step.complete::after {
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.phone-frame {
  width: min(124px, 62%);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border: 8px solid rgba(245, 245, 247, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(49, 215, 202, 0.74), rgba(199, 155, 85, 0.78)),
    url("./assets/video-excerpts/topdown-field-02.jpg") center / cover;
}

.timeline-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.timeline-strip span {
  min-height: 78px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(245, 245, 247, 0.08), rgba(49, 215, 202, 0.24)),
    url("./assets/video-excerpts/road-field-01.jpg") center / cover;
}

.review-lines {
  display: grid;
  gap: 8px;
}

.review-lines span {
  height: 12px;
  border-radius: 8px;
  background: rgba(245, 245, 247, 0.16);
}

.review-lines span:nth-child(2) {
  width: 82%;
}

.review-lines span:nth-child(3) {
  width: 58%;
}

.quality,
.ai,
.pricing {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(320px, 0.7fr);
  gap: 52px;
  align-items: center;
  margin: 12px;
  padding: 82px 58px;
}

.quality {
  background: #fff;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.metrics div,
.ai-panel div,
.pricing-grid article {
  min-width: 0;
  border-radius: 8px;
  background: var(--surface-soft);
}

.metrics div {
  min-height: 148px;
  padding: 22px;
}

.metrics dt,
.ai-panel span,
.pricing-grid span {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.metrics dd {
  margin: 0;
  font-size: 34px;
  font-weight: 760;
  line-height: 1.02;
}

.ai {
  background: var(--dark);
  color: var(--dark-ink);
}

.ai p {
  color: var(--dark-muted);
}

.ai .link-cta {
  display: inline-block;
  margin-top: 8px;
  color: #2997ff;
}

.ai-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.ai-panel div {
  padding: 28px;
  background: rgba(245, 245, 247, 0.09);
}

.ai-panel span,
.ai-panel strong {
  display: block;
}

.ai-panel span {
  color: var(--dark-muted);
}

.ai-panel strong {
  font-size: 42px;
  line-height: 1;
}

.pricing {
  display: block;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pricing-grid article {
  min-height: 220px;
  padding: 28px;
  background: #fff;
}

.pricing-grid span,
.pricing-grid strong {
  display: block;
}

.pricing-grid strong {
  margin: 10px 0 12px;
  font-size: 28px;
  line-height: 1.08;
}

.support {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  margin: 12px;
  padding: 68px 58px;
}

.support h2 {
  margin-bottom: 0;
}

.support-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.support-links a {
  color: var(--link);
  font-size: 17px;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px 34px;
  color: var(--muted);
  font-size: 13px;
}

.legal-page {
  background: #f5f5f7;
}

.legal-document {
  width: min(820px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.legal-document h1 {
  margin-bottom: 10px;
  font-size: 56px;
  line-height: 1.04;
}

.legal-document h2 {
  margin: 34px 0 10px;
  font-size: 32px;
}

.legal-document p,
.legal-document li {
  color: var(--muted);
  font-size: 18px;
}

.legal-date,
.back-link {
  color: var(--link);
  font-weight: 700;
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  text-decoration: none;
}

.legal-language-switcher {
  max-width: none;
  justify-content: flex-start;
  margin-bottom: 18px;
}

@media (max-width: 1120px) {
  h1 {
    font-size: 60px;
  }

  h2 {
    font-size: 44px;
  }

  .topbar {
    justify-content: space-between;
  }

  nav {
    gap: 18px;
  }

  .language-switcher {
    max-width: 100%;
    justify-content: flex-start;
  }

  .feature-tile-wide,
  .quality,
  .ai {
    grid-template-columns: 1fr;
  }

  .design-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screenshot-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .excerpt-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 122px;
  }

  main > section {
    scroll-margin-top: 122px;
  }

  .topbar {
    min-height: 110px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 10px 14px 9px;
  }

  nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px 18px;
    overflow: visible;
    padding-bottom: 2px;
  }

  .language-switcher {
    width: 100%;
    gap: 5px 9px;
  }

  h1 {
    font-size: 43px;
  }

  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 24px;
  }

  p,
  .section-copy p,
  .hero-subline {
    font-size: 18px;
  }

  .hero {
    min-height: auto;
    padding: 154px 12px 12px;
  }

  .hero-media {
    padding: 18px 12px;
  }

  .hero-shot-wall {
    grid-template-columns: 1fr;
  }

  .hero-shot {
    border-radius: 24px;
  }

  .hero-shot.side {
    display: none;
  }

  .feature-grid,
  .design-showcase,
  .excerpt-showcase,
  .video-showcase,
  .metrics,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .feature-tile {
    min-height: auto;
    padding: 34px 24px;
  }

  .feature-tile-wide {
    gap: 28px;
  }

  .video-tile {
    padding: 0;
  }

  .video-frame-grid {
    min-height: 440px;
  }

  .video-frame-grid img {
    min-height: 220px;
  }

  .video-tile-copy {
    padding: 28px 24px;
  }

  .section-copy {
    padding: 62px 12px 30px;
  }

  .design-card {
    min-height: auto;
    padding: 22px;
  }

  .screenshot-showcase {
    grid-template-columns: 1fr;
  }

  .quality,
  .ai,
  .pricing,
  .support {
    margin: 12px;
    padding: 46px 24px;
  }

  .support {
    grid-template-columns: 1fr;
  }

  .support-links {
    justify-content: flex-start;
  }

  .site-footer {
    flex-direction: column;
  }

  .legal-document h1 {
    font-size: 42px;
  }
}
