
#stats {
  background: var(--grad-brand);
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-20);
}

.stats-bg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8);
  align-items: center;
}

.stats-grid > * + * {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item {
  text-align: center;
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  transition: transform var(--tr-spring);
}

.stat-item:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
}

.stat-number {
  font-size: clamp(2.5rem, 4vw, var(--fs-6xl));
  font-weight: 900;
  color: var(--clr-white);
  line-height: 1;
  font-family: var(--ff-heading);
  letter-spacing: -0.02em;
}

.stat-suffix {
  font-size: 0.5em;
  font-weight: 700;
  vertical-align: super;
  color: rgba(255, 255, 255, 0.8);
}

.stat-label {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  max-width: 120px;
  line-height: 1.4;
}

.stat-bar {
  width: 40px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
}

.stat-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: var(--clr-white);
  border-radius: var(--radius-full);
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.stat-item.is-counted .stat-bar::after {
  width: 100%;
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-4);
  }

  .stats-grid > * + * {
    border-left: none;
  }

  .stats-grid > *:nth-child(odd) + * {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-6);
  }

  .stats-grid > *:nth-child(odd) + * {
    border-left: none;
  }

  .stat-number {
    font-size: 2.5rem;
  }
}
