/* Mirrors the RideAfrica landing page (apps/rideafrica/lib/screens/landing.dart):
   same monochrome palette and layout. --accent is the one addition, taken from
   the game; set it to #fff to go fully monochrome. */
:root {
  --bg: #000;
  --surface: #0c0c0c;
  --line: #262626;
  --line-soft: #1b1b1b;
  --dim: #a6a6a6;
  --faint: #7a7a7a;
  --accent: #ffd21f;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: #fff;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, .strip:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
main img { transition: opacity .5s ease-out; }
main img.loading { opacity: 0; }
.shell { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* Nav */
.nav { border-bottom: 1px solid var(--line-soft); }
.nav-row { height: 68px; display: flex; align-items: center; justify-content: space-between; }
.nav nav { display: flex; align-items: center; gap: 4px; }
.nav-link { color: var(--dim); font-size: 13.5px; font-weight: 500; padding: 8px 14px; }
.nav-link:hover { color: #fff; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.4px; }
.wordmark img { border-radius: 8px; }

/* Buttons */
.btn { display: inline-block; border: 1px solid transparent; border-radius: 10px; font-size: 14.5px; font-weight: 700; padding: 14px 26px; text-align: center; }
.btn-solid { background: var(--accent); color: #000; }
.btn-solid:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); font-weight: 600; }
.btn-ghost:hover { border-color: var(--dim); }
.nav .btn { font-size: 13.5px; padding: 8px 18px; margin-left: 10px; }

/* Hero */
.hero { display: grid; grid-template-columns: 6fr 5fr; gap: 48px; align-items: center; padding-block: 72px 56px; }
h1 { font-size: clamp(40px, 5.6vw, 60px); line-height: 1.08; letter-spacing: -2px; }
.underline { display: inline-block; border-bottom: 2px solid var(--accent); padding-bottom: 4px; }
.lead { color: var(--dim); max-width: 480px; margin-top: 22px; line-height: 1.65; }
.pill { display: inline-block; margin-top: 30px; border: 1px solid var(--line); border-radius: 100px; padding: 7px 14px; color: var(--dim); font-size: 12.5px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

/* Hero gameplay preview: four screenshots cross-fading in a phone-like frame */
.hero-shots { position: relative; aspect-ratio: 16 / 9; width: 100%; border: 8px solid #151515; outline: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--surface); }
.hero-shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: crossfade 16s infinite; }
.hero-shots img:nth-child(1) { animation-delay: -1s; }
.hero-shots img:nth-child(2) { animation-delay: 3s; }
.hero-shots img:nth-child(3) { animation-delay: 7s; }
.hero-shots img:nth-child(4) { animation-delay: 11s; }
@keyframes crossfade { 0% { opacity: 0; } 6.25%, 25% { opacity: 1; } 31.25%, 100% { opacity: 0; } }

/* Route marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line-soft); padding-block: 16px; margin-bottom: 56px; }
.marquee-track { display: flex; width: max-content; animation: scroll 36s linear infinite; will-change: transform; }
.marquee ul { display: flex; list-style: none; }
.marquee li { white-space: nowrap; padding-inline: 28px; color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: 2px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Sections */
.section { padding-bottom: 72px; }
h2 { font-size: 27px; letter-spacing: -0.8px; line-height: 1.25; }
.sub { color: var(--dim); font-size: 14.5px; margin-top: 7px; }

.video { display: block; width: 100%; aspect-ratio: 16 / 9; margin-top: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.video { position: relative; overflow: hidden; }
.video img { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; background: var(--accent); }
.play::after { content: ""; position: absolute; left: 27px; top: 22px; border-block: 12px solid transparent; border-left: 20px solid #000; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); transition: transform .18s ease-out; }
.card:hover { transform: scale(1.03); }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card div { padding: 15px; }
.card h3 { font-size: 16.5px; letter-spacing: -0.4px; }
.card p { color: var(--dim); font-size: 13px; margin-top: 4px; }

.band { border-block: 1px solid var(--line-soft); padding-block: 40px; margin-bottom: 72px; }
.stats { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd { font-size: 30px; font-weight: 700; letter-spacing: -1.2px; }
.stats dt { color: var(--faint); font-size: 12.5px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin-top: 40px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.steps span { color: var(--faint); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; }
.steps h3 { font-size: 19px; margin-top: 18px; }
.steps p { color: var(--dim); font-size: 13.5px; margin-top: 9px; }

.strip { display: flex; scrollbar-color: var(--line) transparent; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 26px; padding-bottom: 12px; }
.strip img { width: min(640px, 85%); flex: none; border: 1px solid var(--line); border-radius: 14px; scroll-snap-align: start; }

.ticketing { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }

/* Footer */
.footer { border-top: 1px solid var(--line-soft); padding-block: 56px 32px; }
.footer-top { display: grid; grid-template-columns: 4fr 5fr; gap: 32px; }
.footer-top p { color: var(--faint); font-size: 13px; max-width: 300px; margin-top: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 28px 56px; }
.footer-links div { display: flex; flex-direction: column; gap: 10px; }
.footer-links h4 { font-size: 12.5px; letter-spacing: 0.4px; }
.footer-links a { color: var(--faint); font-size: 13px; }
.footer-links a:hover { color: #fff; }
.legal { border-top: 1px solid var(--line-soft); margin-top: 48px; padding-top: 22px; color: var(--faint); font-size: 12px; }

@media (max-width: 860px) {
  .nav-link { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); text-align: center; padding-block: 44px 40px; }
  .lead { margin-inline: auto; }
  .ctas { justify-content: center; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps, .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .hero-shots img { animation: none; }
  .hero-shots img:first-child { opacity: 1; }
  .marquee { overflow-x: auto; scrollbar-width: none; }
  .card, main img { transition: none; }
}
