/* ============================================
   STATS SECTION - STANDALONE
   Moved from hero for better visual hierarchy
   ============================================ */

.stats-section {
    padding: var(--spacing-4xl) 0 var(--spacing-5xl) 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

/* Subtle background glow */
.stats-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        rgba(0, 255, 170, 0.03) 0%,
        rgba(0, 255, 170, 0.01) 50%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}

.stats-section .container {
    position: relative;
    z-index: 2;
}

/* Stats Header */
.stats-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.stats-header h2 {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
    font-weight: var(--font-black);
    line-height: 1.1;
    letter-spacing: var(--tracking-tight);
    text-transform: uppercase;
    color: var(--white);
    background: linear-gradient(
        180deg,
        var(--white) 0%,
        rgba(255, 255, 255, 0.9) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-header h2 .accent {
    background: linear-gradient(
        90deg,
        var(--neon-green) 0%,
        #00FFD4 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    max-width: 1100px;
    margin: 0 auto;
}

/* Stat Card */
.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl) var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 255, 170, 0.05) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 255, 170, 0.3);
    transform: translateY(-4px);
}

.stat-card:hover::before {
    opacity: 1;
}

/* Stat Number */
.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: var(--font-black);
    line-height: 1;
    color: var(--neon-green);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

/* Stat Label */
.stat-label {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.8);
    font-weight: var(--font-medium);
    line-height: 1.4;
    margin: 0;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .stats-section {
        padding: var(--spacing-3xl) 0 var(--spacing-4xl) 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
        max-width: 700px;
    }

    .stat-card {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .stat-number {
        font-size: clamp(2rem, 4vw, 2.75rem);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .stats-section {
        padding: var(--spacing-3xl) 0;
    }

    .stats-header {
        margin-bottom: var(--spacing-2xl);
    }

    .stats-header h2 {
        font-size: clamp(var(--text-2xl), 7vw, var(--text-3xl));
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 var(--spacing-md);
    }

    .stat-card {
        padding: var(--spacing-xl) var(--spacing-md);
        border-radius: var(--radius-lg);
        min-height: 120px;
    }

    .stat-number {
        font-size: clamp(1.875rem, 8vw, 2.25rem);
        margin-bottom: var(--spacing-xs);
    }

    .stat-label {
        font-size: var(--text-sm);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .stat-card,
    .stat-card::before {
        transition: none;
    }

    .stat-card:hover {
        transform: none;
    }
}
