:root {
  --ink: #121826;
  --muted: #5c6573;
  --line: #d7dde7;
  --paper: #f5f7fa;
  --card: #ffffff;
  --blue: #1f6fbf;
  --orange: #e85a24;
  --shadow: 0 18px 50px rgba(15, 23, 36, 0.08);
  --radius: 16px;
  --font: "Sora", "Segoe UI", sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background:
    radial-gradient(1100px 480px at 8% -8%, rgba(31, 111, 191, 0.12), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(232, 90, 36, 0.10), transparent 52%),
    linear-gradient(180deg, #fbfcfe 0%, var(--paper) 50%, #eef2f7 100%);
  min-height: 100vh;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-links a { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--orange); }

.logo {
  display: block;
  height: 40px;
  width: auto;
}

.logo-hero {
  display: block;
  width: min(420px, 88%);
  height: auto;
  margin: 0 auto 1.1rem;
  animation: rise 0.7s ease both;
}

.hero {
  padding: 1.6rem 0 1.2rem;
}

.paper-hero {
  text-align: center;
  padding: 2rem 0 1.8rem;
}

.paper-hero h1 {
  margin: 0 auto 0.9rem;
  max-width: min(100%, 52rem);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.6vw, 2.05rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
  animation: rise 0.75s ease 0.05s both;
}

.paper-hero h1 .title-line {
  display: block;
  white-space: nowrap;
}

.authors {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 600;
  animation: rise 0.75s ease 0.1s both;
}

.authors a { color: var(--ink); }
.authors a:hover { color: var(--blue); }

.affil {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  animation: rise 0.75s ease 0.14s both;
}

.affil-note {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  animation: rise 0.75s ease 0.18s both;
}

.eyebrow {
  display: inline-block;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.35rem;
  animation: rise 0.75s ease 0.22s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.btn-primary {
  color: white;
  background: linear-gradient(120deg, var(--blue), #2f8adf);
  box-shadow: 0 10px 24px rgba(31, 111, 191, 0.22);
}

.btn-secondary {
  color: var(--ink);
  background: var(--card);
  border-color: var(--line);
}

.section {
  padding: 0.4rem 0 1.8rem;
}

.section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.prose {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.7;
}

.prose.lead {
  margin-bottom: 1rem;
}

.metric-c { color: var(--blue); font-weight: 700; }
.metric-p { color: var(--orange); font-weight: 700; }

.metric-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0 0 1rem;
}

.metric-block {
  border-radius: var(--radius);
  padding: 1.05rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}

.metric-block h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.metric-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.metric-block-c { border-top: 3px solid var(--blue); }
.metric-block-p { border-top: 3px solid var(--orange); }

.findings {
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.65;
}

.findings li { margin: 0.45rem 0; }
.findings strong { color: var(--ink); }

.figure {
  margin: 0.4rem 0 0.2rem;
}

.figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.figure figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.stat-list {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.7;
}

.stat-list strong { color: var(--ink); }

.bib {
  margin: 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0f1724;
  color: #e8eef8;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.55;
  box-shadow: var(--shadow);
}

.panel {
  background: var(--card);
  border: 1px solid rgba(215, 221, 231, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.2rem 1.25rem;
  margin: 1.2rem 0 2.5rem;
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.8rem 1rem;
  margin-bottom: 1rem;
}

.panel-head h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  font-family: var(--font);
}

.meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.chip {
  appearance: none;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.chip[aria-pressed="true"] {
  color: white;
  border-color: transparent;
  background: linear-gradient(120deg, var(--blue), #2f8adf);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

th, td {
  padding: 0.72rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: #f8fafc;
  position: sticky;
  top: 0;
}

th.num, td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
  font-size: 0.92rem;
}

th.sortable {
  cursor: pointer;
  user-select: none;
}

th.sortable:hover { color: var(--blue); }

th[aria-sort="descending"]::after,
th[aria-sort="ascending"]::after {
  content: " ▾";
  color: var(--orange);
}

th[aria-sort="ascending"]::after { content: " ▴"; }

tr:last-child td { border-bottom: none; }

tbody tr:hover { background: rgba(31, 111, 191, 0.04); }

.model {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
}

.dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex: 0 0 auto;
}

.dot.gemini { background: #6b5ce7; }
.dot.gpt { background: #10a37f; }
.dot.qwen { background: #2f6bff; }
.dot.glm { background: #1aa06d; }
.dot.internvl { background: #d4a017; }
.dot.llava { background: #d45d8c; }

.rank {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.footer {
  padding: 0.5rem 0 2.4rem;
  color: var(--muted);
  font-size: 0.86rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .logo { height: 32px; }
  .metric-row { grid-template-columns: 1fr; }
  .nav { align-items: flex-start; flex-direction: column; }
  .paper-hero h1 { max-width: none; }
}
