/* =========================================================
   SI Cinematic Landing Hero — si-cinematic-hero.css
   ========================================================= */

/* ── Root / container ── */
.si-ch-root {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--e-global-color-background, #0a0a0a);
    font-family: var(--e-global-typography-primary-font-family, inherit);
    perspective: 1500px;
}

/* ── Film grain overlay ── */
.si-ch-film-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    opacity: 0.05;
    mix-blend-mode: overlay;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%25" height="100%25" filter="url(%23n)"/></svg>');
}

/* ── Background grid ── */
.si-ch-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    background-size: 60px 60px;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* ── Hero text layer ── */
.si-ch-hero-text {
    position: absolute;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100vw;
    padding: 0 1rem;
    will-change: transform, opacity, filter;
    transform-style: preserve-3d;
    visibility: hidden; /* GSAP controls */
}

.si-ch-tagline1 {
    font-size: clamp(2.5rem, 6vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 0.1em;
    color: var(--e-global-color-text, #ffffff);
    text-shadow: 0 10px 30px rgba(255,255,255,0.15), 0 2px 4px rgba(255,255,255,0.08);
    visibility: visible; /* override GSAP on parent, individual elements handle their own */
}

.si-ch-tagline2 {
    font-size: clamp(2.5rem, 6vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0;
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateZ(0);
    filter: drop-shadow(0 10px 20px rgba(255,255,255,0.12));
    clip-path: inset(0 100% 0 0); /* GSAP reveal */
}

/* ── CTA layer ── */
.si-ch-cta-wrapper {
    position: absolute;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100vw;
    padding: 0 1rem;
    pointer-events: none;
    visibility: hidden; /* GSAP controls */
}

.si-ch-cta-heading {
    font-size: clamp(2rem, 5vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateZ(0);
}

.si-ch-cta-desc {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255,255,255,0.55);
    font-weight: 300;
    line-height: 1.7;
    max-width: 36rem;
    margin: 0 auto 3rem;
}

.si-ch-cta-btns {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    pointer-events: auto;
}

@media (min-width: 480px) {
    .si-ch-cta-btns { flex-direction: row; }
}

/* ── Store buttons ── */
.si-ch-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 1.25rem;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.25,1,0.5,1), box-shadow 0.4s cubic-bezier(0.25,1,0.5,1);
    cursor: pointer;
}

.si-ch-btn-light {
    background: linear-gradient(180deg, #fff 0%, #f1f5f9 100%);
    color: #0f172a;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.1), 0 12px 24px -4px rgba(0,0,0,0.3), inset 0 1px 1px #fff, inset 0 -3px 6px rgba(0,0,0,0.06);
}

.si-ch-btn-dark {
    background: linear-gradient(180deg, #27272a 0%, #18181b 100%);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 2px 4px rgba(0,0,0,0.6), 0 12px 24px -4px rgba(0,0,0,0.9), inset 0 1px 1px rgba(255,255,255,0.15), inset 0 -3px 6px rgba(0,0,0,0.8);
}

.si-ch-btn:hover { transform: translateY(-3px); }
.si-ch-btn:active { transform: translateY(1px); }

.si-ch-store-icon { width: 1.75rem; height: 1.75rem; flex-shrink: 0; }

.si-ch-btn-label { display: flex; flex-direction: column; text-align: left; }
.si-ch-btn-sup   { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.5; line-height: 1; margin-bottom: -2px; }
.si-ch-btn-main  { font-size: 1.2rem; font-weight: 700; line-height: 1; letter-spacing: -0.01em; }

/* ── Card wrap / full-screen layer ── */
.si-ch-card-wrap {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    perspective: 1500px;
}

.si-ch-card {
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    will-change: transform;
    background: linear-gradient(145deg, var(--si-card-bg-from, #162C6D) 0%, var(--si-card-bg-to, #0A101D) 100%);
    box-shadow:
        0 40px 100px -20px rgba(0,0,0,0.9),
        0 20px 40px -20px rgba(0,0,0,0.8),
        inset 0 1px 2px rgba(255,255,255,0.2),
        inset 0 -2px 4px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.04);
    /* Initial size — GSAP overrides */
    width: 92vw;
    height: 92vh;
    border-radius: 32px;
    transform: translateY(calc(100vh + 200px)); /* GSAP start */
}

@media (min-width: 768px) {
    .si-ch-card {
        width: 85vw;
        height: 85vh;
        border-radius: 40px;
    }
}

/* Mouse-follow sheen */
.si-ch-card-sheen {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 50;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.06) 0%, transparent 40%);
    mix-blend-mode: screen;
    transition: opacity 0.3s ease;
}

/* ── Card inner grid ── */
.si-ch-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    z-index: 10;
}

@media (min-width: 1024px) {
    .si-ch-card-inner {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2rem;
        padding: 0 3rem;
        align-items: center;
    }
}

/* ── Brand name (card right) ── */
.si-ch-card-right {
    order: 1;
    display: flex;
    justify-content: center;
    width: 100%;
    visibility: hidden; /* GSAP */
}

@media (min-width: 1024px) {
    .si-ch-card-right {
        order: 3;
        justify-content: flex-end;
    }
}

.si-ch-brand-name {
    font-size: clamp(3.5rem, 8vw, 8rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 1;
    margin: 0;
    background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateZ(0);
    filter: drop-shadow(0 12px 24px rgba(0,0,0,0.8)) drop-shadow(0 4px 8px rgba(0,0,0,0.6));
}

/* ── Mockup (card center) ── */
.si-ch-mockup-wrap {
    order: 2;
    position: relative;
    width: 100%;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden; /* GSAP */
}

@media (min-width: 1024px) {
    .si-ch-mockup-wrap {
        height: 600px;
        order: 2;
    }
}

.si-ch-mockup-scaler {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.65);
}

@media (min-width: 768px)  { .si-ch-mockup-scaler { transform: scale(0.85); } }
@media (min-width: 1024px) { .si-ch-mockup-scaler { transform: scale(1); } }

/* ── iPhone bezel ── */
.si-ch-iphone {
    position: relative;
    width: 280px;
    height: 580px;
    border-radius: 3rem;
    background: #111;
    box-shadow:
        inset 0 0 0 2px #52525b,
        inset 0 0 0 7px #000,
        0 40px 80px -15px rgba(0,0,0,0.9),
        0 15px 25px -5px rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    will-change: transform;
    transform-style: preserve-3d;
}

/* Hardware buttons */
.si-ch-hw-btn {
    position: absolute;
    background: linear-gradient(90deg, #404040 0%, #171717 100%);
    box-shadow: -2px 0 5px rgba(0,0,0,0.8), inset -1px 0 1px rgba(255,255,255,0.15), inset 1px 0 2px rgba(0,0,0,0.8);
    border-left: 1px solid rgba(255,255,255,0.05);
}

.si-ch-hw-silent { top: 120px; left: -3px; width: 3px; height: 25px; border-radius: 3px 0 0 3px; }
.si-ch-hw-vol-up { top: 160px; left: -3px; width: 3px; height: 45px; border-radius: 3px 0 0 3px; }
.si-ch-hw-vol-dn { top: 220px; left: -3px; width: 3px; height: 45px; border-radius: 3px 0 0 3px; }
.si-ch-hw-power  { top: 170px; right: -3px; width: 3px; height: 70px; border-radius: 0 3px 3px 0; transform: scaleX(-1); }

/* Screen */
.si-ch-screen {
    position: absolute;
    inset: 7px;
    background: #050914;
    border-radius: 2.5rem;
    overflow: hidden;
    box-shadow: inset 0 0 15px rgba(0,0,0,1);
    color: #fff;
    z-index: 10;
}

.si-ch-screen-glare {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 45%);
    z-index: 40;
    pointer-events: none;
}

/* Dynamic Island */
.si-ch-dynamic-island {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #000;
    border-radius: 999px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.75rem;
    box-shadow: inset 0 -1px 2px rgba(255,255,255,0.1);
}

.si-ch-camera-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34,197,94,0.8);
    animation: si-ch-pulse 2s ease-in-out infinite;
}

@keyframes si-ch-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

/* App UI */
.si-ch-app-ui {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 3rem 1.25rem 2rem;
    display: flex;
    flex-direction: column;
}

.si-ch-app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.si-ch-app-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    margin-bottom: 2px;
}

.si-ch-app-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.si-ch-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* Ring counter */
.si-ch-ring-wrap {
    position: relative;
    width: 176px;
    height: 176px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.8));
}

.si-ch-ring-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.si-ch-ring-track {
    fill: none;
    stroke: rgba(255,255,255,0.03);
    stroke-width: 12;
}

.si-ch-progress-ring {
    fill: none;
    stroke: #3b82f6;
    stroke-width: 12;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: center;
    stroke-dasharray: 402;
    stroke-dashoffset: 402; /* GSAP animates to ~60 */
}

.si-ch-ring-inner {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.si-ch-counter {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1;
}

.si-ch-metric-label {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: rgba(147,197,253,0.5);
    margin-top: 3px;
}

/* Phone widgets */
.si-ch-phone-widget { visibility: hidden; /* GSAP */ }

.si-ch-widgets { display: flex; flex-direction: column; gap: 0.75rem; }

.si-ch-widget-row {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3), inset 0 1px 1px rgba(255,255,255,0.05), inset 0 -1px 1px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.03);
}

.si-ch-widget-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px currentColor, inset 0 2px 4px rgba(0,0,0,0.5);
}

.si-ch-widget-icon--blue  { background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(59,130,246,0.05)); color: #60a5fa; }
.si-ch-widget-icon--green { background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(16,185,129,0.05)); color: #34d399; }

.si-ch-widget-lines { flex: 1; }
.si-ch-wl-a { height: 8px; width: 80px; background: rgba(212,212,216,0.6); border-radius: 999px; margin-bottom: 8px; box-shadow: inset 0 1px 2px rgba(0,0,0,0.3); }
.si-ch-wl-b { height: 6px; width: 48px; background: rgba(82,82,91,0.8); border-radius: 999px; box-shadow: inset 0 1px 2px rgba(0,0,0,0.3); }
.si-ch-wl-a--sm { width: 64px; }
.si-ch-wl-b--lg { width: 96px; }

.si-ch-home-bar {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* ── Floating badges ── */
.si-ch-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    z-index: 30;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 25px 50px -12px rgba(0,0,0,0.8), inset 0 1px 1px rgba(255,255,255,0.2), inset 0 -1px 1px rgba(0,0,0,0.5);
    visibility: hidden; /* GSAP */
}

.si-ch-badge--top { top: 24px;    left:  -15px; }
.si-ch-badge--btm { bottom: 80px; right: -15px; }

@media (min-width: 1024px) {
    .si-ch-badge--top { top: 48px;    left:  -80px; }
    .si-ch-badge--btm { bottom: 80px; right: -80px; }
}

.si-ch-badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.si-ch-badge-icon--blue   { background: linear-gradient(180deg, rgba(59,130,246,0.2), rgba(59,130,246,0.1));  border: 1px solid rgba(96,165,250,0.3); }
.si-ch-badge-icon--indigo { background: linear-gradient(180deg, rgba(99,102,241,0.2), rgba(99,102,241,0.1));  border: 1px solid rgba(129,140,248,0.3); }

.si-ch-badge-title { font-size: 0.8rem;  font-weight: 700; letter-spacing: -0.01em; color: #fff;                 margin: 0; }
.si-ch-badge-sub   { font-size: 0.65rem; font-weight: 500; color: rgba(147,197,253,0.5); margin: 0; }

/* ── Card left text ── */
.si-ch-card-left {
    order: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 0 1rem;
    visibility: hidden; /* GSAP */
}

@media (min-width: 1024px) {
    .si-ch-card-left {
        order: 1;
        text-align: left;
        padding: 0;
    }
}

.si-ch-card-heading {
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 1.25rem;
}

.si-ch-card-desc {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    font-weight: 400;
    line-height: 1.7;
    color: rgba(186,220,255,0.65);
    margin: 0;
    display: none;
}

@media (min-width: 768px) { .si-ch-card-desc { display: block; } }

/* ── Elementor editor: disable scroll-pin in editor ── */
.elementor-editor-active .si-ch-root {
    height: auto;
    min-height: 100vh;
    overflow: visible;
}

.elementor-editor-active .si-ch-hero-text,
.elementor-editor-active .si-ch-cta-wrapper {
    position: static;
    visibility: visible;
    display: block;
    padding: 2rem;
}

.elementor-editor-active .si-ch-card-wrap {
    position: static;
    display: block;
    margin-top: 2rem;
}

.elementor-editor-active .si-ch-card {
    transform: none;
    width: 100%;
    height: auto;
    min-height: 500px;
    border-radius: 2rem;
}

.elementor-editor-active .si-ch-card-left,
.elementor-editor-active .si-ch-card-right,
.elementor-editor-active .si-ch-mockup-wrap,
.elementor-editor-active .si-ch-badge,
.elementor-editor-active .si-ch-phone-widget {
    visibility: visible;
}

.elementor-editor-active .si-ch-tagline2 {
    clip-path: none;
}
