.platform-stats-section {
  position: relative;
  width: 100%;
  padding: 70px 24px 30px;
  box-sizing: border-box;
  background: transparent;
  z-index: 10;
}

.stats-container {
  max-width: 1240px;
  margin: 0 auto;
}

.stats-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.stats-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid var(--brand-blue-border);
  color: var(--brand-blue);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: livePulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
  display: inline-block;
}

@keyframes livePulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.stats-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  line-height: 1.25;
}

.stats-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

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

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s,
              box-shadow 0.2s;
}

.stat-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 12px 28px -4px rgba(29, 78, 216, 0.12);
}

[data-theme=dark] .stat-card:hover {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 14px 32px -4px rgba(0, 0, 0, 0.55);
}

.stat-card-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(28px);
  opacity: 0.15;
  transition: opacity 0.3s;
}

.stat-card:hover .stat-card-glow {
  opacity: 0.28;
}

.stat-glow-blue { background: #2563eb; }
.stat-glow-indigo { background: #6366f1; }
.stat-glow-green { background: #10b981; }
.stat-glow-amber { background: #f59e0b; }

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 16px;
}

.stat-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.stat-card:hover .stat-icon-wrapper {
  transform: scale(1.06);
}

.stat-icon-blue {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}
.stat-icon-indigo {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}
.stat-icon-green {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}
.stat-icon-amber {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.stat-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid transparent;
}

.stat-tag-blue {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #dbeafe;
}
[data-theme=dark] .stat-tag-blue {
  background: rgba(37, 99, 235, 0.16);
  color: #93c5fd;
  border-color: rgba(37, 99, 235, 0.3);
}

.stat-tag-indigo {
  background: #eef2ff;
  color: #4338ca;
  border-color: #e0e7ff;
}
[data-theme=dark] .stat-tag-indigo {
  background: rgba(99, 102, 241, 0.16);
  color: #c7d2fe;
  border-color: rgba(99, 102, 241, 0.3);
}

.stat-tag-green {
  background: #ecfdf5;
  color: #047857;
  border-color: #d1fae5;
}
[data-theme=dark] .stat-tag-green {
  background: rgba(16, 185, 129, 0.16);
  color: #a7f3d0;
  border-color: rgba(16, 185, 129, 0.3);
}

.stat-tag-amber {
  background: #fffbeb;
  color: #b45309;
  border-color: #fef3c7;
}
[data-theme=dark] .stat-tag-amber {
  background: rgba(245, 158, 11, 0.16);
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.3);
}

.stat-counter-wrap {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin: 10px 0 6px;
}

.stat-counter {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-unit {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-blue);
  margin-left: 2px;
}

.stat-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .platform-stats-section {
    padding: 50px 20px 20px;
  }
}

@media (max-width: 640px) {
  .platform-stats-section {
    padding: 40px 16px 16px;
  }
  .stats-header {
    margin-bottom: 28px;
  }
  .stats-title {
    font-size: 24px;
  }
  .stats-subtitle {
    font-size: 13.5px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stat-card {
    padding: 18px 16px;
    border-radius: 14px;
  }
  .stat-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .stat-counter {
    font-size: 28px;
  }
  .stat-unit {
    font-size: 18px;
  }
  .stat-label {
    font-size: 13.5px;
  }
  .stat-desc {
    font-size: 11.5px;
  }
}

@media (max-width: 380px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
