/* SOTA Tracker — minimal 2026 */

:root {
  --bg: #08090c;
  --bg-elevated: #0f1117;
  --bg-hover: #161a24;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #f4f5f7;
  --text-muted: #8b92a8;
  --text-dim: #5c6378;
  --accent: #fc840c;
  --accent-2: #fcb40c;
  --accent-3: #e46c0c;
  --accent-dim: rgba(252, 132, 12, 0.15);
  --accent-glow: rgba(252, 132, 12, 0.38);
  --warn: #fbbf24;
  --radius: 14px;
  --radius-sm: 8px;
  --font: "Instrument Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1120px;
  --header-h: 64px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-glow), transparent 55%),
    radial-gradient(ellipse 40% 30% at 100% 0%, rgba(252, 156, 12, 0.14), transparent 50%);
  z-index: 0;
}

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

a:hover {
  text-decoration: underline;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 80px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 -24px;
  padding: 0 24px;
  background: rgba(8, 9, 12, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

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

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px var(--accent-glow));
  flex-shrink: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  box-shadow: 0 0 24px var(--accent-glow);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn:hover {
  background: var(--bg-hover);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-primary {
  background: var(--accent-dim);
  border-color: rgba(252, 132, 12, 0.35);
  color: var(--accent);
}

.btn-primary:hover {
  background: rgba(252, 132, 12, 0.22);
}

.hero {
  padding: 48px 0 28px;
  animation: rise 0.6s ease-out both;
}

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

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-lead {
  margin: 0 0 8px;
  max-width: 52ch;
  font-size: 1.0625rem;
  color: var(--text-muted);
}

.hero-sub {
  margin: 0;
  max-width: 52ch;
  font-size: 0.9375rem;
  color: var(--text-dim);
}

.sync-foot {
  margin: 16px 0 0;
  padding: 0 4px;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.sync-foot strong {
  color: var(--text-muted);
  font-weight: 500;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 28px;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.meta-row strong {
  color: var(--text-muted);
  font-weight: 500;
}

/* Why TrackSOTA */
.why {
  margin: 4px 0 36px;
}
.why h2 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--text);
}
.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.why-list li {
  position: relative;
  padding-left: 14px;
}
.why-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Grouped tasks */
.task-groups {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
}

.task-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.task-group-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  min-width: 42px;
  margin-right: 4px;
}

.task-pill {
  padding: 10px 16px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.task-pill:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}

.task-pill.is-active {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 32px var(--accent-glow);
}

.task-pill small {
  margin-left: 6px;
  opacity: 0.65;
  font-weight: 400;
}

.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  animation: rise 0.6s 0.14s ease-out both;
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}

.panel-head h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.panel-desc {
  margin: 6px 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 48ch;
}

.source-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.lb-table th {
  text-align: left;
  padding: 12px 18px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.lb-table th.num,
.lb-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.lb-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

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

.lb-table tbody tr {
  transition: background 0.12s;
}

.lb-table tbody tr:hover {
  background: var(--bg-hover);
}

.rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.rank.top {
  background: var(--accent-dim);
  color: var(--accent);
}

.model-cell__inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.model-thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.model-thumb--placeholder {
  display: inline-block;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.model-cell strong {
  display: block;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.model-cell span {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.value-cell {
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 500;
}

.delta {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.75rem;
  font-weight: 500;
}

.delta.up {
  color: var(--accent);
}

.delta.down {
  color: #f87171;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.badge-source {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.badge-source[data-source="lmarena"] {
  border-color: rgba(251, 191, 24, 0.25);
  color: var(--warn);
}

.badge-source[data-source="pwc"] {
  border-color: rgba(129, 140, 248, 0.25);
  color: #a5b4fc;
}

.badge-source[data-source="top3d"] {
  border-color: rgba(252, 156, 12, 0.35);
  color: #fcb40c;
}

.badge-source--link {
  text-decoration: none;
}

.badge-source--link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pricing-tag {
  display: inline-block;
  margin-left: 0.35rem;
  color: var(--text-muted);
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
}

.badge-open {
  margin-left: 6px;
  color: var(--accent);
  border-color: rgba(252, 132, 12, 0.25);
}

.link-quiet {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-left: 8px;
}

.link-quiet:hover {
  color: var(--accent);
}

.site-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .lb-table th:nth-child(4),
  .lb-table td:nth-child(4) {
    display: none;
  }

  .site-header {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 24px;
  }
}
