:root {
  color-scheme: light;
  --ink: #171b22;
  --text: #28313f;
  --muted: #707784;
  --line: #e0e3e8;
  --paper: #fbfaf7;
  --white: #ffffff;
  --blue: #2563eb;
  --orange: #f59e0b;
  --green: #16a34a;
  --red: #b6543c;
  --teal: #0d7a75;
  --shadow: 0 22px 60px rgba(23, 27, 34, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(224, 227, 232, 0.8);
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 192px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.nav-links a,
.nav-links span {
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links span {
  cursor: not-allowed;
  opacity: 0.55;
}

.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(13, 17, 23, 0.92), rgba(13, 17, 23, 0.70), rgba(13, 17, 23, 0.22)),
    url("assets/brand/hero-background.png?v=2026-07-04-arxiv-figures-v1") center / cover no-repeat;
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 92px 0 104px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f7ca60;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 980px;
  margin: 0;
  color: inherit;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-summary {
  max-width: 800px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.button.primary {
  background: var(--orange);
  color: #17110a;
}

.button.primary.dark {
  background: var(--ink);
  color: var(--white);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.56);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.button.is-disabled {
  cursor: not-allowed;
  opacity: 0.74;
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.stat-band div {
  min-height: 124px;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.stat-band div:last-child {
  border-right: 0;
}

.stat-band strong {
  display: block;
  color: var(--teal);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: 0;
}

.stat-band span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.section {
  padding: 86px 0;
}

.section.muted {
  background: #eef3f2;
}

.section-heading {
  width: min(1180px, calc(100% - 48px));
  max-width: 980px;
  margin: 0 auto 34px;
}

.section-heading.compact {
  max-width: 920px;
}

.section-heading p:not(.eyebrow),
.overview-grid p,
.leaderboard-hero p {
  color: var(--muted);
  font-size: 18px;
}

.news-list,
.overview-grid,
.protocol-list,
.figure-grid,
.snapshot-panel {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.news-list {
  display: grid;
  gap: 14px;
}

.news-list article {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.news-list time {
  color: var(--red);
  font-weight: 850;
}

.news-list p {
  margin: 0;
  color: var(--text);
  font-weight: 650;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 44px;
  align-items: center;
}

.overview-grid.reverse {
  grid-template-columns: minmax(360px, 1.1fr) minmax(0, 0.9fr);
}

.figure-panel,
.figure-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(23, 27, 34, 0.04);
}

.figure-panel img,
.figure-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: var(--white);
}

figcaption {
  padding: 15px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.protocol-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.protocol-list div {
  min-height: 130px;
  padding: 22px;
  border-left: 4px solid var(--teal);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(23, 27, 34, 0.04);
}

.protocol-list span {
  display: block;
  color: var(--red);
  font-size: 22px;
  font-weight: 900;
}

.protocol-list p {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 750;
}

.snapshot-panel {
  display: grid;
  gap: 22px;
  justify-items: start;
}

.snapshot-list {
  width: 100%;
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.snapshot-row {
  display: grid;
  grid-template-columns: 42px 44px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 76px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.snapshot-row:last-child {
  border-bottom: 0;
}

.snapshot-row strong,
.snapshot-row span,
.snapshot-row em {
  display: block;
}

.snapshot-row strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.snapshot-row div span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.snapshot-row em {
  color: var(--green);
  font-size: 24px;
  font-style: normal;
  font-weight: 900;
}

.figure-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.citation-block {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #101418;
  color: #edf5f3;
  box-shadow: var(--shadow);
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.citation-block code {
  font-size: 14px;
  line-height: 1.6;
}

.leaderboard-hero {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 86px 0 40px;
}

.leaderboard-hero h1 {
  max-width: 1040px;
  color: var(--ink);
  font-size: clamp(38px, 6vw, 68px);
}

.leaderboard-hero p {
  max-width: 820px;
}

.leaderboard-section {
  width: min(1920px, 100%);
  margin: 0 auto;
  padding: 0 28px 88px;
}

.leaderboard-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.segmented-control {
  display: inline-flex;
  min-height: 58px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f4f5;
}

.segmented-control button,
.board-actions button {
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #747985;
  font: inherit;
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
}

.segmented-control button {
  min-width: 128px;
  padding: 0 20px;
}

.segmented-control button.active {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 1px 5px rgba(23, 27, 34, 0.10);
}

.board-actions {
  display: flex;
  gap: 12px;
}

.board-actions button {
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  background: var(--white);
}

.board-actions button:hover {
  color: var(--ink);
}

.leaderboard-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.scoreboard {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 15px;
}

.score-rank {
  width: 6%;
}

.score-model {
  width: 23%;
}

.score-main {
  width: 24%;
}

.score-metric {
  width: 11.75%;
}

.scoreboard th,
.scoreboard td {
  padding: 20px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.scoreboard th {
  color: #747985;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

.scoreboard td {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.scoreboard th:first-child,
.scoreboard td:first-child {
  text-align: center;
}

.scoreboard tbody tr.leader-row {
  background: #f7f8fb;
}

.scoreboard tbody tr:hover {
  background: #fff8e8;
}

.rank {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #f1f2f4;
  color: #7b8089;
  font-weight: 900;
}

.rank.top {
  background: #fff0ad;
  color: #9a5d00;
}

.model-cell {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.model-cell strong {
  display: block;
  color: var(--ink);
  line-height: 1.2;
}

.model-cell span:not(.model-avatar) {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.model-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid #eceff3;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
}

.model-avatar img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.model-avatar.logo-qwen img {
  width: 36px;
  height: 18px;
}

.score-bar-cell {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 78px;
  gap: 16px;
  align-items: center;
}

.score-track {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0f0f0;
}

.score-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.score-bar-cell strong,
.card-main-score strong {
  color: var(--ink);
  font-weight: 950;
}

.score-cards {
  display: none;
}

.card-head,
.card-main-score,
.card-metrics {
  min-width: 0;
}

.table-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.loading-text {
  margin: 0;
  padding: 20px;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 1180px) {
  .overview-grid,
  .overview-grid.reverse,
  .protocol-list,
  .figure-grid,
  .stat-band {
    grid-template-columns: 1fr 1fr;
  }

  .leaderboard-shell {
    display: none;
  }

  .score-cards {
    display: grid;
    gap: 14px;
  }

  .score-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 1px 0 rgba(23, 27, 34, 0.04);
    padding: 16px;
  }

  .card-head {
    display: grid;
    grid-template-columns: 36px 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
  }

  .card-head h3 {
    margin: 0;
    font-size: 18px;
  }

  .card-head p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
  }

  .card-main-score {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-top: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .card-main-score span,
  .card-metrics span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .card-main-score strong {
    color: var(--green);
    font-size: 28px;
    line-height: 1;
  }

  .card-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 14px;
  }

  .card-metrics p {
    margin: 4px 0 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 850;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 20px;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    gap: 18px;
    padding-bottom: 2px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content,
  .section-heading,
  .news-list,
  .overview-grid,
  .protocol-list,
  .figure-grid,
  .snapshot-panel,
  .citation-block,
  .leaderboard-hero {
    width: min(100% - 32px, 1180px);
  }

  .hero-content {
    padding: 84px 0 70px;
  }

  .hero-summary {
    font-size: 17px;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 62px 0;
  }

  .stat-band,
  .overview-grid,
  .overview-grid.reverse,
  .protocol-list,
  .figure-grid {
    grid-template-columns: 1fr;
  }

  .stat-band div {
    min-height: 96px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .news-list article {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .snapshot-row {
    grid-template-columns: 36px 40px minmax(0, 1fr);
  }

  .snapshot-row em {
    grid-column: 3;
    font-size: 22px;
  }

  .leaderboard-section {
    padding: 0 16px 64px;
  }

  .leaderboard-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .segmented-control {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    min-height: auto;
  }

  .segmented-control button {
    min-width: 0;
    min-height: 44px;
  }

  .board-actions button {
    flex: 1;
  }

  .card-head {
    grid-template-columns: 34px 42px minmax(0, 1fr);
  }

  .card-metrics {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-header,
  .leaderboard-hero,
  .leaderboard-toolbar,
  .score-cards,
  .site-footer {
    display: none;
  }

  body {
    background: var(--white);
  }

  .leaderboard-section {
    padding: 0;
  }

  .leaderboard-shell {
    display: block;
    box-shadow: none;
  }
}
