/* ================= STATS SECTION ================= */
/* Self-contained on purpose: nothing in here touches selectors from
   style.css, and style.css doesn't need to know this file exists. */

.stats-section {
  position: relative;
  background: #fff;
  padding: 120px 32px 140px;
}

.stats-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.stats-heading {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.25;
  color: #16161a;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 128px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.stats-heading.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.stats-heading b {
  font-weight: 600;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 28px 26px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #16161a;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.stats-grid.is-visible .stat-card {
  opacity: 1;
  transform: translateY(0);
}
.stats-grid.is-visible .stat-card:nth-child(1) { transition-delay: 0s; }
.stats-grid.is-visible .stat-card:nth-child(2) { transition-delay: .08s; }
.stats-grid.is-visible .stat-card:nth-child(3) { transition-delay: .16s; }
.stats-grid.is-visible .stat-card:nth-child(4) { transition-delay: .24s; }

.stat-card-icon {
  position: absolute;
  right: -50px;
  bottom: -40px;
  width: 256px;
  height: 256px;
  pointer-events: none;
  opacity: 0.16;
  will-change: transform;
}
.stat-card-icon svg { width: 100%; height: 100%; display: block; }
.stat-card-icon svg * { stroke: #fff !important; }

.stat-top {
  position: relative;
  z-index: 1;
}

.stat-number {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}

.stat-label {
  font-size: 17px;
  font-weight: 500;
  margin-top: 6px;
}

.stat-footer {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(22,22,26,0.75);
}
.stat-footer b { font-weight: 700; color: #16161a; }
.stat-footer a {
  color: #16161a;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity .2s;
}
.stat-footer a:hover { 
    color: #ffffff;
    opacity: 0.9; }

.stat-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.stat-pink   { background: #FE6C93; }
.stat-purple { background: #B469FF; }
.stat-cyan   { background: #00d4ff; }
.stat-green  { background: #A3E635; }

@media (max-width: 980px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-heading { font-size: 36px; }
}
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stats-heading { font-size: 32px; }
  .stats-section { padding: 80px 40px 100px; }
}