/* =========================================
   STATS / CTA SECTION
   ========================================= */

.stats {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 380px 20px 100px 20px;
    overflow: hidden;
}

.stats__container {
    position: relative;
    width: 100%;
    max-width: 1470px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stats__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1267px;
    gap: 60px;
    padding: 40px 0;
}

/* Left side */
.stats__left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    max-width: 538px;
    flex: none;
}

.stats__tag {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 14px;
    background: rgba(var(--color-primary-rgb), 0.05);
    border-radius: 32px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.2;
    color: var(--color-primary);
}

.stats__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(28px, 3.5vw, 36px);
    line-height: 1.2;
    color: var(--color-primary);
    margin: 0;
}

.stats__description {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(16px, 1.8vw, 18px);
    line-height: 1.35;
    color: var(--color-text-light);
    margin: 0 0 10px 0;
}

.stats__download-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px 8px 12px 16px;
    gap: 10px;
    background: var(--color-primary);
    border-radius: 32px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stats__download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stats__download-btn span:first-child {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 18px;
    line-height: 1.2;
    color: var(--color-text-white);
}

.stats__download-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background: var(--color-bg);
    border-radius: 50%;
}

.stats__download-icon svg {
    margin-left: 2px;
}

/* Right side grid */
.stats__right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.stats__grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    align-content: center;
    gap: 24px 46px;
    max-width: 618px;
}

.stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    width: 286px;
    text-align: center;
}

.stats__number {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: clamp(48px, 6vw, 64px);
    line-height: 1.2;
    color: var(--color-primary);
}

.stats__label {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(14px, 1.8vw, 18px);
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--color-text-light);
}

/* ========== DARK MODE ========== */

[data-theme="dark"] .stats__download-btn span:first-child {
    color: var(--color-on-primary);
}

/* Responsive adjustments */
@media screen and (max-width: 1024px) {
    .stats {
        padding: 120px 20px 80px;
    }

    .stats__content {
        flex-direction: column;
        text-align: center;
        gap: 48px;
    }

    .stats__left {
        align-items: center;
        max-width: 100%;
    }

    .stats__description {
        text-align: center;
    }

    .stats__right {
        justify-content: center;
    }

    .stats__item {
        width: 40%;
        min-width: 180px;
    }
}

@media screen and (max-width: 768px) {
    .stats {
        padding: 60px 16px 60px;
    }

    .stats__content {
        gap: 36px;
        padding: 20px 0;
    }

    .stats__grid {
        gap: 20px 24px;
        max-width: 100%;
    }

    .stats__item {
        width: 45%;
        min-width: 0;
    }

    .stats__number {
        font-size: 40px;
    }

    .stats__label {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .stats {
        padding: 40px 16px;
    }

    .stats__content {
        gap: 32px;
    }

    .stats__tag {
        font-size: 12px;
        padding: 8px 12px;
    }

    .stats__title {
        font-size: 22px;
    }

    .stats__description {
        font-size: 14px;
    }

    .stats__grid {
        gap: 16px 16px;
    }

    .stats__item {
        width: 45%;
    }

    .stats__number {
        font-size: 32px;
    }

    .stats__label {
        font-size: 12px;
    }

    .stats__download-btn {
        padding: 10px 6px 10px 14px;
    }

    .stats__download-btn span:first-child {
        font-size: 15px;
    }
}
