:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-elev: #ffffff;
  --bg-elev-2: #f6f7fb;
  --bg-soft: #f7f8fb;
  --bg-tint: #eef0fb;
  --border: #e6e8ef;
  --border-strong: #d3d7e2;
  --text: #1b1b1b;
  --text-soft: #2f2f37;
  --muted: #5a6275;
  --muted-2: #8a92a4;
  --accent: #2c39e0;
  --accent-strong: #1b22b8;
  --accent-soft: #e4e7fb;
  --accent-warm: #6a51e0;
  --good: #137f4a;
  --good-soft: #e3f3eb;
  --warn: #a86a14;
  --warn-soft: #fcefd9;
  --bad: #b73a3a;
  --bad-soft: #fbe7e7;
  --grad-1: #2c39e0;
  --grad-2: #6a51e0;
  --shadow-sm: 0 1px 2px rgba(20, 24, 50, 0.04);
  --shadow-md: 0 2px 8px rgba(20, 24, 50, 0.05), 0 1px 2px rgba(20, 24, 50, 0.04);
  --shadow-lg: 0 8px 28px rgba(20, 24, 50, 0.08), 0 2px 6px rgba(20, 24, 50, 0.04);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--text); font-weight: 600; }

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-elev-2);
  color: var(--text-soft);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ----------- Header ----------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 30;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  transform: rotate(45deg);
  border-radius: 3px;
  flex-shrink: 0;
}
.brand-title {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 16px;
}
.brand-sub { color: var(--muted); font-size: 13px; }
.site-header nav { display: flex; gap: 24px; }
.site-header nav a {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
}
.site-header nav a:hover { color: var(--accent); text-decoration: none; }

/* ----------- Hero ----------- */
.hero-section {
  padding: 84px 0 72px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(106, 81, 224, 0.08), transparent 65%),
    radial-gradient(700px 480px at -5% 10%, rgba(44, 57, 224, 0.07), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 64px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.hero-title {
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.08;
  margin: 0 0 20px;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--text);
}
.grad {
  background: linear-gradient(95deg, var(--grad-1), var(--grad-2));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.lede {
  color: var(--text-soft);
  font-size: 17px;
  max-width: 640px;
  line-height: 1.65;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 80ms, background 120ms, border-color 120ms, box-shadow 120ms;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--text);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--bg);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 26px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
  box-shadow: var(--shadow-md);
}
.hero-stats li b {
  display: block;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 2px;
}
.hero-stats li span { color: var(--muted); font-size: 12.5px; }

/* ----------- Sections ----------- */
section { padding: 80px 0; }
.section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 10px;
}
.section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--text);
}
.section-lede {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 760px;
  margin: 0 0 36px;
  line-height: 1.6;
}

/* ----------- Task accordion (Home) ----------- */
.task-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.acc-item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 120ms, box-shadow 120ms;
}
.acc-item:hover { border-color: var(--border-strong); }
.acc-item.open {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.acc-key {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid rgba(44, 57, 224, 0.18);
  padding: 4px 9px;
  border-radius: 6px;
  flex-shrink: 0;
}
.acc-headtext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.acc-name { font-weight: 700; font-size: 15.5px; color: var(--text); }
.acc-tagline { color: var(--muted); font-size: 13.5px; }
.acc-chevron {
  color: var(--muted-2);
  font-size: 14px;
  transition: transform 150ms;
  flex-shrink: 0;
}
.acc-item.open .acc-chevron { transform: rotate(180deg); color: var(--accent); }
.acc-panel { border-top: 1px solid var(--border); background: var(--bg-soft); }
.acc-panel-inner { padding: 20px; }
.acc-desc { margin: 0 0 16px; color: var(--text-soft); font-size: 14.5px; max-width: 720px; }
.acc-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.scope-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-pill {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.status-leaderboard_live {
  background: var(--good-soft);
  color: var(--good);
  border: 1px solid rgba(19, 127, 74, 0.25);
}
.status-data_available,
.status-coming_soon {
  background: var(--bg-elev-2);
  color: var(--muted);
  border: 1px solid var(--border-strong);
}
.status-complete {
  background: var(--good-soft);
  color: var(--good);
  border: 1px solid rgba(19, 127, 74, 0.2);
}
.status-in_progress {
  background: var(--warn-soft);
  color: var(--warn);
  border: 1px solid rgba(168, 106, 20, 0.25);
}

/* ----------- task meta grid ----------- */
.task-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
  font-size: 13px;
  margin: 0;
  max-width: 640px;
}
.task-meta.wide { max-width: none; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.task-meta dt { color: var(--muted-2); font-weight: 500; }
.task-meta dd { margin: 0; color: var(--text-soft); }
.task-cta { font-size: 13px; color: var(--accent); font-weight: 600; }
.task-cta:hover { text-decoration: underline; }

/* ----------- Inner pages (task.html) ----------- */
.page { padding: 40px 0 80px; }
.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}
.back-link:hover { color: var(--accent); text-decoration: none; }
.page-head { margin-bottom: 32px; }
.page-head-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.page-head h1 {
  font-size: 32px;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
  color: var(--text);
  font-weight: 700;
}
.page-tagline {
  font-size: 17px;
  color: var(--text-soft);
  font-weight: 500;
  margin: 0 0 8px;
}
.page-head .muted { max-width: 760px; margin: 0; }

/* ----------- Coming soon panel ----------- */
.coming-soon {
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: 16px;
  background: var(--bg-soft);
  padding: 56px 32px;
}
.coming-soon-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.coming-soon h2 {
  font-size: 22px;
  margin: 0 0 10px;
  color: var(--text);
  letter-spacing: -0.015em;
}
.coming-soon p {
  color: var(--text-soft);
  max-width: 520px;
  margin: 0 auto 24px;
}
.coming-soon .cta-row { justify-content: center; margin-top: 0; }

/* ----------- Leaderboard ----------- */
.board-caption {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 16px;
}
.board-caption b { color: var(--text); font-weight: 700; }

.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; background: var(--bg-elev); }
th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  white-space: nowrap;
  color: var(--text-soft);
}
th {
  background: var(--bg-soft);
  color: var(--muted);
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  user-select: none;
}
th[data-sort]:hover { color: var(--accent); }
th .sort-indicator { display: inline-block; margin-left: 4px; color: var(--accent); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg-soft); }
.model-name {
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.model-vendor { color: var(--muted-2); font-size: 12px; font-weight: 400; }
.runs-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid rgba(44, 57, 224, 0.2);
  padding: 2px 8px;
  border-radius: 999px;
}

.expand-cell { cursor: pointer; user-select: none; white-space: nowrap; }
.expand-cell-inner { display: inline-flex; align-items: center; gap: 6px; }
.expand-cell:hover .expand-btn { color: var(--accent); }
.expand-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  font-family: inherit;
}

.run-detail-row > td {
  background: var(--bg-soft);
  padding: 0;
  border-bottom: 1px solid var(--border);
}
.run-detail {
  padding: 16px 20px 20px;
  border-left: 3px solid var(--accent);
  margin-left: 8px;
}
.run-detail-head { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.run-detail-table {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.run-detail-table th { background: var(--bg-elev-2); font-size: 11px; }
.run-detail-table td, .run-detail-table th { padding: 9px 14px; font-size: 13px; }
.run-detail-table tbody tr:hover { background: var(--bg-soft); }
.rank-badge {
  display: inline-block;
  min-width: 22px;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
}
.rank-1 { color: #b8860b; }
.rank-2 { color: #6b7280; }
.rank-3 { color: #b16f3a; }
.acc-bar {
  display: inline-block;
  width: 60px;
  height: 4px;
  background: var(--bg-elev-2);
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.acc-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
}
.loading { text-align: center; color: var(--muted); padding: 32px; }

#inprogress-wrap { margin-top: 32px; }
#inprogress-wrap h3 { font-size: 15px; margin: 0 0 4px; color: var(--text); font-weight: 600; }

/* ----------- Docs page ----------- */
.prose { padding: 56px 0 80px; max-width: 860px; }
.prose h1 {
  font-size: 34px;
  margin: 0 0 18px;
  letter-spacing: -0.025em;
  color: var(--text);
  font-weight: 700;
}
.prose h2 {
  font-size: 21px;
  margin-top: 44px;
  letter-spacing: -0.01em;
  color: var(--text);
  font-weight: 700;
}
.prose p, .prose dd, .prose li {
  color: var(--text-soft);
  line-height: 1.65;
}
.prose dt { font-weight: 600; margin-top: 14px; color: var(--text); }
.prose dd { margin: 4px 0 0 0; }

.docs-task-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}
.docs-task {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
}
.docs-task-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.docs-task-head h3 {
  font-size: 17px;
  margin: 0;
  margin-right: auto;
  color: var(--text);
  font-weight: 700;
}
.docs-task-tagline {
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
}
.docs-task p { margin: 0 0 14px; }
.docs-task .task-meta {
  border-top: 1px dashed var(--border-strong);
  padding-top: 14px;
  margin-bottom: 14px;
}

.categories-table { margin-top: 16px; }
.categories-table th, .categories-table td { white-space: normal; vertical-align: top; }
.pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pill-present {
  background: var(--bad-soft);
  color: var(--bad);
  border: 1px solid rgba(183, 58, 58, 0.2);
}
.pill-absent {
  background: var(--good-soft);
  color: var(--good);
  border: 1px solid rgba(19, 127, 74, 0.2);
}

/* ----------- Footer ----------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--muted);
  font-size: 13px;
  background: var(--bg);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ----------- Responsive ----------- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  section { padding: 56px 0; }
  .hero-section { padding: 52px 0 44px; }
}
@media (max-width: 640px) {
  th, td { padding: 9px 12px; font-size: 13px; }
  .site-header nav { gap: 16px; }
  .site-header .container { flex-wrap: wrap; gap: 8px; }
  .brand-sub { display: none; }
  .acc-head { flex-wrap: wrap; gap: 8px 10px; }
  .acc-headtext { flex-basis: 100%; order: 3; }
  .task-meta { grid-template-columns: 1fr; }
}
