/* ===========================================================================
   ProvenXI landing — token-driven design system with swappable themes.
   Base = "Aurora". Alternates: print · turf · news · electric · arcade · trophy · night (via [data-theme]).
   =========================================================================== */
:root {
  /* surfaces */
  --bg: #06070f; --bg-2: #0a0c18; --panel: #0f1322; --panel-2: #151a2c;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --surface: rgba(255,255,255,.04); --surface-2: rgba(255,255,255,.07);
  --glass-bg: rgba(255,255,255,.045); --nav-bg: rgba(6,7,15,.7);
  /* ink */
  --ink: #f3f5ff; --muted: #97a1c4; --faint: #6a7398;
  /* accents */
  --accent: #8b5cff; --accent-2: #38bdf8; --accent-3: #2fe6a8;
  --brand: linear-gradient(105deg, #8b5cff 0%, #38bdf8 55%, #2fe6a8 100%);
  --brand-2: linear-gradient(105deg, #8b5cff, #2fe6a8);
  --on-brand: #06121a;
  --accent-soft: rgba(139,92,255,.16); --accent-bd: rgba(139,92,255,.35); --focus: rgba(139,92,255,.25);
  --tint-grad:  linear-gradient(160deg, rgba(139,92,255,.18), rgba(47,230,168,.10));
  --tint-grad-2: linear-gradient(150deg, rgba(139,92,255,.14), rgba(47,230,168,.06));
  --tint-grad-3: linear-gradient(160deg, rgba(139,92,255,.12), transparent);
  --glow: rgba(47,230,168,.55);
  /* status */
  --pos: #2fe6a8; --warn: #ffb454; --bad: #ff6b8a;
  /* shape + depth */
  --r: 20px; --r-sm: 12px;
  --sh: 0 24px 60px -28px rgba(0,0,0,.85);
  --sh-glow: 0 18px 50px -18px rgba(124,92,255,.45);
  --card-bw: 1px;
  /* backdrop */
  --aurora-1: rgba(139,92,255,.55); --aurora-2: rgba(47,230,168,.4); --aurora-show: block;
  --vignette: rgba(56,189,248,.08); --page-shade: rgba(0,0,0,.4);
  /* type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Space Grotesk", var(--font);
  --maxw: 1120px;
}

/* ---- THEME: Matchday Print (light editorial) ---- */
:root[data-theme="print"] {
  --bg: #f4eee2; --bg-2: #ece5d6; --panel: #ffffff; --panel-2: #f6f1e6;
  --line: rgba(20,19,15,.14); --line-2: rgba(20,19,15,.24);
  --surface: rgba(20,19,15,.04); --surface-2: rgba(20,19,15,.07);
  --glass-bg: rgba(255,255,255,.62); --nav-bg: rgba(244,238,226,.82);
  --ink: #14130f; --muted: #595446; --faint: #8a8474;
  --accent: #16774a; --accent-2: #16774a; --accent-3: #1f9e63;
  --brand: linear-gradient(105deg, #13683f, #22a868); --brand-2: linear-gradient(105deg, #15784a, #1f9e63);
  --on-brand: #ffffff;
  --accent-soft: rgba(22,119,74,.1); --accent-bd: rgba(22,119,74,.32); --focus: rgba(22,119,74,.25);
  --tint-grad:  linear-gradient(160deg, rgba(22,119,74,.08), rgba(22,119,74,.02));
  --tint-grad-2: linear-gradient(150deg, rgba(22,119,74,.07), rgba(22,119,74,.015));
  --tint-grad-3: linear-gradient(160deg, rgba(22,119,74,.07), transparent);
  --glow: rgba(22,119,74,.2);
  --pos: #157f47; --warn: #b5651d; --bad: #c5341f;
  --sh: 0 16px 34px -24px rgba(20,19,15,.4); --sh-glow: 0 16px 34px -20px rgba(22,119,74,.28);
  --aurora-show: none; --vignette: transparent; --page-shade: transparent;
  --display: "Fraunces", Georgia, serif;
}

/* ---- THEME: Floodlit Turf (warm dark green) ---- */
:root[data-theme="turf"] {
  --bg: #08180f; --bg-2: #0a1e12; --panel: #0f2a1a; --panel-2: #143521;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.16);
  --surface: rgba(255,255,255,.05); --surface-2: rgba(255,255,255,.08);
  --glass-bg: rgba(255,255,255,.05); --nav-bg: rgba(8,24,15,.72);
  --ink: #f2f4ec; --muted: #9db3a3; --faint: #6f8676;
  --accent: #ffc23d; --accent-2: #ffd98a; --accent-3: #ffc23d;
  --brand: linear-gradient(105deg, #ffb02e, #ffd98a); --brand-2: linear-gradient(105deg, #ffb02e, #ffd24a);
  --on-brand: #1c1403;
  --accent-soft: rgba(255,194,61,.14); --accent-bd: rgba(255,194,61,.4); --focus: rgba(255,194,61,.3);
  --tint-grad:  linear-gradient(160deg, rgba(255,194,61,.16), rgba(255,194,61,.04));
  --tint-grad-2: linear-gradient(150deg, rgba(255,194,61,.12), rgba(255,194,61,.03));
  --tint-grad-3: linear-gradient(160deg, rgba(255,194,61,.12), transparent);
  --glow: rgba(255,194,61,.5);
  --pos: #5ad98c; --warn: #ffb454; --bad: #ff6b8a;
  --sh: 0 24px 60px -28px rgba(0,0,0,.8); --sh-glow: 0 18px 50px -18px rgba(255,194,61,.35);
  --aurora-1: rgba(255,194,61,.28); --aurora-2: rgba(40,160,90,.4); --aurora-show: block;
  --vignette: rgba(255,194,61,.05); --page-shade: rgba(0,0,0,.45);
}

/* ---- THEME: Newsprint Mono (brutalist data) ---- */
:root[data-theme="news"] {
  --bg: #efeae0; --bg-2: #e6e0d3; --panel: #fbf8f1; --panel-2: #f1ece0;
  --line: rgba(11,11,11,.82); --line-2: #0b0b0b;
  --surface: rgba(11,11,11,.05); --surface-2: rgba(11,11,11,.09);
  --glass-bg: rgba(251,248,241,.85); --nav-bg: rgba(239,234,224,.9);
  --ink: #0b0b0b; --muted: #4a463d; --faint: #6f6a5d;
  --accent: #e5341f; --accent-2: #e5341f; --accent-3: #e5341f;
  --brand: linear-gradient(105deg, #e5341f, #e5341f); --brand-2: linear-gradient(105deg, #e5341f, #e5341f);
  --on-brand: #ffffff;
  --accent-soft: rgba(229,52,31,.1); --accent-bd: rgba(229,52,31,.5); --focus: rgba(229,52,31,.3);
  --tint-grad:  linear-gradient(160deg, rgba(229,52,31,.07), transparent);
  --tint-grad-2: linear-gradient(150deg, rgba(229,52,31,.06), transparent);
  --tint-grad-3: linear-gradient(160deg, rgba(229,52,31,.07), transparent);
  --glow: rgba(229,52,31,.15);
  --pos: #1a7f4b; --warn: #b5651d; --bad: #c5341f;
  --r: 4px; --r-sm: 3px; --card-bw: 1.5px;
  --sh: 4px 4px 0 rgba(11,11,11,.85); --sh-glow: 4px 4px 0 rgba(11,11,11,.85);
  --aurora-show: none; --vignette: transparent; --page-shade: transparent;
  --display: "Space Mono", ui-monospace, monospace;
}

/* ---- THEME: Electric Flat (bold dark, no glow) ---- */
:root[data-theme="electric"] {
  --bg: #0c0c10; --bg-2: #0e0e14; --panel: #15151c; --panel-2: #1c1c25;
  --line: rgba(255,255,255,.1); --line-2: rgba(255,255,255,.22);
  --surface: rgba(255,255,255,.05); --surface-2: rgba(255,255,255,.09);
  --glass-bg: rgba(255,255,255,.05); --nav-bg: rgba(12,12,16,.82);
  --ink: #ffffff; --muted: #b9b9c8; --faint: #7a7a8c;
  --accent: #ff2d78; --accent-2: #00e5d0; --accent-3: #00e5d0;
  --brand: linear-gradient(105deg, #ff2d78, #00e5d0); --brand-2: linear-gradient(105deg, #ff2d78, #ff2d78);
  --on-brand: #0c0c10;
  --accent-soft: rgba(255,45,120,.16); --accent-bd: rgba(255,45,120,.5); --focus: rgba(255,45,120,.3);
  --tint-grad:  linear-gradient(160deg, rgba(255,45,120,.18), rgba(0,229,208,.08));
  --tint-grad-2: linear-gradient(150deg, rgba(255,45,120,.14), rgba(0,229,208,.06));
  --tint-grad-3: linear-gradient(160deg, rgba(255,45,120,.14), transparent);
  --glow: rgba(0,229,208,.45);
  --pos: #00e5d0; --warn: #ffb454; --bad: #ff5c9d;
  --r: 14px; --r-sm: 9px;
  --sh: 0 22px 46px -26px rgba(0,0,0,.9); --sh-glow: 0 22px 46px -26px rgba(0,0,0,.9);
  --aurora-show: none; --vignette: transparent; --page-shade: rgba(0,0,0,.5);
}

/* ---- THEME: Arcade Pitch (neon night stadium — football meets gaming) ---- */
:root[data-theme="arcade"] {
  --bg: #050f0b; --bg-2: #07150f; --panel: #0b2017; --panel-2: #0f2c20;
  --line: rgba(0,255,135,.14); --line-2: rgba(0,255,135,.3);
  --surface: rgba(255,255,255,.04); --surface-2: rgba(0,255,135,.08);
  --glass-bg: rgba(4,245,255,.045); --nav-bg: rgba(5,15,11,.74);
  --ink: #eafff6; --muted: #8fbfac; --faint: #5e887a;
  --accent: #00ff87; --accent-2: #04f5ff; --accent-3: #00ff87;
  --brand: linear-gradient(105deg, #00ff87 0%, #04f5ff 100%); --brand-2: linear-gradient(105deg, #00ff87, #2bffa6);
  --on-brand: #03130c;
  --accent-soft: rgba(0,255,135,.14); --accent-bd: rgba(0,255,135,.5); --focus: rgba(0,255,135,.32);
  --tint-grad:  linear-gradient(160deg, rgba(0,255,135,.16), rgba(4,245,255,.08));
  --tint-grad-2: linear-gradient(150deg, rgba(0,255,135,.12), rgba(4,245,255,.05));
  --tint-grad-3: linear-gradient(160deg, rgba(0,255,135,.13), transparent);
  --glow: rgba(0,255,135,.6);
  --pos: #00ff87; --warn: #ffd23d; --bad: #e90052;
  --r: 14px; --r-sm: 9px;
  --sh: 0 24px 60px -28px rgba(0,0,0,.85); --sh-glow: 0 18px 52px -16px rgba(0,255,135,.42);
  --aurora-1: rgba(0,255,135,.4); --aurora-2: rgba(4,245,255,.34); --aurora-show: block;
  --vignette: rgba(4,245,255,.07); --page-shade: rgba(0,0,0,.5);
}

/* ---- THEME: Trophy Night (champions gold — premium matchday) ---- */
:root[data-theme="trophy"] {
  --bg: #0b0a06; --bg-2: #110f09; --panel: #1a160d; --panel-2: #231d12;
  --line: rgba(255,205,80,.14); --line-2: rgba(255,205,80,.3);
  --surface: rgba(255,255,255,.04); --surface-2: rgba(255,205,80,.09);
  --glass-bg: rgba(255,205,80,.05); --nav-bg: rgba(11,10,6,.76);
  --ink: #fbf4e3; --muted: #b8aa88; --faint: #877b5e;
  --accent: #ffcb45; --accent-2: #34c878; --accent-3: #ffcb45;
  --brand: linear-gradient(105deg, #f0b423 0%, #ffe39a 100%); --brand-2: linear-gradient(105deg, #f0b423, #ffd45e);
  --on-brand: #1c1402;
  --accent-soft: rgba(255,203,69,.14); --accent-bd: rgba(255,203,69,.45); --focus: rgba(255,203,69,.3);
  --tint-grad:  linear-gradient(160deg, rgba(255,203,69,.16), rgba(52,200,120,.06));
  --tint-grad-2: linear-gradient(150deg, rgba(255,203,69,.12), rgba(52,200,120,.04));
  --tint-grad-3: linear-gradient(160deg, rgba(255,203,69,.13), transparent);
  --glow: rgba(255,203,69,.55);
  --pos: #3ad17f; --warn: #ffb454; --bad: #ff6b6b;
  --sh: 0 24px 60px -28px rgba(0,0,0,.88); --sh-glow: 0 18px 52px -16px rgba(255,203,69,.4);
  --aurora-1: rgba(255,203,69,.32); --aurora-2: rgba(52,170,100,.32); --aurora-show: block;
  --vignette: rgba(255,203,69,.06); --page-shade: rgba(0,0,0,.5);
}

/* ---- THEME: Night Match (console blue — EA-style football game) ---- */
:root[data-theme="night"] {
  --bg: #060a16; --bg-2: #080d1f; --panel: #0e1630; --panel-2: #131d3e;
  --line: rgba(120,160,255,.12); --line-2: rgba(120,160,255,.26);
  --surface: rgba(255,255,255,.04); --surface-2: rgba(77,139,255,.1);
  --glass-bg: rgba(77,139,255,.05); --nav-bg: rgba(6,10,22,.74);
  --ink: #eaf1ff; --muted: #94a3c8; --faint: #606e96;
  --accent: #3d7dff; --accent-2: #5ad1ff; --accent-3: #5ad1ff;
  --brand: linear-gradient(105deg, #3d7dff 0%, #5ad1ff 100%); --brand-2: linear-gradient(105deg, #3d7dff, #66b8ff);
  --on-brand: #04102a;
  --accent-soft: rgba(61,125,255,.16); --accent-bd: rgba(61,125,255,.45); --focus: rgba(61,125,255,.3);
  --tint-grad:  linear-gradient(160deg, rgba(61,125,255,.18), rgba(90,209,255,.08));
  --tint-grad-2: linear-gradient(150deg, rgba(61,125,255,.13), rgba(90,209,255,.05));
  --tint-grad-3: linear-gradient(160deg, rgba(61,125,255,.14), transparent);
  --glow: rgba(90,180,255,.55);
  --pos: #46e0a0; --warn: #ffc23d; --bad: #ff5c7a;
  --r: 14px; --r-sm: 9px;
  --sh: 0 24px 60px -28px rgba(0,0,0,.85); --sh-glow: 0 18px 52px -16px rgba(61,125,255,.4);
  --aurora-1: rgba(61,125,255,.45); --aurora-2: rgba(90,209,255,.32); --aurora-show: block;
  --vignette: rgba(61,125,255,.07); --page-shade: rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.6; letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background .3s, color .3s;
}

/* backdrop */
.aurora { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; display: var(--aurora-show); }
.aurora::before, .aurora::after { content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.aurora::before { width: 760px; height: 760px; top: -340px; left: -120px; background: radial-gradient(circle, var(--aurora-1), transparent 60%); }
.aurora::after { width: 680px; height: 680px; top: -180px; right: -200px; background: radial-gradient(circle, var(--aurora-2), transparent 62%); }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(1200px 600px at 50% -10%, var(--vignette), transparent 60%), linear-gradient(180deg, transparent 60%, var(--page-shade)); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.025em; margin: 0; font-weight: 700; }
a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }
.grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* themed SVG gradient stops (hero spark + results chart) */
#sg stop:nth-child(1), #stroke stop:nth-child(1) { stop-color: var(--accent); }
#sg stop:nth-child(2), #stroke stop:nth-child(2) { stop-color: var(--accent-3); }
#sf stop:nth-child(1), #fill stop:nth-child(1) { stop-color: var(--accent-3); }

.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font);
  font-size: .73rem; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--brand-2); border-radius: 2px; }
.eyebrow.center { justify-content: center; }

.brand-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 0 16px var(--glow); display: inline-block; }
.brand-dot.sm { width: 8px; height: 8px; }

/* buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font); font-weight: 650; font-size: .98rem; padding: .85rem 1.4rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .14s ease, box-shadow .25s, background .2s, border-color .2s; }
.btn:active { transform: translateY(1px); }
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-primary { background: var(--brand-2); color: var(--on-brand); box-shadow: var(--sh-glow); }
.btn-primary::after { content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.3), transparent 45%); opacity: .5; pointer-events: none; }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; filter: grayscale(.3); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-block { width: 100%; padding: .98rem; font-size: 1.05rem; }

.card { background: var(--panel); border: var(--card-bw) solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--sh); }
.glass { background: var(--glass-bg); backdrop-filter: blur(16px); border: var(--card-bw) solid var(--line-2); }

/* nav */
.nav { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(14px); background: var(--nav-bg); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 700; letter-spacing: -.02em; font-size: 1.18rem; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; font-size: .94rem; color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--ink); }

/* HERO */
.hero { position: relative; padding: 86px 0 84px; }
.hero-grid { display: grid; grid-template-columns: 1.85fr 1fr; gap: 48px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.5rem, 5.4vw, 4.3rem); font-weight: 700; letter-spacing: -.035em; }
.hero-copy .sub { max-width: 36rem; margin: 1.4rem 0 0; color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.18rem); }
.cta-row { display: flex; gap: .8rem; flex-wrap: wrap; margin: 2rem 0 1.5rem; }
.hero-proof { margin: 0; max-width: 44rem; color: var(--muted); font-size: .87rem; }
.hero-proof b { color: var(--ink); font-weight: 700; }
.hero-proof .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 8px var(--pos); margin-right: .45rem; vertical-align: middle; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.result-preview { width: min(420px, 100%); border-radius: var(--r); padding: 22px; box-shadow: var(--sh), var(--sh-glow); }
.rp-head { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--muted); }
.rp-tag { font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 8px; }
.rp-compare { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 18px 0; text-align: center; }
.rp-compare b { font-family: var(--display); font-size: 2rem; display: block; line-height: 1; }
.rp-compare small { color: var(--muted); font-size: .74rem; }
.rp-you { opacity: .7; }
.rp-seer b { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rp-delta { font-family: var(--display); font-weight: 700; color: var(--pos); font-size: 1.1rem; background: var(--accent-soft); border: 1px solid var(--accent-bd); border-radius: 999px; padding: 4px 10px; }
.rp-spark { width: 100%; height: 80px; display: block; }
.rp-foot { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: 6px; }
.rp-foot .up { color: var(--pos); }
.float-chip { position: absolute; font-size: .78rem; font-weight: 600; padding: .5rem .85rem; border-radius: 999px; background: var(--panel); border: 1px solid var(--line-2); backdrop-filter: blur(8px); box-shadow: var(--sh); white-space: nowrap; }
.chip-a { top: -16px; left: -8px; color: var(--accent-2); }
.chip-b { bottom: -14px; right: 0; color: var(--accent); }

/* hero transfer-recommendation mock — communicates "reco engine", not "replay" */
.reco-card { width: min(420px, 100%); border-radius: var(--r); padding: 20px; box-shadow: var(--sh), var(--sh-glow); background: var(--panel); border-color: var(--line-2); }
.reco-swap { margin: 16px 0 4px; display: grid; gap: 6px; }
.reco-row { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--panel-2); }
.reco-row.in { background: var(--accent-soft); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-bd), 0 6px 18px -10px var(--glow); }
.reco-shirt { flex: none; width: 32px; display: grid; place-items: center; }
.reco-shirt svg { width: 32px; height: 30px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.reco-shirt.sm { width: 22px; }
.reco-shirt.sm svg { width: 22px; height: 21px; }
.reco-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.reco-name { font-family: var(--display); font-weight: 600; font-size: 1.02rem; display: flex; align-items: center; gap: 7px; }
.reco-badge { font-style: normal; font-size: .54rem; font-weight: 800; letter-spacing: .1em; padding: 2px 6px; border-radius: 999px; color: var(--bad); border: 1px solid var(--line-2); }
.reco-badge.in { color: var(--pos); border-color: var(--accent-bd); }
.reco-price { margin-left: auto; color: var(--muted); font-size: .92rem; font-variant-numeric: tabular-nums; }
.reco-reason { font-size: .73rem; }
.reco-reason.out { color: var(--bad); }
.reco-reason.in { color: var(--pos); }
.reco-arrow { text-align: center; color: var(--accent); font-size: 1.05rem; line-height: 1; }
.reco-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 14px; font-size: .8rem; color: var(--muted); }
.reco-gain { font-family: var(--display); font-weight: 700; color: var(--pos); background: var(--accent-soft); border: 1px solid var(--accent-bd); border-radius: 999px; padding: 4px 11px; white-space: nowrap; }
.reco-extra { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.reco-extra b { color: var(--ink); font-weight: 600; }
.reco-vs { margin-left: auto; font-size: .76rem; color: var(--faint); }
.reco-cap { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: .66rem; font-weight: 800; font-family: var(--display); }

/* SECTIONS */
.section { position: relative; padding: 92px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 40rem; margin: 0 auto 3rem; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.section-head p { color: var(--muted); margin: 1rem 0 0; font-size: 1.05rem; }

/* SIMULATOR */
.sim-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 20px; align-items: start; }
.team-load { background: var(--tint-grad); border: 1px solid var(--accent-bd); border-radius: var(--r-sm); padding: 14px 16px; }
.team-load .ctl { margin-bottom: 8px; font-weight: 600; color: var(--ink); }
.team-load-row { display: flex; gap: 8px; }
.team-load-row input { flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--line); color: var(--ink); border-radius: var(--r-sm); padding: .68rem .75rem; font: inherit; }
.team-load-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
.team-load-row .btn { white-space: nowrap; flex-shrink: 0; }
.team-load-hint { font-size: .78rem; color: var(--muted); margin: .55rem 0 0; }
.team-load-hint b { color: var(--ink); }
.team-load-hint.ok { color: var(--pos); }
.team-load-hint.err { color: var(--bad); }
.builder-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.builder-or::before, .builder-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.budget { margin-bottom: 16px; }
.budget-bar { height: 9px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.budget-bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--brand-2); transition: width .25s ease; }
.budget-bar.over span { background: linear-gradient(90deg, var(--warn), var(--bad)); }
.budget-meta { display: flex; justify-content: space-between; font-size: .92rem; margin-top: .55rem; }
.budget-meta strong { font-family: var(--display); }

.pitch { border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line-2); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2), 0 14px 30px -20px rgba(0,0,0,.7); }
.pitch-field { position: relative; padding: 18px 8px 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 380px;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 38px, transparent 38px 76px), linear-gradient(180deg, #1f8a45, #14692f 70%, #0e4f25); }
.pitch-field::before { content: ""; position: absolute; inset: 8px; pointer-events: none; border-radius: 6px;
  background: radial-gradient(circle at 50% 50%, transparent 26px, rgba(255,255,255,.16) 26px 27px, transparent 28px), linear-gradient(rgba(255,255,255,.16), rgba(255,255,255,.16)) center/100% 1px no-repeat; }
.pitch-field::after { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 124px; height: 34px; border: 1px solid rgba(255,255,255,.16); border-top: none; pointer-events: none; }
.pitch-row { position: relative; z-index: 1; display: flex; justify-content: center; gap: 4px; flex-wrap: nowrap; }
.bench { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 14px 8px; background: linear-gradient(180deg, #123420, #0c2516); border-top: 2px solid rgba(255,255,255,.12); }
.bench .bench-slot { display: flex; flex-direction: column; align-items: center; }
.bench .bench-lbl { font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 5px; }

.pcard { width: 74px; max-width: 22vw; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.pcard .kit { position: relative; width: 44px; height: 42px; transition: transform .12s; }
.pcard:hover .kit { transform: translateY(-2px) scale(1.04); }
.pcard .kit svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 4px 5px rgba(0,0,0,.4)); }
.pcard .pname { margin-top: 3px; width: 100%; text-align: center; font-size: .68rem; font-weight: 650; background: rgba(6,7,15,.92); color: #f3f5ff; border-radius: 5px 5px 0 0; padding: 2px 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .pmeta { width: 100%; text-align: center; font-size: .64rem; font-weight: 700; color: var(--on-brand); background: var(--accent); border-radius: 0 0 5px 5px; padding: 1px 3px; }
.pcard.cap .pmeta { background: var(--accent-3); color: var(--on-brand); }
.pcard .badge { position: absolute; top: -5px; right: -5px; width: 17px; height: 17px; border-radius: 50%; background: var(--accent-3); color: var(--on-brand); font-size: .62rem; font-weight: 800; display: grid; place-items: center; border: 1.5px solid rgba(0,0,0,.6); }
.pcard .remove { position: absolute; top: -6px; left: -6px; width: 17px; height: 17px; border-radius: 50%; background: var(--bad); color: #fff; border: none; font-size: .6rem; line-height: 1; cursor: pointer; display: none; }
.pcard:hover .remove { display: block; }
.pcard.empty .kit { display: grid; place-items: center; border: 1.5px dashed rgba(255,255,255,.45); border-radius: 9px; }
.pcard.empty .kit::before { content: "+"; color: rgba(255,255,255,.72); font-size: 1.25rem; font-weight: 700; }
.pcard.empty .pname { background: rgba(0,0,0,.3); color: rgba(255,255,255,.7); }
.pcard.empty .pmeta { display: none; }

.builder-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.ctl { display: flex; flex-direction: column; gap: .4rem; font-size: .8rem; color: var(--muted); }
.ctl select, .ctl input, .search input { background: var(--panel-2); border: 1px solid var(--line); color: var(--ink); border-radius: var(--r-sm); padding: .68rem .75rem; font: inherit; transition: border-color .2s, box-shadow .2s; }
.ctl select:focus, .ctl input:focus, .search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
.hint { font-size: .82rem; color: var(--muted); margin: .7rem 0 0; text-align: center; }

.search { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 84px; }
.search-bar { position: relative; }
.search-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--faint); }
.search-bar input { width: 100%; padding-left: 38px; }
.pos-tabs { display: flex; gap: 6px; }
.pos-tabs button { flex: 1; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); border-radius: var(--r-sm); padding: .45rem; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; transition: .15s; }
.pos-tabs button:hover { color: var(--ink); }
.pos-tabs button.active { background: var(--accent-soft); color: var(--ink); border-color: var(--accent); }
.player-list { display: flex; flex-direction: column; gap: 6px; max-height: 432px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.player-list::-webkit-scrollbar { width: 7px; }
.player-list::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }
.prow { display: flex; align-items: center; gap: 10px; background: var(--panel-2); border: 1px solid transparent; border-radius: var(--r-sm); padding: 9px 11px; cursor: pointer; transition: border-color .15s, transform .1s; }
.prow:hover { border-color: var(--accent); transform: translateX(2px); }
.prow.dim { opacity: .32; cursor: not-allowed; }
.prow.dim:hover { transform: none; border-color: transparent; }
.prow .pos { font-size: .64rem; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.prow .nm { font-weight: 650; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .club { font-size: .76rem; color: var(--faint); }
.prow .pr { font-family: var(--display); font-variant-numeric: tabular-nums; font-weight: 600; color: var(--accent-3); }

.progress { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin: 36px 0 0; }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { color: var(--bad); text-align: center; margin-top: 18px; font-weight: 600; }

/* RESULTS */
.results .compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; }
.compare-card { border-radius: var(--r); padding: 28px; text-align: center; border: 1px solid var(--line); display: flex; flex-direction: column; gap: .4rem; justify-content: center; background: var(--panel); }
.compare-card.seer { background: var(--tint-grad); border-color: var(--accent-bd); box-shadow: var(--sh-glow); }
.compare-card .lbl { display: inline-flex; gap: .4rem; justify-content: center; align-items: center; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.compare-card .pts { font-family: var(--display); font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 700; font-variant-numeric: tabular-nums; }
.compare-card .rk { font-size: .85rem; color: var(--muted); }
.compare-delta { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 16px; min-width: 100px; }
.compare-delta .delta-num { font-family: var(--display); font-size: clamp(1.4rem, 3.2vw, 1.95rem); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.compare-delta.up .delta-num { color: var(--pos); }
.compare-delta.down .delta-num { color: var(--warn); }
.compare-delta .delta-lbl { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.compare-delta .delta-rank { margin-top: .5rem; font-size: .98rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.compare-delta.up .delta-rank { color: var(--pos); }
.compare-delta.down .delta-rank { color: var(--warn); }
.honest-note { margin: 20px auto 0; max-width: 46rem; text-align: center; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 20px; font-size: .96rem; }

.chart-card { margin-top: 26px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.chart-head h3 { font-size: 1.1rem; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .cg { stroke: var(--line-2); }
.chart .ca { fill: var(--muted); }
.chart .cv { fill: var(--ink); }
.chart .cvm { fill: var(--muted); }
.chart .cdot { fill: var(--accent-3); }
.chart-legend { display: flex; gap: 14px; align-items: center; font-size: .8rem; }
.chart-legend .lg { position: relative; padding-left: 20px; color: var(--muted); white-space: nowrap; }
.chart-legend .lg::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 14px; height: 0; border-top-width: 2.5px; border-top-style: solid; }
.chart-legend .lg-engine::before { border-image: linear-gradient(90deg, #7c5cff, #19e3b1) 1; }
.chart-legend .lg-mgr { color: var(--muted); }
.chart-legend .lg-mgr::before { border-top-style: dashed; border-top-color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.tile { background: var(--panel); border: var(--card-bw) solid var(--line); border-radius: var(--r-sm); padding: 18px; text-align: center; transition: transform .15s, border-color .2s; }
.tile:hover { transform: translateY(-3px); border-color: var(--line-2); }
.tile .v { font-family: var(--display); font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tile .k { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: .3rem; }

.squad-card { margin-top: 26px; }
.squad-card h3 { font-size: 1.1rem; margin-bottom: 18px; }
.final-squad { display: flex; flex-direction: column; gap: 18px; }
.fs-line-lbl { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin-bottom: 9px; }
.fs-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fs-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: .85rem; font-weight: 600; }
.fs-chip .pos { color: var(--faint); font-size: .66rem; font-weight: 800; letter-spacing: .03em; }
.fs-chip.cap { border-color: var(--accent-3); }
.fs-chip.cap::after { content: "C"; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-3); color: var(--on-brand); font-size: .6rem; font-weight: 800; }
.fs-chip.fs-bench { opacity: .58; }

/* DIAGNOSIS */
.diag-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.diag h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; margin-bottom: 14px; }
.diag .dot { width: 9px; height: 9px; border-radius: 50%; }
.diag .dot.good { background: var(--pos); box-shadow: 0 0 10px var(--pos); }
.diag .dot.warn { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.diag ul { margin: 0; padding-left: 1.15rem; display: flex; flex-direction: column; gap: .6rem; color: var(--muted); }
.diag.potential { text-align: center; display: flex; flex-direction: column; justify-content: center; background: var(--tint-grad-3); }
.diag.potential .big { font-family: var(--display); font-size: 2.8rem; font-weight: 700; margin: .2rem 0; }

/* PRINCIPLES */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.principle { position: relative; background: var(--panel); border: var(--card-bw) solid var(--line); border-radius: var(--r); padding: 24px; overflow: hidden; transition: transform .16s, border-color .2s; }
.principle::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--brand); opacity: 0; transition: opacity .2s; }
.principle:hover { transform: translateY(-4px); border-color: var(--line-2); }
.principle:hover::before { opacity: 1; }
.principle.wide { grid-column: span 3; }
.principle .pn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-sm); font-family: var(--display); font-weight: 700; font-size: .92rem; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-bd); }
.principle h3 { font-size: 1.12rem; margin: .85rem 0 .45rem; }
.principle p { color: var(--muted); font-size: .94rem; margin: 0; }
.principle.locked { background: var(--tint-grad-3); border-style: dashed; border-color: var(--accent-bd); }
.principle.locked .pn { background: var(--accent-soft); border-color: var(--accent-bd); }
.principle.locked .blur { filter: blur(4px); user-select: none; pointer-events: none; margin-top: .45rem; }
.principle.locked .locked-note { color: var(--ink); font-size: .92rem; margin-top: .8rem; }

/* JUDGMENT */
.judgment { max-width: 56rem; margin: 0 auto; text-align: center; padding: 48px 40px; border-radius: var(--r); }
.judgment .lede { color: var(--muted); font-size: 1.12rem; max-width: 38rem; margin: 1rem auto 0; }
.judgment .lede.strong { color: var(--ink); font-weight: 650; margin-top: 1.8rem; }
.judge-list { list-style: none; padding: 0; margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.judge-list li { background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: .55rem 1.15rem; font-size: .92rem; }

/* WAITLIST */
.waitlist { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; max-width: 60rem; margin: 0 auto; padding: 40px; background: var(--tint-grad-2); border-color: var(--line-2); }
.waitlist-copy h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-top: .2rem; }
.waitlist-copy p { color: var(--muted); margin: .6rem 0 1.4rem; }
.benefits { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.benefits li { padding-left: 1.8rem; position: relative; }
.benefits li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-3); font-weight: 800; }
.wait-form { display: flex; flex-direction: column; gap: 14px; background: var(--glass-bg); border: 1px solid var(--line-2); border-radius: var(--r); padding: 24px; }
.wait-form input { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wait-fine { font-size: .76rem; color: var(--faint); text-align: center; margin: 0; }
.wait-msg { font-size: .88rem; margin: 0; min-height: 1.2em; text-align: center; }
.wait-msg.ok { color: var(--pos); }
.wait-msg.err { color: var(--bad); }

/* PROOF STRIP */
.proof-strip-wrap {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  padding-bottom: 32px;
}
.proof-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 38px;
  text-align: center;
}
.proof-num {
  font-family: var(--display);
  font-size: 2.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.proof-lbl {
  color: var(--muted);
  font-size: .8rem;
  margin-top: .45rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 500;
}
.proof-divider {
  width: 1px;
  height: 48px;
  background: var(--line);
  flex-shrink: 0;
}
.proof-caption {
  text-align: center;
  margin: 4px auto 0;
  max-width: 46rem;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.5;
}
.proof-caption b { color: var(--ink); font-weight: 600; }
.proof-note {
  text-align: center;
  margin: 6px auto 0;
  max-width: 42rem;
  color: var(--muted);
  opacity: .72;
  font-size: .76rem;
  font-style: italic;
  line-height: 1.45;
}

/* FOOTER */
.footer { border-top: 1px solid var(--line); padding: 32px 0; background: var(--bg-2); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: .9rem; flex-wrap: wrap; }

/* THEME SWITCHER */
.theme-switch { position: fixed; z-index: 60; right: 18px; bottom: 18px; display: flex; gap: 6px; padding: 7px; border-radius: 999px;
  background: var(--nav-bg); border: 1px solid var(--line-2); backdrop-filter: blur(12px); box-shadow: var(--sh); }
.theme-switch button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; transition: transform .12s, border-color .2s; position: relative; }
.theme-switch button:hover { transform: scale(1.12); }
.theme-switch button[aria-pressed="true"] { border-color: var(--ink); }
.sw-aurora { background: linear-gradient(135deg, #8b5cff, #2fe6a8); }
.sw-print { background: linear-gradient(135deg, #f4eee2 50%, #16774a 50%); }
.sw-turf { background: linear-gradient(135deg, #0f2a1a 50%, #ffc23d 50%); }
.sw-news { background: linear-gradient(135deg, #efeae0 50%, #e5341f 50%); }
.sw-electric { background: linear-gradient(135deg, #ff2d78 50%, #00e5d0 50%); }
.sw-arcade { background: linear-gradient(135deg, #00ff87 50%, #04f5ff 50%); }
.sw-trophy { background: linear-gradient(135deg, #ffcb45 50%, #34c878 50%); }
.sw-night { background: linear-gradient(135deg, #3d7dff 50%, #5ad1ff 50%); }

/* RESPONSIVE */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; text-align: center; }
  .hero-copy .sub, .hero-proof { margin-left: auto; margin-right: auto; }
  .hero-copy .eyebrow, .cta-row { justify-content: center; }
  .sim-grid { grid-template-columns: 1fr; }
  .search { position: static; }
  .diag-grid, .principles, .tiles { grid-template-columns: 1fr 1fr; }
  .principle.wide { grid-column: span 2; }
  .waitlist { grid-template-columns: 1fr; gap: 28px; }
  .results .compare { grid-template-columns: 1fr; }
  .compare-delta { flex-direction: row; gap: .6rem; }
}
@media (max-width: 560px) {
  .nav-links a:not(.btn) { display: none; }
  .builder-controls { grid-template-columns: 1fr; }
  .tiles, .diag-grid, .principles { grid-template-columns: 1fr; }
.proof-strip { row-gap: 8px; }
.proof-stat { flex: 1 1 42%; padding: 22px 12px; }
.proof-num { font-size: 2.3rem; }
.proof-divider { display: none; }
  .principle.wide { grid-column: span 1; }
  .section { padding: 64px 0; }
  .judgment { padding: 36px 22px; }
  .waitlist { padding: 28px; }
  .float-chip { display: none; }
  .theme-switch { right: 10px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
