/* Soccer Predictor: Bracket — website styles.
   "Floodlit Pitch / Scoreboard" — a sporty, original identity:
   night-pitch green-black, pitch-marking lines, electric-lime accent,
   a hot "upset" orange, and a stadium-LED scoreboard motif.
   Archivo (display) + Inter (body) + JetBrains Mono (scores/labels). */

:root {
  --bg:        #08120D;
  --bg2:       #0B1712;
  --panel:     #0F1E17;
  --panel2:    #15291F;
  --line:      #1F362A;
  --line-soft: rgba(182,255,60,0.10);
  --ink:       #ECF3ED;
  --dim:       #8DA899;
  --lime:      #B6FF3C;   /* electric pitch accent */
  --lime-deep: #8DE000;
  --hot:       #FF6A3D;   /* the upset */
  --gold:      #FFD15C;   /* the champion */
  --chalk:     rgba(236,243,237,0.14); /* pitch markings */
}

* { 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: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Floodlights from above + the curve of a pitch below */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 460px at 18% -120px, rgba(182,255,60,0.12), transparent 70%),
    radial-gradient(900px 460px at 82% -120px, rgba(255,106,61,0.08), transparent 70%),
    radial-gradient(1300px 760px at 50% 118%, rgba(0,0,0,0.55), transparent 60%);
}

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

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

h1, h2, h3, .wordmark, .hero-title {
  font-family: 'Archivo', system-ui, sans-serif;
  letter-spacing: -0.015em;
}

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

.masthead {
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(90deg, transparent 0 44px, var(--line-soft) 44px 45px);
}
.masthead .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-transform: uppercase;
}
.wordmark .glyph {
  width: 18px; height: 20px; flex: none;
}
.wordmark .glyph path { stroke: var(--lime); stroke-width: 2; fill: none; }
.tagline {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.nav {
  margin-left: auto;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.06em;
  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(--lime); border-bottom-color: var(--lime); }

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

.hero { text-align: center; padding: 64px 0 34px; }
.hero-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 15px;
  margin-bottom: 26px;
}
.hero-title {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.02;
  margin: 0 0 18px;
  text-transform: uppercase;
}
.hero-title em { color: var(--lime); font-style: normal; }
.hero-title .hot { color: var(--hot); font-style: normal; }
.hero-sub {
  font-size: 18px;
  color: var(--dim);
  max-width: 560px;
  margin: 0 auto 28px;
}

/* Animated bracket motif */
.bracket {
  width: 100%;
  max-width: 560px;
  margin: 8px auto 0;
  height: auto;
  display: block;
}
.bracket .seg { stroke: var(--line); stroke-width: 2; fill: none; }
.bracket .live { stroke: var(--lime); stroke-width: 2.4; fill: none;
  stroke-dasharray: 240; stroke-dashoffset: 240;
  animation: trace 2.6s ease-out forwards; }
.bracket .node { fill: var(--panel2); stroke: var(--line); stroke-width: 1.5; }
.bracket .node.win { stroke: var(--lime); }
.bracket .champ { fill: var(--gold); }
.bracket .champ-ring { fill: none; stroke: var(--gold); stroke-width: 2;
  opacity: 0; animation: pulse 2s ease-out 2.4s infinite; }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes pulse {
  0% { opacity: 0.9; transform: scale(1); }
  70% { opacity: 0; transform: scale(1.9); }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bracket .live { animation: none; stroke-dashoffset: 0; }
  .bracket .champ-ring { animation: none; opacity: 0; }
}

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

.cta-row { margin-top: 30px; }
.cta {
  display: inline-block;
  background: var(--lime);
  color: #0A1A05;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 12px;
}
.cta:hover { text-decoration: none; background: var(--lime-deep); }
.cta.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  margin-left: 10px;
}
.cta.ghost:hover { background: var(--panel2); border-color: var(--lime); color: var(--lime); }

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

main { padding: 26px 0 12px; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  margin-bottom: 22px;
}

.kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 14px;
}

h1 { font-size: 38px; font-weight: 900; margin-bottom: 6px; text-transform: uppercase; }
h2 { font-size: 24px; font-weight: 800; margin: 26px 0 10px; }
h2:first-of-type { margin-top: 4px; }
h3 { font-size: 16px; font-weight: 700; 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: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
  margin-bottom: 18px;
}

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

.step {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; }
.step .num {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--lime);
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 500;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin: 4px 0 2px; }
.step p { margin: 0; color: var(--dim); font-size: 15px; }

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

.feature {
  display: flex;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.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; }

/* ---- Two-mode grid ---- */

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mode {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}
.mode .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}
.mode.daily { border-top: 3px solid var(--lime); }
.mode.free { border-top: 3px solid var(--hot); }
.mode.free .tag { color: var(--hot); }
.mode h3 { margin: 8px 0 6px; font-size: 19px; }
.mode p { margin: 0; color: var(--dim); font-size: 15px; }

/* ---- Scoreboard (scoring) ---- */

.board {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.board .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}
.board .row:last-child { border-bottom: 0; }
.board .row .what { font-size: 15px; }
.board .row .pts {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 15px;
  color: var(--lime);
  background: rgba(182,255,60,0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px 12px;
  white-space: nowrap;
}
.board .row.bonus .pts { color: var(--hot); background: rgba(255,106,61,0.08); }
.board .row.champ .pts { color: var(--gold); background: rgba(255,209,92,0.08); }

/* ---- Callout ---- */

.callout {
  background: var(--panel2);
  border-left: 3px solid var(--lime);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 18px 0;
}
.callout p:last-child { margin-bottom: 0; }

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

/* ---- FAQ ---- */

.faq-q { font-family: 'Archivo', sans-serif; font-weight: 700; color: var(--ink); margin-top: 22px; margin-bottom: 4px; }

.rule { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

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

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

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

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 44px 0 24px; }
  .hero-title { font-size: 38px; }
  .card { padding: 22px; }
  h1 { font-size: 30px; }
  .modes { 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; }
}
