:root {
  --bg: #05080d;
  --bg-soft: #0a1018;
  --bg-card: #0c131d;
  --text: #f5f7fa;
  --muted: #8e9aaa;
  --muted-2: #697585;
  --accent: #18c8ff;
  --positive: #6be6b3;
  --negative: #ff7c8f;
  --border: rgba(255,255,255,.09);
  --border-strong: rgba(24,200,255,.32);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.nav {
  min-height: 84px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.brand { font-weight: 850; letter-spacing: .08em; font-size: 21px; }
.logo {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}
.nav-meta { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
.nav .button { justify-self: end; }

.hero {
  min-height: 680px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 34%, rgba(24,200,255,.10), transparent 31%),
    linear-gradient(180deg, #05080d 0%, #07101a 100%);
}
.hero::after {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -250px;
  bottom: -300px;
  border: 1px solid rgba(24,200,255,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 78px rgba(24,200,255,.025), 0 0 0 156px rgba(24,200,255,.016);
}
.hero-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  left: -260px;
  top: 130px;
  background: rgba(24,200,255,.035);
  filter: blur(30px);
  border-radius: 50%;
}
.hero-inner { position: relative; z-index: 2; padding-top: 82px; }
.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .17em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
h1 {
  font-size: clamp(50px, 7vw, 82px);
  line-height: .98;
  letter-spacing: -.045em;
  max-width: 900px;
}
h1 span { color: var(--accent); font-weight: 500; }
.hero-copy { margin-top: 25px; max-width: 710px; color: var(--muted); font-size: 18px; }
.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
  max-width: 930px;
}
.hero-meta > div {
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(10,16,24,.55);
  backdrop-filter: blur(8px);
}
.hero-meta span { display:block; color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.09em; }
.hero-meta strong { display:block; margin-top:3px; font-size:15px; }

.section { padding: 94px 0; border-top: 1px solid var(--border); }
.section-tight { padding-top: 82px; }
.alternate { background: linear-gradient(180deg, rgba(10,16,24,.78), rgba(7,12,18,.8)); }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 42px;
}
.section-heading.compact { margin-bottom: 32px; }
.section-heading h2, .cta h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.section-heading p { max-width: 500px; color: var(--muted); font-size: 15px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 650;
  font-size: 13px;
  transition: .2s ease;
}
.button-primary { background: var(--accent); color: #031018; }
.button-primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.button-secondary { border: 1px solid var(--border); color: var(--text); }
.button-secondary:hover { border-color: rgba(24,200,255,.45); color: var(--accent); }

.probability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.probability-card, .metric-card, .team-card, .table-card, .note-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
}
.probability-card { padding: 28px; min-height: 190px; position: relative; overflow: hidden; }
.probability-card.featured { border-color: var(--border-strong); box-shadow: inset 0 3px 0 var(--accent); }
.card-label { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.big-number { margin-top: 18px; font-size: clamp(38px,5vw,58px); font-weight: 750; letter-spacing: -.04em; }
.progress { height: 5px; border-radius: 999px; background: rgba(255,255,255,.06); margin-top: 18px; overflow: hidden; }
.progress span, .bar span { display:block; height:100%; border-radius:inherit; background: linear-gradient(90deg, var(--accent), #66e1ff); }
.card-note { margin-top: 12px; color: var(--muted); font-size: 13px; }

.metric-grid { display: grid; gap: 16px; margin-top: 16px; }
.metric-grid.four { grid-template-columns: repeat(4, 1fr); }
.metric-card { padding: 24px; }
.metric-card span { display:block; color:var(--muted); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.09em; }
.metric-card strong { display:block; margin-top:9px; font-size:27px; letter-spacing:-.03em; }
.metric-card small { display:block; margin-top:5px; color:var(--muted-2); font-size:12px; }

.score-grid { display:grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.score-card {
  border:1px solid var(--border);
  background:var(--bg-soft);
  border-radius:12px;
  padding:24px 20px;
  text-align:center;
}
.score-card.top { border-color:var(--border-strong); background:linear-gradient(180deg, rgba(24,200,255,.08), var(--bg-soft)); }
.score-card span { display:block; color:var(--muted); font-size:12px; font-weight:700; }
.score-card strong { display:block; margin-top:8px; font-size:34px; }
.score-card em { display:block; margin-top:4px; color:var(--accent); font-size:16px; font-style:normal; font-weight:700; }

.space-top { margin-top: 18px; }
.table-card { padding: 24px; }
.table-title { color: var(--text); font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.compact-table { display:grid; grid-template-columns:repeat(5, 1fr); gap:10px; }
.compact-table > div { padding:12px 14px; border:1px solid var(--border); border-radius:8px; display:flex; justify-content:space-between; gap:10px; }
.compact-table span { color:var(--muted); }

.team-grid { display:grid; grid-template-columns:repeat(2, 1fr); gap:18px; }
.team-card { padding:28px; }
.team-card-head { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; margin-bottom:18px; }
.team-kicker { color:var(--accent); font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.14em; }
.team-card h3 { font-size:28px; margin-top:2px; }
.elo { text-align:right; }
.elo span { display:block; color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.1em; }
.elo strong { display:block; font-size:24px; }
.stats-list { display:grid; gap:0; }
.stats-list > div { display:flex; justify-content:space-between; gap:20px; padding:10px 0; border-top:1px solid var(--border); }
.stats-list span { color:var(--muted); font-size:13px; }
.stats-list span small { color:#697585; font-size:11px; font-weight:500; white-space:nowrap; }
.stats-list strong { font-size:13px; font-weight:650; text-align:right; }
.note-card { padding:22px 24px; display:grid; grid-template-columns:auto auto 1fr; align-items:center; gap:20px; }
.note-label { color:var(--muted); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.1em; }
.note-card > strong { font-size:30px; color:var(--accent); }
.note-card p { color:var(--muted); font-size:13px; }

.bar-list { display:grid; gap:16px; }
.bar-row > div:first-child { display:flex; justify-content:space-between; margin-bottom:7px; gap:20px; font-size:13px; }
.bar-row span { color:var(--muted); }
.bar { height:7px; border-radius:999px; background:rgba(255,255,255,.055); overflow:hidden; }

.goal-distribution {
  min-height: 270px;
  display:grid;
  grid-template-columns:repeat(8,1fr);
  gap:12px;
  align-items:end;
  padding:28px 24px 20px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--bg-soft);
}
.goal-distribution > div { height:210px; display:grid; grid-template-rows:auto 1fr auto; align-items:end; gap:8px; text-align:center; }
.goal-distribution span { color:var(--muted); font-size:12px; }
.goal-distribution i { display:block; width:60%; margin:0 auto; min-height:4px; background:linear-gradient(180deg, var(--accent), rgba(24,200,255,.3)); border-radius:7px 7px 2px 2px; }
.goal-distribution strong { font-size:12px; }

.details-stack { display:grid; gap:12px; }
details { border:1px solid var(--border); border-radius:12px; background:var(--bg-soft); overflow:hidden; }
summary { cursor:pointer; list-style:none; padding:20px 24px; font-size:15px; font-weight:700; display:flex; justify-content:space-between; gap:20px; }
summary::-webkit-details-marker { display:none; }
summary::after { content:"+"; color:var(--accent); font-size:20px; line-height:1; }
details[open] summary::after { content:"–"; }
.details-content { border-top:1px solid var(--border); padding:24px; }
.grid-two { display:grid; grid-template-columns:repeat(2, 1fr); gap:28px; }
.details-content h4 { font-size:17px; margin-bottom:12px; }

.validation-note { margin:0 0 14px; color:var(--muted); font-size:13px; }
.validation-highlight { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.validation-highlight > div { border:1px solid rgba(107,230,179,.18); background:rgba(107,230,179,.045); border-radius:12px; padding:20px; }
.validation-highlight span { display:block; color:var(--muted); font-size:12px; line-height:1.4; }
.validation-highlight strong { display:block; margin-top:8px; font-size:25px; }
.comparison-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
.muted-card { background:#080d13; }
.calibration-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.calibration-grid .calibration-card { border:1px solid var(--border); border-radius:10px; padding:18px; overflow:auto; }
.calibration-card h5 { font-size:14px; margin-bottom:10px; }
.calibration-card pre { color:var(--muted); font:12px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space:pre; }
.table-scroll { overflow-x:auto; }
table { width:100%; border-collapse:collapse; min-width:680px; }
th, td { padding:12px 14px; border-bottom:1px solid var(--border); text-align:right; font-size:13px; }
th:first-child, td:first-child { text-align:left; }
th { color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.08em; }
.positive { color:var(--positive); font-weight:700; }
.negative { color:var(--negative); font-weight:700; }

.cta { padding:96px 0; text-align:center; border-top:1px solid var(--border); background:radial-gradient(circle at 50% 100%, rgba(24,200,255,.07), transparent 38%); }
.cta p { max-width:600px; margin:18px auto 0; color:var(--muted); }
.actions { display:flex; gap:12px; margin-top:28px; flex-wrap:wrap; }
.actions.centered { justify-content:center; }
footer { border-top:1px solid var(--border); padding:28px 0; color:var(--muted-2); font-size:12px; }
.footer-inner { display:flex; align-items:center; justify-content:space-between; gap:20px; }

@media (max-width: 900px) {
  .nav { grid-template-columns:1fr auto; }
  .nav-meta { display:none; }
  .hero-meta { grid-template-columns:repeat(2,1fr); }
  .metric-grid.four, .validation-highlight { grid-template-columns:repeat(2,1fr); }
  .score-grid { grid-template-columns:repeat(3,1fr); }
  .compact-table { grid-template-columns:repeat(2,1fr); }
}

@media (max-width: 720px) {
  .container { width:min(100% - 28px,1120px); }
  .site-header { position:absolute; }
  .nav { height:72px; }
  .nav .button { min-height:38px; padding:0 13px; font-size:12px; }
  .brand { font-size:18px; }
  .hero { min-height:680px; }
  .hero-inner { padding-top:100px; }
  .hero-meta { grid-template-columns:1fr 1fr; }
  .section { padding:70px 0; }
  .section-heading { align-items:flex-start; flex-direction:column; gap:14px; }
  .probability-grid, .team-grid, .comparison-grid, .grid-two, .calibration-grid { grid-template-columns:1fr; }
  .metric-grid.four, .validation-highlight { grid-template-columns:1fr 1fr; }
  .score-grid { grid-template-columns:repeat(2,1fr); }
  .goal-distribution { overflow-x:auto; grid-template-columns:repeat(8,72px); }
  .note-card { grid-template-columns:1fr; gap:6px; }
  .note-card > strong { margin-bottom:6px; }
  .footer-inner { flex-direction:column; align-items:flex-start; }
}

@media (max-width: 460px) {
  h1 { font-size:46px; }
  .hero-copy { font-size:16px; }
  .hero-meta, .metric-grid.four, .validation-highlight { grid-template-columns:1fr; }
  .score-grid, .compact-table { grid-template-columns:1fr 1fr; }
  .probability-card { min-height:0; }
}
