/* ── Stats bar ───────────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 48px 0;
  border-bottom: 1px solid oklch(24% 0.035 270);
  margin-bottom: 16px;
}

.stat-item {
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--radius-lg);
  background: oklch(15% 0.025 270 / 60%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition),
    background var(--transition);
}

.stat-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, oklch(74% 0.2 45 / 5%) 0%, transparent 70%);
  pointer-events: none;
}

:root.light .stat-item {
  background: oklch(100% 0 0 / 70%);
}

:root.light .stat-item::before {
  background: radial-gradient(ellipse at 50% 0%, oklch(58% 0.22 45 / 4%) 0%, transparent 70%);
}

/* Gradient accent line at bottom */
.stat-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  border-radius: 1px;
  opacity: 0.6;
  transition:
    opacity var(--transition),
    left var(--transition),
    right var(--transition);
}

.stat-item:nth-child(1)::after {
  background: var(--blue);
}
.stat-item:nth-child(2)::after {
  background: var(--emerald);
}
.stat-item:nth-child(3)::after {
  background: var(--violet);
}
.stat-item:nth-child(4)::after {
  background: var(--amber);
}

.stat-item:hover {
  border-color: oklch(74% 0.2 45 / 25%);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
  background: oklch(15% 0.025 270 / 80%);
}

:root.light .stat-item:hover {
  background: oklch(100% 0 0 / 90%);
}

.stat-item:hover::after {
  opacity: 1;
  left: 5%;
  right: 5%;
}

.stat-value {
  font-size: 36px;
  font-weight: 800;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 1;
}

.stat-item:nth-child(1) .stat-value {
  color: var(--blue);
  text-shadow: 0 0 20px oklch(74% 0.2 45 / 15%);
}
.stat-item:nth-child(2) .stat-value {
  color: var(--emerald);
  text-shadow: 0 0 20px oklch(74% 0.2 165 / 15%);
}
.stat-item:nth-child(3) .stat-value {
  color: var(--violet);
  text-shadow: 0 0 20px oklch(70% 0.24 20 / 15%);
}
.stat-item:nth-child(4) .stat-value {
  color: var(--amber);
  text-shadow: 0 0 20px oklch(83% 0.19 85 / 15%);
}

.stat-value .accent {
  color: var(--accent);
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 500;
}
