:root {
  color-scheme: dark;
  --ink: #121823;
  --ink-deep: #070a0f;
  --ink-soft: #1b2330;
  --cream: #f2eee8;
  --cream-muted: rgba(242, 238, 232, 0.72);
  --cream-dim: rgba(242, 238, 232, 0.52);
  --amber: #ffb84a;
  --coral: #f05a3b;
  --magenta: #c33355;
  --teal: #5fa8bf;
  --teal-deep: #2f7176;
  --line: rgba(242, 238, 232, 0.14);
  --shadow: rgba(0, 0, 0, 0.32);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink-deep);
  color: var(--cream);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 28px;
  background: rgba(7, 10, 15, 0.72);
  border-bottom: 1px solid rgba(242, 238, 232, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.nav-links {
  gap: 22px;
  color: var(--cream-muted);
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--cream);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  padding: 112px 28px 86px;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg {
  background-image: url("/assets/app-icon.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 10, 15, 0.96) 0%, rgba(7, 10, 15, 0.78) 44%, rgba(7, 10, 15, 0.38) 100%),
    linear-gradient(0deg, rgba(7, 10, 15, 0.92) 0%, rgba(7, 10, 15, 0.08) 48%, rgba(7, 10, 15, 0.2) 100%);
}

.hero-inner,
.section-inner {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.hero-inner {
  padding-bottom: 18px;
}

.eyebrow,
.section-kicker,
.route-label {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

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

h1 {
  margin-bottom: 12px;
  font-size: 72px;
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0;
}

.lede {
  max-width: 680px;
  margin-bottom: 18px;
  color: var(--cream);
  font-size: 28px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 30px;
  color: var(--cream-muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 0 18px;
  font: inherit;
  font-weight: 720;
  cursor: pointer;
}

.button.primary {
  background: var(--amber);
  color: #17100a;
}

.button.secondary {
  border-color: rgba(242, 238, 232, 0.28);
  background: rgba(18, 24, 35, 0.68);
  color: var(--cream);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.intro-section,
.routes-section,
.product-section,
.download-section {
  padding: 86px 28px;
}

.intro-section,
.product-section {
  background: var(--ink);
}

.routes-section {
  background: #0c1018;
}

.intro-grid,
.download-grid,
.product-grid {
  display: grid;
  align-items: center;
  gap: 52px;
  grid-template-columns: 0.92fr 1.08fr;
}

.intro-grid p,
.download-grid p,
.product-grid p {
  color: var(--cream-muted);
  font-size: 18px;
}

.section-heading {
  max-width: 660px;
  margin-bottom: 34px;
}

.route-cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.route-card {
  min-height: 246px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--ink-soft);
  box-shadow: 0 20px 48px var(--shadow);
}

.route-card p:last-child {
  margin-bottom: 0;
  color: rgba(242, 238, 232, 0.74);
}

.route-card.twisty {
  background: linear-gradient(180deg, rgba(255, 184, 74, 0.18), rgba(27, 35, 48, 0.96));
}

.route-card.scenic {
  background: linear-gradient(180deg, rgba(95, 168, 191, 0.2), rgba(27, 35, 48, 0.96));
}

.route-card.balanced {
  background: linear-gradient(180deg, rgba(242, 238, 232, 0.14), rgba(27, 35, 48, 0.96));
}

.twisty .route-label {
  color: var(--amber);
}

.scenic .route-label {
  color: var(--teal);
}

.balanced .route-label {
  color: var(--cream);
}

.app-visual {
  display: flex;
  justify-content: center;
}

.phone-pair {
  position: relative;
  width: min(100%, 390px);
  min-height: 480px;
}

.phone-shell {
  position: absolute;
  width: 210px;
  padding: 7px;
  border-radius: 30px;
  background: #06080c;
  border: 1px solid rgba(242, 238, 232, 0.22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.phone-shell img {
  width: 100%;
  aspect-ratio: 1206 / 2622;
  object-fit: cover;
  object-position: top center;
  overflow: hidden;
  border-radius: 23px;
  background: var(--ink-deep);
}

.phone-shell-front {
  right: 12px;
  top: 0;
  z-index: 2;
}

.phone-shell-back {
  left: 8px;
  top: 54px;
  z-index: 1;
  opacity: 0.9;
  transform: scale(0.86);
  transform-origin: top left;
}

.feature-list {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.feature-list p {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.feature-list strong {
  color: var(--cream);
}

.download-section {
  background:
    linear-gradient(180deg, rgba(195, 51, 85, 0.18), rgba(7, 10, 15, 0)),
    var(--ink-deep);
}

.download-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid rgba(242, 238, 232, 0.16);
  background: rgba(18, 24, 35, 0.86);
}

.download-card img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  flex: 0 0 auto;
}

.download-label {
  margin: 0 0 12px;
  color: var(--cream);
  font-weight: 760;
}

.store-button {
  width: fit-content;
}

.site-footer {
  padding: 34px 28px;
  border-top: 1px solid var(--line);
  background: #05070a;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--cream-dim);
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--cream-muted);
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  color: var(--cream);
}

@media (max-width: 820px) {
  .site-header {
    padding: 14px 18px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 90vh;
    padding: 96px 20px 64px;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(7, 10, 15, 0.96) 0%, rgba(7, 10, 15, 0.62) 58%, rgba(7, 10, 15, 0.2) 100%);
  }

  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 32px;
  }

  .lede {
    font-size: 23px;
  }

  .intro-section,
  .routes-section,
  .product-section,
  .download-section {
    padding: 64px 20px;
  }

  .intro-grid,
  .download-grid,
  .product-grid,
  .route-cards {
    grid-template-columns: 1fr;
  }

  .route-card {
    min-height: 0;
  }

  .product-grid .app-visual {
    order: 2;
  }

  .phone-pair {
    width: min(100%, 330px);
    min-height: 430px;
  }

  .phone-shell {
    width: 180px;
    border-radius: 26px;
  }

  .phone-shell img {
    border-radius: 20px;
  }

  .phone-shell-front {
    right: 4px;
  }

  .phone-shell-back {
    left: 0;
    top: 48px;
  }

  .download-card {
    align-items: flex-start;
  }

  .store-button {
    width: 100%;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button:hover,
  .button:focus-visible {
    transform: none;
  }
}
