/* 38-0.co marketing site — design tokens ported from the app (src/theme/tokens.ts). */
:root {
  --bg: #090b0e;
  --card: #14171d;
  --card2: #1b1f27;
  --line: rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 255, 255, 0.14);
  --ink: #f2f5f8;
  --ink-dim: #98a4b1;
  --ink-faint: #5a6470;
  --accent: #13c26a;
  --accent-ink: #04230f;
  --gold: #f5c23e;
  --danger: #e5604d;
  --blue: #4f86c6;

  --display: "Anton", system-ui, sans-serif;
  --num: "Oswald", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;

  --radius: 14px;
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- shared type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--num); font-weight: 700;
  font-size: 12px; letter-spacing: 2.6px; text-transform: uppercase;
  color: var(--ink-dim);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
}
.kicker { font-family: var(--num); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
h2.section-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(30px, 5vw, 48px); line-height: 1.04; letter-spacing: 0.5px;
  margin: 12px 0 14px;
}
.section-lead { color: var(--ink-dim); max-width: 56ch; font-size: 17px; }

/* ---------- wordmark ---------- */
.wordmark { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; display: inline-flex; align-items: baseline; line-height: 1; }
.wordmark .hy { color: var(--accent); margin: 0 -0.04em; }
.wordmark.glow { text-shadow: 0 0 30px rgba(245, 194, 62, 0.30); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--num); font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  border-radius: var(--radius); padding: 14px 22px; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #1a1305; box-shadow: 0 8px 30px rgba(245, 194, 62, 0.22); }
.btn-gold:hover { box-shadow: 0 12px 38px rgba(245, 194, 62, 0.34); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line2); }
.btn-ghost:hover { background: var(--card2); }

/* ---------- nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(9, 11, 14, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
header.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav .wordmark { font-size: 28px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a.link { font-family: var(--num); font-weight: 500; font-size: 14px; letter-spacing: 0.4px; color: var(--ink-dim); transition: color .15s; }
.nav-links a.link:hover { color: var(--ink); }
.nav .btn { padding: 9px 16px; font-size: 13px; }
@media (max-width: 720px) { .nav-links a.link { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; text-align: center; padding: 70px 0 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -120px; transform: translateX(-50%);
  width: 760px; height: 620px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(245, 194, 62, 0.16), rgba(19, 194, 106, 0.05) 55%, transparent 75%);
}
.hero-inner { position: relative; }
.hero .wordmark { font-size: clamp(96px, 19vw, 188px); }
.hero h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(26px, 5.4vw, 46px); line-height: 1.05; letter-spacing: 0.5px;
  margin: 22px 0 0;
}
.hero h1 .gold { color: var(--gold); }
.hero .sub { color: var(--ink-dim); max-width: 50ch; margin: 18px auto 0; font-size: 17px; }
.hero .can { font-family: var(--num); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin-top: 22px; font-size: 15px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.play-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--num); font-weight: 600; color: var(--ink-dim); padding: 14px 6px; font-size: 14px; letter-spacing: .4px; transition: color .15s; }
.play-link:hover { color: var(--ink); }

/* store badge */
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--card); border: 1px solid var(--line2); border-radius: var(--radius);
  padding: 9px 18px 9px 16px; transition: transform .15s, border-color .15s;
}
.store-badge:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.28); }
.store-badge svg { width: 24px; height: 24px; flex: none; }
.store-badge .sb-txt { text-align: left; line-height: 1.15; }
.store-badge .sb-top { display: block; font-family: var(--body); font-size: 10px; letter-spacing: .4px; color: var(--ink-dim); text-transform: uppercase; }
.store-badge .sb-main { display: flex; align-items: center; gap: 5px; font-family: var(--num); font-weight: 600; font-size: 16px; color: var(--ink); }

.fan-badge {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 30px;
  padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--card);
}
.fan-badge .d { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.fan-badge span { font-family: var(--num); font-weight: 700; font-size: 10px; letter-spacing: 1.4px; color: var(--ink-dim); text-transform: uppercase; }

/* ---------- stats strip ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.012), transparent); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 14px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat .v { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 5vw, 44px); color: var(--ink); line-height: 1; }
.stat .v .accent { color: var(--accent); }
.stat .l { font-family: var(--num); font-weight: 500; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-dim); margin-top: 8px; }
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--line); }
}

/* ---------- sections ---------- */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .section-lead { margin: 0 auto; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px 26px; overflow: hidden;
}
.step .n { font-family: var(--display); font-size: 16px; color: var(--accent-ink); background: var(--accent); width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; }
.step h3 { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .5px; margin: 16px 0 8px; }
.step p { color: var(--ink-dim); font-size: 14.5px; }
.step .ico { position: absolute; top: 18px; right: 16px; opacity: .9; }
@media (max-width: 880px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .steps { grid-template-columns: 1fr; } }

/* feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature.flip .f-visual { order: -1; }
.feature .f-copy h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 4.4vw, 40px); line-height: 1.06; letter-spacing: .5px; margin: 12px 0 14px; }
.feature .f-copy p { color: var(--ink-dim); font-size: 16.5px; max-width: 46ch; }
.feature ul.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.feature ul.chips li { font-family: var(--num); font-weight: 600; font-size: 12.5px; letter-spacing: .4px; color: var(--ink-dim); background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 6px 13px; }
.f-visual { display: flex; justify-content: center; }
@media (max-width: 820px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 30px; }
  .feature.flip .f-visual { order: 0; }
}

/* visual cards */
.vcard { width: 100%; max-width: 420px; background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.vcard .vc-label { font-family: var(--num); font-weight: 700; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-faint); }

/* reel */
.reel { position: relative; display: flex; gap: 10px; margin-top: 16px; }
.reel .slot { flex: 1; background: #0c0f14; border: 1px solid var(--line); border-radius: 12px; height: 120px; overflow: hidden; position: relative; }
.reel .slot .strip { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; }
.reel .slot .cell { height: 120px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; }
.reel .badge-init { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; font-family: var(--display); font-size: 19px; color: #fff; }
.reel .cell .cname { font-family: var(--num); font-weight: 600; font-size: 12px; color: var(--ink); }
.reel .cell .cyear { font-family: var(--num); font-weight: 500; font-size: 11px; color: var(--gold); letter-spacing: .5px; }
.reel .winline { position: absolute; left: 6px; right: 6px; top: 50%; height: 120px; transform: translateY(-50%); border: 2px solid rgba(245,194,62,.5); border-radius: 12px; pointer-events: none; box-shadow: 0 0 24px rgba(245,194,62,.18) inset; }

/* pitch */
.pitch { aspect-ratio: 3 / 4; width: 100%; border-radius: 14px; background: linear-gradient(180deg, #0e2a1e, #0a1d15); border: 1px solid var(--line); position: relative; overflow: hidden; }

/* score code */
.scorecode { text-align: center; padding: 14px 0 6px; }
.scorecode .code { font-family: var(--display); font-size: 92px; line-height: 1; }
.scorecode .code .hy { color: var(--accent); margin: 0 -.04em; }
.wdl { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.wdl .b { flex: 1; max-width: 96px; border-radius: 12px; padding: 12px 0; border: 1px solid var(--line); background: #0c0f14; text-align: center; }
.wdl .b .num { font-family: var(--display); font-size: 30px; }
.wdl .b .tag { font-family: var(--num); font-weight: 700; font-size: 11px; letter-spacing: 2px; color: var(--ink-dim); }
.wdl .w .num { color: var(--accent); }
.wdl .d .num { color: var(--ink-dim); }
.wdl .l .num { color: var(--danger); }
.share-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; font-family: var(--num); font-weight: 600; color: var(--ink-faint); font-size: 12.5px; letter-spacing: 1px; }

/* league table mini */
.ltable { margin-top: 8px; width: 100%; border-collapse: collapse; font-family: var(--num); }
.ltable th { text-align: left; font-weight: 600; font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-faint); padding: 8px 6px; border-bottom: 1px solid var(--line); }
.ltable td { font-size: 13.5px; padding: 9px 6px; border-bottom: 1px solid rgba(255,255,255,.05); color: var(--ink-dim); }
.ltable tr.you td { color: var(--ink); }
.ltable tr.you .pos { color: var(--gold); }
.ltable td.pos { font-weight: 700; width: 26px; }
.ltable td.club { font-weight: 600; }
.ltable td.pts { text-align: right; font-weight: 700; color: var(--ink); }
.ltable tr.you .badge-init { width: 22px; height: 22px; border-radius: 6px; font-size: 11px; display: inline-grid; place-items: center; vertical-align: middle; margin-right: 8px; font-family: var(--display); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 720px; height: 420px; background: radial-gradient(closest-side, rgba(19,194,106,.12), transparent 70%); pointer-events: none; }
.cta-band .wordmark { font-size: clamp(60px, 12vw, 110px); }
.cta-band h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 5vw, 44px); margin: 18px 0 8px; letter-spacing: .5px; }
.cta-band h2 .gold { color: var(--gold); }
.cta-band p { color: var(--ink-dim); max-width: 44ch; margin: 0 auto; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
details.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-bottom: 12px; overflow: hidden; }
details.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--num); font-weight: 600; font-size: 17px; color: var(--ink); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .pm { font-family: var(--display); color: var(--accent); font-size: 22px; transition: transform .2s; flex: none; }
details.faq[open] summary .pm { transform: rotate(45deg); }
details.faq .a { padding: 0 22px 20px; color: var(--ink-dim); font-size: 15.5px; max-width: 62ch; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 54px 0 40px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
footer .wordmark { font-size: 34px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { font-family: var(--num); font-weight: 500; font-size: 14px; color: var(--ink-dim); transition: color .15s; }
.foot-links a:hover { color: var(--ink); }
.disclaimer { margin-top: 30px; color: var(--ink-faint); font-size: 12px; line-height: 1.7; max-width: 90ch; }
.copyright { margin-top: 18px; color: var(--ink-faint); font-size: 12px; font-family: var(--num); letter-spacing: .4px; }

/* ---------- legal / privacy page ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 0 80px; }
.legal .kicker { display: block; margin-bottom: 12px; }
.legal h1 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 6vw, 52px); line-height: 1.05; letter-spacing: .5px; }
.legal .updated { color: var(--ink-faint); font-family: var(--num); font-size: 13px; letter-spacing: .4px; margin-top: 10px; }
.legal .lead { color: var(--ink-dim); font-size: 17px; margin-top: 22px; }
.legal h2 { font-family: var(--num); font-weight: 700; font-size: 21px; letter-spacing: .3px; color: var(--ink); margin: 40px 0 10px; }
.legal p { color: var(--ink-dim); font-size: 15.5px; margin-top: 12px; }
.legal ul { margin: 12px 0 0 18px; color: var(--ink-dim); font-size: 15.5px; }
.legal li { margin-top: 8px; }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal hr { border: none; border-top: 1px solid var(--line); margin: 44px 0; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
