:root {
  color-scheme: dark;
  --background: #0b0f1a;
  --surface: #151b2b;
  --text: #e8ecf5;
  --muted: #aab4c8;
  --primary: #6849dc;
  --accent: #22d3ee;
  --border: #30394d;
  --radius: 12px;
  --heading: "Space Grotesk", system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; color: var(--text); background: var(--background); font: 1rem/1.65 var(--body); }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.1; }
h1 { font-size: clamp(3.25rem, 7.8vw, 6.25rem); font-weight: 700; letter-spacing: -.075em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -.055em; }
h3 { font-size: 1.375rem; letter-spacing: -.025em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 2; padding: 8px 16px; transform: translateY(-150%); background: var(--surface); }
.skip-link:focus { transform: none; }
.site-header, .site-footer { border-block-end: 1px solid var(--border); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-inner { min-height: 72px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font: 700 1.125rem/1.2 var(--heading); text-decoration: none; letter-spacing: -.04em; }
.wordmark-accent { color: var(--accent); }
.gf-site-icon { flex: none; }
nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .875rem; font-weight: 600; text-decoration: none; }
nav a:hover { color: var(--text); }

.hero { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); align-items: stretch; gap: 48px; padding-block: 48px 32px; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding-block: 24px; }
.eyebrow { margin-bottom: 16px; color: var(--accent); font-size: .875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero-intro { margin-top: 24px; max-width: 42ch; color: var(--muted); font-size: 1.125rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 16px; min-height: 48px; border: 1px solid transparent; border-radius: var(--radius); text-align: center; font-weight: 700; text-decoration: none; }
.button-primary { background: var(--primary); color: #fff; }
.button-primary:hover { background: #573ac2; }
.button-secondary { border-color: var(--border); }
.button-secondary:hover { background: var(--surface); }
.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--border); }
.platforms dt { font-size: .875rem; font-weight: 700; }
.platforms dd { color: var(--muted); font-size: .875rem; }
.hero-media { position: relative; overflow: hidden; min-height: 448px; isolation: isolate; border: 1px solid var(--border); border-radius: var(--radius); background: #172333; }
.hero-media img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 59%; }
.hero-media figcaption { position: absolute; right: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 4px 8px; border-radius: var(--radius); background: #0b0f1ae8; color: var(--text); font-size: .8125rem; }
.timing-line { display: grid; grid-template-columns: 1fr 1fr 5fr; gap: 4px; }
.timing-line span { height: 3px; background: var(--border); }
.timing-line span:first-child { background: var(--accent); }
.timing-line span:nth-child(2) { background: var(--primary); }

.section { padding-block: 48px; }
.section + .section { border-top: 1px solid var(--border); }
.section-head { margin-bottom: 24px; }
.section-head p { max-width: 67ch; margin-top: 12px; color: var(--muted); }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.platform-card { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.platform-card p, .race-steps p { max-width: 66ch; margin-top: 8px; color: var(--muted); }
.text-link, .inline-link, .prose a { color: var(--accent); text-underline-offset: .22em; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-weight: 700; }
.source-note { margin-top: 16px; color: var(--muted); font-size: .875rem; }
.race-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px; }
.race-section .section-head { margin: 0; }
.race-steps { display: grid; gap: 16px; margin: 0; padding-left: 1.5rem; }
.race-steps li { padding: 0 0 16px 8px; border-bottom: 1px solid var(--border); }
.race-steps li:last-child { padding-bottom: 0; border: 0; }
.race-steps li::marker { color: var(--accent); font-weight: 700; }
.faq-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px; }
.faq-section .section-head { margin: 0; }
.faq-list details { border-top: 1px solid var(--border); }
.faq-list details:last-child { border-bottom: 1px solid var(--border); }
.faq-list summary { padding: 16px 0; cursor: pointer; font-weight: 700; }
.faq-list summary::marker { color: var(--accent); }
.faq-list p { margin: 0 0 16px 20px; color: var(--muted); }

.legal-page { max-width: 70ch; padding-block: 48px 64px; }
.legal-page h1 { font-size: clamp(2.75rem, 6vw, 4rem); }
.prose { margin-top: 24px; color: var(--muted); overflow-wrap: anywhere; }
.prose h2 { margin-block: 24px 8px; color: var(--text); font-size: 1.5rem; letter-spacing: -.03em; }
.prose p + p { margin-top: 12px; }
.site-footer { padding-block: 24px; border-block-start: 1px solid var(--border); border-block-end: 0; }
.site-footer p { margin-top: 4px; color: var(--muted); font-size: .875rem; }

@media (max-width: 820px) {
  .hero { gap: 24px; }
  .hero-media { min-height: 400px; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner, .footer-inner { align-items: flex-start; flex-direction: column; gap: 4px; }
  .header-inner { padding-block: 12px 4px; }
  .hero, .download-grid, .race-section, .faq-section { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 32px 24px; }
  .hero-copy { padding-block: 0; }
  h1 { font-size: clamp(2.875rem, 11vw, 4.625rem); }
  .hero-intro { margin-top: 16px; }
  .hero-actions { display: grid; }
  .platforms { margin-top: 24px; }
  .hero-media { min-height: 0; aspect-ratio: 1.14; }
  .section, .legal-page { padding-block: 32px; }
  .race-section, .faq-section { gap: 24px; }
}
