/* ==========================================================================
   CINEMATIC HERO - PREMIUM WHITE / ICE BLUE EDITION
   iPhone 15 Pro
   Mobile First + Desktop Optimized
   IMAGE RIGHT / TEXT LEFT
   ========================================================================== */


/* ==========================================================================
   01. DESIGN TOKENS
   ========================================================================== */

:root {
    --ice-bg: #ffffff;
    --ice-bg-soft: #f8fbfd;
    --ice-bg-subtle: #f1f8fc;

    --ice-primary: #0ea5e9;
    --ice-primary-light: #38bdf8;
    --ice-primary-dark: #0284c7;
    --ice-accent: #0369a1;

    --ice-glow: rgba(56, 189, 248, 0.13);
    --ice-glow-strong: rgba(14, 165, 233, 0.18);

    --ice-text: #0f172a;
    --ice-text-soft: #334155;
    --ice-muted: #64748b;
    --ice-muted-light: #94a3b8;

    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-bg-strong: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(14, 165, 233, 0.16);
    --glass-border-dark: rgba(15, 23, 42, 0.10);
    --glass-blur: 18px;

    --pass-green: #059669;
    --pass-green-bg: rgba(16, 185, 129, 0.10);

    --shadow-soft:
        0 10px 35px rgba(15, 23, 42, 0.07);

    --shadow-card:
        0 18px 50px rgba(15, 23, 42, 0.09);

    --shadow-blue:
        0 14px 35px rgba(14, 165, 233, 0.25);
}


/* ==========================================================================
   02. MAIN HERO WRAPPER
   ========================================================================== */

.cinematic-hero-wrapper {
    position: relative;

    background:
        radial-gradient(
            circle at 70% 42%,
            rgba(56, 189, 248, 0.075) 0%,
            rgba(255, 255, 255, 0) 42%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #ffffff 65%,
            #f8fbfd 100%
        );

    color: var(--ice-text);

    height: 350vh;

    direction: rtl;

    font-family: inherit;

    isolation: isolate;
}


.cinematic-hero-wrapper::before {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(14, 165, 233, 0.018),
            transparent 25%,
            transparent 75%,
            rgba(14, 165, 233, 0.018)
        );

    z-index: 0;
}


/* ==========================================================================
   03. STICKY CINEMATIC STAGE
   ========================================================================== */

.cinematic-sticky-stage {
    position: sticky;

    top: 0;

    width: 100%;

    height: 100vh;
    height: 100dvh;

    min-height: 620px;

    overflow: hidden;

    display: flex;

    align-items: center;
    justify-content: center;

    background: transparent;

    isolation: isolate;
}


/* ==========================================================================
   04. AMBIENT ICE BLUE LIGHT
   ========================================================================== */

.ambient-glow-mesh {
    position: absolute;

    width: min(720px, 90vw);
    height: min(720px, 90vw);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(56, 189, 248, 0.14) 0%,
            rgba(125, 211, 252, 0.08) 28%,
            rgba(186, 230, 253, 0.04) 48%,
            transparent 72%
        );

    filter: blur(70px);

    pointer-events: none;

    z-index: 1;

    transform:
        translate(-50%, -50%);

    top: 50%;
    left: 50%;

    opacity: 0.85;

    animation:
        pulseGlow 8s ease-in-out infinite alternate;
}


@keyframes pulseGlow {

    0% {
        transform:
            translate(-50%, -50%)
            scale(0.86);

        opacity: 0.55;
    }

    100% {
        transform:
            translate(-50%, -50%)
            scale(1.16);

        opacity: 0.95;
    }
}


/* ==========================================================================
   05. MAIN CONTAINER
   ========================================================================== */

.cinematic-container {
    position: relative;

    width: 100%;

    max-width: 1280px;

    height: 100%;

    margin: 0 auto;

    padding:
        24px
        clamp(20px, 4vw, 56px);

    z-index: 2;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;
}


/* ==========================================================================
   06. HERO STEPS
   ========================================================================== */

.hero-step {
    position: absolute;

    width:
        calc(100% - 40px);

    max-width: 540px;

    text-align: center;

    pointer-events: none;

    z-index: 5;

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


/* ==========================================================================
   07. INTRO BADGE
   ========================================================================== */

.hero-badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding:
        7px
        15px;

    background:
        rgba(14, 165, 233, 0.07);

    border:
        1px solid
        rgba(14, 165, 233, 0.16);

    border-radius: 999px;

    font-size: 0.8rem;

    font-weight: 600;

    color: #0369a1;

    margin-bottom: 18px;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow:
        0 5px 20px rgba(14, 165, 233, 0.05);
}


.live-dot {
    width: 8px;
    height: 8px;

    flex-shrink: 0;

    background:
        var(--ice-primary);

    border-radius: 50%;

    box-shadow:
        0 0 0 4px rgba(14, 165, 233, 0.08),
        0 0 12px rgba(14, 165, 233, 0.55);

    animation:
        blink 1.5s infinite;
}


@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}


/* ==========================================================================
   08. MAIN TITLE
   ========================================================================== */

.hero-main-title {
    margin:
        0
        0
        14px;

    color:
        var(--ice-text);

    font-size:
        clamp(
            2rem,
            7vw,
            3.6rem
        );

    font-weight: 900;

    line-height: 1.18;

    letter-spacing:
        -0.035em;

    text-wrap: balance;
}


.ice-gradient-text {
    display: inline-block;

    background:
        linear-gradient(
            135deg,
            #0f172a 5%,
            #0369a1 38%,
            #0ea5e9 72%,
            #38bdf8 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;

    color: transparent;
}


/* ==========================================================================
   09. HERO DESCRIPTION
   ========================================================================== */

.hero-subtext {
    max-width: 560px;

    margin:
        0
        auto
        26px;

    color:
        var(--ice-muted);

    font-size:
        clamp(
            0.88rem,
            2.5vw,
            1rem
        );

    line-height: 1.8;

    font-weight: 450;
}


/* ==========================================================================
   10. SCROLL INDICATOR
   ========================================================================== */

.scroll-indicator-wrap {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 9px;
}


.scroll-pill {
    width: 23px;
    height: 39px;

    border:
        1.5px solid
        rgba(14, 165, 233, 0.35);

    border-radius: 14px;

    position: relative;

    background:
        rgba(255, 255, 255, 0.55);

    box-shadow:
        0 5px 20px rgba(14, 165, 233, 0.08);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


.scroll-wheel {
    width: 4px;
    height: 8px;

    background:
        var(--ice-primary);

    border-radius: 3px;

    position: absolute;

    left: 50%;
    top: 6px;

    transform:
        translateX(-50%);

    box-shadow:
        0 0 8px rgba(14, 165, 233, 0.45);

    animation:
        mouseScroll 1.8s infinite;
}


@keyframes mouseScroll {

    0% {
        transform:
            translate(-50%, 0);

        opacity: 1;
    }

    80% {
        transform:
            translate(-50%, 14px);

        opacity: 0;
    }

    100% {
        transform:
            translate(-50%, 0);

        opacity: 0;
    }
}


.scroll-label {
    color:
        var(--ice-muted-light);

    font-size: 0.72rem;

    font-weight: 500;

    letter-spacing: 0.01em;
}


/* ==========================================================================
   11. iPHONE VISUAL
   ========================================================================== */

.hero-device-visual {
    position: relative;

    width:
        min(280px, 62vw);

    height:
        min(480px, 78vh);

    min-height: 400px;

    display: flex;

    align-items: center;
    justify-content: center;

    z-index: 3;

    pointer-events: auto;
}


/* ==========================================================================
   12. DEVICE FRAME
   ========================================================================== */

.device-frame {
    position: relative;

    width: 100%;
    height: 100%;

    border-radius:
        clamp(
            34px,
            5vw,
            44px
        );

    overflow: hidden;

    background:
        #f8fafc;

    box-shadow:
        0 30px 70px rgba(15, 23, 42, 0.16),
        0 12px 35px rgba(14, 165, 233, 0.12),
        0 0 0 1px rgba(15, 23, 42, 0.08);

    transform:
        translateZ(0);

    isolation: isolate;
}


.device-frame::after {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    border-radius: inherit;

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.65),
        inset 0 0 35px rgba(255, 255, 255, 0.08);

    z-index: 20;
}


/* ==========================================================================
   13. DEVICE IMAGE LAYERS
   ========================================================================== */

.layer-device {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: inherit;

    display: block;

    user-select: none;

    -webkit-user-drag: none;

    backface-visibility: hidden;
}


.layer-chassis {
    z-index: 2;

    transform-origin:
        center center;
}


.layer-internal {
    z-index: 1;

    filter:
        saturate(1.4)
        contrast(1.08)
        brightness(1.03);
}


/* ==========================================================================
   14. HOTSPOTS
   ========================================================================== */

.hotspot {
    position: absolute;

    width: 24px;
    height: 24px;

    z-index: 10;

    cursor: pointer;

    opacity: 0;

    transform:
        scale(0.6);

    border-radius: 50%;

    transition:
        transform 0.25s ease;
}


.hotspot:hover {
    transform:
        scale(1.12);
}


.hs-ping {
    position: absolute;

    inset: 0;

    border-radius: 50%;

    background:
        rgba(14, 165, 233, 0.72);

    opacity: 0.55;

    animation:
        hsPing 1.8s cubic-bezier(
            0,
            0,
            0.2,
            1
        ) infinite;
}


.hs-core {
    position: absolute;

    inset: 6px;

    border-radius: 50%;

    background:
        #ffffff;

    border:
        2px solid
        var(--ice-primary);

    box-shadow:
        0 0 8px rgba(14, 165, 233, 0.7),
        0 0 18px rgba(14, 165, 233, 0.35);
}


@keyframes hsPing {

    75%,
    100% {
        transform:
            scale(2.2);

        opacity: 0;
    }
}


/* ==========================================================================
   15. iPHONE COMPONENT POSITIONS
   ========================================================================== */

.hs-battery {
    bottom: 30%;
    right: 38%;
}


.hs-cpu {
    top: 38%;
    left: 44%;
}


.hs-camera {
    top: 14%;
    left: 24%;
}


/* ==========================================================================
   16. DIAGNOSTICS SECTION
   ========================================================================== */

.step-diagnostics {
    display: flex;

    flex-direction: column;

    gap: 14px;

    width:
        calc(100% - 40px);

    max-width: 500px;

    opacity: 0;

    transform:
        translateY(30px);

    z-index: 8;
}


/* ==========================================================================
   17. GLASS CARDS
   ========================================================================== */

.glass-card {
    position: relative;

    width: 100%;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.90),
            rgba(248, 251, 253, 0.74)
        );

    border:
        1px solid
        rgba(14, 165, 233, 0.14);

    backdrop-filter:
        blur(var(--glass-blur));

    -webkit-backdrop-filter:
        blur(var(--glass-blur));

    border-radius: 20px;

    padding:
        15px
        17px;

    display: flex;

    align-items: center;

    gap: 13px;

    text-align: right;

    box-shadow:
        0 16px 45px rgba(15, 23, 42, 0.07),
        0 2px 8px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);

    overflow: hidden;
}


.glass-card::before {
    content: "";

    position: absolute;

    top: 0;
    right: 0;

    width: 45%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(56, 189, 248, 0.38),
            transparent
        );

    pointer-events: none;
}


/* ==========================================================================
   18. DIAGNOSTIC ICON
   ========================================================================== */

.diag-icon {
    width: 45px;
    height: 45px;

    flex:
        0 0 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 13px;

    font-size: 1.45rem;

    background:
        linear-gradient(
            135deg,
            rgba(56, 189, 248, 0.13),
            rgba(14, 165, 233, 0.05)
        );

    border:
        1px solid
        rgba(14, 165, 233, 0.10);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}


/* ==========================================================================
   19. DIAGNOSTIC TEXT
   ========================================================================== */

.diag-info {
    min-width: 0;

    flex: 1;
}


.diag-info h4 {
    margin:
        0
        0
        4px;

    font-size:
        clamp(
            0.82rem,
            2.4vw,
            0.94rem
        );

    font-weight: 750;

    line-height: 1.45;

    color:
        var(--ice-text);
}


.diag-info p {
    margin: 0;

    font-size:
        clamp(
            0.7rem,
            2vw,
            0.78rem
        );

    color:
        var(--ice-muted);

    line-height: 1.55;
}


/* ==========================================================================
   20. DIAGNOSTIC STATUS BADGE
   ========================================================================== */

.diag-badge-pass {
    margin-right: auto;

    flex-shrink: 0;

    background:
        var(--pass-green-bg);

    color:
        var(--pass-green);

    border:
        1px solid
        rgba(16, 185, 129, 0.22);

    font-size: 0.62rem;

    font-weight: 850;

    padding:
        4px
        7px;

    border-radius: 6px;

    letter-spacing: 0.45px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}


/* ==========================================================================
   21. FINAL CTA
   ========================================================================== */

.step-cta {
    opacity: 0;

    transform:
        scale(0.9);

    pointer-events: none;

    width:
        calc(100% - 40px);

    max-width: 600px;

    z-index: 9;
}


.step-cta.active {
    pointer-events: auto;
}


.cta-title {
    margin:
        0
        0
        12px;

    color:
        var(--ice-text);

    font-size:
        clamp(
            1.45rem,
            5vw,
            2.15rem
        );

    font-weight: 850;

    line-height: 1.35;

    letter-spacing:
        -0.025em;
}


.cta-sub {
    margin:
        0
        auto
        22px;

    max-width: 520px;

    color:
        var(--ice-muted);

    font-size:
        clamp(
            0.8rem,
            2.5vw,
            0.92rem
        );

    line-height: 1.7;
}


/* ==========================================================================
   22. CTA ACTIONS
   ========================================================================== */

.cta-actions {
    display: flex;

    flex-direction: column;

    gap: 11px;

    width: 100%;
}


/* ==========================================================================
   23. PRIMARY BUTTON
   ========================================================================== */

.btn-primary-ice {
    position: relative;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    width: 100%;

    min-height: 54px;

    background:
        linear-gradient(
            135deg,
            #38bdf8 0%,
            #0ea5e9 48%,
            #0284c7 100%
        );

    color: #ffffff;

    font-weight: 800;

    font-size: 0.92rem;

    padding:
        15px
        24px;

    border-radius: 16px;

    text-decoration: none;

    border:
        1px solid
        rgba(2, 132, 199, 0.20);

    box-shadow:
        0 12px 28px rgba(14, 165, 233, 0.27),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        filter 0.22s ease;

    overflow: hidden;
}


.btn-primary-ice::before {
    content: "";

    position: absolute;

    top: 0;
    left: -100%;

    width: 60%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.28),
            transparent
        );

    transform:
        skewX(-20deg);

    transition:
        left 0.6s ease;
}


.btn-primary-ice:hover {
    color: #ffffff;

    transform:
        translateY(-2px);

    box-shadow:
        0 17px 36px rgba(14, 165, 233, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);

    filter:
        brightness(1.03);
}


.btn-primary-ice:hover::before {
    left: 140%;
}


.btn-primary-ice:active {
    transform:
        translateY(0)
        scale(0.985);
}


/* ==========================================================================
   24. SECONDARY BUTTON
   ========================================================================== */

.btn-secondary-glass {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 52px;

    background:
        rgba(255, 255, 255, 0.68);

    border:
        1px solid
        rgba(15, 23, 42, 0.11);

    color:
        #1e293b;

    font-size: 0.88rem;

    font-weight: 650;

    padding:
        14px
        24px;

    border-radius: 16px;

    text-decoration: none;

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

    box-shadow:
        0 8px 24px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);

    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        transform 0.22s ease,
        box-shadow 0.22s ease;
}


.btn-secondary-glass:hover {
    color:
        #0f172a;

    background:
        rgba(241, 248, 252, 0.95);

    border-color:
        rgba(14, 165, 233, 0.25);

    transform:
        translateY(-2px);

    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.08);
}


/* ==========================================================================
   25. DESKTOP - 992px+
   ========================================================================== */

@media (min-width: 992px) {

    .cinematic-sticky-stage {
        min-height: 680px;
    }


    /* ----------------------------------------------------------------------
       MAIN DESKTOP GRID

       RTL layout means:
       COLUMN 1 = RIGHT
       COLUMN 2 = CENTER
       COLUMN 3 = LEFT

       Device -> RIGHT
       Intro  -> LEFT
       ---------------------------------------------------------------------- */

    .cinematic-container {
        display: grid;

        grid-template-columns:
            minmax(0, 1fr)
            minmax(360px, 460px)
            minmax(0, 1fr);

        align-items: center;

        gap: 40px;
    }


    /* ----------------------------------------------------------------------
       DEVICE
       IMPORTANT:
       Image is explicitly placed in RIGHT column.
       ---------------------------------------------------------------------- */

    .hero-device-visual {
        grid-column: 1;

        grid-row: 1;

        justify-self: center;

        width: 340px;

        height:
            min(600px, 78vh);

        min-height: 520px;

        /* Slight visual shift toward the right */
        transform:
            translateX(0);
    }


    /* ----------------------------------------------------------------------
       INTRO TEXT
       Explicitly placed in LEFT column.
       ---------------------------------------------------------------------- */

    .step-intro {
        grid-column: 3;

        grid-row: 1;

        justify-self: start;

        text-align: right;

        max-width: 520px;

        transform:
            translateX(0);
    }


    .hero-badge {
        margin-bottom: 20px;
    }


    .hero-main-title {
        font-size:
            clamp(
                2.6rem,
                4vw,
                3.65rem
            );

        line-height: 1.22;
    }


    .hero-subtext {
        margin:
            0
            0
            28px;

        max-width: 500px;
    }


    .scroll-indicator-wrap {
        align-items: flex-start;
    }


    /* ----------------------------------------------------------------------
       DIAGNOSTICS

       Left-side auxiliary column.
       ---------------------------------------------------------------------- */

    .step-diagnostics {
        grid-column: 3;

        grid-row: 1;

        justify-self: start;

        max-width: 430px;

        text-align: right;

        transform:
            translateY(30px);
    }


    /* ----------------------------------------------------------------------
       CTA
       ---------------------------------------------------------------------- */

    .step-cta {
        grid-column:
            1 / 4;

        grid-row: 1;

        justify-self: center;

        max-width: 620px;
    }


    .cta-actions {
        flex-direction: row;

        align-items: stretch;
    }


    .btn-primary-ice,
    .btn-secondary-glass {
        width: auto;

        flex: 1;
    }


    .glass-card {
        padding:
            16px
            18px;
    }
}


/* ==========================================================================
   26. LARGE DESKTOP - 1200px+
   ========================================================================== */

@media (min-width: 1200px) {

    .cinematic-container {
        gap: 70px;
    }


    /*
     * Larger phone on desktop.
     * Still explicitly RIGHT.
     */

    .hero-device-visual {
        grid-column: 1;

        width: 350px;

        height: 610px;

        justify-self: center;
    }


    /*
     * Text remains LEFT.
     */

    .step-intro {
        grid-column: 3;

        transform:
            translateX(0);
    }


    .step-diagnostics {
        grid-column: 3;

        max-width: 450px;
    }
}


/* ==========================================================================
   27. TABLET - 768px TO 991px
   ========================================================================== */

@media (min-width: 768px) and (max-width: 991px) {

    .hero-device-visual {
        width: 300px;

        height: 510px;
    }


    .hero-step {
        max-width: 600px;
    }


    .hero-main-title {
        font-size:
            clamp(
                2.3rem,
                6vw,
                3rem
            );
    }


    .step-diagnostics {
        max-width: 520px;
    }


    .glass-card {
        padding:
            16px
            20px;
    }
}


/* ==========================================================================
   28. MOBILE - UP TO 767px
   ========================================================================== */

@media (max-width: 767px) {

    .cinematic-hero-wrapper {
        height: 330vh;
    }


    .cinematic-sticky-stage {
        min-height: 560px;

        height: 100dvh;
    }


    .cinematic-container {
        padding:
            18px
            16px;
    }


    .ambient-glow-mesh {
        width: 480px;

        height: 480px;

        filter:
            blur(60px);
    }


    .hero-device-visual {
        width:
            min(
                250px,
                62vw
            );

        height:
            min(
                430px,
                68vh
            );

        min-height: 360px;
    }


    .device-frame {
        border-radius: 36px;

        box-shadow:
            0 25px 55px rgba(15, 23, 42, 0.15),
            0 8px 25px rgba(14, 165, 233, 0.10);
    }


    .hero-step {
        width:
            calc(
                100% - 28px
            );

        max-width: 500px;
    }


    .hero-main-title {
        font-size:
            clamp(
                1.85rem,
                8vw,
                2.55rem
            );

        letter-spacing:
            -0.045em;
    }


    .hero-subtext {
        font-size:
            0.84rem;

        line-height:
            1.75;

        max-width:
            390px;
    }


    .hero-badge {
        font-size:
            0.72rem;

        padding:
            6px
            12px;

        margin-bottom:
            14px;
    }


    .scroll-label {
        font-size:
            0.68rem;
    }


    .step-diagnostics {
        width:
            calc(
                100% - 28px
            );

        max-width:
            430px;

        gap:
            10px;
    }


    .glass-card {
        padding:
            12px
            13px;

        gap:
            10px;

        border-radius:
            16px;
    }


    .diag-icon {
        width:
            40px;

        height:
            40px;

        flex-basis:
            40px;

        border-radius:
            11px;

        font-size:
            1.25rem;
    }


    .diag-info h4 {
        font-size:
            0.78rem;
    }


    .diag-info p {
        font-size:
            0.66rem;

        line-height:
            1.45;
    }


    .diag-badge-pass {
        font-size:
            0.55rem;

        padding:
            3px
            5px;
    }


    .step-cta {
        width:
            calc(
                100% - 28px
            );

        max-width:
            450px;
    }


    .cta-title {
        font-size:
            clamp(
                1.3rem,
                6vw,
                1.75rem
            );

        margin-bottom:
            10px;
    }


    .cta-sub {
        font-size:
            0.78rem;

        margin-bottom:
            18px;
    }


    .cta-actions {
        gap:
            9px;
    }


    .btn-primary-ice,
    .btn-secondary-glass {
        min-height:
            50px;

        padding:
            13px
            18px;

        font-size:
            0.82rem;

        border-radius:
            14px;
    }
}


/* ==========================================================================
   29. SMALL MOBILE - UP TO 380px
   ========================================================================== */

@media (max-width: 380px) {

    .cinematic-hero-wrapper {
        height: 320vh;
    }


    .hero-device-visual {
        width:
            215px;

        height:
            370px;

        min-height:
            330px;
    }


    .hero-main-title {
        font-size:
            1.72rem;
    }


    .hero-subtext {
        font-size:
            0.78rem;
    }


    .glass-card {
        padding:
            10px
            11px;
    }


    .diag-icon {
        width:
            36px;

        height:
            36px;

        flex-basis:
            36px;

        font-size:
            1.1rem;
    }


    .diag-info h4 {
        font-size:
            0.72rem;
    }


    .diag-info p {
        font-size:
            0.61rem;
    }


    .diag-badge-pass {
        display:
            none;
    }
}


/* ==========================================================================
   30. TOUCH DEVICES
   ========================================================================== */

@media (hover: none) and (pointer: coarse) {

    .btn-primary-ice:hover {
        transform:
            none;

        box-shadow:
            0 12px 28px rgba(
                14,
                165,
                233,
                0.27
            );
    }


    .btn-secondary-glass:hover {
        transform:
            none;
    }


    .hotspot:hover {
        transform:
            scale(0.6);
    }
}


/* ==========================================================================
   31. REDUCED MOTION
   ========================================================================== */

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

    .ambient-glow-mesh,
    .live-dot,
    .scroll-wheel,
    .hs-ping {
        animation:
            none !important;
    }


    .btn-primary-ice,
    .btn-secondary-glass,
    .hotspot {
        transition:
            none !important;
    }
}


/* ==========================================================================
   32. DARK MODE PROTECTION
   ========================================================================== */

@media (prefers-color-scheme: dark) {

    .cinematic-hero-wrapper {
        background:
            radial-gradient(
                circle at 70% 42%,
                rgba(
                    56,
                    189,
                    248,
                    0.075
                ) 0%,
                rgba(
                    255,
                    255,
                    255,
                    0
                ) 42%
            ),
            linear-gradient(
                180deg,
                #ffffff 0%,
                #ffffff 65%,
                #f8fbfd 100%
            );

        color:
            #0f172a;
    }


    .hero-main-title,
    .cta-title,
    .diag-info h4 {
        color:
            #0f172a;
    }


    .hero-subtext,
    .diag-info p,
    .cta-sub {
        color:
            #64748b;
    }
}


/* ==========================================================================
   33. HARD POSITION OVERRIDE
   --------------------------------------------------------------------------
   این بخش عمداً در انتهای فایل قرار گرفته تا اگر CSS قالب یا فایل دیگری
   ترتیب Grid را تغییر داد، جای تصویر در دسکتاپ همچنان RIGHT بماند.
   ========================================================================== */

@media (min-width: 992px) {

    .cinematic-container > .hero-device-visual {
        grid-column: 1 !important;
        grid-row: 1 !important;
        justify-self: center !important;
    }


    .cinematic-container > .step-intro {
        grid-column: 3 !important;
        grid-row: 1 !important;
        justify-self: start !important;
        text-align: right !important;
    }
}


/* ==========================================================================
   END
   ========================================================================== */
