.stats-section {
    background: var(--darkest-navy);
    padding-bottom: 42px;
}

.stat-col {
    border-radius: 25px;
    box-shadow: 0 0 6px 0 var(--revenova-blue);
    position: relative;
    z-index: 4;
    text-align: center;
    padding: 30px 15px;
    max-width: 200px;
    margin: 0 auto;
    height: 272px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 50px;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.stat-col::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 25px;
    padding: 2px;
    background: linear-gradient(121deg, var(--revenova-blue) -0.45%, var(--light-blue) 98.89%);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
    transition: background 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                padding 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.stat-col:hover {
    transform: perspective(800px) rotateX(-5deg) rotateY(4deg) translateY(-10px);
    box-shadow:
        0 0 16px 2px rgba(45, 167, 246, 0.45),
        0 16px 32px -6px rgba(0, 81, 133, 0.4);
}

.stat-col:hover::after {
    background: linear-gradient(121deg, var(--light-blue) -0.45%, #fff 50%, var(--revenova-blue) 98.89%);
    padding: 2.5px;
}

.stat-image {
    width: 163px;
    margin: -70px 0 0 0;
}

.stat-col .stat-number {
    margin: 0 0 12px 0;
    font-size: 60px;
    font-weight: 700;
    line-height: 1em;
    background: linear-gradient(121deg, var(--revenova-blue) -0.45%, var(--light-blue) 98.89%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
}

.stat-col .stat-number span {
    background: linear-gradient(121deg, var(--revenova-blue) -0.45%, var(--light-blue) 98.89%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-col p {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1em;
    color: var(--white);
    text-transform: capitalize;
}

.stat-slider-wrap {
    z-index: 2;
}

@media (min-width: 768px) {
    .stats-section {
        padding-bottom: 0;
    }

    .stats-section.stats-count-2,
    .stats-section.stats-count-1 {
        padding-bottom: 42px;
    }

    .stats-section .fx-slide {
        display: block;
    }

    .stat-slider-wrap {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 24px 30px;
        max-width: 664px;
        margin: 0 auto;
        position: relative;
    }

    .stat-item {
        width: 203px;
    }

    .stat-col {
        padding: 36px 15px;
        max-width: 100%;
        margin: 0;
        height: auto;
        margin-top: 0;
    }

    .stat-item .stat-image {
        display: none;
    }

    .js-stat-slider.stats-count-3 > .stat-item:nth-child(3),
    .js-stat-slider.stats-count-5 > .stat-item:nth-child(3) {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .js-stat-slider.stats-count-3 > .stat-item:nth-child(3) .stat-image,
    .js-stat-slider.stats-count-5 > .stat-item:nth-child(3) .stat-image {
        display: block;
        width: 171px;
        margin: -94px 0 0 0;
    }

    .stat-col .stat-number {
        margin: 0 0 16px 0;
        font-size: 65px;
    }

    /* 3 stats — extra top padding so Artimus doesn't overlap bullets above */
    .stats-section.stats-count-3 {
        padding-top: 180px;
    }

    /* 2 stats — single row, centered */
    .stat-slider-wrap.stats-count-2 {
        justify-content: center;
    }

    /* 4 stats — 2×2 grid, centered */
    .stat-slider-wrap.stats-count-4 {
        justify-content: center;
        max-width: 500px;
    }

}

@media (min-width: 1200px) {
    .stats-section {
        padding-bottom: 58px;
    }

    .stat-slider-wrap {
        gap: 25px 48px;
        max-width: 100%;
    }

    .stat-item {
        width: calc(33.33% - 28px);
    }

    .stat-col {
        padding: 52px 15px;
    }

    .js-stat-slider.stats-count-3 > .stat-item:nth-child(3),
    .js-stat-slider.stats-count-5 > .stat-item:nth-child(3) {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .js-stat-slider.stats-count-3 > .stat-item:nth-child(3) .stat-image,
    .js-stat-slider.stats-count-5 > .stat-item:nth-child(3) .stat-image {
        width: 248px;
        margin: -125px 0 0 0;
    }

    .stat-col .stat-number {
        margin: 0 0 14px 0;
        font-size: 100px;
    }

    .stat-col p {
        font-size: 20px;
        line-height: 1.5em;
    }

    .js-stat-slider.stats-count-3 > .stat-item:nth-child(3) h3,
    .js-stat-slider.stats-count-5 > .stat-item:nth-child(3) h3 {
        margin-top: -13px;
    }

    /* 2 stats — single row */
    .stat-slider-wrap.stats-count-2 .stat-item {
        width: calc(50% - 24px);
    }

    /* 4 stats — 2×2 grid */
    .stat-slider-wrap.stats-count-4 {
        max-width: 848px;
    }

    .stat-slider-wrap.stats-count-4 .stat-item {
        width: calc(50% - 24px);
    }

}

@media (min-width: 1367px) {
    .stat-item {
        width: 400px;
    }

    .stat-slider-wrap.stats-count-2 .stat-item,
    .stat-slider-wrap.stats-count-4 .stat-item {
        width: 400px;
    }
}

/* stat-info */

.stat-info {
    background: linear-gradient(180deg, var(--darkest-navy) 0.33%, var(--revenova-blue) 33.27%, #ACDCFA 73.4%, var(--off-white) 99.67%);
    min-height: 361px;
    position: relative;
    padding-top: 65px;
}

.stat-info::before {
    content: "";
    position: absolute;
    left: 0;
    top: -154px;
    width: 100%;
    height: 154px;
    background: linear-gradient(180deg, var(--darkest-navy) 0%, rgba(0, 17, 38, 0.00) 100%);
    z-index: 1;
}

.stat-info__left-pattern {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 375px;
    height: auto;
    mix-blend-mode: overlay;
}

.stat-info__right-pattern {
    position: absolute;
    right: -25px;
    bottom: 40px;
    width: 244px;
    mix-blend-mode: overlay;
}

.stat-info__text {
    max-width: 310px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.stat-info h2 {
    margin: 0;
    padding: 0;
    color: var(--white);
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2em;
}

@media (min-width: 768px) {
    .stat-info {
        min-height: 281px;
        padding-top: 85px;
    }

    .stat-info__left-pattern {
        left: -24px;
        bottom: 61px;
        width: 244px;
    }

    .stat-info__text {
        max-width: 548px;
    }

    .stat-info h2 {
        font-size: 30px;
        text-transform: none;
        font-weight: 600;
    }

    .stat-info::before {    
        top: -198px;
        width: 383px;
        height: 198px;
    }

    .stat-info::after {
        content: "";
        position: absolute;
        right: -200px;
        top: -462px;
        width: 462px;
        height: 462px;
        background: var(--darkest-navy);
        z-index: 1;
        border-radius: 50%;
    }
}

@media (min-width: 1200px) {
    .stat-info {
        min-height: 394px;
        padding-top: 120px;
    }

    .stat-info__left-pattern {
        left: 0px;
        bottom: -106px;
        width: 608px;
    }

    .stat-info__right-pattern {
        right: 0px;
        width: 625px;
    }

    .stat-info__text {
        max-width: 1024px;
    }

    .stat-info h2 {
        font-size: 45px;
        line-height: 1.2em;
    }

    .stat-info::before {
        display: none;
    }

    .stat-info::after {
        right: -200px;
        top: -962px;
        width: 854px;
        height: 842px;
    }
}

.stat-info--bottom {
    overflow: hidden;
  background: linear-gradient(180deg, var(--text-color) 0.33%, var(--revenova-blue) 33.27%, #ACDCFA 73.4%, var(--off-white) 99.67%);
}