:root {
  --stats-bg-deep: #030612;
  --stats-bg-panel: rgba(8, 12, 27, 0.84);
  --stats-bg-panel-strong: rgba(11, 16, 34, 0.94);
  --stats-border: rgba(148, 163, 184, 0.16);
  --stats-border-strong: rgba(255, 255, 255, 0.12);
  --stats-text-soft: #9fb0ca;
  --stats-text-muted: #6f85a7;
  --stats-shadow: 0 24px 80px rgba(1, 4, 12, 0.58);
}

body.stats-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(34, 211, 238, 0.14), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(236, 72, 153, 0.16), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(139, 92, 246, 0.12), transparent 32%),
    linear-gradient(180deg, #02030a 0%, #040917 38%, #061026 100%);
  color: var(--text-primary);
}

.stats-main {
  position: relative;
  overflow: clip;
}

.stats-hero {
  position: relative;
  padding: 148px 0 72px;
}

.stats-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.stats-blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.7;
}

.stats-blob-a {
  width: 360px;
  height: 360px;
  top: 64px;
  left: -84px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.42), rgba(34, 211, 238, 0));
}

.stats-blob-b {
  width: 420px;
  height: 420px;
  top: -20px;
  right: -110px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.38), rgba(236, 72, 153, 0));
}

.stats-grid-glow {
  position: absolute;
  inset: 12% 4% auto;
  height: 420px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent);
  opacity: 0.34;
}

.stats-shell {
  position: relative;
  z-index: 1;
}

.stats-eyebrow,
.stats-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(165, 180, 252, 0.28);
  background: rgba(99, 102, 241, 0.12);
  color: #d6d9ff;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stats-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 32px;
  align-items: stretch;
  margin-top: 22px;
}

.stats-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.97;
  letter-spacing: -0.05em;
  max-width: 11ch;
}

.stats-subhead {
  max-width: 62ch;
  font-size: 18px;
  color: var(--stats-text-soft);
}

.stats-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.stats-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  padding: 0;
  color: var(--stats-text-muted);
  font-size: 13px;
}

.stats-trust li {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.stats-spotlight-frame {
  height: 100%;
  padding: 26px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(8, 12, 27, 0.92), rgba(5, 8, 18, 0.98)),
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 34%);
  box-shadow: var(--stats-shadow);
  position: relative;
  overflow: hidden;
}

.stats-spotlight-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(99, 102, 241, 0.18), transparent 36%, rgba(236, 72, 153, 0.16) 72%, transparent);
  opacity: 0.9;
  pointer-events: none;
}

.stats-kicker,
.stats-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stats-spotlight-time {
  position: relative;
  z-index: 1;
  margin: 12px 0 24px;
  color: var(--stats-text-soft);
}

.stats-hero-metric {
  position: relative;
  z-index: 1;
}

.stats-hero-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stats-hero-value {
  font-size: clamp(54px, 10vw, 108px);
  line-height: 0.92;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.stats-hero-label {
  font-size: 18px;
  font-weight: 700;
}

.stats-hero-desc {
  max-width: 28ch;
  color: var(--stats-text-soft);
  font-size: 14px;
}

.stats-wall-section {
  padding: 24px 0 86px;
}

.stats-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.stats-section-head h2 {
  margin: 14px 0 0;
  font-size: clamp(28px, 4vw, 50px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.stats-status-note {
  max-width: 34ch;
  color: var(--stats-text-soft);
  font-size: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stats-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 238px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--stats-border);
  background: linear-gradient(180deg, rgba(10, 15, 31, 0.92), rgba(6, 11, 23, 0.98));
  box-shadow: 0 20px 60px rgba(3, 7, 17, 0.42);
  overflow: hidden;
}

.stats-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: var(--accent-line, linear-gradient(90deg, #60a5fa, #22d3ee));
  opacity: 0.95;
}

.stats-card::after {
  content: '';
  position: absolute;
  top: -72px;
  right: -52px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: var(--accent-glow, radial-gradient(circle, rgba(96, 165, 250, 0.18), transparent 60%));
  pointer-events: none;
}

.stats-card-accent-cyan {
  --accent-line: linear-gradient(90deg, #22d3ee, #38bdf8);
  --accent-glow: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 60%);
}

.stats-card-accent-indigo {
  --accent-line: linear-gradient(90deg, #818cf8, #60a5fa);
  --accent-glow: radial-gradient(circle, rgba(129, 140, 248, 0.22), transparent 60%);
}

.stats-card-accent-amber {
  --accent-line: linear-gradient(90deg, #fbbf24, #fb7185);
  --accent-glow: radial-gradient(circle, rgba(251, 191, 36, 0.24), transparent 60%);
}

.stats-card-accent-pink {
  --accent-line: linear-gradient(90deg, #f472b6, #c084fc);
  --accent-glow: radial-gradient(circle, rgba(244, 114, 182, 0.22), transparent 60%);
}

.stats-card-accent-emerald {
  --accent-line: linear-gradient(90deg, #34d399, #22d3ee);
  --accent-glow: radial-gradient(circle, rgba(52, 211, 153, 0.2), transparent 60%);
}

.stats-card-accent-violet {
  --accent-line: linear-gradient(90deg, #c084fc, #818cf8);
  --accent-glow: radial-gradient(circle, rgba(192, 132, 252, 0.22), transparent 60%);
}

.stats-card-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.stats-card-timeframe {
  color: var(--stats-text-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats-card-label {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.stats-card-value {
  position: relative;
  z-index: 1;
  margin-top: auto;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.stats-card-desc {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  color: var(--stats-text-soft);
  font-size: 14px;
  line-height: 1.55;
  max-width: 28ch;
}

.stats-footnote {
  margin-top: 22px;
  color: var(--stats-text-muted);
  font-size: 13px;
}

.stats-skeleton-card,
.stats-skeleton-block {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  background-size: 220% 100%;
  animation: statsSkeletonPulse 1.5s ease-in-out infinite;
}

.stats-skeleton-card {
  min-height: 238px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background-color: rgba(8, 13, 26, 0.88);
}

.stats-skeleton-block {
  min-height: 260px;
  border-radius: 22px;
}

.stats-empty {
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(248, 113, 113, 0.18);
  background: rgba(35, 10, 17, 0.72);
  color: #f8d7da;
}

@keyframes statsSkeletonPulse {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@media (max-width: 1024px) {
  .stats-hero-grid,
  .stats-section-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .stats-section-head {
    display: grid;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .stats-hero {
    padding-top: 116px;
  }

  .stats-copy h1 {
    max-width: 10ch;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stats-card,
  .stats-skeleton-card {
    min-height: 214px;
  }

  .stats-spotlight-frame,
  .stats-card {
    padding: 20px;
  }

  .stats-trust {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stats-skeleton-card,
  .stats-skeleton-block {
    animation: none;
  }
}
