/* Cagemath — the ledger for fight money. Dark felt, money green, receipts. */

:root {
  --bg: #060d09;
  --bg-raise: #0b1510;
  --panel: #0e1a13;
  --line: #1c2f24;
  --ink: #e8f3ec;
  --dim: #7d9488;
  --green: #00e57a;
  --green-dk: #00a857;
  --gold: #f5c445;
  --red: #ff5d5d;
  --display: "Unbounded", sans-serif;
  --body: "Manrope", sans-serif;
  --mono: "JetBrains Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}
.glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 40% at 70% -10%, rgba(0,229,122,.10), transparent 60%),
    radial-gradient(40% 30% at 10% 110%, rgba(245,196,69,.05), transparent 60%);
}
main, header, footer { position: relative; z-index: 1; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* nav */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px clamp(16px, 5vw, 56px); border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--display); font-weight: 900; font-size: 20px;
  letter-spacing: .5px; color: var(--ink);
}
.logo span { color: var(--green); }
.logo.small { font-size: 15px; }
.logo:hover { text-decoration: none; }
.nav nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nav nav a { color: var(--dim); font-weight: 600; font-size: 14px; }
.nav nav a.on, .nav nav a:hover { color: var(--ink); text-decoration: none; }
.nav nav a.cta {
  background: var(--green); color: #04130b; padding: 9px 18px; border-radius: 99px;
  font-weight: 800; transition: transform .15s ease, box-shadow .15s ease;
}
.nav nav a.cta:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(0,229,122,.35); }

main { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px) 80px; }

/* hero */
.hero-stage {
  position: relative; overflow: hidden;
  width: 100vw; margin-left: calc(50% - 50vw);  /* full-bleed breakout */
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .5; filter: saturate(1.1);
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,13,9,.55) 0%, rgba(6,13,9,.35) 45%, var(--bg) 100%),
    radial-gradient(70% 60% at 50% 40%, transparent 40%, rgba(6,13,9,.6) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
.hero {
  position: relative; padding: clamp(48px, 9vh, 110px) clamp(16px, 4vw, 32px) 56px;
  text-align: center; max-width: 1080px; margin: 0 auto;
}
.hero h1 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(30px, 6vw, 62px); line-height: 1.08; letter-spacing: -0.5px;
}
.hero h1 em { color: var(--green); font-style: normal; }
.hero .sub {
  color: var(--dim); font-size: clamp(15px, 2vw, 19px); max-width: 640px;
  margin: 18px auto 0; font-weight: 600;
}
.hero .actions { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; background: var(--green); color: #04130b; font-weight: 800;
  padding: 14px 30px; border-radius: 99px; font-size: 16px; border: 0; cursor: pointer;
  font-family: var(--body); transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,229,122,.4); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--green); box-shadow: none; }

/* stat strip */
.strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; margin: 44px 0;
}
.strip > div { background: var(--panel); padding: 22px 16px; text-align: center; }
.strip .num {
  font-family: var(--mono); font-weight: 700; font-size: clamp(22px, 3.4vw, 34px);
  color: var(--green);
}
.strip .num.gold { color: var(--gold); }
.strip .lbl { color: var(--dim); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; margin-top: 6px; }

/* sections */
section { margin: 72px 0; }
h2.sec {
  font-family: var(--display); font-weight: 700; font-size: clamp(20px, 3vw, 30px);
  margin-bottom: 8px;
}
p.lead { color: var(--dim); font-weight: 600; max-width: 660px; margin-bottom: 26px; }

/* how-it-works cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 22px; transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--green-dk); }
.card .step {
  font-family: var(--mono); color: var(--gold); font-size: 13px; font-weight: 700;
  letter-spacing: 1px;
}
.card h3 { font-size: 17px; margin: 10px 0 8px; font-weight: 800; }
.card p { color: var(--dim); font-size: 14px; }

/* pick rows */
.pick-table { display: flex; flex-direction: column; gap: 10px; }
.pick {
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px; position: relative; overflow: hidden;
}
.pick .names { font-weight: 800; font-size: 16px; }
.pick .names .over { color: var(--dim); font-weight: 600; font-size: 13px; }
.pick .meta { display: flex; gap: 18px; align-items: center; }
.prob { text-align: right; }
.prob .pct { font-family: var(--mono); font-weight: 700; font-size: 22px; color: var(--green); }
.prob .cap { color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 8px; grid-column: 1 / -1; }
.bar i {
  display: block; height: 100%; background: linear-gradient(90deg, var(--green-dk), var(--green));
  border-radius: 99px; width: 0; animation: fill 1.1s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes fill { to { width: var(--w); } }
.tag {
  font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 6px; letter-spacing: .5px; white-space: nowrap;
}
.tag.value { background: rgba(0,229,122,.12); color: var(--green); border: 1px solid rgba(0,229,122,.35); }
.tag.market { background: rgba(125,148,136,.12); color: var(--dim); border: 1px solid var(--line); }
.tag.win { background: rgba(0,229,122,.15); color: var(--green); }
.tag.loss { background: rgba(255,93,93,.12); color: var(--red); }
.tag.push { background: rgba(245,196,69,.12); color: var(--gold); }

/* locked picks */
.pick.locked .names, .pick.locked .meta { filter: blur(7px); user-select: none; pointer-events: none; }
.pick.locked::after {
  content: "🔒 Members only"; position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center; font-weight: 800; font-size: 14px;
  color: var(--gold); background: rgba(6,13,9,.25); letter-spacing: .5px;
}

/* calibration table */
.cal { width: 100%; border-collapse: collapse; max-width: 560px; }
.cal th, .cal td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.cal th { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.cal td { font-family: var(--mono); font-size: 15px; }
.cal td.hit { color: var(--green); font-weight: 700; }

/* record page */
.rec-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 36px 0 18px; }
.stamp { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.event-group { margin: 26px 0 8px; color: var(--gold); font-weight: 800; font-size: 14px; letter-spacing: .5px; }

/* forms */
.auth-wrap { max-width: 420px; margin: 60px auto; }
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 30px;
}
.panel h1 { font-family: var(--display); font-size: 22px; margin-bottom: 18px; }
label { display: block; color: var(--dim); font-size: 13px; font-weight: 700; margin: 14px 0 6px; }
input {
  width: 100%; padding: 12px 14px; background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: 9px; color: var(--ink); font-family: var(--body); font-size: 15px;
}
input:focus { outline: none; border-color: var(--green-dk); }
.err { color: var(--red); font-size: 14px; margin-top: 12px; font-weight: 600; }
.hint { color: var(--dim); font-size: 13px; margin-top: 14px; }

/* pricing */
.price-box {
  max-width: 460px; margin: 0 auto; text-align: center; background: var(--panel);
  border: 1px solid var(--green-dk); border-radius: 18px; padding: 38px 30px;
  box-shadow: 0 0 60px rgba(0,229,122,.08);
}
.price-box .amount { font-family: var(--display); font-weight: 900; font-size: 52px; }
.price-box .amount small { font-size: 18px; color: var(--dim); font-family: var(--body); font-weight: 600; }
.price-box ul { list-style: none; margin: 22px 0; text-align: left; }
.price-box li { padding: 7px 0; color: var(--dim); font-weight: 600; }
.price-box li::before { content: "✓  "; color: var(--green); font-weight: 800; }

/* countdown */
.count { font-family: var(--mono); color: var(--gold); font-weight: 700; }

/* ticker */
.ticker-wrap { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; margin: 30px 0; }
.ticker { display: inline-flex; gap: 40px; white-space: nowrap; animation: tick 40s linear infinite; font-family: var(--mono); font-size: 13px; }
.ticker .w { color: var(--green); }
.ticker .l { color: var(--red); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

footer { border-top: 1px solid var(--line); padding: 36px clamp(16px, 5vw, 56px); margin-top: 40px; }
.foot-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; max-width: 1080px; margin: 0 auto; }
.foot-links { display: flex; gap: 18px; align-items: center; }
.foot-links a { color: var(--dim); font-weight: 600; font-size: 14px; }
.legal { max-width: 1080px; margin: 22px auto 0; color: #52685c; font-size: 12px; }
.dim { color: var(--dim); }

@media (max-width: 640px) {
  .nav { flex-direction: column; gap: 12px; }
  .pick { grid-template-columns: 1fr; }
  .prob { text-align: left; }
}
