﻿@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:wght@400;500&display=swap');

/* ── Section wrapper ── */
.stats-section {
    background: #040711;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    font-family: 'DM Sans', sans-serif;
}

/* ── Background glow blobs ── */
.stats-glow-1 {
    position: absolute;
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(123,94,248,0.15) 0%, transparent 70%);
    top: -80px;
    left: -100px;
    pointer-events: none;
}

.stats-glow-2 {
    position: absolute;
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(0,229,255,0.1) 0%, transparent 70%);
    bottom: -60px;
    right: -80px;
    pointer-events: none;
}

/* ── Top & bottom accent lines ── */
.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(123,94,248,0.7) 35%, rgba(0,229,255,0.7) 65%, transparent);
}

.stats-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,229,255,0.4), transparent);
}

/* ── Section label ── */
.stats-section-label {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    z-index: 2;
}

    .stats-section-label span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 0.72rem;
        font-family: 'Syne', sans-serif;
        font-weight: 700;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: #00e5ff;
        border: 1px solid rgba(0,229,255,0.2);
        border-radius: 100px;
        padding: 6px 18px;
        background: rgba(0,229,255,0.05);
    }

        .stats-section-label span::before {
            content: '';
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #00e5ff;
            display: inline-block;
            animation: stat-pulse 2s infinite;
            flex-shrink: 0;
        }

/* ── Grid ── */
.stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
    z-index: 2;
}

/* ── Card ── */
.stat-card {
    width:300px;
    position: relative;
    padding: 36px 28px 32px;
    background: rgba(255,255,255,0.018);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    text-align: center;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

    /* Per-card accent colours via custom properties */
    .stat-card[data-color="cyan"] {
        --ac: #00e5ff;
        --acr: 0,229,255;
    }

    .stat-card[data-color="purple"] {
        --ac: #a78bfa;
        --acr: 167,139,250;
    }

    .stat-card[data-color="pink"] {
        --ac: #f472b6;
        --acr: 244,114,182;
    }

    .stat-card[data-color="green"] {
        --ac: #34d399;
        --acr: 52,211,153;
    }

    /* Top accent line on hover */
    .stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--ac), transparent);
        opacity: 0;
        transition: opacity 0.3s;
    }

    /* Inner glow on hover */
    .stat-card::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 20px;
        background: radial-gradient(ellipse at 50% 0%, rgba(var(--acr), 0.08) 0%, transparent 65%);
        opacity: 0;
        transition: opacity 0.3s;
    }

    .stat-card:hover {
        transform: translateY(-8px);
        border-color: rgba(var(--acr), 0.35);
        box-shadow: 0 20px 50px rgba(var(--acr), 0.12);
    }

        .stat-card:hover::before,
        .stat-card:hover::after {
            opacity: 1;
        }

/* ── Icon box ── */
.stat-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--acr), 0.08);
    border: 1px solid rgba(var(--acr), 0.2);
    position: relative;
    z-index: 1;
}

    .stat-icon i {
        font-size: 1.25rem;
        color: var(--ac);
    }

/* ── Number + suffix on same baseline ── */
.stat-value-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    line-height: 1;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-family: 'Syne', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1;
}

.stat-suffix {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ac);
    margin-top: 6px;
    margin-left: 2px;
    line-height: 1;
}

/* ── Decorative bar ── */
.stat-bar {
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--ac), transparent);
    margin: 14px auto 12px;
    border-radius: 2px;
    position: relative;
    z-index: 1;
}

/* ── Title ── */
.stat-title {
    font-size: 0.82rem;
    color: #6b7280;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* ── Pulse animation ── */
@keyframes stat-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(0.6);
    }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .stats-inner {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.4rem;
    }

    .stat-suffix {
        font-size: 1.4rem;
    }
}
