/* ============================================================
   HOME PAGE SECTIONS v3
   Hero SLIDER: full-bleed image (image controls its own look, NO css scrim)
   + floating white trust bar, content constrained to page width.
   Partners + Stats sections unchanged.
   ============================================================ */

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: #F1EDFF; /* fallback only; the image covers it */
}

.hero-slide {
    display: none;
    position: relative;
    height: clamp(360px,56vh,560px); /* FIXED height — image can't stretch it */
    overflow: hidden;
}

    .hero-slide.active {
        display: block;
        animation: heroFade .6s ease;
    }

@keyframes heroFade {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

/* Image FILLS the fixed slider (no empty bands). Keep the subject centered in
   the image with padding top/bottom so the responsive trim only eats blank space. */
.hs-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* content overlays the image, inside the normal page width (.wrap) */
.hs-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 560px;
    padding-block: clamp(40px,7vw,80px);
    padding-bottom: clamp(110px,13vw,150px);
}

.hero-pretitle {
    display: inline-block;
    color: var(--violet,#7C52F4);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: .9rem;
}

.hero-copy h1 {
    font-size: clamp(2rem,4.5vw,3.4rem);
    font-weight: 800;
    color: var(--navy,#101828);
    line-height: 1.12;
    margin-bottom: .9rem;
}

    .hero-copy h1 .accent {
        color: var(--violet,#7C52F4)
    }

.hero-copy p {
    color: var(--muted,#475467);
    font-size: clamp(.9rem,1.5vw,1.05rem);
    line-height: 1.75;
    margin-bottom: 1.8rem;
    max-width: 460px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-outline-violet {
    background: transparent;
    color: var(--violet,#7C52F4);
    border: 2px solid var(--violet,#7C52F4);
    font-weight: 600;
    padding: .75rem 1.6rem;
    border-radius: 12px;
    transition: background .15s,color .15s;
    font-size: .95rem;
}

    .btn-outline-violet:hover {
        background: var(--violet,#7C52F4);
        color: #fff;
    }

/* floating white trust bar — aligned to the content column */
.hero-trust-bar {
    position: absolute;
    bottom: 34px;
    inset-inline: 0;
    z-index: 5;
    padding-inline: var(--gutter,clamp(16px,4vw,40px));
    box-sizing: border-box;
}

.hero-trust-wrap {
    max-width: var(--maxw,1200px);
    margin-inline: auto;
    width: 100%;
}

.hero-trust-inner {
    display: flex;
    align-items: center;
    max-width: 600px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 36px rgba(16,24,40,.14);
    padding: 14px 4px;
}

.htrust-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--navy,#101828);
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.25;
    padding: 0 8px;
    flex: 1;
    justify-content: center;
    text-align: center;
}

    .htrust-item svg {
        color: var(--violet,#7C52F4);
        flex: none;
        width: 32px;
        height: 32px;
        padding: 8px;
        background: #F1EBFF;
        border-radius: 9px;
        box-sizing: border-box;
    }

.htrust-divider {
    color: #EAECF0;
    font-size: 1.4rem;
    font-weight: 300;
    user-select: none;
    flex: none;
}

/* arrows */
.hs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line,#E6EAF2);
    box-shadow: var(--shadow-sm,0 2px 10px rgba(14,27,58,.06));
    display: grid;
    place-items: center;
    color: var(--navy,#101828);
    transition: .15s;
    cursor: pointer;
}

    .hs-arrow:hover {
        color: var(--violet,#7C52F4);
        border-color: var(--violet,#7C52F4);
        transform: translateY(-50%) scale(1.06);
    }

    .hs-arrow svg {
        width: 20px;
        height: 20px
    }

.hs-prev {
    inset-inline-start: clamp(8px,2vw,24px)
}

.hs-next {
    inset-inline-end: clamp(8px,2vw,24px)
}

html[dir="rtl"] .hs-arrow svg {
    transform: scaleX(-1)
}

/* dots */
.hs-dots {
    position: absolute;
    bottom: 16px;
    inset-inline: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 6;
}

.hs-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #C4B5FD;
    transition: .2s;
    cursor: pointer;
    border: none;
    padding: 0;
}

    .hs-dot.active {
        width: 26px;
        background: var(--violet,#7C52F4);
    }

/* single-slide: hide controls (trust bar stays) */
.hero-slider[data-count="1"] .hs-arrow,
.hero-slider[data-count="1"] .hs-dots {
    display: none;
}

@media(max-width:820px) {
    .hs-arrow {
        display: none
    }
}

@media(max-width:860px) {
    .hero-copy {
        max-width: 100%;
        padding-bottom: 16px;
    }

    .hero-trust-bar {
        position: relative;
        bottom: auto;
        padding-inline: 0;
        margin: 8px var(--gutter,clamp(16px,4vw,40px)) 24px;
    }

    .hero-trust-wrap {
        max-width: 100%
    }

    .hero-trust-inner {
        flex-direction: column;
        align-items: stretch;
        max-width: 100%;
        padding: 14px;
        gap: 4px;
    }

    .htrust-item {
        width: 100%;
        flex: none;
        justify-content: flex-start;
        text-align: start;
        font-size: .9rem;
        padding: 8px 6px;
    }

        .htrust-item svg {
            width: 38px;
            height: 38px;
            padding: 9px
        }
}

/* ---------- RTL: flip ALL directional arrows ---------- */
html[dir="rtl"] .add-cart svg,
html[dir="rtl"] .view-all svg,
html[dir="rtl"] .learn svg,
html[dir="rtl"] .hero-card a svg,
html[dir="rtl"] .hero-cta .btn svg {
    transform: scaleX(-1)
}

/* ---------- Section header ---------- */
.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);
    color: var(--blue);
    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)
}

/* ---------- 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
    }
}

/* ============================================================
   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;
    }
}
