/* ============================================================
   HOME PAGE SECTIONS v4 (service-cards hero)
   FIXES:
   - Hero no longer forced to 720px + 100px padding (was overflowing
     the viewport). Height now driven by content, padding trimmed,
     card heights + h1 reduced.
   - Restored .sec-head / .sec-tag / .sec-soft (centered pill headings
     for "Our Products" and "Why Choose Us").
   ============================================================ */

/* ===========================================================
   HERO SERVICES
   =========================================================== */
.hero-services {
    position: relative;
    overflow: hidden;
    /* was: min-height:720px; padding:100px 0;  -> caused the overflow.
       Top stays compact so it fits the viewport; bottom gives breathing
       room before the next section. */
    padding: clamp(28px,3.5vw,44px) 0 clamp(40px,5vw,64px);
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top left,#f2ecff 0,#ffffff 45%), linear-gradient(180deg,#ffffff,#faf8ff);
}

    .hero-services::before {
        content: "";
        position: absolute;
        top: -180px;
        left: -180px;
        width: 420px;
        height: 420px;
        border-radius: 50%;
        background: rgba(124,82,244,.05);
    }

    .hero-services::after {
        content: "";
        position: absolute;
        right: -160px;
        bottom: -160px;
        width: 380px;
        height: 380px;
        border-radius: 50%;
        border: 60px solid rgba(124,82,244,.05);
    }

.hero-services-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 32px;
    align-items: stretch;
}

/* left column fills the row height so the trust badges can sit at the bottom */
.hero-services-content {
    display: flex;
    flex-direction: column;
}

    .hero-services-content h1 {
        font-size: clamp(1.9rem,3.2vw,2.7rem);
        line-height: 1.05;
        font-weight: 900;
        letter-spacing: -1px;
        margin: 14px 0;
        max-width: 550px;
    }

    .hero-services-content p {
        max-width: 560px;
        color: var(--muted);
        font-size: 1.02rem;
        line-height: 1.8;
        margin-bottom: 26px;
    }

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #f3efff;
    color: var(--violet);
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

/* Outline (secondary) button — was undefined in this file, so buttons using
   it (hero "Contact Us", quote "View Quote Cart") rendered as plain text. */
.btn-outline-violet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    background: transparent;
    color: var(--violet);
    border: 2px solid var(--violet);
    font-weight: 600;
    padding: .72rem 1.6rem;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

    .btn-outline-violet:hover {
        background: var(--violet);
        color: #fff;
        box-shadow: 0 10px 24px rgba(124,82,244,.22);
    }

/* ---- Hero text carousel (left column rotates through admin sliders) ---- */
.hero-text-slider {
    position: relative;
}

.hero-text-slide {
    display: none;
}

    .hero-text-slide.active {
        display: block;
        animation: heroTextFade .5s ease;
    }

@keyframes heroTextFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.hero-slider-dots {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

    /* empty (0 or 1 slide -> no dots created by JS) collapses cleanly */
    .hero-slider-dots:empty {
        display: none;
    }

    .hero-slider-dots .hero-dot {
        width: 8px;
        height: 8px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: #d6ccf7;
        cursor: pointer;
        transition: width .2s ease, background .2s ease;
    }

        .hero-slider-dots .hero-dot.active {
            width: 24px;
            background: var(--violet);
        }

html[dir="rtl"] .hero-slider-dots {
    justify-content: flex-end;
}

@media (max-width:768px) {
    .hero-slider-dots {
        justify-content: center;
    }
}

.hero-mini-features {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
    margin-top: auto; /* pushes trust badges to the bottom, level with the cards */
}

    .hero-mini-features div {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 13px 18px;
        background: #fff;
        border: 1px solid #ece8f6;
        border-radius: 14px;
        font-weight: 600;
        font-size: .92rem;
        color: #334155;
        box-shadow: 0 8px 24px rgba(15,23,42,.05);
    }

    .hero-mini-features i {
        width: 40px;
        height: 40px;
        border-radius: 11px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f3efff;
        color: var(--violet);
        font-size: 17px;
        flex-shrink: 0;
    }

.hero-service-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: 14px;
    align-items: stretch;
}

    /* trimmed heights so the whole hero fits on one screen */
    .hero-service-cards .service-card {
        min-height: 130px;
    }

        .hero-service-cards .service-card:nth-child(1) {
            min-height: 150px;
        }

        .hero-service-cards .service-card:nth-child(2),
        .hero-service-cards .service-card:nth-child(3),
        .hero-service-cards .service-card:nth-child(4),
        .hero-service-cards .service-card:nth-child(5),
        .hero-service-cards .service-card:nth-child(6) {
            min-height: 130px;
        }

.service-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    background: #fff;
    border: 1px solid #ece8f6;
    border-radius: 18px;
    padding: 18px;
    text-decoration: none;
    transition: .35s ease;
    box-shadow: 0 14px 36px rgba(15,23,42,.05);
}

    .service-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(124,82,244,.04), transparent);
        opacity: 0;
        transition: .35s;
    }

    .service-card:hover {
        transform: translateY(-10px);
        border-color: var(--violet);
        box-shadow: 0 28px 70px rgba(124,82,244,.18);
    }

        .service-card:hover::before {
            opacity: 1;
        }

    .service-card i {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        background: #f3efff;
        color: var(--violet);
        flex-shrink: 0;
    }

    .service-card h3 {
        color: var(--navy);
        font-size: 1rem;
        margin-bottom: 6px;
        font-weight: 700;
    }

    .service-card p {
        color: var(--muted);
        line-height: 1.5;
        font-size: .84rem;
        margin: 0;
    }

html[dir="rtl"] .hero-services-content {
    text-align: right;
}

html[dir="rtl"] .hero-mini-features div {
    flex-direction: row; /* RTL flows right-to-left, so the icon lands on the right */
    text-align: right;
}

@media (max-width:991px) {
    .hero-services-grid {
        grid-template-columns: 1fr;
    }

    .hero-service-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:768px) {
    .hero-service-cards {
        grid-template-columns: 1fr;
    }

    .hero-mini-features {
        grid-template-columns: 1fr;
    }

    .hero-services {
        min-height: auto;
        padding: 44px 0;
    }

    .hero-services-content {
        text-align: center;
    }

        .hero-services-content p {
            margin-bottom: 24px;
        }

        .hero-services-content h1 {
            margin-inline: auto;
        }

    .hero-actions {
        justify-content: center;
    }
}

/* ============================================================
   SECTION HEADER  (restored — was missing from this file)
   ============================================================ */
.sec-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto clamp(1.8rem,3.5vw,2.8rem);
}

.sec-tag {
    display: inline-block;
    background: var(--blue-soft, #EAF0FF);
    color: var(--blue, #3B6EF6);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: .35rem .9rem;
    border-radius: 999px;
    margin-bottom: .9rem;
}

.sec-head h2 {
    font-size: clamp(1.5rem,3vw,2.1rem);
    font-weight: 700;
    color: var(--navy);
}

.sec-head p {
    color: var(--muted);
    margin: .7rem 0 0;
}

.sec-soft {
    background: linear-gradient(180deg,#F5F3FE,#fff);
}

/* Consistent vertical rhythm between the hero and the sections beneath it,
   so nothing feels cramped together. Higher specificity than the global
   .section rule, so these win. */
#categories.section,
.section.sec-soft {
    padding-block: clamp(58px,7vw,96px);
}

/* ---------- Products grid (4 cols) ---------- */
.prod-grid.cols-4 {
    grid-template-columns: repeat(4,1fr)
}

.prod-desc {
    font-size: .84rem;
    color: var(--muted);
    margin: 0 0 .8rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.prod-media img {
    width: 80%;
    height: 80%;
    object-fit: contain
}

@media(max-width:1024px) {
    .prod-grid.cols-4 {
        grid-template-columns: repeat(2,1fr)
    }
}

@media(max-width:560px) {
    .prod-grid.cols-4 {
        grid-template-columns: 1fr
    }
}

/* ---------- Why choose us ---------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px
}

.why-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 22px;
    transition: transform .18s,box-shadow .18s,border-color .18s
}

    .why-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow);
        border-color: transparent
    }

.why-num {
    position: absolute;
    top: 14px;
    inset-inline-end: 18px;
    font-family: var(--f-display);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--blue-soft);
    line-height: 1
}

.why-ic {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--blue-soft);
    color: var(--blue);
    display: grid;
    place-items: center;
    margin-bottom: 1rem
}

    .why-ic svg {
        width: 26px;
        height: 26px
    }

.why-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .45rem
}

.why-card p {
    font-size: .87rem;
    color: var(--muted);
    margin: 0
}

@media(max-width:900px) {
    .why-grid {
        grid-template-columns: repeat(2,1fr)
    }
}

@media(max-width:560px) {
    .why-grid {
        grid-template-columns: 1fr
    }
}

/* ============================================================
   GET-A-QUOTE FLOW  (replaces the old "Why Choose Us" content)
   ============================================================ */
.qflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    max-width: 1140px;
    margin-inline: auto;
}

.qflow-step {
    position: relative;
    background: #fff;
    border: 1px solid #ece8f6;
    border-radius: 20px;
    padding: 34px 24px 30px;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

    .qflow-step:hover {
        transform: translateY(-6px);
        border-color: transparent;
        box-shadow: 0 22px 50px rgba(124, 82, 244, .12);
    }

    /* connector arrow to the next step (desktop only) */
    .qflow-step:not(:last-child)::after {
        content: "\2192"; /* -> */
        position: absolute;
        top: 50%;
        inset-inline-end: -15px;
        transform: translateY(-50%);
        z-index: 3;
        color: #c9bafb;
        font-size: 1.4rem;
        line-height: 1;
    }

html[dir="rtl"] .qflow-step:not(:last-child)::after {
    content: "\2190"; /* <- */
}

.qflow-num {
    position: absolute;
    top: 14px;
    inset-inline-end: 20px;
    font-family: var(--f-display);
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1;
    color: #e7e0fb;
}

.qflow-ic {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #f3efff;
    color: var(--violet);
    font-size: 24px;
}

.qflow-step h3 {
    font-size: 1.06rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .5rem;
}

.qflow-step p {
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.qflow-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: clamp(30px, 4vw, 48px);
}

@media (max-width: 900px) {
    .qflow-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .qflow-step:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 560px) {
    .qflow-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   TRUSTED PARTNERS — WHITE SLIDER DESIGN
   ============================================================ */
.partners-section {
    position: relative;
    overflow: hidden;
    padding-block: clamp(54px, 6vw, 78px);
    background: #fff;
    border-top: 1px solid #f0edf8;
    border-bottom: 1px solid #f0edf8;
}

    .partners-section::before {
        content: "";
        position: absolute;
        width: 270px;
        height: 270px;
        inset-inline-start: -180px;
        top: -150px;
        border-radius: 50%;
        background: rgba(122, 90, 248, .035);
        pointer-events: none;
    }

    .partners-section::after {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        inset-inline-end: -140px;
        bottom: -130px;
        border-radius: 50%;
        border: 45px solid rgba(122, 90, 248, .025);
        pointer-events: none;
    }

    .partners-section .wrap {
        position: relative;
        z-index: 2;
    }

.partners-head {
    max-width: 700px;
    margin: 0 auto clamp(28px, 4vw, 40px);
    text-align: center;
}

.partners-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.partners-title-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #f8f5ff, #ece6ff);
    color: #7658ed;
    font-size: 19px;
    box-shadow: 0 8px 22px rgba(97, 70, 195, .10);
}

.partners-head h2 {
    margin: 0;
    color: #101a3a;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.partners-head p {
    max-width: 560px;
    margin: 11px auto 0;
    color: #68718a;
    font-size: .94rem;
    line-height: 1.65;
}

.partners-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 1240px;
    margin-inline: auto;
}

.ps-viewport {
    position: relative;
    flex: 1;
    overflow: hidden;
    padding-block: 10px 18px;
}

    .ps-viewport::before,
    .ps-viewport::after {
        content: "";
        position: absolute;
        z-index: 3;
        top: 0;
        bottom: 0;
        width: 55px;
        pointer-events: none;
    }

    .ps-viewport::before {
        inset-inline-start: 0;
        background: linear-gradient( to right, #fff 0%, rgba(255, 255, 255, 0) 100% );
    }

    .ps-viewport::after {
        inset-inline-end: 0;
        background: linear-gradient( to left, #fff 0%, rgba(255, 255, 255, 0) 100% );
    }

html[dir="rtl"] .ps-viewport::before {
    background: linear-gradient( to left, #fff 0%, rgba(255, 255, 255, 0) 100% );
}

html[dir="rtl"] .ps-viewport::after {
    background: linear-gradient( to right, #fff 0%, rgba(255, 255, 255, 0) 100% );
}

.ps-track {
    display: flex;
    align-items: stretch;
    gap: 18px;
    width: max-content;
    will-change: transform;
}

.partner-logo {
    position: relative;
    flex: 0 0 210px;
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 24px;
    overflow: hidden;
    border: 1px solid #ebe8f3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(30, 38, 70, .055), inset 0 1px 0 rgba(255, 255, 255, .9);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

    .partner-logo::before {
        content: "";
        position: absolute;
        width: 70px;
        height: 70px;
        top: -35px;
        inset-inline-end: -28px;
        border-radius: 50%;
        background: rgba(122, 90, 248, .045);
        transition: transform .3s ease;
    }

    .partner-logo:hover {
        transform: translateY(-6px);
        border-color: rgba(122, 90, 248, .22);
        box-shadow: 0 18px 42px rgba(72, 51, 145, .11), inset 0 1px 0 rgba(255, 255, 255, .95);
    }

        .partner-logo:hover::before {
            transform: scale(1.2);
        }

    .partner-logo img {
        position: relative;
        z-index: 2;
        display: block;
        width: auto;
        height: auto;
        max-width: 165px;
        max-height: 64px;
        object-fit: contain;
        filter: none;
        opacity: 1;
        transition: transform .25s ease;
    }

    .partner-logo:hover img {
        transform: scale(1.04);
    }

    .partner-logo span {
        position: relative;
        z-index: 2;
        max-width: 165px;
        color: #3e4864;
        font-size: .92rem;
        font-weight: 700;
        line-height: 1.4;
        text-align: center;
    }

.ps-arrow {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #e9e5f4;
    border-radius: 50%;
    background: #fff;
    color: #7658ed;
    box-shadow: 0 10px 28px rgba(55, 43, 110, .10);
    cursor: pointer;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

    .ps-arrow:hover {
        color: #fff;
        background: linear-gradient(135deg, #8769f5, #6547db);
        border-color: transparent;
        transform: scale(1.06);
        box-shadow: 0 14px 34px rgba(101, 71, 219, .24);
    }

    .ps-arrow svg {
        width: 19px;
        height: 19px;
    }

html[dir="rtl"] .ps-arrow svg {
    transform: scaleX(-1);
}

.partners-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    min-height: 10px;
    margin-top: 6px;
}

    .partners-dots button,
    .partners-dots .partner-dot {
        width: 7px;
        height: 7px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: #d8d4e2;
        cursor: pointer;
        transition: width .2s ease, background .2s ease;
    }

        .partners-dots button.active,
        .partners-dots .partner-dot.active {
            width: 24px;
            background: #7658ed;
        }

@media (max-width: 900px) {
    .partners-slider {
        gap: 12px;
    }

    .partner-logo {
        flex-basis: 190px;
        min-height: 105px;
        padding: 18px 20px;
    }

        .partner-logo img {
            max-width: 150px;
            max-height: 58px;
        }
}

@media (max-width: 640px) {
    .partners-section {
        padding-block: 46px;
    }

    .partners-title-row {
        gap: 9px;
    }

    .partners-title-icon {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }

    .partners-head h2 {
        font-size: 1.55rem;
    }

    .partners-head p {
        font-size: .88rem;
    }

    .ps-arrow {
        display: none;
    }

    .ps-viewport {
        padding-inline: 0;
        overflow-x: auto;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
    }

        .ps-viewport::-webkit-scrollbar {
            display: none;
        }

        .ps-viewport::before,
        .ps-viewport::after {
            display: none;
        }

    .ps-track {
        gap: 14px;
        padding-inline: 4px;
    }

    .partner-logo {
        flex: 0 0 240px;
        height: 135px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .partner-logo img {
            width: 80%;
            height: 80%;
            object-fit: contain;
            transition: .3s;
        }

        .partner-logo:hover img {
            transform: scale(1.08);
        }
}

@media (prefers-reduced-motion: reduce) {
    .partner-logo,
    .partner-logo::before,
    .partner-logo img,
    .ps-arrow {
        transition: none;
    }
}

/* ============================================================
   STATS SECTION — LAVENDER DESIGN
   ============================================================ */
.stats-band {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding-block: clamp(60px, 7vw, 92px);
    background: radial-gradient(circle at 10% 18%, rgba(170, 145, 255, .20), transparent 24%), radial-gradient(circle at 90% 12%, rgba(135, 105, 240, .16), transparent 24%), linear-gradient(135deg, #fcfbff 0%, #f4f0ff 50%, #fbfaff 100%);
    color: var(--navy);
}

    .stats-band::before {
        content: "";
        position: absolute;
        z-index: -1;
        width: 360px;
        height: 360px;
        inset-inline-start: -190px;
        bottom: -235px;
        border: 72px solid rgba(126, 93, 230, .07);
        border-radius: 50%;
        pointer-events: none;
    }

    .stats-band::after {
        content: "";
        position: absolute;
        z-index: -1;
        width: 280px;
        height: 280px;
        inset-inline-end: -100px;
        top: -145px;
        border-radius: 50%;
        background: rgba(151, 124, 247, .08);
        pointer-events: none;
    }

    .stats-band .wrap {
        position: relative;
        z-index: 2;
    }

.stats-head {
    max-width: 700px;
    margin: 0 auto clamp(36px, 5vw, 54px);
    text-align: center;
}

    .stats-head h2 {
        margin: 0;
        color: #101a3a;
        font-size: clamp(1.9rem, 3.6vw, 2.85rem);
        font-weight: 800;
        line-height: 1.15;
        letter-spacing: -.035em;
    }

    .stats-head p {
        max-width: 620px;
        margin: 15px auto 0;
        color: #68718a;
        font-size: clamp(.92rem, 1.3vw, 1rem);
        line-height: 1.7;
        opacity: 1;
    }

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
    max-width: 1120px;
    margin-inline: auto;
    text-align: center;
}

.stat {
    position: relative;
    overflow: hidden;
    min-height: 270px;
    padding: 30px 22px 30px;
    border: 1px solid rgba(126, 95, 225, .13);
    border-radius: 28px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 18px 48px rgba(74, 51, 142, .09), inset 0 1px 0 rgba(255, 255, 255, .95);
    backdrop-filter: blur(14px);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

    .stat::before {
        content: "";
        position: absolute;
        top: -38px;
        inset-inline-end: -32px;
        width: 115px;
        height: 115px;
        border-radius: 50%;
        background: rgba(127, 94, 232, .06);
        transition: transform .3s ease;
    }

    .stat::after {
        content: "";
        position: absolute;
        inset-inline: -20%;
        bottom: -62px;
        height: 115px;
        border-radius: 50%;
        background: linear-gradient( 180deg, rgba(165, 138, 255, .04), rgba(135, 104, 237, .12) );
        transform: rotate(-4deg);
        pointer-events: none;
    }

    .stat:hover {
        transform: translateY(-8px);
        border-color: rgba(117, 88, 232, .28);
        box-shadow: 0 28px 68px rgba(74, 51, 142, .15), inset 0 1px 0 rgba(255, 255, 255, .95);
    }

        .stat:hover::before {
            transform: scale(1.18);
        }

    .stat,
    .stat:first-child,
    .stat:nth-child(3) {
        border-inline-start: 1px solid rgba(126, 95, 225, .13);
    }

.stat-icon {
    position: relative;
    z-index: 2;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(122, 90, 248, .14);
    border-radius: 50%;
    background: linear-gradient(145deg, #f8f5ff, #e7dfff);
    color: #7658ed;
    font-size: 25px;
    box-shadow: 0 10px 25px rgba(103, 74, 206, .10), inset 0 1px 0 rgba(255, 255, 255, .95);
    transition: transform .25s ease, color .25s ease, background .25s ease;
}

    .stat-icon i {
        display: block;
        color: inherit;
        font-size: inherit;
        line-height: 1;
    }

.stat:hover .stat-icon {
    color: #fff;
    transform: translateY(-3px) scale(1.06);
    background: linear-gradient(135deg, #896cf6, #6749dd);
}

.stat-value {
    position: relative;
    z-index: 2;
    display: block;
    margin-bottom: 14px;
    color: #111c3d;
    font-family: var(--f-display);
    font-size: clamp(2.3rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.045em;
}

.stat > span:not(.stat-icon) {
    position: relative;
    z-index: 2;
    display: block;
    max-width: 170px;
    min-height: 46px;
    margin-inline: auto;
    color: #515b77;
    font-size: .94rem;
    font-weight: 700;
    line-height: 1.5;
    opacity: 1;
}

    .stat > span:not(.stat-icon)::after {
        content: "";
        display: block;
        width: 38px;
        height: 4px;
        margin: 19px auto 0;
        border-radius: 999px;
        background: linear-gradient(90deg, #a68bff, #7153e8);
        transition: width .25s ease;
    }

.stat:hover > span:not(.stat-icon)::after {
    width: 58px;
}

@media (max-width: 900px) {
    .stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 720px;
    }

    .stat {
        min-height: 255px;
    }
}

@media (max-width: 560px) {
    .stats-band {
        padding-block: 52px;
    }

    .stats-head {
        margin-bottom: 30px;
    }

        .stats-head h2 {
            font-size: 1.85rem;
        }

        .stats-head p {
            font-size: .9rem;
        }

    .stats-row {
        grid-template-columns: 1fr;
        max-width: 360px;
    }

    .stat {
        min-height: 235px;
        padding: 27px 20px 26px;
        border-radius: 24px;
    }

    .stat-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 18px;
        font-size: 27px;
    }

    .stat-value {
        font-size: 2.65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stat,
    .stat::before,
    .stat-icon,
    .stat > span:not(.stat-icon)::after {
        transition: none;
    }
}
