/* ==========================================================================
   Stats — "Experience You Can Measure". Loosely based on schoolofmotion.com's
   "We are the training layer for your entire team" section (centered
   eyebrow/heading/description pattern), but deliberately NOT copied as a
   contained rounded card the way theirs is — this one is full-bleed edge to
   edge (no side margins/rounded corners), and the reference's CTA button is
   replaced with a 4-up stat row (our own addition, not in the reference).
   ========================================================================== */

.stats {
  position: relative;
  background-color: #0c0c10;
  background-image: radial-gradient(circle at 50% 0%, rgba(91, 42, 134, 0.16), transparent 40%),
    radial-gradient(circle at 12% 100%, rgba(255, 122, 26, 0.08), transparent 30%);
  padding-block: 120px;
}

/* Thin gradient hairlines top + bottom — same technique as the reference's
   final-cta section (a 1px horizontal gradient bar, transparent at both
   ends), recolored to our brand instead of their yellow/blue. */
.stats::before,
.stats::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91, 42, 134, 0.5), rgba(255, 122, 26, 0.5), transparent);
}

.stats::before {
  top: 0;
}

.stats::after {
  bottom: 0;
}

.stats__intro {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
  text-align: center;
}

.stats__title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.stats__desc {
  margin-top: var(--space-5);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.stats__grid {
  margin-top: 80px;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stats__item {
  text-align: center;
  padding-inline: var(--space-4);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.stats__item:first-child {
  border-left: none;
}

.stats__number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* The number rises from below while fading in (1.5s) — its own reveal,
   independent of the label below it. Overrides the shared base.css timing
   (which is opacity 620ms / transform 680ms) with the slower, deliberate
   motion asked for here specifically. */
.stats__number[data-reveal] {
  transition: opacity 1500ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
    transform 1500ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms);
}

.stats__number svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.stats__label {
  margin-top: var(--space-3);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

/* The label now rises + fades in lockstep with the number above it — same
   start time, same 1.5s motion (not the earlier "wait for the number to
   settle, fade only" behavior). */
.stats__label[data-reveal] {
  transition: opacity 1500ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
    transform 1500ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .stats {
    padding-block: var(--space-20);
  }
  .stats__title {
    font-size: 36px;
  }
  .stats__grid {
    margin-top: var(--space-12);
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-10) 0;
  }
  /* With two per row, the left border only makes sense on the 2nd column. */
  .stats__item {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }
  .stats__item:nth-child(odd) {
    border-left: none;
  }
}

@media (max-width: 767px) {
  .stats {
    padding-block: var(--space-16);
  }
  .stats__title {
    font-size: 28px;
  }
  .stats__desc {
    font-size: var(--fs-body);
  }
  .stats__number {
    font-size: 40px;
  }
}
