/* =====================================================================
   AVORCMS v2 Stats Band
   5 stats · Purple brand band · Animated numbers
   ===================================================================== */

.v2-stats {
    background: var(--v2-stats-bg);
    padding: clamp(30px, 3.6vw, 44px) 0;
    font-family: var(--v2-font);
    position: relative;
    overflow: hidden;
}

/* Subtle accent rings for depth */
.v2-stats::before,
.v2-stats::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.v2-stats::before {
    width: 320px;
    height: 320px;
    top: -140px;
    left: -120px;
}

.v2-stats::after {
    width: 260px;
    height: 260px;
    bottom: -120px;
    right: -80px;
}

.v2-stats__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);

    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(18px, 2.5vw, 32px);

    position: relative;
    z-index: 2;
}

/* -------------------------------------------------------------
   Stat item
   ------------------------------------------------------------- */

.v2-stats__item {
    display: flex;
    align-items: center;
    gap: 14px;

    opacity: 0;
    transform: translateY(18px);

    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.v2-stats__item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger the five stats */
.v2-stats__item:nth-child(1) {
    transition-delay: 0.05s;
}

.v2-stats__item:nth-child(2) {
    transition-delay: 0.12s;
}

.v2-stats__item:nth-child(3) {
    transition-delay: 0.19s;
}

.v2-stats__item:nth-child(4) {
    transition-delay: 0.26s;
}

.v2-stats__item:nth-child(5) {
    transition-delay: 0.33s;
}

/* -------------------------------------------------------------
   Icon
   ------------------------------------------------------------- */

.v2-stats__icon {
    width: 54px;
    height: 54px;
    flex-shrink: 0;

    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);

    display: grid;
    place-items: center;

    color: #fff;

    transition:
        transform 0.3s ease,
        background-color 0.3s ease;
}

.v2-stats__item:hover .v2-stats__icon {
    transform: translateY(-3px) scale(1.05);
    background: rgba(255, 255, 255, 0.22);
}

/* -------------------------------------------------------------
   Number
   ------------------------------------------------------------- */

.v2-stats__number {
    font-size: clamp(22px, 2.1vw, 30px);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

/* Animated numeric portion */
.v2-stats__count {
    display: inline-block;
    min-width: 1ch;
}

/* -------------------------------------------------------------
   Label
   ------------------------------------------------------------- */

.v2-stats__label {
    margin-top: 5px;

    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);

    line-height: 1.35;
}

/* -------------------------------------------------------------
   Supporting statement
   ------------------------------------------------------------- */

.v2-stats__statement {
    max-width: 980px;
    margin: 28px auto 0;
    padding: 18px clamp(20px, 4vw, 48px) 0;

    position: relative;
    z-index: 2;

    border-top: 1px solid rgba(255, 255, 255, 0.16);

    text-align: center;

    font-size: 13px;
    font-weight: 500;
    line-height: 1.65;

    color: rgba(255, 255, 255, 0.78);

    opacity: 0;
    transform: translateY(12px);

    transition:
        opacity 0.7s ease 0.45s,
        transform 0.7s ease 0.45s;
}

.v2-stats__statement.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------------------------------------------
   Tablet
   ------------------------------------------------------------- */

@media (max-width: 1100px) {
    .v2-stats__inner {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 28px;
    }
}

/* -------------------------------------------------------------
   Mobile
   ------------------------------------------------------------- */

@media (max-width: 767.98px) {
    .v2-stats {
        padding: 30px 0 34px;
    }

    .v2-stats__inner {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 28px;
    }

    .v2-stats__item {
        gap: 11px;
    }

    .v2-stats__icon {
        width: 48px;
        height: 48px;
    }

    .v2-stats__icon svg {
        width: 26px;
        height: 26px;
    }

    .v2-stats__number {
        font-size: 22px;
    }

    .v2-stats__label {
        font-size: 11.5px;
    }
}

/* -------------------------------------------------------------
   Small mobile
   ------------------------------------------------------------- */

@media (max-width: 480px) {
    .v2-stats__inner {
        grid-template-columns: 1fr;
        row-gap: 20px;
    }

    .v2-stats__item {
        max-width: 280px;
        margin: 0 auto;
        width: 100%;
    }

    .v2-stats__statement {
        margin-top: 26px;
        font-size: 12px;
    }
}

/* -------------------------------------------------------------
   Reduced motion accessibility
   ------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .v2-stats__item,
    .v2-stats__statement {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .v2-stats__item:hover .v2-stats__icon {
        transform: none;
    }
}