/* =========================================================
   STATISTICS — compact metric cards
   Standardized with content section: title 22px, body 15.5px
   ========================================================= */

.statistics-section {
  position: relative;
  padding: 40px 0 72px;
  background: var(--stats-bg, #FAFCFD);
  overflow: hidden;
  isolation: isolate;
}

.statistics-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(21, 159, 218, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 0%, transparent 80%);
  opacity: 0.5;
}

.statistics-section__inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Section head ---------- */
.statistics-section__head {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

.statistics-section__eyebrow {
  color: var(--orange);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.statistics-section__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.005em;
  line-height: 1.35;
  margin: 0;
}

.statistics-section__sub {
  margin: 10px 0 0;
  color: var(--gray);
  font-size: 14.5px;
  line-height: 1.55;
}

/* =========================================================
   GRID
   ========================================================= */
.statistics-grid {
  display: grid;
  grid-template-columns: repeat(var(--stats-cols, 4), minmax(0, 1fr));
  gap: 14px;
}

/* =========================================================
   CARD
   ========================================================= */
.stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px 16px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(21, 43, 69, 0.04);
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    box-shadow   0.35s ease,
    transform    0.35s cubic-bezier(0.34, 1.56, 0.64, 1);

  opacity: 0;
  transform: translateY(14px);
}

.statistics-section.is-visible .stat-card {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity      0.55s cubic-bezier(0.34, 1.3, 0.64, 1),
    transform    0.55s cubic-bezier(0.34, 1.3, 0.64, 1),
    border-color 0.3s ease,
    box-shadow   0.35s ease;
}

.statistics-section.is-visible .stat-card:nth-child(1) { transition-delay: 0.05s; }
.statistics-section.is-visible .stat-card:nth-child(2) { transition-delay: 0.12s; }
.statistics-section.is-visible .stat-card:nth-child(3) { transition-delay: 0.19s; }
.statistics-section.is-visible .stat-card:nth-child(4) { transition-delay: 0.26s; }
.statistics-section.is-visible .stat-card:nth-child(5) { transition-delay: 0.33s; }
.statistics-section.is-visible .stat-card:nth-child(6) { transition-delay: 0.40s; }

/* Accent line */
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stat-card:hover::before { transform: scaleX(1); }

.stat-card:hover {
  border-color: #C7D2DC;
  box-shadow: 0 8px 24px rgba(21, 43, 69, 0.08);
  transform: translateY(-2px);
}

/* ---------- Icon ---------- */
.stat-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 0 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-tint) 0%, #DCF0FA 100%);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
}
.stat-card:hover .stat-card__icon {
  transform: scale(1.06);
  background: linear-gradient(135deg, #DCF0FA 0%, #C7E8F8 100%);
}

/* ---------- Number ---------- */
.stat-card__number {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 6px;
  font-variant-numeric: tabular-nums;
}

.stat-card__value {
  display: inline-block;
  min-width: 1ch;
}

.stat-card__value.is-static {
  font-size: 0.72em;
  letter-spacing: -0.01em;
}

.stat-card__suffix {
  color: var(--orange);
  font-weight: 800;
}

.stat-card__prefix {
  color: var(--navy);
}

/* ---------- Label ---------- */
.stat-card__label {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
  max-width: 140px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .statistics-section { padding: 36px 0 64px; }
  .statistics-section__head { margin-bottom: 30px; }
  .statistics-section__title { font-size: 20px; }
  .stat-card { padding: 20px 14px 18px; }
  .stat-card__number { font-size: 30px; }
  .stat-card__icon { width: 36px; height: 36px; font-size: 16px; margin-bottom: 10px; }
}

@media (max-width: 820px) {
  .statistics-section { padding: 28px 0 52px; }
  .statistics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .stat-card { padding: 18px 12px 16px; }
  .stat-card__number { font-size: 26px; margin-bottom: 5px; }
  .stat-card__icon { width: 32px; height: 32px; font-size: 15px; margin-bottom: 8px; border-radius: 8px; }
  .stat-card__label { font-size: 9.5px; letter-spacing: 0.06em; }
}

@media (max-width: 480px) {
  .statistics-section { padding: 24px 0 44px; }
  .statistics-grid { gap: 8px; }
  .stat-card { padding: 16px 10px 14px; border-radius: 10px; }
  .stat-card__number { font-size: 22px; margin-bottom: 4px; }
  .stat-card__icon { width: 28px; height: 28px; font-size: 13px; margin-bottom: 6px; border-radius: 7px; }
  .stat-card__label { font-size: 9px; letter-spacing: 0.04em; max-width: 100px; }
  .statistics-section__title { font-size: 18px; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .statistics-section__bg { display: none; }
  .stat-card,
  .stat-card::before,
  .stat-card__icon {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .stat-card:hover { transform: none; }
}