/* ─── STATS BENTO CARDS ─────────────────────────────────────────── */
#stats {
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat-bento-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 200px;
  background: transparent;
  cursor: default;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* rotating beam border */
.stat-bento-card::before {
  content: '';
  position: absolute;
  top: -100%; left: -100%;
  width: 300%; height: 300%;
  background: conic-gradient(from 0deg, transparent 75%, rgba(0, 192, 127, 0.65) 100%);
  animation: sbc-spin 6s linear infinite;
  opacity: 0.22;
  transition: opacity 0.4s;
  z-index: 0;
}

.stat-bento-card:hover::before {
  opacity: 0.75;
  animation-duration: 3s;
}

@keyframes sbc-spin {
  to { transform: rotate(360deg); }
}

/* glass inner — stessa trasparenza dei tre pilastri */
.stat-bento-inner {
  position: absolute;
  inset: 1px;
  border-radius: 17px;
  background: rgba(8, 11, 9, 0.62);
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  gap: 0.75rem;
}

.stat-bento-num {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.8rem, 3.5vw, 4rem);
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 0 30px rgba(255,255,255,0.06);
}

.stat-bento-num.emerald {
  color: var(--emerald);
  text-shadow:
    0 0 28px rgba(0,192,127,0.50),
    0 0 60px rgba(0,192,127,0.18);
}

.stat-bento-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  line-height: 1.4;
  max-width: 16ch;
}

@media (max-width: 768px) {
  .stat-bento-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-bento-card { min-height: 160px; }
}

.stat-item-num {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1;
}
.stat-item-num.accent { color: var(--emerald); }
.stat-item-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ─── STATS STRIP — GLOW ON NUMBERS ──────────────────────────── */
.stat-item-num {
  text-shadow: 0 0 32px rgba(255,255,255,0.07);
}
.stat-item-num.accent {
  text-shadow:
    0 0 30px rgba(0,192,127,0.35),
    0 0 60px rgba(0,192,127,0.12);
}
