/* =========================================================
   PERCEPTION AI — Main Stylesheet
   ========================================================= */

:root {
  --bg:         #080b12;
  --bg2:        #0d1120;
  --surface:    #111827;
  --surface2:   #1a2236;
  --border:     #1e2d4a;
  --border2:    #2a3a5a;
  --text:       #e2e8f0;
  --muted:      #64748b;
  --muted2:     #94a3b8;
  --np:         #3b82f6;
  --np-bright:  #60a5fa;
  --np-glow:    rgba(59,130,246,0.35);
  --zn:         #8b5cf6;
  --zn-bright:  #a78bfa;
  --zn-glow:    rgba(139,92,246,0.35);
  --good:       #10b981;
  --warn:       #f59e0b;
  --bad:        #ef4444;
  --close-c:    #10b981;
  --mid-c:      #3b82f6;
  --long-c:     #8b5cf6;
  --accent:     #06b6d4;
  --amber:      #f59e0b;

  --hero-h: 100vh;
  --nav-h:  56px;
  --tab-h:  44px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.5;
}

/* ── SCROLLBAR ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */
#hero {
  position: relative;
  height: var(--hero-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

/* animated depth-gradient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  animation: orbFloat 12s ease-in-out infinite alternate;
  pointer-events: none;
}
.orb-1 { width: 800px; height: 600px; background: radial-gradient(ellipse, rgba(59,130,246,0.18) 0%, transparent 70%); top: -20%; left: -20%; animation-duration: 14s; }
.orb-2 { width: 600px; height: 700px; background: radial-gradient(ellipse, rgba(139,92,246,0.15) 0%, transparent 70%); bottom: -30%; right: -15%; animation-duration: 18s; animation-delay: -5s; }
.orb-3 { width: 400px; height: 400px; background: radial-gradient(ellipse, rgba(6,182,212,0.10) 0%, transparent 70%); top: 30%; left: 50%; animation-duration: 22s; animation-delay: -9s; }

@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(40px, -30px) scale(1.05); }
  66%  { transform: translate(-30px, 20px) scale(0.97); }
  100% { transform: translate(20px, -10px) scale(1.02); }
}

/* depth-map canvas */
#depth-canvas {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  pointer-events: none;
}

/* grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black, transparent);
}

/* scan line */
.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.5), rgba(6,182,212,0.7), rgba(59,130,246,0.5), transparent);
  animation: scan 8s linear infinite;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(59,130,246,0.4);
}
@keyframes scan {
  0%   { top: -2px; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* hero content */
.hero-content {
  position: relative;
  text-align: center;
  z-index: 10;
  padding: 0 24px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  padding: 6px 14px;
  border: 1px solid rgba(6,182,212,0.3);
  border-radius: 999px;
  background: rgba(6,182,212,0.06);
  animation: fadeUp 0.8s ease both;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
  animation: fadeUp 0.8s 0.1s ease both;
}
.hero-title .word-perception {
  display: block;
  background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title .word-ai {
  display: block;
  background: linear-gradient(135deg, var(--np-bright) 0%, var(--accent) 50%, var(--zn-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 40px rgba(59,130,246,0.4));
}

.hero-sub {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--muted2);
  max-width: 560px;
  margin: 0 auto 40px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeUp 0.8s 0.3s ease both;
}
.hbadge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid;
  letter-spacing: 0.05em;
}
.hbadge-blue  { background: rgba(59,130,246,0.1);  color: var(--np-bright); border-color: rgba(59,130,246,0.3); }
.hbadge-purple{ background: rgba(139,92,246,0.1); color: var(--zn-bright); border-color: rgba(139,92,246,0.3); }
.hbadge-cyan  { background: rgba(6,182,212,0.1);  color: #67e8f9; border-color: rgba(6,182,212,0.3); }
.hbadge-green { background: rgba(16,185,129,0.1); color: #6ee7b7; border-color: rgba(16,185,129,0.3); }
.hbadge-amber { background: rgba(245,158,11,0.1); color: #fcd34d; border-color: rgba(245,158,11,0.3); }

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.4s ease both;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--np);
  color: white;
  box-shadow: 0 0 30px rgba(59,130,246,0.3);
}
.btn-primary:hover {
  background: var(--np-bright);
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(59,130,246,0.5);
}
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--muted2);
  border: 1px solid var(--border2);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border-color: var(--border);
}

/* scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeUp 1s 1s ease both;
}
.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  animation: bounce 2s ease infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translate(0,0); opacity: 1; }
  50% { transform: rotate(45deg) translate(4px, 4px); opacity: 0.5; }
}

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

/* ═══════════════════════════════════════════════════
   STATS STRIP
   ═══════════════════════════════════════════════════ */
.stats-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  display: flex;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
}
.stat-item {
  padding: 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-right: 1px solid var(--border);
  min-width: 140px;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--np-bright), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-lbl { font-size: 0.7rem; color: var(--muted); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }

/* ═══════════════════════════════════════════════════
   MAIN TABS NAV
   ═══════════════════════════════════════════════════ */
#main-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(8,11,18,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  height: var(--nav-h);
}
.nav-logo {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--np-bright), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
}
.nav-tabs {
  display: flex;
  gap: 2px;
  align-items: center;
}
.nav-tab {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted2);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s;
  border: none;
  background: none;
  position: relative;
}
.nav-tab:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-tab.active { color: var(--np-bright); background: rgba(59,130,246,0.08); }
.nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: -17px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--np-bright);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--muted);
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--good);
  animation: pulse 2s ease infinite;
}

/* ═══════════════════════════════════════════════════
   TAB PANELS
   ═══════════════════════════════════════════════════ */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.content-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 36px 32px 60px;
}

/* ── Section headers ── */
.section-header { margin-bottom: 28px; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--np-bright);
  margin-bottom: 10px;
}
.section-tag::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: var(--np-bright);
}
.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.section-sub { font-size: 0.82rem; color: var(--muted2); max-width: 680px; }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}
.card-sm { padding: 16px 18px; }
.card-title {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 14px;
}

/* ── Grids ── */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.g3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.g4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 14px; }

/* ── Model cards ── */
.model-card { border-top: 2px solid; position: relative; overflow: hidden; }
.model-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 160px;
  pointer-events: none;
  opacity: 0.06;
  background: radial-gradient(ellipse at 50% 0%, var(--glow-c), transparent 70%);
}
.model-card.np { border-top-color: var(--np); --glow-c: var(--np); }
.model-card.zn { border-top-color: var(--zn); --glow-c: var(--zn); }
.model-name { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.model-desc { font-size: 0.75rem; color: var(--muted2); margin-bottom: 16px; }

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.metric-row:last-child { border-bottom: none; }
.metric-label { font-size: 0.77rem; color: var(--muted2); }
.metric-val { font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.mv-good { color: var(--good); }
.mv-warn { color: var(--warn); }
.mv-bad  { color: var(--bad); }
.metric-unit { font-size: 0.68rem; font-weight: 400; color: var(--muted); }

/* ── Versus strip ── */
.versus-grid {
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.vs-val {
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
.vs-val.np { background: rgba(59,130,246,0.1); color: var(--np-bright); text-align: right; }
.vs-val.zn { background: rgba(139,92,246,0.1); color: var(--zn-bright); }
.vs-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: center;
}

/* ── Improvement chips ── */
.improve-chips { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 14px; }
.ichip {
  padding: 12px;
  border-radius: 10px;
  background: rgba(16,185,129,0.07);
  border: 1px solid rgba(16,185,129,0.2);
  text-align: center;
}
.ichip-val { font-size: 1.3rem; font-weight: 800; color: var(--good); display: block; }
.ichip-lbl { font-size: 0.67rem; color: var(--muted); margin-top: 2px; }

/* ── Range table ── */
.rtable { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.rtable th {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.67rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.rtable td { padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.rtable tr:last-child td { border-bottom: none; }
.rtable tr.overall-row { background: rgba(59,130,246,0.04); }
.range-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
}
.rdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.num { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ── Methodology callout ── */
.info-callout {
  background: rgba(59,130,246,0.06);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.77rem;
  color: var(--muted2);
  line-height: 1.6;
  margin-bottom: 22px;
}
.info-callout strong { color: var(--text); }

/* ── Quick stats row ── */
.qstats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.qchip {
  padding: 10px 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}
.qchip-val { font-size: 1.25rem; font-weight: 800; line-height: 1; }
.qchip-lbl { font-size: 0.65rem; color: var(--muted); margin-top: 3px; }

/* ── Chart wrappers ── */
.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.chart-title { font-size: 0.85rem; font-weight: 700; margin-bottom: 4px; }
.chart-sub { font-size: 0.72rem; color: var(--muted); margin-bottom: 16px; }

/* ── Run history table ── */
.run-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.run-table th {
  padding: 9px 14px;
  text-align: left;
  font-size: 0.67rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.run-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.run-table tr:hover td { background: rgba(255,255,255,0.02); }
.run-table tr.canonical td { background: rgba(59,130,246,0.05); }
.run-table tr:last-child td { border-bottom: none; }
.mono { font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.75rem; }
.badge-mode {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
}
.badge-np { background: rgba(59,130,246,0.12); color: var(--np-bright); }
.badge-zn { background: rgba(139,92,246,0.12); color: var(--zn-bright); }

/* ── IQR bar ── */
.iqr-wrap { display: flex; flex-direction: column; gap: 3px; min-width: 120px; }
.iqr-nums { font-size: 0.7rem; color: var(--muted); display: flex; justify-content: space-between; }
.iqr-track { position: relative; height: 6px; background: var(--surface2); border-radius: 3px; }
.iqr-bar { position: absolute; height: 100%; border-radius: 3px; }
.iqr-median { position: absolute; width: 2px; height: 100%; background: white; border-radius: 1px; }

/* ── About / research panel ── */
.research-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.rcard-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.rcard h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.rcard p { font-size: 0.8rem; color: var(--muted2); line-height: 1.65; }
.rcard ul { list-style: none; }
.rcard ul li {
  font-size: 0.8rem;
  color: var(--muted2);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.rcard ul li:last-child { border-bottom: none; }
.rcard ul li::before { content: '→'; color: var(--np-bright); font-size: 0.8rem; }

/* ═══════════════════════════════════════════════════
   MODEL SELECTOR BAR
   ═══════════════════════════════════════════════════ */
#selector-strip {
  position: sticky;
  top: var(--nav-h);
  z-index: 190;
  background: rgba(13,17,32,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.selector-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  overflow-x: auto;
}
.selector-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
#model-selector-bar {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
}
.model-selector-item {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border2);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.15s;
  flex-shrink: 0;
}
.model-selector-item.active {
  border-color: var(--mc);
  background: color-mix(in srgb, var(--mc) 8%, var(--surface));
}
.ms-label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  cursor: pointer;
  user-select: none;
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
.ms-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: var(--mc, var(--np));
}
.ms-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ms-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
}
.ms-run-select {
  padding: 7px 10px;
  background: transparent;
  border: none;
  color: var(--muted2);
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  outline: none;
  max-width: 220px;
}
.ms-run-select:disabled { opacity: 0.35; cursor: default; }
.ms-run-select:not(:disabled):hover { color: var(--text); }
.ms-run-select option { background: #111827; }

/* ── Inline selector (expanded mode inside benchmark panel) ── */
.selector-card #model-selector-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ms-expanded {
  flex-direction: column;
  align-items: stretch;
  min-width: 220px;
  flex: 1 1 220px;
  padding: 4px 0 2px;
}
.ms-expanded .ms-label {
  border-right: none;
  border-bottom: 1px solid var(--border);
  padding: 8px 14px;
}
.ms-expanded .ms-run-select {
  padding: 8px 14px;
  max-width: none;
  width: 100%;
  font-size: 0.72rem;
}

/* ── Pending progress bar ── */
.pending-bar {
  width: 80%;
  height: 4px;
  background: var(--surface2);
  border-radius: 2px;
  margin: 0 auto;
  overflow: hidden;
}
.pending-bar-fill {
  height: 100%;
  width: 40%;
  border-radius: 2px;
  animation: pendingSlide 1.8s ease-in-out infinite;
  opacity: 0.7;
}
@keyframes pendingSlide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 32px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}
footer span { color: var(--muted2); }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .improve-chips { grid-template-columns: 1fr 1fr; }
  .research-grid { grid-template-columns: 1fr; }
  .content-wrap { padding: 24px 16px 40px; }
  .nav-inner { padding: 0 16px; }
  .stats-strip { padding: 0; }
  .stat-item { padding: 16px 20px; min-width: 120px; }
  .versus-grid { grid-template-columns: 1fr; }
}
