:root {
  --ink: #07102c;
  --ink-soft: #111d46;
  --paper: #f3f1e7;
  --white: #fffdf6;
  --cyan: #35d5e6;
  --lime: #9cff00;
  --violet: #8a66ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--white);
  background: var(--ink);
  font-family: "Instrument Sans", sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.grain { position: fixed; inset: 0; z-index: 20; opacity: .055; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }

.site-header {
  position: absolute; z-index: 10; inset: 0 0 auto; height: 92px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 72px); border-bottom: 1px solid rgba(255,255,255,.16);
}
.wordmark { display: flex; align-items: center; gap: 12px; font-family: "Barlow Condensed", sans-serif; font-size: 24px; font-weight: 800; letter-spacing: .05em; }
.mark { width: 30px; height: 34px; display: grid; place-items: center; background: var(--cyan); clip-path: polygon(50% 0, 100% 17%, 86% 76%, 50% 100%, 14% 76%, 0 17%); }
.mark i { width: 13px; height: 7px; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(-45deg) translateY(-2px); }
.header-cta { padding: 10px 18px; color: var(--ink); background: var(--lime); font-family: "Barlow Condensed", sans-serif; font-weight: 800; letter-spacing: .08em; transform: skew(-6deg); }

.hero { min-height: 900px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(430px, 1.1fr); overflow: hidden; background: radial-gradient(circle at 75% 20%, #263d81 0, transparent 36%), linear-gradient(145deg, #07102c 22%, #17245b 67%, #402d6e); }
.hero-copy { align-self: center; z-index: 2; padding: 150px 4vw 90px clamp(24px, 7vw, 110px); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--cyan); font-family: "Barlow Condensed", sans-serif; font-weight: 700; letter-spacing: .15em; }
.eyebrow span { width: 36px; height: 3px; background: currentColor; }
h1, h2, h3 { font-family: "Barlow Condensed", sans-serif; margin: 0; line-height: .86; }
h1 { font-size: clamp(78px, 10vw, 154px); font-weight: 800; letter-spacing: -.035em; }
h1 em { color: var(--lime); font-style: italic; }
.lede { max-width: 550px; margin: 34px 0; font-size: clamp(18px, 1.5vw, 23px); line-height: 1.5; color: rgba(255,255,255,.78); }
.hero-actions { display: flex; align-items: center; gap: 22px; }
.app-store { min-width: 202px; display: flex; align-items: center; gap: 12px; padding: 12px 19px; border: 2px solid var(--white); border-radius: 10px; font-weight: 600; font-size: 21px; line-height: 1; transition: transform .2s, background .2s, color .2s; }
.app-store:hover { transform: translateY(-3px); background: var(--white); color: var(--ink); }
.app-store small { display: block; margin-bottom: 4px; font-size: 10px; font-weight: 500; }
.apple { font-size: 28px; line-height: 1; }
.availability { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.55); font-size: 12px; line-height: 1.5; text-transform: uppercase; letter-spacing: .1em; }

.course { position: relative; min-height: 900px; perspective: 800px; overflow: hidden; }
.moon { position: absolute; top: 145px; right: 12%; width: 100px; aspect-ratio: 1; border-radius: 50%; background: #dbddc5; box-shadow: 0 0 55px rgba(214,223,200,.28); opacity: .75; }
.city { position: absolute; left: 0; right: 0; bottom: 31%; height: 38%; background: repeating-linear-gradient(90deg, transparent 0 30px, rgba(255,255,255,.07) 31px 34px, transparent 35px 64px), linear-gradient(to top, #0a1334 70%, transparent); clip-path: polygon(0 100%,0 58%,5% 58%,5% 34%,10% 34%,10% 53%,16% 53%,16% 15%,21% 15%,21% 62%,27% 62%,27% 44%,32% 44%,32% 70%,37% 70%,37% 25%,43% 25%,43% 60%,49% 60%,49% 5%,55% 5%,55% 60%,61% 60%,61% 38%,67% 38%,67% 64%,73% 64%,73% 22%,79% 22%,79% 58%,85% 58%,85% 40%,91% 40%,91% 67%,100% 67%,100% 100%); }
.city-back { opacity: .55; transform: translateY(-50px) scale(.9); }
.city-front { opacity: .95; }
.track { position: absolute; left: 3%; right: -6%; bottom: -12%; height: 70%; transform-origin: 50% 0; transform: rotateX(58deg); background: linear-gradient(90deg, transparent 0 3%, rgba(53,213,230,.18) 3% 4%, transparent 4% 96%, rgba(53,213,230,.18) 96% 97%, transparent 97%), linear-gradient(#182552, #070d25); border-top: 4px solid var(--cyan); box-shadow: 0 -10px 45px rgba(53,213,230,.25); }
.lane { position: absolute; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--cyan), transparent); box-shadow: 0 0 14px var(--cyan); }
.lane-a { left: 33.33%; } .lane-b { left: 66.66%; }
.runner { position: absolute; z-index: 2; left: 50%; top: 41%; width: 70px; height: 120px; transform: translateX(-50%) rotateX(-58deg); filter: drop-shadow(0 12px 10px rgba(0,0,0,.5)); }
.runner i { position: absolute; display: block; background: var(--lime); }
.runner .head { left: 25px; top: 0; width: 24px; height: 24px; border-radius: 50%; }
.runner .body { left: 22px; top: 23px; width: 31px; height: 51px; border-radius: 10px 10px 5px 5px; transform: skew(-6deg); }
.runner .arm { top: 29px; width: 11px; height: 49px; border-radius: 10px; transform-origin: top; }
.runner .arm.left { left: 17px; transform: rotate(24deg); } .runner .arm.right { right: 11px; transform: rotate(-38deg); }
.runner .leg { top: 66px; width: 13px; height: 58px; border-radius: 8px; transform-origin: top; }
.runner .leg.left { left: 25px; transform: rotate(20deg); } .runner .leg.right { left: 42px; transform: rotate(-26deg); }
.signal-card { position: absolute; z-index: 4; right: 7%; top: 28%; width: 210px; padding: 17px 20px; color: var(--ink); background: var(--cyan); box-shadow: 12px 12px 0 var(--lime); transform: rotate(3deg); }
.signal-card span, .signal-card small { display: block; font-family: "Barlow Condensed", sans-serif; font-weight: 700; letter-spacing: .1em; }
.signal-card strong { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 48px; line-height: 1; }

.moves { padding: 120px clamp(24px, 7vw, 110px); color: var(--ink); background: var(--paper); }
.section-label { margin-bottom: 30px; color: #506071; font-size: 12px; font-weight: 700; letter-spacing: .18em; }
.moves h2, .proof h2 { max-width: 900px; font-size: clamp(62px, 8vw, 120px); font-weight: 800; letter-spacing: -.025em; }
.moves h2 span { color: #6452e8; }
.move-grid { margin-top: 75px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.move-grid article { min-height: 260px; padding: 28px 26px; border-right: 1px solid rgba(7,16,44,.25); }
.move-grid article:last-child { border-right: 0; }
.move-grid b { color: #6452e8; font-family: "Barlow Condensed", sans-serif; }
.move-grid h3 { margin: 50px 0 12px; font-size: 48px; font-style: italic; }
.move-grid p { color: #4c5263; line-height: 1.55; }

.proof { display: grid; grid-template-columns: 1.15fr .85fr; gap: 8vw; padding: 130px clamp(24px, 7vw, 110px); background: var(--ink-soft); }
.proof h2 { font-size: clamp(64px, 7vw, 112px); }
.proof-copy { align-self: end; }
.proof-copy > p { font-size: 22px; line-height: 1.6; color: rgba(255,255,255,.72); }
.proof-copy ul { margin: 38px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.2); }
.proof-copy li { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.proof-copy li::before { content: "↗"; margin-right: 12px; color: var(--lime); }

.final-cta { min-height: 620px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--ink); background: var(--lime); }
.final-cta > p { font-weight: 700; letter-spacing: .18em; }
.final-cta h2 { margin: 16px 0 42px; font-size: clamp(82px, 12vw, 170px); font-style: italic; letter-spacing: -.04em; }
.app-store.inverse { border-color: var(--ink); }
.app-store.inverse:hover { background: var(--ink); color: var(--white); }

footer { min-height: 180px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding: 40px clamp(24px, 5vw, 72px); background: #04091c; }
footer nav { display: flex; gap: 28px; font-size: 14px; }
footer nav a:hover { color: var(--cyan); }
footer > p { justify-self: end; color: rgba(255,255,255,.45); font-size: 12px; }

.legal-page { min-height: 100vh; padding: 160px max(24px, calc((100vw - 860px) / 2)) 100px; color: var(--ink); background: var(--paper); }
.legal-page .wordmark { position: absolute; top: 38px; left: clamp(24px, 5vw, 72px); color: var(--ink); }
.legal-page h1 { margin-bottom: 28px; font-size: clamp(64px, 9vw, 112px); }
.legal-page h2 { margin: 48px 0 12px; font-size: 34px; line-height: 1; }
.legal-page p, .legal-page li { color: #404759; font-size: 16px; line-height: 1.75; }
.legal-page a { color: #4937c9; text-decoration: underline; }
.legal-page .updated { color: #687080; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.legal-page nav { margin-top: 70px; display: flex; gap: 24px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 30px; }
  .course { min-height: 650px; }
  .move-grid { grid-template-columns: 1fr 1fr; }
  .move-grid article:nth-child(2) { border-right: 0; }
  .proof { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer .wordmark, footer > p { justify-self: center; }
}
@media (max-width: 560px) {
  .site-header { height: 72px; }
  .header-cta { display: none; }
  .hero-copy { padding-top: 130px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .availability { border-left: 0; padding-left: 0; }
  .course { min-height: 520px; }
  .signal-card { top: 18%; right: 4%; transform: scale(.8) rotate(3deg); }
  .moves { padding-top: 90px; }
  .move-grid { grid-template-columns: 1fr; }
  .move-grid article { min-height: 210px; border-right: 0; }
  .move-grid h3 { margin-top: 35px; }
  footer nav { gap: 18px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .7s both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .runner { animation: run .55s ease-in-out infinite alternate; }
  .signal-card { animation: float 3s ease-in-out infinite; }
  @keyframes rise { from { opacity: 0; transform: translateY(25px); } }
  @keyframes run { to { transform: translateX(-50%) rotateX(-58deg) translateY(-9px); } }
  @keyframes float { 50% { transform: rotate(-1deg) translateY(-8px); } }
}
