@import url("https://fonts.cdnfonts.com/css/sf-pro-display");

:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e6e6eb;
  --accent: #0066cc;
  --accent-hover: #004499;
  --max-w: 1120px;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 251, 253, 0.88);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.site-nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.site-nav .brand {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
}

.site-nav .brand:hover {
  text-decoration: none;
}

.site-nav .links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav .links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.site-nav .links a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* Hero */
.hero {
  text-align: center;
  padding: 76px 0 64px;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  line-height: 1.1;
}

.hero .tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 32px;
  font-weight: 400;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  border-color: #d2d2d7;
  text-decoration: none;
}

/* Sections */
section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

section:first-of-type {
  border-top: none;
}

h2 {
  font-size: 1.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 12px;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 820px;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-card .value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 6px;
}

.stat-card .label {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.35;
}

/* Figure */
.figure-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-top: 24px;
}

.figure-wrap img,
.figure-wrap object {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.figure-wrap .pdf-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.figure-wrap .pdf-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.figure-caption {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}

/* Tables */
.table-section {
  margin-top: 40px;
}

.table-caption {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.5;
}

.table-caption em {
  font-style: italic;
  color: var(--ink);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 720px;
}

.results-table thead th {
  background: #f5f5f7;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.results-table thead tr:first-child th {
  border-bottom: none;
  padding-bottom: 4px;
}

.results-table thead tr:nth-child(2) th {
  padding-top: 4px;
  font-weight: 500;
  color: var(--muted);
}

.results-table tbody th {
  text-align: left;
  font-weight: 500;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: var(--surface);
  position: sticky;
  left: 0;
  z-index: 1;
}

.results-table td {
  padding: 8px 8px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.results-table td.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.results-table tr.oracle th,
.results-table tr.oracle td {
  border-top: 2px solid var(--ink);
}

.results-table tr.ours th {
  font-weight: 700;
}

.results-table tr.ours td {
  font-weight: 600;
}

.results-table tbody tr:last-child th,
.results-table tbody tr:last-child td {
  border-bottom: none;
}

.results-table.table-blue tbody tr:not(.oracle):not(.ours) {
  background: rgba(0, 102, 204, 0.02);
}

.results-table.table-red tbody tr:not(.ours) {
  background: rgba(220, 53, 69, 0.02);
}

/* Eval axes compact table */
.axes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 16px;
}

.axes-table th,
.axes-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.axes-table th {
  background: #f5f5f7;
  font-weight: 600;
}

.axes-table tr:last-child td,
.axes-table tr:last-child th {
  border-bottom: none;
}

.axes-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

/* Citation */
.citation-box {
  background: #f5f5f7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
  margin-top: 16px;
}

/* Footer */
.site-footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-nav .links {
    display: none;
  }

  .hero {
    padding: 48px 0 40px;
  }

  section {
    padding: 40px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }
}
