:root {
    --kinem-purple: #6E5C7B;
    --kinem-dark: #19151c;
    --kinem-light: #ffffff;
    --kinem-soft: rgba(255, 255, 255, .88);
}

.product-hero {
    position: relative;
    isolation: isolate;
    min-height: 100svh;
    overflow: hidden;
    background: #120f14;
}

.product-hero__viewport,
.product-hero__slides {
    position: relative;
    min-height: 100svh;
}

.product-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.product-hero__slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

.product-hero__bg,
.product-hero__blur,
.product-hero__veil {
    position: absolute;
    inset: 0;
}

.product-hero__bg {
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
    transition: transform 14s ease;
}

.product-hero__slide.is-active .product-hero__bg {
    transform: scale(1.08);
}

.product-hero__blur {
    display: none;
}

.product-hero__veil {
    background:
        linear-gradient(180deg,
            rgba(10, 8, 12, .14) 0%,
            rgba(10, 8, 12, .34) 42%,
            rgba(10, 8, 12, .78) 100%),
        radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .05), rgba(0, 0, 0, .30));
}

.product-hero__slide::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background:
        linear-gradient(110deg,
            transparent 0%,
            transparent 34%,
            rgba(255, 255, 255, .10) 42%,
            rgba(255, 255, 255, .44) 50%,
            rgba(255, 244, 210, .26) 56%,
            transparent 66%,
            transparent 100%);
    background-size: 260% 100%;
    background-position: 120% center;
    mix-blend-mode: screen;
    filter: blur(1px);
    will-change: background-position, opacity;
}

.product-hero__slide.is-active::before {
    animation: kinemLightSweep 10s ease-in-out 1s infinite;
}

@keyframes kinemLightSweep {
    0% {
        opacity: 0;
        background-position: 120% center;
    }

    18% {
        opacity: .95;
    }

    48% {
        opacity: .78;
    }

    72%,
    100% {
        opacity: 0;
        background-position: -120% center;
    }
}

html[dir="rtl"] .product-hero__slide::before {
    background-position: -120% center;
}

html[dir="rtl"] .product-hero__slide.is-active::before {
    animation-name: kinemLightSweepRtl;
}

@keyframes kinemLightSweepRtl {
    0% {
        opacity: 0;
        background-position: -120% center;
    }

    18% {
        opacity: .95;
    }

    48% {
        opacity: .78;
    }

    72%,
    100% {
        opacity: 0;
        background-position: 120% center;
    }
}

.product-hero__shell {
    position: relative;
    z-index: 4;
    min-height: 100svh;
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 120px 22px 88px;
    display: grid;
    place-items: center;
    text-align: center;
}

.product-hero__content {
    width: 100%;
    display: grid;
    place-items: center;
}

.product-hero__visual {
    display: none;
}

.product-hero__copy {
    width: min(100%, 660px);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .9s ease, transform .9s ease;
}

.product-hero__slide.is-active .product-hero__copy {
    opacity: 1;
    transform: translateY(0);
}

.product-hero__panel {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.product-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .20);
    border: 1px solid rgba(255, 255, 255, .34);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}

.product-hero__eyebrow::before {
    content: none;
}

.product-hero__headline {
    margin: 18px auto 14px;
    max-width: 11ch;
    color: #fff;
    font-size: clamp(3rem, 6.7vw, 6.1rem);
    line-height: .90;
    font-weight: 900;
    letter-spacing: -.06em;
    text-shadow: 0 18px 38px rgba(0, 0, 0, .36);
}

.product-hero__title-line {
    display: block;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .9s ease, transform .9s ease;
}

.product-hero__slide.is-active .product-hero__title-line {
    opacity: 1;
    transform: translateY(0);
}

.product-hero__slide.is-active .product-hero__title-line:last-child {
    transition-delay: .12s;
}

.product-hero__summary {
    max-width: 520px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(.98rem, 1.15vw, 1.14rem);
    line-height: 1.55;
    font-weight: 700;
    text-shadow: 0 10px 25px rgba(0, 0, 0, .42);
}

.product-hero__cta-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 24px;
}

.product-hero__primary,
.product-hero__secondary {
    min-height: 48px;
    min-width: 158px;
    padding: 0 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-size: .92rem;
    font-weight: 900;
    transition: transform .25s ease, background .25s ease;
}

.product-hero__primary {
    color: #2d2331;
    background: #fff;
    box-shadow: 0 18px 32px rgba(0, 0, 0, .24);
}

.product-hero__secondary {
    color: var(--hero-product-button-text, #fff);
    background: linear-gradient(135deg, var(--hero-product-gradient-from, #8B5CF6) 0%, var(--hero-product-gradient-to, #6E5C7B) 100%);
    border: 1px solid rgba(255, 255, 255, .20);
    backdrop-filter: blur(10px);
    box-shadow: 0 14px 28px var(--hero-product-glow, rgba(110, 92, 123, .24));
}

.product-hero__primary:hover,
.product-hero__secondary:hover {
    transform: translateY(-2px);
}

.product-hero__secondary:hover {
    filter: brightness(0.98) saturate(1.05);
}

.product-hero__nav {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    width: min(100%, 1120px);
    padding: 0 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-hero__dots {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .18);
    backdrop-filter: blur(10px);
}

.product-hero__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .45);
    transition: .25s ease;
}

.product-hero__dot.is-active {
    width: 28px;
    background: #fff;
}

.product-hero__arrows {
    display: flex;
    gap: 8px;
}

.product-hero__arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(0, 0, 0, .20);
    color: #fff;
    backdrop-filter: blur(10px);
}

.product-ticker {
    display: none;
}

.products-header-legacy h2 {
    font-size: 1.85rem;
    margin-bottom: 12px;
    color: #2f2735;
}

.news-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.faq-preview {
    display: grid;
    gap: 14px;
}

@media (max-width: 767px) {

    .product-hero,
    .product-hero__viewport,
    .product-hero__slides,
    .product-hero__shell {
        min-height: 82svh;
    }

    .product-hero__shell {
        padding: 98px 18px 110px;
        place-items: center;
    }

    .product-hero__bg {
        background-size: cover;
        background-position: center;
        transform: scale(1);
    }

    .product-hero__slide.is-active .product-hero__bg {
        transform: scale(1.04);
    }

    .product-hero__veil {
        background:
            linear-gradient(180deg,
                rgba(10, 8, 12, .12) 0%,
                rgba(10, 8, 12, .30) 38%,
                rgba(10, 8, 12, .76) 100%);
    }

    .product-hero__copy {
        width: 100%;
        margin-top: 18px;
    }

    .product-hero__eyebrow {
        font-size: 8.5px;
        padding: 7px 11px;
        letter-spacing: .1em;
    }

    .product-hero__headline {
        margin: 14px auto 10px;
        max-width: 10ch;
        font-size: clamp(2.25rem, 11vw, 3.35rem);
        line-height: .94;
        letter-spacing: -.045em;
    }

    .product-hero__summary {
        max-width: 30ch;
        font-size: .88rem;
        line-height: 1.48;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-hero__cta-row {
        margin-top: 18px;
        flex-direction: column;
        align-items: center;
        gap: 9px;
    }

    .product-hero__primary,
    .product-hero__secondary {
        width: 170px;
        min-width: 170px;
        min-height: 43px;
        font-size: .78rem;
    }

    .product-hero__arrows {
        display: none;
    }

    .product-hero__nav {
        bottom: 16px;
        justify-content: center;
    }

    .product-hero__dots {
        padding: 7px 9px;
    }

    .product-hero__dot {
        width: 7px;
        height: 7px;
    }

    .product-hero__dot.is-active {
        width: 24px;
    }

    .product-hero__slide.is-active::before {
        animation-duration: 15s;
    }

    .news-preview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .product-hero__headline {
        font-size: 2rem;
    }

    .product-hero__summary {
        -webkit-line-clamp: 2;
    }
}

@media (prefers-reduced-motion: reduce) {

    .product-hero__slide,
    .product-hero__bg,
    .product-hero__copy,
    .product-hero__title-line,
    .product-hero__slide::before,
    .product-hero__slide::after {
        animation: none !important;
        transition: none !important;
    }
}


/* ===== Modern Marquee Banner ===== */
.marquee {
    margin: 0 auto 0px;
    border-radius: 0px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(var(--accent-rgb, 71, 85, 105), 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(240, 249, 255, 0.84));
}

.marquee::before,
.marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 70px;
    z-index: 2;
    pointer-events: none;
}

/* Fade edges */
.marquee::before {
    left: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.marquee::after {
    right: 0;
    background: linear-gradient(270deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.marquee__track {
    display: flex;
    width: max-content;
    gap: 26px;
    align-items: center;
    padding: 10px 16px;
    will-change: transform;
    animation: marqueeMove 26s linear infinite;
}

.marquee__content {
    display: flex;
    gap: 10px;
    align-items: center;
    white-space: nowrap;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(var(--accent-rgb, 71, 85, 105), .16);
    color: var(--text-strong, #111827);
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 10px 22px rgba(56, 189, 248, 0.08);
}

.dot {
    color: rgba(var(--accent-rgb, 71, 85, 105), .8);
    font-weight: 900;
}

.marquee__track {
    animation: marqueeMoveLTR 18s linear infinite;
}

/* English */
@keyframes marqueeMoveLTR {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Arabic */
@keyframes marqueeMoveRTL {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(50%);
    }
}

/* RTL Page Marquee */
html[dir="rtl"] .marquee__track {
    animation-name: marqueeMoveRTL;
}

/* LTR Page Marquee */
html[dir="ltr"] .marquee__track {
    animation-name: marqueeMoveLTR;
}

/* Mobile Performance/Stability: Disable GPU-heavy backdrop blur on scrolls/animations */
@media (max-width: 1024px) {
    .product-hero__eyebrow {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(255, 255, 255, 0.35) !important;
    }

    .product-hero__secondary {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: linear-gradient(135deg, var(--hero-product-gradient-from, #8B5CF6) 0%, var(--hero-product-gradient-to, #6E5C7B) 100%) !important;
    }

    .product-hero__dots {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(0, 0, 0, 0.45) !important;
    }

    .product-hero__arrow {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(0, 0, 0, 0.45) !important;
    }
}
