:root {
  --bg: #000000;
  --bg-elevated: #0d0d0f;
  --surface: #1c1c1e;
  --surface-hover: #232326;
  --ink: #f5f5f7;
  --muted: #86868b;
  --faint: #6e6e73;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --accent: #2997ff;
  --accent-soft: rgba(41, 151, 255, 0.14);
  --accent-glow: rgba(41, 151, 255, 0.22);
  --good: #30d158;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); }
html { color-scheme: dark; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.011em;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.glow {
  pointer-events: none;
  position: fixed;
  inset: -20% auto auto 30%;
  width: 70vw;
  height: 50vh;
  background: radial-gradient(ellipse at top, rgba(41, 151, 255, 0.16), transparent 62%);
  z-index: 0;
}

.shell { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; padding: 0 28px 96px; }

header.top {
  position: sticky; top: 0; z-index: 20;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: saturate(1.4) blur(20px);
  -webkit-backdrop-filter: saturate(1.4) blur(20px);
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid var(--line);
}
header.top .shell { display: flex; align-items: center; justify-content: space-between; width: 100%; padding-bottom: 0; }
.wordmark { font-size: 15px; font-weight: 600; letter-spacing: 0.01em; }
.wordmark span { color: var(--muted); font-weight: 500; }
.nav-link {
  font-size: 13px; color: var(--muted);
  transition: color 0.2s var(--ease);
}
.nav-link:hover { color: var(--ink); }

.hero { padding: 48px 0 28px; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
h1 {
  font-size: clamp(40px, 7vw, 72px);
  color: var(--ink);
  font-weight: 700; letter-spacing: -0.045em; line-height: 0.98;
  margin: 0; text-wrap: balance;
}
.lede {
  margin: 22px 0 0;
  max-width: 34em;
  font-size: 21px; line-height: 1.4; font-weight: 400;
  color: var(--muted); letter-spacing: -0.02em;
}

.list { display: grid; gap: 18px; margin-top: 28px; }

.card {
  position: relative;
  display: block;
  padding: 32px 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  transform: translateY(0);
  transition: transform 0.45s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--accent-glow), transparent 42%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  background: var(--surface-hover);
  border-color: var(--line-strong);
}
.card:hover::before { opacity: 1; }
.card:active { transform: translateY(-2px) scale(0.995); }
.card > * { position: relative; z-index: 1; }

.card-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--muted); margin-bottom: 14px;
}
.status {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--good); font-weight: 500;
}
.status::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.55);
  animation: pulse 2.2s ease-out infinite;
}
.status.partial { color: #ffd60a; }
.status.partial::before { background: #ffd60a; animation: none; box-shadow: none; }

h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600; letter-spacing: -0.035em; line-height: 1.08;
  margin: 0 0 14px;
  text-wrap: balance;
}
.blurb {
  margin: 0;
  font-size: 17px; line-height: 1.5; color: var(--muted);
  max-width: 46em;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.tag {
  display: inline-flex; align-items: center;
  padding: 6px 12px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  font-size: 12px; font-weight: 500; color: var(--ink);
  letter-spacing: -0.01em;
}

.open {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 22px;
  font-size: 14px; font-weight: 600; color: var(--accent);
  letter-spacing: -0.01em;
}
.open::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}
.card:hover .open::after { transform: translateX(4px); }

.back {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 28px 0 8px;
  font-size: 14px; color: var(--muted);
  transition: color 0.2s ease, transform 0.3s var(--ease);
}
.back::before { content: "←"; }
.back:hover { color: var(--ink); transform: translateX(-3px); }

.summary {
  margin: 18px 0 0;
  font-size: 19px; line-height: 1.5; color: var(--muted);
  max-width: 40em; letter-spacing: -0.018em;
}

.takeaway {
  margin: 40px 0 8px;
  padding: 24px 26px;
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, var(--accent-soft), transparent 70%);
  border-radius: 0 18px 18px 0;
}
.takeaway .label {
  display: block;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.takeaway p {
  margin: 0;
  font-size: 22px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.3;
}

section.block { margin-top: 56px; }
section.block h3 {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 18px;
}

.bars { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: minmax(140px, 220px) 1fr auto; gap: 14px; align-items: center; }
.bar-label { font-size: 14px; color: var(--ink); }
.bar-track {
  height: 8px; border-radius: 980px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.bar-fill {
  height: 100%; width: 0; border-radius: inherit;
  background: var(--accent);
  transform-origin: left;
  animation: fill 1.1s var(--ease) forwards;
}
.bar-row.best .bar-fill { background: var(--good); }
.bar-val { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); min-width: 4.5em; text-align: right; }

table.results {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
table.results th, table.results td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}
table.results th {
  font-size: 12px; font-weight: 600; color: var(--muted);
  letter-spacing: 0.04em; text-transform: uppercase;
}
table.results td.num { font-variant-numeric: tabular-nums; }
table.results tr.best td { color: var(--good); font-weight: 600; }
table.results tr.best td:first-child { color: var(--ink); }

.caveat {
  margin-top: 40px;
  font-size: 14px; line-height: 1.55; color: var(--faint);
  max-width: 42em;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes fill {
  from { width: 0; }
  to { width: var(--w); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(48, 209, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); }
}

@media (max-width: 720px) {
  .shell { padding: 0 20px 72px; }
  .hero { padding-top: 48px; }
  .lede, .summary { font-size: 17px; }
  .card { padding: 24px; border-radius: 22px; }
  .bar-row { grid-template-columns: 1fr auto; }
  .bar-label { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .bar-fill, .status::before { animation: none; transition: none; }
  .reveal { opacity: 1; transform: none; }
  .bar-fill { width: var(--w); }
  .card, .open::after, .back { transition: none; }
}
