@font-face { font-family: 'Geist'; src: url('/fonts/Geist-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/GeistMono-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

/* Same tokens as the desktop app. Dark only, like the app. */
:root {
  --canvas: #060607;
  --card: #0f0f12;
  --card-2: #131316;
  --edge: rgba(255, 255, 255, 0.07);
  --edge-2: rgba(255, 255, 255, 0.1);
  --text: #f4f4f5;
  --text-2: #a1a1aa;
  --text-3: #62626a;
  --white: #fafafa;
  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --mono: 'Geist Mono', ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { background: var(--canvas); color: var(--text); font-family: 'Geist', 'Segoe UI', system-ui, sans-serif; font-size: 15px; line-height: 1.55; letter-spacing: -0.008em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: rgba(255, 255, 255, 0.2); }
:focus-visible { outline: 1.5px solid rgba(255, 255, 255, 0.5); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1140px, 100% - 32px); margin: 0 auto; }
.muted { color: var(--text-3); }
.mark { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 6.5; stroke-linecap: square; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.logo { width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center; background: linear-gradient(180deg, #1f1f24, #131316); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.logo .mark { width: 14px; height: 14px; }
.logo.big { width: 56px; height: 56px; border-radius: 16px; }
.logo.big .mark { width: 26px; height: 26px; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 40px; padding: 0 18px; border-radius: 11px; font-weight: 540; font-size: 14px; white-space: nowrap; transition: background 180ms, box-shadow 180ms, transform 200ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(180deg, #fff, #e4e4e7); color: #09090b; box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 24px -10px rgba(255, 255, 255, 0.35); }
.btn-primary:hover { background: linear-gradient(180deg, #fff, #f0f0f2); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(255, 255, 255, 0.2), 0 10px 30px -10px rgba(255, 255, 255, 0.5); }
.btn-secondary { background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 0 1px rgba(255, 255, 255, 0.09); }
.btn-secondary:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.06)); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 13px; }

/* ---- Header ---- */
.top { position: sticky; top: 0; z-index: 20; transition: background 300ms, box-shadow 300ms; }
.top.scrolled { background: rgba(6, 6, 7, 0.78); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 var(--edge); }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 620; letter-spacing: -0.03em; font-size: 16px; }
.brand.small { font-size: 14px; gap: 9px; }
.brand.small .logo { width: 24px; height: 24px; border-radius: 7px; }
.brand.small .logo .mark { width: 11px; height: 11px; }
.top-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--text-2); }
.top-nav a:not(.btn) { transition: color 160ms; }
.top-nav a:not(.btn):hover { color: var(--text); }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity 900ms var(--ease-out), transform 1000ms var(--ease-out), filter 900ms var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.d1 { --d: 1; } .d2 { --d: 2; } .d3 { --d: 3; } .d4 { --d: 4; } .d5 { --d: 5; }

/* ---- Hero ---- */
.hero { position: relative; padding: 84px 0 0; overflow: hidden; }
.dots { position: absolute; inset: 0 0 auto 0; width: 100%; height: 760px; pointer-events: none; }
.hero-glow { position: absolute; left: 50%; top: 520px; width: 1100px; height: 600px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 255, 255, 0.09), transparent); pointer-events: none; }
.hero-copy { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--text-2); font-size: 13.5px; }
.kicker-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--white); box-shadow: 0 0 10px rgba(255, 255, 255, 0.7); }
h1 { margin-top: 26px; font-size: clamp(44px, 7.2vw, 84px); line-height: 0.98; letter-spacing: -0.055em; font-weight: 640; background: linear-gradient(180deg, #ffffff 30%, #a1a1aa); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 6px; }
h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 620; }
h3 { font-size: 16px; font-weight: 580; letter-spacing: -0.02em; }
.lede { color: var(--text-2); font-size: 17px; line-height: 1.6; max-width: 600px; margin-top: 22px; }
.hero-actions { display: flex; gap: 10px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }
.meta { color: var(--text-3); font-size: 13px; margin-top: 18px; }

.shot { position: relative; margin-top: 64px; border-radius: 18px; padding: 8px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 60px 160px -40px rgba(0, 0, 0, 0.9); transform-origin: 50% 0; }
.shot img { border-radius: 12px; }
.shot.in { transform: perspective(1800px) rotateX(var(--tilt, 0deg)); }
.shot::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 40%; background: linear-gradient(transparent, var(--canvas)); border-radius: 0 0 18px 18px; pointer-events: none; }

/* ---- Bands ---- */
.band { padding-top: 140px; }
.band-head { margin-bottom: 44px; }
.band-head.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.band-head.split .lede { margin-top: 0; }
.eyebrow { color: var(--text-3); font-size: 13.5px; font-weight: 500; margin-bottom: 14px; }

.card { position: relative; background: linear-gradient(180deg, var(--card-2), var(--card)); border-radius: 20px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px var(--edge); padding: 26px; overflow: hidden; isolation: isolate; }
.card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px circle at var(--mx, -999px) var(--my, -999px), rgba(255, 255, 255, 0.06), transparent 40%); opacity: 0; transition: opacity 300ms; z-index: -1; }
.card:hover::before { opacity: 1; }
.card h3 { margin-top: 18px; }
.card p { color: var(--text-2); margin-top: 8px; font-size: 14.5px; }
.tile { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(160deg, #24242a, #16161a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 0 0 1px rgba(255, 255, 255, 0.06); color: var(--text); }

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.span-2 { grid-column: span 2; }
.card-copy h3 { margin-top: 0; font-size: 20px; letter-spacing: -0.03em; }
.card-copy p { max-width: 480px; }
.graph { position: relative; height: 190px; margin: 22px -26px -26px; }
.graph canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.graph-legend { position: absolute; top: 0; right: 26px; display: flex; gap: 18px; color: var(--text-3); font-size: 12.5px; }
.graph-legend i { display: inline-block; width: 14px; height: 2px; border-radius: 2px; background: var(--text-3); vertical-align: middle; margin-right: 7px; }
.graph-legend .tuned i { background: var(--white); }

.games { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.game { transition: transform 400ms var(--ease-out); }
.game:hover { transform: translateY(-4px); }
.mono { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-family: var(--mono); font-weight: 600; font-size: 15px; background: linear-gradient(160deg, #26262b, #151518); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.07); }
.game h3 { font-size: 18px; margin-top: 26px; }
.game p { font-size: 13.5px; }

.safety .lede { font-size: 16px; }
.safety .card.span-2 { display: flex; flex-direction: column; }
.safety .flow { margin-top: auto; padding-top: 34px; }
.flow { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.flow li { display: flex; flex-direction: column; gap: 14px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--edge); font-size: 13.5px; color: var(--text-2); position: relative; overflow: hidden; }
.flow li span { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-family: var(--mono); font-size: 11.5px; color: var(--text); background: rgba(255, 255, 255, 0.07); }
.flow li::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--white); transform: scaleX(0); transform-origin: left; animation: flow-step 6s var(--ease) infinite; animation-delay: calc(var(--n) * 1.2s); }
.flow li:nth-child(1) { --n: 0; } .flow li:nth-child(2) { --n: 1; } .flow li:nth-child(3) { --n: 2; } .flow li:nth-child(4) { --n: 3; }
@keyframes flow-step { 0% { transform: scaleX(0); } 18% { transform: scaleX(1); } 70% { transform: scaleX(1); opacity: 1; } 80%, 100% { transform: scaleX(1); opacity: 0; } }
.side-shot { width: 210%; max-width: none; border-radius: 12px; margin: 4px 0 -26px; box-shadow: 0 0 0 1px var(--edge-2); }
.safety .card:last-child { padding-right: 0; }

.faq { border-radius: 20px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px var(--edge); background: linear-gradient(180deg, var(--card-2), var(--card)); max-width: 860px; overflow: hidden; }
.faq details + details { border-top: 1px solid var(--edge); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 64px 22px 26px; font-size: 16px; font-weight: 540; letter-spacing: -0.015em; position: relative; transition: background 200ms; }
.faq summary:hover { background: rgba(255, 255, 255, 0.02); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 26px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: linear-gradient(var(--text-2), var(--text-2)) center / 12px 1.5px no-repeat, linear-gradient(var(--text-2), var(--text-2)) center / 1.5px 12px no-repeat; transition: transform 360ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--text-2); padding: 0 64px 24px 26px; max-width: 760px; animation: open 460ms var(--ease-out); }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.cta { margin: 140px 0 110px; padding: 72px 26px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta::after { content: ''; position: absolute; left: 50%; bottom: -260px; width: 800px; height: 420px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 255, 255, 0.1), transparent); z-index: -1; }
.cta h2 { margin-top: 26px; }
.cta .lede { margin: 14px 0 30px; }

.foot { box-shadow: 0 -1px 0 var(--edge); }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-size: 13px; }

@media (max-width: 900px) {
  .top-nav a:not(.btn) { display: none; }
  .hero { padding-top: 48px; }
  .lede { font-size: 16px; }
  .band { padding-top: 100px; }
  .band-head.split { grid-template-columns: 1fr; gap: 0; }
  .band-head.split .lede { margin-top: 20px; }
  .bento, .games { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .flow { grid-template-columns: 1fr 1fr; }
  .side-shot { width: 100%; margin-bottom: 0; }
  .safety .card:last-child { padding-right: 26px; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
  .shot { margin-top: 44px; padding: 5px; border-radius: 13px; }
  .cta { margin: 100px 0 80px; padding: 56px 22px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .games { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
}

.cta.full { min-height: 100vh; justify-content: center; margin: 0; border-radius: 0; box-shadow: none; background: none; }
