/* Football Star — website styles.
   Design system "Stadium Night" (see ../DESIGN.md): a cinematic dark football
   world, three accent forces — Volt Lime (YOU), Sky Cyan (the AI) and Sunset
   Coral (the drama/match) — broadcast chrome, a floodlight glow and a living
   hero card. Clash Grotesk (display), General Sans (body) and Geist Mono
   (tabular stats / labels). Tokens mirror Theme.swift so the site reads as the
   same product as the app. */

:root {
  /* Neutrals (dark, cool) — DESIGN.md */
  --bg:        #0B1014;  /* Ink — background */
  --surface:   #151D24;  /* cards / tiles */
  --raised:    #1F2A33;  /* elevated */
  --hairline:  #2A3741;  /* border */

  /* Text */
  --ink:       #F2F7FA;  /* primary */
  --dim:       #B8C6D0;  /* secondary */
  --muted:     #8A9AA6;  /* muted */

  /* The three forces */
  --volt:      #C2F73E;  /* YOU — actions, growth, identity, primary */
  --volt-2:    #D4FF6B;
  --on-volt:   #0B1014;  /* dark text on volt */
  --cyan:      #46D7FF;  /* THE AI — wherever the companion speaks */
  --coral:     #FF6B4A;  /* HEAT — goals, big moments, match drama */

  /* Semantic */
  --success:   #3DDC84;
  --warning:   #FFB23E;
  --error:     #FF4D4D;

  --volt-wash: rgba(194,247,62,0.10);
  --cyan-wash: rgba(70,215,255,0.10);
  --coral-wash: rgba(255,107,74,0.10);
}

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

body {
  background: var(--bg);
  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;
}

/* The floodlight: a volt pool from above, plus a corner-darkening vignette. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1100px 620px at 50% -220px, rgba(194,247,62,0.14), transparent 60%),
    radial-gradient(820px 520px at 50% -120px, rgba(31,42,51,0.7), transparent 70%),
    radial-gradient(1300px 900px at 50% 124%, rgba(0,0,0,0.55), transparent 60%);
}
/* Fine film grain on the dark surface. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background:
    linear-gradient(transparent 0 119px, rgba(242,247,250,0.015) 119px 120px),
    linear-gradient(90deg, transparent 0 119px, rgba(242,247,250,0.015) 119px 120px);
}

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

a { color: var(--volt); 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(--volt);
}
.stamp.cyan { color: var(--cyan); }
.stamp.coral { color: var(--coral); }
.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: 23px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.wordmark .badge {
  width: 26px; height: 26px; flex: none;
  position: relative; top: 1px;
}
.wordmark .star { color: var(--volt); }
.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(--volt); border-bottom-color: var(--volt); }

/* ---- 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(--volt);
  border: 1px solid rgba(194,247,62,0.35);
  background: var(--volt-wash);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 26px;
}
.hero-title {
  font-size: 74px;
  line-height: 0.96;
  margin: 0 0 18px;
  text-shadow: 0 0 60px rgba(194,247,62,0.16);
}
.hero-title .hot { color: var(--volt); }
.hero-sub {
  font-size: 18.5px;
  color: var(--dim);
  max-width: 580px;
  margin: 0 auto 30px;
}

/* The living player card — hero prop (mirrors the app's Home hero). */
.playercard {
  max-width: 460px;
  margin: 30px auto 0;
  text-align: left;
  background: linear-gradient(180deg, rgba(31,42,51,0.6), rgba(21,29,36,0.96));
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 22px 22px 24px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.85);
  position: relative;
  overflow: hidden;
}
.playercard::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px 200px at 50% -50px, rgba(194,247,62,0.12), transparent 70%);
  pointer-events: none;
}
.pc-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.pc-avatar {
  width: 110px; height: 110px;
  margin: 2px auto 12px;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 35%, #2b3a45, #131b22);
  border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
}
.pc-name { text-align: center; font-size: 30px; line-height: 1; margin-bottom: 4px; }
.pc-meta {
  text-align: center; color: var(--muted);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px; letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.stat { margin-bottom: 11px; }
.stat:last-child { margin-bottom: 0; }
.stat-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 5px;
}
.stat-label { font-size: 13px; color: var(--dim); }
.stat-val {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-weight: 700; font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.bar { height: 7px; border-radius: 999px; background: var(--raised); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; }
.bar .energy   { background: var(--warning); }
.bar .morale   { background: var(--coral); }
.bar .fitness  { background: var(--success); }
.bar .disc     { background: var(--cyan); }
.bar .skill    { background: var(--volt); }

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

.cta-row { margin-top: 32px; }
.cta {
  display: inline-block;
  background: linear-gradient(180deg, var(--volt-2), var(--volt));
  color: var(--on-volt);
  font-family: 'General Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  padding: 15px 32px;
  border-radius: 999px;
  box-shadow: 0 10px 34px -8px rgba(194,247,62,0.4);
}
.cta:hover { text-decoration: none; filter: brightness(1.05); }
.cta.ghost {
  background: var(--volt-wash);
  color: var(--volt);
  border: 1px solid rgba(194,247,62,0.4);
  box-shadow: none;
  margin-left: 10px;
}
.cta.ghost:hover { background: rgba(194,247,62,0.16); }

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

main { padding: 26px 0 12px; }

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 32px;
  margin-bottom: 22px;
}

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

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(--raised);
  border: 1px solid var(--hairline);
  color: var(--volt);
  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; }

/* ---- Care actions / generic option grids ---- */

.care { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 4px; }
.care-tile {
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 18px 12px;
  text-align: center;
}
.care-tile .em { font-size: 26px; display: block; margin-bottom: 8px; }
.care-tile h3 { margin: 0 0 3px; font-size: 15px; }
.care-tile p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.4; }

/* ---- Match decision (coral) ---- */

.decision {
  background: linear-gradient(180deg, var(--raised), var(--surface));
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 22px;
  margin-top: 4px;
}
.decision .minute {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-weight: 700;
  font-size: 40px;
  color: var(--volt);
  text-align: center;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 22px rgba(194,247,62,0.4);
  line-height: 1;
  margin-bottom: 6px;
}
.decision .live {
  display: block; text-align: center;
  font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--coral); margin-bottom: 14px;
}
.decision .prompt { text-align: center; font-size: 18px; font-weight: 600; margin: 0 0 16px; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 13px 16px;
}
.opt::after { content: "›"; color: var(--volt); font-size: 18px; }
.opt.on { border-color: var(--volt); background: var(--volt-wash); }

/* ---- The climb (career ladder) ---- */

.ladder { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.rung {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 13px; font-weight: 600;
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 8px 15px;
  color: var(--dim);
}
.rung.now { color: var(--on-volt); background: var(--volt); border-color: var(--volt); }
.rung.end { color: var(--volt); border-color: rgba(194,247,62,0.4); background: var(--volt-wash); }
.ladder .arrow { color: var(--muted); font-size: 13px; }

/* ---- AI chat card (cyan — the companion) ---- */

.chat {
  background: linear-gradient(180deg, rgba(70,215,255,0.06), var(--surface));
  border: 1px solid rgba(70,215,255,0.25);
  border-radius: 18px;
  padding: 24px;
}
.chat-tag {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 16px;
}
.bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 15.5px;
  line-height: 1.4;
  margin-bottom: 10px;
}
.bubble.me {
  margin-left: auto;
  background: var(--volt);
  color: var(--on-volt);
  border-bottom-right-radius: 5px;
}
.bubble.ai {
  margin-right: auto;
  background: var(--raised);
  border: 1px solid rgba(70,215,255,0.3);
  color: var(--ink);
  border-bottom-left-radius: 5px;
}
.chat-by { font-size: 13.5px; color: var(--muted); margin: 12px 0 0; }

/* ---- Scoreboard-style list (e.g. relationships) ---- */

.board {
  background: linear-gradient(180deg, var(--raised), var(--surface));
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
}
.board .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
}
.board .row:last-child { border-bottom: 0; }
.board .row .what { font-size: 15px; }
.board .row .pts {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-weight: 700;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--volt);
  background: var(--volt-wash);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 5px 12px;
  white-space: nowrap;
}
.board .row.ally .pts { color: var(--cyan); background: var(--cyan-wash); }
.board .row.rival .pts { color: var(--coral); background: var(--coral-wash); }

/* ---- Two-card grid (modes / relationships) ---- */

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mode {
  background: var(--raised);
  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(--volt);
}
.mode.volt { border-top: 3px solid var(--volt); }
.mode.cyan { border-top: 3px solid var(--cyan); }
.mode.cyan .tag { color: var(--cyan); }
.mode.coral { border-top: 3px solid var(--coral); }
.mode.coral .tag { color: var(--coral); }
.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; }

/* ---- Achievements grid ---- */

.badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.badge-card {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 15px 16px;
}
.badge-card .em { font-size: 20px; flex: none; line-height: 1.2; }
.badge-card h3 { margin: 0 0 2px; font-size: 15px; }
.badge-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }

/* ---- 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 ---- */

.callout {
  background: var(--raised);
  border-left: 3px solid var(--volt);
  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 ---- */

.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: 46px; }
  .card { padding: 22px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .modes { grid-template-columns: 1fr; }
  .care { grid-template-columns: 1fr 1fr; }
  .badges { grid-template-columns: 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; }
}
