/*
 * Evalon — AI Model Rankings & Evaluation
 * Copyright © 2026 Keith Baker. All rights reserved.
 * Unauthorised reproduction or distribution of this file,
 * via any medium, is strictly prohibited.
 */

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0a0a0a;
  --surface:     #111111;
  --surface-2:   #171717;
  --surface-3:   #1e1e1e;
  --border:      rgba(255,255,255,0.07);
  --border-2:    rgba(255,255,255,0.12);
  --border-3:    rgba(255,255,255,0.18);
  --text:        #e5e5e5;
  --text-2:      #737373;
  --text-3:      #404040;
  --accent:      #f59e0b;
  --accent-2:    #fbbf24;
  --accent-dim:  rgba(245,158,11,0.10);
  --accent-glow: rgba(245,158,11,0.15);
  --green:       #22c55e;
  --green-dim:   rgba(34,197,94,0.10);
  --red:         #ef4444;
  --red-dim:     rgba(239,68,68,0.10);
  --blue:        #60a5fa;
  --blue-dim:    rgba(96,165,250,0.10);
  --purple:      #a78bfa;
  --purple-dim:  rgba(167,139,250,0.10);
  --r-xs:        4px;
  --r-sm:        6px;
  --r:           8px;
  --r-lg:        12px;
  --r-xl:        16px;
  --transition:  0.14s ease;
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --mono:        'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  --nav-h:       56px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}

main { flex: 1; }
a { color: inherit; text-decoration: none; }

/* ===== LAYOUT ===== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10,10,10,0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-brand {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand-text  { font-weight: 800; }
.brand-accent { color: var(--accent); font-weight: 700; }

.nav-links { display: flex; list-style: none; gap: 2px; align-items: center; }

.nav-link {
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--r-sm);
  transition: all var(--transition);
}

.nav-link:hover  { color: var(--text); background: var(--surface-2); }
.nav-link.active { color: var(--text); background: var(--surface-2); }

.nav-toggle { display: none; flex-direction: column; gap: 4px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--text); }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--border); padding: 36px 0 24px; margin-top: 80px; }

.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }

.footer-brand { font-size: 0.9rem; font-weight: 700; }
.footer-tagline { color: var(--text-2); font-size: 0.8rem; }

.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-2); font-size: 0.8rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }

.footer-disclaimer { color: var(--text-3); font-size: 0.72rem; max-width: 500px; line-height: 1.6; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  font-family: var(--font);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary  { background: var(--accent); color: #000; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }

.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border-2); }
.btn-secondary:hover { border-color: var(--border-3); background: var(--surface-3); }

.btn-outline { background: transparent; color: var(--accent); border-color: rgba(245,158,11,0.3); }
.btn-outline:hover { background: var(--accent-dim); }

.btn-ghost { background: transparent; color: var(--text-2); border-color: transparent; }
.btn-ghost:hover { color: var(--text); }

.btn-sm { padding: 5px 11px; font-size: 0.74rem; }
.btn-lg { padding: 9px 20px; font-size: 0.875rem; }

/* ===== USE-CASE FILTER BAR ===== */
.use-case-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.use-case-filter-label {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-3);
  white-space: nowrap;
  margin-right: 4px;
}

.uc-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
  white-space: nowrap;
}

.uc-btn:hover {
  color: var(--text);
  border-color: var(--border-2);
  background: var(--surface-2);
}

.uc-btn.active {
  color: #000;
  background: var(--accent);
  border-color: var(--accent);
}

.uc-btn[data-filter="all"].active {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border-2);
}

.uc-empty {
  display: none;
  padding: 40px 0;
  text-align: center;
  font-size: 0.845rem;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}

.uc-empty.visible { display: block; }

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.page-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.page-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 7px;
}

.page-title .accent { color: var(--accent); }

.page-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 440px;
}

.header-stats { display: flex; gap: 0; flex-shrink: 0; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }

.header-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px;
  border-right: 1px solid var(--border);
  min-width: 80px;
}

.header-stat:last-child { border-right: none; }
.header-stat .num { font-size: 1.4rem; font-weight: 800; font-family: var(--mono); letter-spacing: -1px; line-height: 1; color: var(--text); }
.header-stat .lbl { font-size: 0.65rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; margin-top: 3px; }

/* ===== MAIN DATA TABLE ===== */
.data-table-section { padding: 0; }

.data-table-wrap {
  overflow-x: auto;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.data-table thead tr {
  background: var(--surface);
  border-bottom: 1px solid var(--border-2);
}

.data-table thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-3);
  white-space: nowrap;
}

.data-table thead th:first-child { width: 44px; text-align: center; }
.data-table thead th.num-col { text-align: right; }

.data-table tbody tr {
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
}

.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: var(--surface); }

/* Gold/silver/bronze left accent */
.data-table tbody tr.rank-1 { border-left: 2px solid #f59e0b; }
.data-table tbody tr.rank-2 { border-left: 2px solid #9ca3af; }
.data-table tbody tr.rank-3 { border-left: 2px solid #b45309; }
.data-table tbody tr:not(.rank-1):not(.rank-2):not(.rank-3) { border-left: 2px solid transparent; }

.data-table td {
  padding: 13px 14px;
  vertical-align: middle;
  white-space: nowrap;
}

.data-table td:first-child { text-align: center; }

/* Rank cell */
.dt-rank {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-3);
}

.dt-rank.r1 { color: #f59e0b; }
.dt-rank.r2 { color: #9ca3af; }
.dt-rank.r3 { color: #b45309; }

/* Model cell */
.dt-model { display: flex; align-items: center; gap: 10px; min-width: 200px; }

.dt-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.08);
}

.dt-name     { font-weight: 600; font-size: 0.845rem; color: var(--text); }
.dt-provider { font-size: 0.68rem; color: var(--text-3); margin-top: 1px; }

/* Score cell with micro-bar */
.dt-score-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 72px; }
.dt-score-num  { font-family: var(--mono); font-weight: 800; font-size: 0.9rem; color: var(--accent); }
.dt-score-bar  { width: 60px; height: 3px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.dt-score-fill { height: 100%; background: var(--accent); border-radius: 99px; transition: width 0.8s ease; }

/* Numeric cells */
.dt-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-2);
  text-align: right;
}

.dt-cost { font-family: var(--mono); font-size: 0.78rem; color: var(--text-2); text-align: right; }

/* Badge cell */
.dt-badges { display: flex; gap: 4px; flex-wrap: wrap; }

/* Arrow */
.dt-arrow { color: var(--text-3); font-size: 0.72rem; transition: color var(--transition); }
.data-table tbody tr:hover .dt-arrow { color: var(--accent); }

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: var(--r-xs);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.badge-flagship    { background: rgba(245,158,11,0.12); color: #f59e0b; border: 1px solid rgba(245,158,11,0.2); }
.badge-efficient   { background: var(--green-dim);      color: var(--green);  border: 1px solid rgba(34,197,94,0.2); }
.badge-open        { background: var(--blue-dim);       color: var(--blue);   border: 1px solid rgba(96,165,250,0.2); }
.badge-proprietary { background: rgba(245,158,11,0.12); color: #f59e0b; border: 1px solid rgba(245,158,11,0.2); }
.badge-multimodal  { background: var(--purple-dim);     color: var(--purple); border: 1px solid rgba(167,139,250,0.2); }

/* ===== ACTION CARDS ===== */
.action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.action-card {
  display: flex;
  flex-direction: column;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--transition), background var(--transition);
  text-decoration: none;
  color: inherit;
}

.action-card:hover { border-color: var(--border-2); background: var(--surface-2); }

.action-card-icon { font-size: 1.4rem; margin-bottom: 14px; line-height: 1; }

.action-card-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }

.action-card-desc { font-size: 0.8rem; color: var(--text-2); line-height: 1.6; flex: 1; margin-bottom: 18px; }

.action-card-link { font-size: 0.78rem; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 5px; }

/* ===== METHODOLOGY STRIP ===== */
.bench-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }

.bench-item { background: var(--surface); padding: 16px 18px; }

.bench-name  { font-size: 0.78rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.bench-desc  { font-size: 0.7rem; color: var(--text-2); line-height: 1.55; }
.bench-weight { font-size: 0.65rem; font-weight: 700; color: var(--accent); font-family: var(--mono); margin-top: 7px; }

/* ===== SECTION CHROME ===== */
.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 16px;
}

.section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  margin-bottom: 4px;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text);
}

/* ===== MODEL GRID (models page) ===== */
.models-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }

.model-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 12px; transition: border-color var(--transition); }
.model-card:hover { border-color: var(--border-2); }

.model-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.model-card-identity { flex: 1; min-width: 0; }

.provider-dot { width: 34px; height: 34px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 800; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.08); }

.model-name     { font-size: 0.9rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-provider { font-size: 0.68rem; color: var(--text-3); }

.model-card-badges { display: flex; gap: 4px; flex-wrap: wrap; }
.model-card-desc { font-size: 0.78rem; color: var(--text-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.model-card-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--surface-2); border-radius: var(--r-sm); padding: 12px; }
.mini-metric-label { font-size: 0.6rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; margin-bottom: 2px; }
.mini-metric-value { font-size: 0.8rem; font-weight: 700; font-family: var(--mono); color: var(--text); }

.model-card-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 10px; }
.overall-score-wrap  { display: flex; align-items: center; gap: 6px; }
.overall-score-value { font-size: 1.2rem; font-weight: 800; color: var(--accent); font-family: var(--mono); }
.overall-score-label { font-size: 0.6rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }

/* ===== PODIUM ===== */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 48px; align-items: end; }

.podium-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px 16px; text-align: center; position: relative; transition: border-color var(--transition); }
.podium-card:hover { border-color: var(--border-2); }
.podium-card.rank-1 { border-color: rgba(245,158,11,0.25); padding-top: 28px; }

.podium-rank { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; font-weight: 800; border: 2px solid var(--surface); }
.podium-rank.gold   { background: #f59e0b; color: #000; }
.podium-rank.silver { background: #6b7280; color: #fff; }
.podium-rank.bronze { background: #92400e; color: #fff; }

.podium-provider-icon { width: 38px; height: 38px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 800; margin: 0 auto 10px; border: 1px solid rgba(255,255,255,0.08); }
.podium-model-name  { font-size: 0.845rem; font-weight: 700; margin-bottom: 2px; }
.podium-provider    { font-size: 0.68rem; color: var(--text-3); margin-bottom: 12px; }
.podium-score       { font-size: 1.8rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 2px; font-family: var(--mono); }
.podium-score-label { font-size: 0.6rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== LEADERBOARD ===== */
.leaderboard-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); }

.leaderboard-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; background: var(--surface); }

.leaderboard-table thead th { padding: 10px 13px; text-align: left; font-size: 0.63rem; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-3); font-weight: 700; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.leaderboard-table thead th a { color: var(--text-3); display: inline-flex; align-items: center; gap: 4px; transition: color var(--transition); }
.leaderboard-table thead th a:hover { color: var(--accent); }
.leaderboard-table thead th.active a { color: var(--accent); }

.leaderboard-table tbody tr { border-bottom: 1px solid var(--border); transition: background var(--transition); }
.leaderboard-table tbody tr:last-child { border-bottom: none; }
.leaderboard-table tbody tr:hover { background: var(--surface-2); }
.leaderboard-table td { padding: 10px 13px; white-space: nowrap; }

.rank-cell    { width: 40px; text-align: center; font-family: var(--mono); font-size: 0.68rem; font-weight: 700; color: var(--text-3); }
.rank-medal   { font-size: 0.9rem; }
.score-cell   { font-family: var(--mono); font-weight: 700; }
.score-cell.highlight { color: var(--accent); }
.sort-icon    { opacity: 0.3; font-size: 0.7em; }
.active .sort-icon { opacity: 1; color: var(--accent); }

.model-name-cell   { display: flex; align-items: center; gap: 9px; min-width: 180px; }
.model-table-icon  { width: 26px; height: 26px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 800; border: 1px solid rgba(255,255,255,0.08); flex-shrink: 0; }
.model-table-name  { font-weight: 600; font-size: 0.82rem; }
.model-table-provider { font-size: 0.65rem; color: var(--text-3); }

/* ===== COMPARE PAGE ===== */
.compare-selector { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin-bottom: 28px; }
.compare-vs { font-size: 0.65rem; font-weight: 800; color: var(--text-3); text-align: center; letter-spacing: 2px; text-transform: uppercase; font-family: var(--mono); }

.compare-select-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; }
.compare-select-wrap label { display: block; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-3); margin-bottom: 8px; }
.compare-select-wrap select { width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text); padding: 7px 28px 7px 10px; font-size: 0.82rem; font-family: inherit; cursor: pointer; outline: none; transition: border-color var(--transition); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' fill='%23404040' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.compare-select-wrap select:focus { border-color: var(--accent); }

.compare-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-panel  { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; }
.compare-panel-header { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }

.compare-model-icon { width: 42px; height: 42px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 800; border: 1px solid rgba(255,255,255,0.08); flex-shrink: 0; }
.compare-model-name { font-size: 0.95rem; font-weight: 700; }
.compare-model-provider { font-size: 0.72rem; color: var(--text-3); }

.compare-metric-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.compare-metric-row:last-child { border-bottom: none; }
.compare-metric-name  { font-size: 0.78rem; color: var(--text-2); }
.compare-metric-value { font-size: 0.82rem; font-weight: 700; font-family: var(--mono); }
.compare-metric-value.winner { color: var(--green); }
.compare-metric-value.loser  { color: var(--text-3); }

.compare-chart-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; margin-top: 16px; }

/* ===== DETAIL PAGE ===== */
.detail-hero { padding: 44px 0; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.detail-header { display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.detail-icon { width: 60px; height: 60px; border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; border: 1px solid rgba(255,255,255,0.08); flex-shrink: 0; }
.detail-identity { flex: 1; }
.detail-model-name { font-size: clamp(1.5rem, 2.5vw, 2.2rem); font-weight: 800; letter-spacing: -0.5px; line-height: 1.1; margin-bottom: 6px; }
.detail-provider { font-size: 0.845rem; color: var(--text-3); margin-bottom: 10px; }
.detail-rank-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; background: var(--accent-dim); border: 1px solid rgba(245,158,11,0.2); border-radius: var(--r-sm); font-size: 0.7rem; font-weight: 700; color: var(--accent); }
.detail-overall { text-align: center; flex-shrink: 0; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 26px; background: var(--surface); }
.detail-overall-value { font-size: 3rem; font-weight: 800; color: var(--accent); line-height: 1; font-family: var(--mono); }
.detail-overall-label { font-size: 0.6rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 700; margin-top: 3px; }
.detail-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.detail-section { margin-bottom: 28px; }
.detail-section-title { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-3); margin-bottom: 12px; padding-bottom: 7px; border-bottom: 1px solid var(--border); }

.benchmark-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.benchmark-name { font-size: 0.72rem; color: var(--text-2); width: 90px; flex-shrink: 0; }
.benchmark-bar-wrap { flex: 1; background: var(--surface-3); border-radius: 99px; height: 4px; overflow: hidden; }
.benchmark-bar { height: 100%; border-radius: 99px; background: var(--accent); transition: width 1s ease; }
.benchmark-score { font-size: 0.72rem; font-weight: 700; font-family: var(--mono); width: 38px; text-align: right; }

.tag-list { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { padding: 3px 9px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-xs); font-size: 0.7rem; color: var(--text-2); }
.tag.tag-green { background: var(--green-dim); border-color: rgba(34,197,94,0.2); color: var(--green); }
.tag.tag-red   { background: var(--red-dim);   border-color: rgba(239,68,68,0.2); color: var(--red); }
.tag.tag-blue  { background: var(--blue-dim);  border-color: rgba(96,165,250,0.2); color: var(--blue); }

.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; margin-bottom: 12px; }
.info-card-title { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-3); margin-bottom: 10px; }
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 0.78rem; }
.info-row:last-child { border-bottom: none; }
.info-row-label { color: var(--text-2); }
.info-row-value { font-weight: 600; font-family: var(--mono); font-size: 0.78rem; }

/* ===== FILTERS ===== */
.filter-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.filter-group { display: flex; align-items: center; gap: 6px; }
.filter-label { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-3); white-space: nowrap; }
.filter-select { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text); padding: 4px 22px 4px 8px; font-size: 0.78rem; font-family: inherit; cursor: pointer; outline: none; transition: border-color var(--transition); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' fill='%23404040' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 7px center; }
.filter-select:focus { border-color: var(--accent); }
.filter-count { margin-left: auto; font-size: 0.7rem; color: var(--text-3); }

/* ===== MISC ===== */
.progress-bar-wrap { background: var(--surface-3); border-radius: 99px; height: 4px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 99px; background: var(--accent); transition: width 0.8s ease; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; }
.card:hover { border-color: var(--border-2); }
.card-link { display: block; transition: border-color var(--transition); }
.card-link:hover { text-decoration: none; }

.section    { padding: 56px 0; }
.section-sm { padding: 32px 0; }
.divider    { height: 1px; background: var(--border); margin: 24px 0; }

.empty-state { text-align: center; padding: 64px 24px; }
.empty-state-icon { font-size: 2rem; margin-bottom: 12px; opacity: 0.2; }
.empty-state-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 5px; }
.empty-state-text { font-size: 0.8rem; color: var(--text-2); }

[data-tooltip] { position: relative; cursor: help; }
[data-tooltip]::after { content: attr(data-tooltip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--surface-3); border: 1px solid var(--border-2); color: var(--text); padding: 4px 9px; border-radius: var(--r-sm); font-size: 0.68rem; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity var(--transition); z-index: 50; }
[data-tooltip]:hover::after { opacity: 1; }

.chart-container { position: relative; width: 100%; }

/* ===== STAT GRID (about/misc) ===== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.stat-card  { background: var(--surface); padding: 18px; text-align: center; }
.stat-label { font-size: 0.62rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 700; margin-bottom: 5px; }
.stat-value { font-size: 1.9rem; font-weight: 800; color: var(--accent); font-family: var(--mono); letter-spacing: -2px; line-height: 1; }
.stat-sub   { font-size: 0.68rem; color: var(--text-2); margin-top: 3px; }

/* ===== NEWS ===== */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.news-card { display: flex; flex-direction: column; gap: 9px; padding: 18px; text-decoration: none; transition: border-color var(--transition); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.news-card:hover { border-color: var(--border-2); }
.news-card-meta { display: flex; align-items: center; gap: 8px; }
.news-source-badge { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent); background: var(--accent-dim); border: 1px solid rgba(245,158,11,0.2); border-radius: var(--r-xs); padding: 2px 7px; }
.news-date { font-size: 0.65rem; color: var(--text-3); margin-left: auto; font-family: var(--mono); }
.news-title { font-size: 0.845rem; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-summary { font-size: 0.74rem; color: var(--text-2); line-height: 1.6; flex: 1; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.news-read-more { font-size: 0.7rem; font-weight: 600; color: var(--accent); margin-top: auto; }

/* ===== PROVIDER SECTIONS (models page) ===== */
.provider-section { margin-bottom: 44px; }
.provider-header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-left: 2px solid var(--accent); border-radius: var(--r-lg); margin-bottom: 12px; flex-wrap: wrap; }
.provider-header-icon { width: 32px; height: 32px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 800; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.08); }
.provider-header-info { flex: 1; min-width: 0; }
.provider-header-name { font-size: 0.875rem; font-weight: 800; }
.provider-header-count { font-size: 0.66rem; color: var(--text-3); }
.provider-header-badges { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.provider-header-top-score { text-align: right; flex-shrink: 0; }
.provider-top-score-label { display: block; font-size: 0.58rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; margin-bottom: 1px; }
.provider-top-score-value { font-size: 1.3rem; font-weight: 800; color: var(--accent); font-family: var(--mono); }

/* ===== GUIDE PAGE ===== */
.guide-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
  padding: 48px 0 80px;
}

.guide-toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
}

.guide-toc-title {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-3);
  margin-bottom: 12px;
}

.guide-toc-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }

.guide-toc-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 9px;
  border-radius: var(--r-sm);
  font-size: 0.78rem;
  color: var(--text-2);
  transition: all var(--transition);
  text-decoration: none;
}

.guide-toc-link:hover       { color: var(--text); background: var(--surface-2); }
.guide-toc-link.active      { color: var(--accent); background: var(--accent-dim); }
.guide-toc-num { font-size: 0.62rem; font-weight: 700; color: var(--text-3); font-family: var(--mono); width: 18px; flex-shrink: 0; }

.guide-content { min-width: 0; }

.guide-section { margin-bottom: 56px; scroll-margin-top: calc(var(--nav-h) + 24px); }

.guide-section-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.guide-section-num {
  font-size: 0.6rem;
  font-weight: 800;
  font-family: var(--mono);
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--r-xs);
  padding: 2px 7px;
  letter-spacing: 1px;
}

.guide-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text);
  margin-bottom: 12px;
}

.guide-section-lead {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 22px;
}

.guide-prose {
  font-size: 0.845rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 16px;
}

.guide-prose strong { color: var(--text); font-weight: 700; }

/* Callouts */
.guide-callout {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  border: 1px solid;
  margin: 20px 0;
}

.guide-callout-info    { background: var(--blue-dim);  border-color: rgba(96,165,250,0.2); }
.guide-callout-tip     { background: var(--green-dim); border-color: rgba(34,197,94,0.2); }
.guide-callout-warning { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.2); }

.guide-callout-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; line-height: 1; }
.guide-callout-text { font-size: 0.8rem; line-height: 1.7; color: var(--text); }
.guide-callout-text strong { font-weight: 700; }

/* Training steps */
.guide-steps { display: flex; flex-direction: column; gap: 0; }

.guide-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0 16px;
  position: relative;
}

.guide-step:not(:last-child) .guide-step-line { content: ''; display: block; width: 1px; background: var(--border); position: absolute; left: 20px; top: 36px; bottom: -8px; }

.guide-step-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  font-family: var(--mono);
  color: var(--accent);
  flex-shrink: 0;
  z-index: 1;
}

.guide-step-body { padding-bottom: 28px; }
.guide-step-title { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 5px; padding-top: 8px; }
.guide-step-desc  { font-size: 0.8rem; color: var(--text-2); line-height: 1.75; }
.guide-step-desc strong { color: var(--text); }

/* Glossary */
.guide-term-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

.guide-term {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  transition: border-color var(--transition);
}

.guide-term:hover { border-color: var(--border-2); }
.guide-term-word { font-size: 0.82rem; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.guide-term-def  { font-size: 0.76rem; color: var(--text-2); line-height: 1.65; }
.guide-term-example { font-size: 0.72rem; color: var(--text-3); font-style: italic; margin-top: 6px; font-family: var(--mono); }

/* Model type cards */
.guide-type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

.guide-type-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
}

.guide-type-icon  { font-size: 1.4rem; margin-bottom: 10px; }
.guide-type-title { font-size: 0.875rem; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.guide-type-desc  { font-size: 0.76rem; color: var(--text-2); line-height: 1.65; }
.guide-type-eg    { font-size: 0.68rem; color: var(--text-3); margin-top: 7px; font-family: var(--mono); }

/* Benchmark explainer table */
.guide-bench-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.guide-bench-table thead th { background: var(--surface-2); padding: 9px 14px; text-align: left; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-3); font-weight: 700; border-bottom: 1px solid var(--border); }
.guide-bench-table tbody td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.guide-bench-table tbody tr:last-child td { border-bottom: none; }
.guide-bench-table tbody tr:hover td { background: var(--surface); }
.guide-bench-name  { font-weight: 700; color: var(--text); white-space: nowrap; }
.guide-bench-score { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); font-weight: 700; }

/* Guide CTA */
.guide-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  flex-wrap: wrap;
}

.guide-cta-title { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.guide-cta-desc  { font-size: 0.8rem; color: var(--text-2); }
.guide-cta-actions { display: flex; gap: 8px; flex-shrink: 0; }


/* ===== EXPLAINER BANNER ===== */
.explainer-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 36px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  margin: 28px 0;
}

.explainer-heading {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.25;
}

.explainer-heading::before {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  background: var(--accent);
  border-radius: 99px;
  margin-bottom: 14px;
}

.explainer-body {
  font-size: 0.845rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 10px;
}

.explainer-body:last-child { margin-bottom: 0; }

.explainer-pills {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.explainer-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.explainer-pill-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  line-height: 1;
}

.explainer-pill-title {
  font-size: 0.845rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.explainer-pill-desc {
  font-size: 0.74rem;
  color: var(--text-2);
  line-height: 1.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { position: static; display: none; }
  .guide-term-grid { grid-template-columns: 1fr; }
  .guide-type-grid { grid-template-columns: 1fr; }
  .action-grid { grid-template-columns: 1fr 1fr; }
  .bench-strip { grid-template-columns: repeat(3, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .compare-panels { grid-template-columns: 1fr; }
  .compare-selector { grid-template-columns: 1fr; }
  .compare-vs { display: none; }
  .podium { grid-template-columns: 1fr; }
  .explainer-banner { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
}

@media (max-width: 640px) {
  .action-grid { grid-template-columns: 1fr; }
  .bench-strip { grid-template-columns: repeat(2, 1fr); }
  .models-grid { grid-template-columns: 1fr; }
  .news-grid   { grid-template-columns: 1fr; }
  .page-header-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .header-stats { width: 100%; }
  .header-stat { flex: 1; }
  .navbar-inner { position: relative; }
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); flex-direction: column; padding: 8px; gap: 2px; z-index: 99; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
}
