/* ============================================================
   Stats Section
   ============================================================ */

.stats-section {
    background-color: var(--color-white);
    padding: 44px 120px;
}

.stats-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
    max-width: 1200px;
    margin: 0 auto;
}

.stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    flex: 1 0 0;
    overflow: hidden;
}

.stats-number {
    color: var(--color-text);
    width: 100%;
}

.stats-label {
    color: var(--color-text-muted);
    width: 100%;
    line-height: 1.4;
    font-weight: 400;
}

/* ============================================================
   Mobile Slider (hidden on desktop)
   ============================================================ */

.stats-slider {
    display: none;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1170px) {
    .stats-section {
        padding: 32px 16px 24px;
    }

    /* Hide desktop grid */
    .stats-grid {
        display: none;
    }

    /* Show slider */
    .stats-slider {
        display: block;
    }

    .stats-slides {
        position: relative;
        overflow: hidden;
    }

    .stats-slide {
        display: none;
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }

    .stats-slide.is-active {
        display: flex;
    }

    .stats-slide .stats-item {
        flex: 0 0 160px;
        width: 160px;
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 8px;
        overflow: hidden;
    }

    .stats-slide .stats-number {
        font-family: 'Neo Sans Pro', sans-serif;
        font-size: 36px;
        line-height: 42px;
        letter-spacing: -1px;
        color: var(--color-text);
        font-weight: 400;
    }

    .stats-slide .stats-label {
        font-family: 'Neo Sans Pro', sans-serif;
        font-size: 16px;
        line-height: 21px;
        color: var(--color-text-muted);
        font-weight: 400;
    }

    /* Dot indicators */
    .stats-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        margin-top: 20px;
    }

    .stats-dot {
        position: relative;
        overflow: hidden;
        display: block;
        height: 4px;
        width: 44px;
        border-radius: 2px;
        background-color: var(--color-divider);
        border: none;
        padding: 0;
        cursor: pointer;
        transition: width 0.2s;
    }

    .stats-dot.is-active {
        width: 64px;
    }

    .stats-dot.is-active::after {
        content: '';
        position: absolute;
        inset: 0;
        background-color: var(--color-primary);
        transform: scaleX(0);
        transform-origin: left center;
        animation: stats-dot-fill 5s linear forwards;
    }
}

@keyframes stats-dot-fill {
    to { transform: scaleX(1); }
}
