/* ============================================================
   Niyutam — Stats counter strip
   ============================================================ */

:root {
  --st-bg:        #0a0a0f;
  --st-accent:    #C8FF00;
  --st-label:     rgba(255, 255, 255, 0.60);
  --st-divider:   rgba(255, 255, 255, 0.10);
}

/* ── Section ─────────────────────────────────────────────── */
.stats {
  background: var(--st-bg);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem);
}

/* ── Grid ─────────────────────────────────────────────────── */
.stats__grid {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Item ─────────────────────────────────────────────────── */
.stats__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: clamp(1rem, 2.5vw, 1.5rem) 1rem;
  text-align: center;
}

/* Vertical dividers between items */
.stats__item:not(:first-child) {
  border-left: 1px solid var(--st-divider);
}

/* ── Number ───────────────────────────────────────────────── */
.stats__number {
  display: block;
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  line-height: 1;
  color: var(--st-accent);
  letter-spacing: -0.02em;
  /* prevents layout shift as digits change during animation */
  min-width: 3ch;
}

/* ── Label ────────────────────────────────────────────────── */
.stats__label {
  display: block;
  font-family: 'Satoshi', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--st-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

/* ── Mobile: 2-column grid, no dividers ──────────────────── */
@media (max-width: 640px) {
  .stats__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .stats__item {
    padding: 1.75rem 0.75rem;
  }

  /* Remove all side dividers */
  .stats__item:not(:first-child) {
    border-left: none;
  }

  /* Horizontal divider between rows */
  .stats__item:nth-child(n+3) {
    border-top: 1px solid var(--st-divider);
  }

  /* Vertical divider between the two columns */
  .stats__item:nth-child(even) {
    border-left: 1px solid var(--st-divider);
  }

  /* Odd item count: last item spans full width, centred */
  .stats__item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-left: none;
  }
}
