:root {
  color-scheme: dark;
  --bg: #090b0d;
  --panel: #111418;
  --panel-2: #171b20;
  --text: #f3f5f7;
  --muted: #9ca5ae;
  --line: #2a3037;
  --accent: #e43b34;
  --accent-soft: rgba(228, 59, 52, 0.14);
  --max: 1160px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 70% -10%, rgba(228, 59, 52, 0.13), transparent 30rem),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

.topbar {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -0.02em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  font-size: 12px;
  letter-spacing: 0.06em;
}
nav { display: flex; gap: 24px; color: var(--muted); font-size: 14px; }
nav a:hover { color: var(--text); }

main { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.hero { padding: 112px 0 84px; max-width: 960px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 0.16em; }
h1 {
  margin: 16px 0 22px;
  font-size: clamp(46px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  max-width: 1050px;
}
h1 em { font-style: normal; color: #b9c0c7; }
.lede { max-width: 760px; color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { padding: 13px 18px; border: 1px solid var(--line); font-weight: 750; font-size: 14px; }
.button.primary { background: var(--accent); border-color: var(--accent); }
.button.secondary { background: var(--panel); }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.metric-card {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
}
.metric-card.feature { grid-column: span 3; min-height: 300px; }
.metric-kicker { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; }
.score { margin-top: 22px; font-size: clamp(76px, 12vw, 150px); line-height: 0.8; font-weight: 900; letter-spacing: -0.08em; color: var(--accent); }
.mini-score { font-size: 48px; font-weight: 900; color: var(--accent); }
h2, h3 { margin: 18px 0 10px; letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 4vw, 48px); }
h3 { font-size: 22px; }
.metric-card p, .comparison p { color: var(--muted); line-height: 1.55; margin-bottom: 0; }

.rankings { margin: 96px 0 40px; }
.section-heading {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 42px;
  align-items: end;
  margin-bottom: 28px;
}
.section-heading h2 { margin-bottom: 0; }
.section-heading p { margin: 0; color: var(--muted); line-height: 1.6; }
.ranking-controls {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.ranking-controls label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; flex: 1; }
select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  text-transform: none;
  letter-spacing: normal;
}
.ranking-list { border: 1px solid var(--line); border-top: 0; background: var(--panel); }
.ranking-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 100px 88px;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
}
.ranking-row:last-child { border-bottom: 0; }
.ranking-row:hover { background: var(--panel-2); }
.rank-number { color: #5f6872; font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.rank-fighter { min-width: 0; display: grid; gap: 4px; }
.rank-fighter strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 17px; }
.rank-fighter small, .rank-confidence, .rank-score small { color: var(--muted); font-size: 12px; }
.rank-confidence { text-align: right; }
.rank-score { display: grid; justify-items: end; gap: 1px; }
.rank-score strong { color: var(--accent); font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.ranking-loading { padding: 28px 18px; color: var(--muted); }
.model-note { color: #727b84; font-size: 12px; line-height: 1.5; max-width: 780px; }

.method {
  margin: 88px 0;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.method h2 { max-width: 500px; }
.comparison { background: var(--panel); border: 1px solid var(--line); padding: 22px; }
.comparison-row { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.comparison-row strong { font-size: 24px; }
.comparison-row.hot strong { color: var(--accent); }

.status-panel {
  margin: 0 0 80px;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: #6d737a; }
.status-dot.ok { background: #55c983; box-shadow: 0 0 0 4px rgba(85, 201, 131, 0.1); }
.status-dot.bad { background: var(--accent); }
.muted { color: var(--muted); }
footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 30px 0 44px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  .topbar { height: 64px; }
  nav { gap: 14px; font-size: 12px; }
  .hero { padding: 74px 0 58px; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card.feature { grid-column: span 1; }
  .section-heading { grid-template-columns: 1fr; gap: 12px; }
  .ranking-controls { flex-direction: column; }
  .ranking-row { grid-template-columns: 38px minmax(0, 1fr) 70px; gap: 10px; padding: 10px 12px; }
  .rank-confidence { display: none; }
  .rank-fighter strong { font-size: 15px; }
  .rank-fighter small { font-size: 10px; }
  .rank-score strong { font-size: 22px; }
  .method { grid-template-columns: 1fr; gap: 24px; margin: 62px 0; }
  .status-panel, footer { flex-direction: column; }
}
