/* ── GFM Stats Block ─────────────────────────────────────────── */
.stats {
  position: relative;
  z-index: 0;
  overflow: hidden;
  background: var(--color-body);
}

.stats__bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.stats__bg-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.stats__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

.stats__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--overlay, 0.4));
  z-index: 2;
  pointer-events: none;
}

/* ── Content wrapper ─────────────────────────────────────────── */
.stats__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 96px);
  padding: clamp(60px, 8vh, 120px) 0;
}

/* ── Intro: headline + optional description ──────────────────── */
.stats__intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(24px, 3vw, 48px);
  padding: 0 var(--nav-px);
}

.stats__intro--centered {
  justify-content: center;
}

/* ── Headline ─────────────────────────────────────────────────── */
.stats__headline {
  flex: 0 0 55%;
  font-weight: 600;
  font-size: var(--type-h2-size);
  line-height: calc(var(--type-h2-lh) + 0.1);
  color: #d9d9d9;
  margin: 0;
  text-wrap: balance;
  text-transform: uppercase;
}

.stats__intro--centered .stats__headline {
  flex: 0 1 auto;
  max-width: 860px;
  text-align: center;
}

.stats__headline-highlight {
  color: var(--color-turquoise-500);
}

.stats__cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: clamp(20px, 2vw, 32px);
}

.stats__cta {
  width: fit-content;
}

/* ── Description ──────────────────────────────────────────────── */
.stats__description {
  flex: 1;
  font-family: var(--font-brand);
  font-size: var(--type-body-lg-size);
  font-weight: 400;
  line-height: var(--type-body-lg-lh);
  color: var(--color-white);
  margin: 0;
}

/* ── Stat cards grid ─────────────────────────────────────────── */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 0 clamp(1.25rem, 0.6667rem + 2.5926vw, 3rem);
}

.stats__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 2.2vw, 32px);
  border-left: 1px solid var(--color-stroke);
  min-height: clamp(160px, 18vw, 200px);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
  overflow: visible;
}

.stats__card-dot {
  display: block;
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--card-dot, #7239BF);
  pointer-events: none;
}

.stats__card-dot--top    { top: -6px;    left: -6px; }
.stats__card-dot--bottom { bottom: -6px; left: -6px; }

.stats__number {
  font-weight: 400;
  font-size: clamp(1.5rem, 0.7112rem + 3.3657vw, 4.75rem);
  line-height: 1.1;
  color: var(--color-white);
  white-space: nowrap;
  display: block;
  width: 100%;
  font-variant-numeric: tabular-nums;
}

.stats__label {
  font-family: var(--font-brand);
  font-size: var(--type-label-size);
  font-weight: 400;
  line-height: var(--type-label-lh);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: var(--type-label-tracking);
}

/* ── Tag label (turquoise, shown below description) ─────────── */
.stats__tag {
  font-family: var(--font-brand);
  font-size: var(--type-label-size);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-turquoise-500);
  text-transform: uppercase;
  letter-spacing: var(--type-label-tracking);
  margin: 16px 0 0;
}

/* ── Six-column modifier ─────────────────────────────────────── */
@media (min-width: 992px) {
  .stats--six .stats__card {
    flex: 0 0 16.6667%;
    max-width: 16.6667%;
  }

  .stats--six .stats__number {
    font-size: clamp(1.25rem, 2.9vw, 3.5rem);
  }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 991px) {
  .stats__intro {
    flex-direction: column;
  }

  .stats__headline {
    flex: none;
    max-width: 100%;
  }

  .stats__intro--centered .stats__headline {
    max-width: 100%;
    text-align: left;
  }

  .stats__cta-wrap {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 1rem;
  }

  .stats__card {
    justify-content: flex-start;
    gap: 10px;
  }

  .stats__card:nth-child(5) {
    grid-column: 1 / -1;
  }

  .stats__number {
    font-size: clamp(30px, 8vw, 44px);
    line-height: 1;
  }
}
