/* Football Guessing — website styles.
   Design system "Synthwave Arcade" (see ../DESIGN.md): a deep purple→blue night,
   a glowing retro sun, a neon perspective grid, and multi-neon accents — green
   (correct), cyan (focus), magenta (energy) and amber (close). Opaque neon
   panels keep text readable. Tokens mirror Theme.swift / Theme+Neon.swift so the
   site reads as the same product as the app. Clash Grotesk (display),
   General Sans (body), Geist Mono (labels / tabular). */

:root {
  /* Base — purple → blue night */
  --base-top:    #1A0B2E;
  --base-mid:    #141047;
  --base-bottom: #071A3A;
  --panel-top:   #201740;
  --panel-bottom:#110B26;
  --hairline:    rgba(168,85,247,0.30);

  /* Text */
  --ink:   #F4F1FF;
  --dim:   rgba(244,241,255,0.74);
  --muted: rgba(244,241,255,0.50);

  /* Neon accents (mirror Theme.Neon) */
  --green:   #21E27A;
  --cyan:    #22D3EE;
  --magenta: #FF2D95;
  --purple:  #A855F7;
  --amber:   #FFB020;
  --on-fill: #07121a;

  --green-wash: rgba(33,226,122,0.12);
  --cyan-wash:  rgba(34,211,238,0.12);
  --mag-wash:   rgba(255,45,149,0.12);
  --amber-wash: rgba(255,176,32,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: linear-gradient(180deg, var(--base-top), var(--base-mid) 45%, var(--base-bottom));
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'General Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

/* The retro sun glow + corner vignette. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(540px 360px at 50% 8%, rgba(255,45,149,0.30), transparent 62%),
    radial-gradient(420px 280px at 50% 6%, rgba(255,176,32,0.18), transparent 60%),
    radial-gradient(1200px 800px at 50% 120%, rgba(7,26,58,0.6), transparent 60%);
}

/* The neon perspective grid floor at the bottom of the page. */
body::after {
  content: "";
  position: fixed;
  left: -25%;
  right: -25%;
  bottom: -10%;
  height: 60vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  transform: perspective(340px) rotateX(68deg);
  transform-origin: bottom center;
  background-image:
    linear-gradient(rgba(34,211,238,0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.55) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(transparent, #000 55%);
          mask-image: linear-gradient(transparent, #000 55%);
}

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 22px;
  position: relative;
  z-index: 1;
}

a { color: var(--cyan); text-underline-offset: 3px; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, .wordmark, .hero-title {
  font-family: 'Clash Grotesk', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.002em;
}

/* ---- Shared bits ---- */

.stamp {
  display: inline-block;
  font-family: 'Geist Mono', ui-monospace, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.stamp.muted { color: var(--muted); }

/* ---- Masthead ---- */

.masthead {
  padding: 20px 0 16px;
  border-bottom: 1px solid var(--hairline);
}
.masthead .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 22px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.wordmark .badge { width: 26px; height: 26px; flex: none; position: relative; top: 1px; }
.wordmark .hot { color: var(--green); text-shadow: 0 0 16px rgba(33,226,122,0.6); }
.tagline {
  font-family: 'Geist Mono', ui-monospace, Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav {
  margin-left: auto;
  font-size: 12px;
  font-family: 'Geist Mono', ui-monospace, Menlo, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav a {
  color: var(--ink);
  margin-left: 18px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { text-decoration: none; color: var(--cyan); border-bottom-color: var(--cyan); }

/* ---- Hero ---- */

.hero { text-align: center; padding: 60px 0 30px; }
.hero-badge {
  display: inline-block;
  font-family: 'Geist Mono', ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(34,211,238,0.4);
  background: var(--cyan-wash);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 26px;
}
.hero-title {
  font-size: 70px;
  line-height: 0.98;
  margin: 0 0 18px;
  text-shadow: 0 0 60px rgba(168,85,247,0.4);
}
.hero-title .hot { color: var(--green); text-shadow: 0 0 40px rgba(33,226,122,0.55); }
.hero-sub {
  font-size: 18.5px;
  color: var(--dim);
  max-width: 580px;
  margin: 0 auto 30px;
}

/* The guess board — hero prop (mirrors the app's clue grid). */
.guessboard {
  max-width: 460px;
  margin: 34px auto 0;
  text-align: left;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
  border: 1px solid rgba(34,211,238,0.5);
  box-shadow: 0 0 28px rgba(34,211,238,0.25), 0 30px 80px -30px rgba(0,0,0,0.9);
}
.gb-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px; letter-spacing: 0.08em; color: var(--dim);
  margin-bottom: 14px;
}
.grow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 6px; }
.grow:last-child { margin-bottom: 0; }
.cell {
  border-radius: 9px;
  padding: 8px 4px 7px;
  text-align: center;
  border: 1.2px solid;
}
.cell .lab {
  display: block;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.cell .val { display: block; font-weight: 700; font-size: 12.5px; line-height: 1.1; }
.cell.exact { border-color: var(--green); background: var(--green-wash); box-shadow: 0 0 12px rgba(33,226,122,0.35); }
.cell.exact .val { color: var(--green); }
.cell.close { border-color: var(--amber); background: var(--amber-wash); box-shadow: 0 0 12px rgba(255,176,32,0.3); }
.cell.close .val { color: var(--amber); }
.cell.miss  { border-color: rgba(148,163,184,0.4); background: rgba(148,163,184,0.06); }
.cell.miss .val { color: rgba(244,241,255,0.6); }

/* ---- Buttons ---- */

.cta-row { margin-top: 32px; }
.cta {
  display: inline-block;
  background: linear-gradient(90deg, rgba(33,226,122,0.3), rgba(34,211,238,0.22));
  color: var(--ink);
  font-family: 'General Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  padding: 15px 32px;
  border-radius: 999px;
  border: 1.5px solid var(--green);
  box-shadow: 0 0 26px rgba(33,226,122,0.4);
}
.cta:hover { text-decoration: none; filter: brightness(1.12); }
.cta.ghost {
  background: var(--cyan-wash);
  color: var(--cyan);
  border: 1px solid rgba(34,211,238,0.5);
  box-shadow: none;
  margin-left: 10px;
}
.cta.ghost:hover { background: rgba(34,211,238,0.18); }

/* ---- Cards & layout ---- */

main { padding: 26px 0 12px; }

.card {
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 32px;
  margin-bottom: 22px;
  box-shadow: 0 0 22px rgba(168,85,247,0.12);
}

.kicker {
  font-family: 'Geist Mono', ui-monospace, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.kicker.cyan { color: var(--cyan); }
.kicker.magenta { color: var(--magenta); }

h1 { font-size: 44px; line-height: 1.02; margin-bottom: 6px; }
h2 { font-size: 30px; line-height: 1.06; margin: 4px 0 12px; }
h3 { font-size: 17px; font-family: 'General Sans', sans-serif; font-weight: 600; letter-spacing: 0; margin: 18px 0 6px; }
p { margin-bottom: 14px; }
ul { margin: 0 0 14px 22px; }
li { margin-bottom: 7px; }
strong { font-weight: 600; color: var(--ink); }

.lede { font-size: 19px; color: var(--dim); }
.updated {
  font-family: 'Geist Mono', ui-monospace, Menlo, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 18px;
}

/* ---- Numbered steps ---- */

.step {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}
.step:last-child { border-bottom: 0; }
.step .num {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--cyan-wash);
  border: 1px solid rgba(34,211,238,0.4);
  color: var(--cyan);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-weight: 700;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin: 5px 0 3px; }
.step p { margin: 0; color: var(--dim); font-size: 15px; }

/* ---- Colour legend ---- */

.legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 4px; }
.chip {
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  border: 1px solid;
}
.chip .sq { font-size: 24px; display: block; margin-bottom: 8px; }
.chip h3 { margin: 0 0 3px; font-size: 15px; }
.chip p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.chip.exact { border-color: var(--green); background: var(--green-wash); }
.chip.close { border-color: var(--amber); background: var(--amber-wash); }
.chip.miss  { border-color: rgba(148,163,184,0.35); background: rgba(148,163,184,0.06); }

/* ---- Modes grid ---- */

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mode {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 22px;
}
.mode .tag {
  font-family: 'Geist Mono', ui-monospace, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}
.mode h3 { margin: 8px 0 6px; font-size: 19px; font-family: 'Clash Grotesk', sans-serif; font-weight: 600; letter-spacing: 0; }
.mode p { margin: 0; color: var(--dim); font-size: 15px; }
.mode.green  { border-top: 3px solid var(--green); }
.mode.cyan   { border-top: 3px solid var(--cyan); } .mode.cyan .tag { color: var(--cyan); }
.mode.magenta{ border-top: 3px solid var(--magenta); } .mode.magenta .tag { color: var(--magenta); }
.mode.purple { border-top: 3px solid var(--purple); } .mode.purple .tag { color: var(--purple); }

/* ---- Stats demo (streak tiles + distribution) ---- */

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 4px; }
.tile {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(34,211,238,0.4);
  border-radius: 14px;
  padding: 16px 10px;
  text-align: center;
  box-shadow: 0 0 14px rgba(34,211,238,0.18);
}
.tile .big {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-weight: 700; font-size: 26px;
  color: var(--green);
  text-shadow: 0 0 14px rgba(33,226,122,0.5);
  font-variant-numeric: tabular-nums;
}
.tile .cap { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

.dist { margin-top: 18px; }
.dist .drow { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.dist .dnum {
  font-family: 'Geist Mono', monospace; font-size: 12px; width: 14px; color: var(--dim);
}
.dist .dbar {
  height: 18px; border-radius: 5px;
  background: var(--green);
  box-shadow: 0 0 10px rgba(33,226,122,0.45);
  color: var(--on-fill);
  font-family: 'Geist Mono', monospace; font-weight: 700; font-size: 11px;
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0 7px;
}

/* ---- Feature rows ---- */

.feature {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.feature:last-child { border-bottom: 0; }
.feature .ico { font-size: 22px; flex: none; width: 30px; text-align: center; line-height: 1.4; }
.feature h3 { margin: 0 0 2px; }
.feature p { margin: 0; color: var(--dim); font-size: 15px; }

/* ---- Callout / fineprint / FAQ ---- */

.callout {
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--cyan);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 18px 0;
}
.callout p:last-child { margin-bottom: 0; }

.fineprint {
  font-size: 13px;
  color: var(--muted);
  border: 1px dashed var(--hairline);
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 6px;
}
.fineprint p:last-child { margin-bottom: 0; }

.faq-q { font-family: 'General Sans', sans-serif; font-weight: 600; color: var(--ink); margin-top: 22px; margin-bottom: 4px; }
.rule { border: 0; border-top: 1px solid var(--hairline); margin: 24px 0; }

/* ---- Footer ---- */

.footer {
  border-top: 1px solid var(--hairline);
  margin-top: 30px;
  padding: 26px 0 46px;
}
.footer p { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.footer .nav-foot { font-family: 'Geist Mono', ui-monospace, Menlo, monospace; letter-spacing: 0.06em; text-transform: uppercase; font-size: 12px; }
.footer .nav-foot a { color: var(--ink); margin-right: 16px; }
.footer .copy {
  font-family: 'Geist Mono', ui-monospace, Menlo, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---- Responsive ---- */

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0 22px; }
  .hero-title { font-size: 44px; }
  .card { padding: 22px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .modes { grid-template-columns: 1fr; }
  .legend { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .nav { width: 100%; margin-left: 0; margin-top: 6px; }
  .nav a { margin-left: 0; margin-right: 16px; }
  .cta.ghost { margin-left: 0; margin-top: 10px; }
}
