@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-700.woff2") format("woff2");
}

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  --indigo: #4f46e5;
  --indigo-light: #eef2ff;
  --dark: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --green: #059669;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --nav-h: 68px;
  --content: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--slate-50);
  color: var(--slate-700);
  font: 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
button, video { font: inherit; }
button { cursor: pointer; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { color: var(--dark); line-height: 1.25; }
:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }
.skip-link {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 100;
  background: white;
  padding: 8px 12px;
  border-radius: 8px;
}
.skip-link:focus { top: 10px; }

.container { width: min(var(--content), calc(100% - 40px)); margin-inline: auto; }
.container-wide { width: min(1240px, calc(100% - 32px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--slate-200);
  backdrop-filter: blur(14px);
}
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 18px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--indigo));
  color: white;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}
.badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--indigo);
  background: var(--indigo-light);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-full);
  padding: 3px 8px;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--slate-600);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  text-decoration: none;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-light); text-decoration: none; }
.nav-toggle {
  display: none;
  border: 1px solid var(--slate-200);
  background: white;
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--dark);
  font-weight: 600;
  font-size: 14px;
}

.hero {
  background: radial-gradient(circle at 50% 0%, #eff6ff 0%, #f8fafc 68%);
  border-bottom: 1px solid var(--slate-200);
  padding: 56px 0 28px;
  text-align: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--indigo-light);
  color: var(--indigo);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.logo {
  width: min(560px, 100%);
  margin: 28px auto 8px;
}
.hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.18;
  max-width: 16em;
  margin: 8px auto 0;
}
@media (max-width: 700px) {
  .hero h1 br { display: none; }
}
.lede {
  max-width: 740px;
  margin: 18px auto 0;
  font-size: 17px;
  color: var(--slate-600);
}
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-full);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--slate-200);
  background: white;
  color: var(--slate-700);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.btn:hover { text-decoration: none; background: var(--slate-100); color: var(--dark); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: white; }
.btn.primary:hover { background: var(--primary-hover); color: white; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 34px;
  text-align: left;
}
.stat {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px 18px 16px;
}
.stat:hover { border-color: var(--primary-border); box-shadow: var(--shadow-md); }
.stat b {
  display: block;
  font-size: 30px;
  letter-spacing: -0.04em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--primary), var(--indigo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { display: block; margin-top: 6px; color: var(--slate-600); font-size: 13px; font-weight: 600; }
.stat small { display: block; color: var(--slate-400); font-size: 12px; line-height: 1.4; margin-top: 2px; }

.reel { padding: 8px 0 64px; background: linear-gradient(#f8fafc, #ffffff); }
.stage {
  position: relative;
  background: #0f172a;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.stage video { width: 100%; display: block; background: #0f172a; max-height: 78vh; }
.play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 0;
  background: transparent;
  color: white;
  display: grid;
  place-items: center;
  padding: 0;
}
.play-btn i {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.92);
  border: 3px solid white;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  font-style: normal;
}
.play-btn i svg { margin-left: 3px; }
.play-btn:hover i { background: var(--primary-hover); }
.play-btn b {
  font-size: 14px;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.72);
  padding: 5px 12px;
  border-radius: var(--radius-full);
}
.play-btn[hidden] { display: none; }
.reel-caption, .switch-caption {
  max-width: 760px;
  margin: 16px auto 0;
  text-align: center;
  color: var(--slate-600);
  font-size: 15px;
}

.section { padding: 76px 0; }
.section.tint { background: white; border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 32px; }
.eyebrow {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.15rem); letter-spacing: -0.03em; font-weight: 600; }
.section-head p { margin-top: 12px; color: var(--slate-600); }

.two, .three, .split { display: grid; gap: 18px; }
.two { grid-template-columns: 1fr 1fr; }
.three { grid-template-columns: repeat(3, 1fr); }
.split { grid-template-columns: 1.35fr 0.8fr; align-items: center; gap: 28px; margin-top: 22px; }
.card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
}
.section.tint .card { background: var(--slate-50); }
.card h3 { font-size: 18px; letter-spacing: -0.02em; margin: 6px 0 8px; }
.card p { font-size: 14.5px; color: var(--slate-600); }
.card .index {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.card.idea { border-top: 3px solid var(--primary); }
.card.problem { border-top: 3px solid var(--slate-200); }

.figure-btn {
  display: block;
  width: 100%;
  padding: 18px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: white;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.figure-btn img { width: 100%; height: auto; }
.zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-600);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  padding: 3px 8px;
}
figcaption {
  margin-top: 12px;
  text-align: center;
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1.55;
}
.paper-figure { margin-top: 28px; }
.attention-card { background: white; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 12px; }
.attention-card img { width: 100%; }

.dims { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 22px; }
.dims article {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 16px 14px 14px;
  box-shadow: var(--shadow-sm);
}
.section.tint .dims article { background: var(--slate-50); }
.dims h3 { font-size: 15px; margin: 4px 0 6px; }
.dims p { font-size: 13px; color: var(--slate-600); }
.task-names { color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.steps article {
  background: var(--slate-50);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--slate-200);
}
.section:not(.tint) .steps article { background: white; }
.steps strong { display: block; color: var(--dark); font-size: 15px; margin-bottom: 4px; }
.steps p { font-size: 13px; color: var(--slate-600); }

.metric-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 28px 0 8px;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  text-align: center;
}
.metric-row div { padding: 16px 8px; }
.metric-row div + div { border-left: 1px solid var(--slate-200); }
.metric-row b { display: block; color: var(--primary); font-size: 26px; letter-spacing: -0.03em; }
.metric-row span { font-size: 12px; color: var(--slate-500); }

.table-scroll {
  overflow: auto;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-sm);
  max-height: 680px;
}
table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--slate-100); white-space: nowrap; }
th { font-weight: 600; color: var(--slate-600); background: var(--slate-50); }
thead th { position: sticky; top: 0; z-index: 2; }
.leaderboard thead tr:nth-child(2) th { top: 41px; }
.leaderboard th:first-child,
.leaderboard td:first-child,
.compare th:first-child,
.compare td:first-child,
.native th:first-child,
.native td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 1;
  background: white;
}
thead th:first-child { z-index: 3; background: var(--slate-50); }
.group-head { text-align: center !important; color: var(--slate-500); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 1px solid var(--slate-200); }
.sort-btn {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sort-btn[aria-sort="descending"] .arrow::after,
.sort-btn[aria-sort="ascending"] .arrow::after { content: ""; }
.model-cell { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--dark); }
.rank { width: 1.6em; color: var(--slate-400); font-weight: 600; font-size: 12px; }
.pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  padding: 2px 7px;
  background: var(--slate-100);
  color: var(--slate-500);
}
.pill.closed { background: #fef3c7; color: #92400e; }
.pill.open { background: var(--indigo-light); color: #4338ca; }
.pill.ours { background: var(--primary); color: white; }
tr.ours td { background: var(--primary-light); }
tr.ours td:first-child { background: #dbeafe; }
tr.ours .model-cell { color: #1e3a8a; }
td.best { font-weight: 700; color: var(--dark); }
td.second { text-decoration: underline; text-underline-offset: 3px; }
td.missing { color: var(--slate-400); }
.table-notes { margin-top: 12px; color: var(--slate-500); font-size: 12.5px; line-height: 1.6; }
.table-notes strong { color: var(--slate-700); }

.controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  align-items: center;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn, .search input {
  border: 1px solid var(--slate-200);
  background: white;
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-600);
}
.filter-btn[aria-pressed="true"] { background: var(--dark); color: white; border-color: var(--dark); }
.search { position: relative; }
.search input { padding-left: 34px; min-width: 240px; font-weight: 500; color: var(--dark); }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--slate-400); }
.empty-row { text-align: center !important; color: var(--slate-500); padding: 28px !important; }

.findings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0 8px; }
.findings article {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 16px 16px 14px;
}
.findings h3 { font-size: 15px; margin-bottom: 6px; }
.findings p { font-size: 13.5px; color: var(--slate-600); }

.mark { font-weight: 700; }
.mark.yes { color: var(--green); }
.mark.no { color: var(--slate-300); font-weight: 500; }
.compare td:first-child, .compare th:first-child { min-width: 180px; }
.venue { display: block; font-weight: 500; color: var(--slate-400); font-size: 11px; }
tr.highlight td { background: var(--primary-light); font-weight: 600; color: var(--dark); }
tr.highlight td:first-child { background: #dbeafe; }

.switcher { margin-top: 8px; }
.switcher + .switcher, .block-title { margin-top: 48px; }
.block-title { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 6px; }
.block-title + p { color: var(--slate-600); margin-bottom: 16px; max-width: 760px; }
.tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.tabs button {
  text-align: left;
  border: 1px solid var(--slate-200);
  background: white;
  border-radius: 14px;
  padding: 12px 14px 13px;
  color: var(--slate-600);
  border-bottom: 3px solid var(--slate-200);
}
.tabs button[aria-selected="true"] {
  border-color: var(--primary-border);
  border-bottom-color: var(--primary);
  background: var(--primary-light);
  color: var(--dark);
}
.tabs .kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); }
.tabs strong { display: block; font-size: 15px; margin-top: 2px; }
.tabs small { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: var(--slate-500); font-weight: 400; }
.media-error {
  display: none;
  margin-top: 8px;
  color: #9f1239;
  background: #fff1f2;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
}
.media-error.show { display: block; }

.footer {
  text-align: center;
  padding: 36px 16px 42px;
  color: var(--slate-500);
  font-size: 13px;
}
.footer strong { display: block; color: var(--dark); font-size: 16px; letter-spacing: -0.03em; }
.footer p { margin: 6px 0 0; }

dialog {
  border: 0;
  padding: 36px 16px 16px;
  border-radius: 14px;
  max-width: min(1400px, 96vw);
  background: white;
}
dialog::backdrop { background: rgba(15, 23, 42, 0.72); }
dialog img { max-height: 82vh; margin: 0 auto; object-fit: contain; }
.dialog-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: var(--slate-600);
  padding: 4px 8px;
}

@media (max-width: 980px) {
  .stats, .three, .findings, .steps, .dims, .metric-row { grid-template-columns: 1fr 1fr; }
  .metric-row div:nth-child(odd) { border-left: 0; }
  .metric-row div:nth-child(n + 3) { border-top: 1px solid var(--slate-200); }
  .split, .two { grid-template-columns: 1fr; }
  .dims { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: white;
    border-bottom: 1px solid var(--slate-200);
    padding: 8px 12px 14px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .site-header { position: sticky; }
  .nav { position: static; }
  .site-header { height: var(--nav-h); }
}
@media (max-width: 640px) {
  .three, .findings, .steps, .metric-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .metric-row div + div { border-left: 0; border-top: 1px solid var(--slate-200); }
  .container, .container-wide { width: min(100% - 28px, var(--content)); }
  .hero { padding-top: 36px; }
  .section { padding: 56px 0; }
  .search input { min-width: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
