/* ============================================================
   Freeze Tech – Cinematic Video Showcase Section (Improved)
   All classes prefixed with fz-vs- to avoid any conflicts
   ============================================================ */

.fz-video-showcase {
    /* ── Design tokens ───────────────────────────────────── */
    --fz-blue: #1053f3;
    --fz-blue-dark: #0b1741;
    --fz-sky: #0ea5e9;
    --fz-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --fz-card-radius: 22px;

    padding: clamp(48px, 7vw, 80px) 0 clamp(40px, 5vw, 60px);
    background: linear-gradient(160deg, #e8f2ff 0%, #f0f6ff 40%, #e4eefa 100%) !important;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.fz-vs-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(20px, 6vw, 80px);
    position: relative;
}

/* Ambient background blobs */
.fz-video-showcase::before,
.fz-video-showcase::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.18;
}

.fz-video-showcase::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--fz-blue) 0%, transparent 70%);
    bottom: -200px;
    left: -150px;
}

.fz-video-showcase::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--fz-sky) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

/* ── Header ───────────────────────────────────────────────── */
.fz-vs-header {
    margin-bottom: clamp(30px, 4vw, 44px);
}

.fz-vs-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: #fff;
    border: 1.5px solid #c7dbff;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fz-blue);
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    box-shadow: 0 2px 14px rgba(16, 83, 243, 0.10);
}

.fz-vs-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 500;
    color: var(--fz-blue-dark);
    margin-bottom: 12px;
    line-height: 1.2;
}

.fz-vs-brand {
    color: var(--fz-blue);
}

.fz-vs-subtitle {
    font-size: 15px;
    color: #6b7c9e;
    margin: 0 auto;
    max-width: 520px;
    line-height: 1.65;
}

/* ── Stage ────────────────────────────────────────────────── */
/* --fz-offset = distance (px) from the exact center of the stage to the
   center of a side card. Recalculated per breakpoint below so left/right
   cards always land in the right spot regardless of screen size. */
.fz-vs-stage {
    /* Portrait video ratio: center card is 350 x 600 (≈ 7:12).
       Side cards sit at ~0.75 scale of the center, same ratio.
       --fz-offset = center half-width + gap + side half-width, so
       side cards sit flush next to the center card with breathing room. */
    --fz-gap: 28px;
    --fz-offset: 329px;
    /* 175 + 28 + 126 */
    --fz-center-w: 350px;
    --fz-center-h: 600px;
    --fz-side-w: 260px;
    --fz-side-h: 445px;

    position: relative;
    height: calc(var(--fz-center-h) + 40px);
    min-height: calc(var(--fz-center-h) + 40px);
    padding: 0 clamp(40px, 6vw, 60px);
    /* Cinematic fade so side cards feel like they trail off, instead
       of ending abruptly at the container edge */
    -webkit-mask-image: linear-gradient(to right,
            transparent 0,
            #000 60px,
            #000 calc(100% - 60px),
            transparent 100%);
    mask-image: linear-gradient(to right,
            transparent 0,
            #000 60px,
            #000 calc(100% - 60px),
            transparent 100%);
}

.fz-vs-track {
    position: absolute;
    inset: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ── Card ─────────────────────────────────────────────────── */
/* Every card is anchored at the exact center of the track (top/left 50%),
   then each state's transform pushes it left, right, or leaves it centered.
   This is what makes the carousel actually re-center on the card that
   becomes active, instead of relying on DOM order like flexbox would. */
.fz-vs-card {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    width: var(--fz-side-w);
    height: var(--fz-side-h);
    border-radius: var(--fz-card-radius);
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%) scale(0.6);
    transition: transform 0.5s var(--fz-ease),
        box-shadow 0.5s var(--fz-ease),
        opacity 0.5s var(--fz-ease),
        filter 0.5s var(--fz-ease),
        width 0.5s var(--fz-ease),
        height 0.5s var(--fz-ease),
        visibility 0.5s var(--fz-ease);
}

.fz-vs-card[data-state="left"],
.fz-vs-card[data-state="right"] {
    width: var(--fz-side-w);
    height: var(--fz-side-h);
    opacity: 0.7;
    visibility: visible;
    pointer-events: auto;
    filter: brightness(0.8) saturate(0.9);
    z-index: 1;
}

.fz-vs-card[data-state="left"] {
    transform: translate(calc(-50% - var(--fz-offset)), -50%) scale(0.86);
}

.fz-vs-card[data-state="right"] {
    transform: translate(calc(-50% + var(--fz-offset)), -50%) scale(0.86);
}

.fz-vs-card[data-state="left"]:hover,
.fz-vs-card[data-state="right"]:hover {
    opacity: 0.9;
    filter: brightness(0.92) saturate(1);
}

.fz-vs-card[data-state="left"]:hover {
    transform: translate(calc(-50% - var(--fz-offset)), -50%) scale(0.9);
}

.fz-vs-card[data-state="right"]:hover {
    transform: translate(calc(-50% + var(--fz-offset)), -50%) scale(0.9);
}

.fz-vs-card[data-state="center"] {
    width: var(--fz-center-w);
    height: var(--fz-center-h);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    filter: brightness(1);
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 24px 70px rgba(10, 22, 70, 0.24),
        0 0 0 1px rgba(16, 83, 243, 0.08);
    z-index: 2;
}

.fz-vs-card[data-state="hidden"] {
    width: var(--fz-side-w);
    height: var(--fz-side-h);
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    transform: translate(-50%, -50%) scale(0.5) !important;
    z-index: 0 !important;
}

/* ── Card inner ───────────────────────────────────────────── */
.fz-vs-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    background: #081040;
    border-radius: var(--fz-card-radius);
    overflow: hidden;
}

.fz-vs-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: var(--fz-card-radius);
    position: relative;
    z-index: 1;
}

/* Soft blurred duplicate of the same video sits behind it, filling the
   letterbox space left/right (or top/bottom) instead of plain black bars. */
.fz-vs-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(28px) brightness(0.55) saturate(1.2);
    transform: scale(1.15);
    z-index: 0;
}

/* Bottom gradient for label legibility */
.fz-vs-card-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(6, 16, 60, 0.85) 0%,
            rgba(6, 16, 60, 0.25) 45%,
            transparent 100%);
    border-radius: var(--fz-card-radius);
    pointer-events: none;
    z-index: 2;
}

/* ── Center play overlay ──────────────────────────────────── */
.fz-vs-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: clamp(14px, 3vw, 22px);
    z-index: 5;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    /* hidden = not clickable */
}

.fz-vs-card[data-state="center"] .fz-vs-play-overlay {
    opacity: 1;
    pointer-events: auto;
    /* visible = clickable */
}

/* ── Play button ──────────────────────────────────────────── */
.fz-vs-play-btn {
    position: relative;
    /* for ::before ring */
    width: clamp(50px, 7vw, 62px);
    height: clamp(50px, 7vw, 62px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: var(--fz-blue);
    font-size: clamp(16px, 2.4vw, 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.28);
    padding-left: 3px;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.fz-vs-play-btn::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    opacity: 0;
    transition: opacity 0.25s ease, inset 0.25s ease;
    pointer-events: none;
    /* ring never blocks clicks */
}

.fz-vs-play-btn:hover {
    transform: scale(1.12);
    background: #fff;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.32);
}

.fz-vs-play-btn:hover::before {
    opacity: 1;
    inset: -5px;
}

/* ── Label ────────────────────────────────────────────────── */
.fz-vs-card-label {
    position: absolute;
    bottom: clamp(14px, 2.5vw, 20px);
    left: clamp(14px, 2.5vw, 18px);
    right: clamp(70px, 12vw, 90px);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 4;
    color: #fff;
    margin: 0;
}

.fz-vs-mini-play {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    padding-left: 2px;
}

.fz-vs-mini-play:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: scale(1.08);
}

.fz-vs-label-text {
    font-size: 17px;
    padding: 10px 5px;
    font-weight: 300;
    line-height: 1.4;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* ── Duration badge ───────────────────────────────────────── */
.fz-vs-duration {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(8, 18, 56, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.3s ease;
    letter-spacing: 0.3px;
}

.fz-vs-card[data-state="left"] .fz-vs-duration,
.fz-vs-card[data-state="right"] .fz-vs-duration {
    opacity: 1;
}

/* ── Arrows ───────────────────────────────────────────────── */
.fz-vs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: none;
    color: var(--fz-blue-dark);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(10, 22, 70, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.fz-vs-arrow:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 28px rgba(10, 22, 70, 0.2);
    background: var(--fz-blue);
    color: #fff;
}

.fz-vs-arrow:focus-visible {
    outline: 2px solid var(--fz-blue);
    outline-offset: 3px;
}

.fz-vs-prev {
    left: 0;
}

.fz-vs-next {
    right: 0;
}

/* ── Dots ─────────────────────────────────────────────────── */
.fz-vs-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: clamp(28px, 4vw, 40px);
}

.fz-vs-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #c5d4f0;
    cursor: pointer;
    transition: background 0.3s ease, width 0.3s ease;
    padding: 0;
}

.fz-vs-dot:hover {
    background: #9fb7ef;
}

.fz-vs-dot.is-active {
    background: var(--fz-blue);
    width: 26px;
    border-radius: 6px;
}

/* ── Feature strip ────────────────────────────────────────── */
.fz-vs-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 36px 48px;
    margin-top: 50px;
    padding: 28px 24px 0;
    list-style: none;
}

.fz-vs-feat-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fz-vs-feat-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(16, 83, 243, 0.09);
    color: var(--fz-blue);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1.5px solid rgba(16, 83, 243, 0.14);
}

.fz-vs-feat-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fz-vs-feat-text strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--fz-blue-dark);
    line-height: 1.3;
}

.fz-vs-feat-text span {
    font-size: 12px;
    color: #7a8aaa;
    line-height: 1.3;
}

/* ── Tagline ──────────────────────────────────────────────── */
.fz-vs-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #8fa0c0;
    text-transform: uppercase;
    margin-top: 24px;
}

.fz-vs-tagline-line {
    flex: 1;
    max-width: 100px;
    height: 1px;
    background: linear-gradient(to right, transparent, #b8c9e8);
}

.fz-vs-tagline-line:last-child {
    background: linear-gradient(to left, transparent, #b8c9e8);
}

/* ── Responsive ───────────────────────────────────────────── */
/* --fz-offset is recalculated each breakpoint as:
   (center width / 2) + gap + (side width / 2)
   so the side cards always sit flush next to the center card at
   whatever size it currently is. */
@media (max-width: 991px) {
    .fz-vs-stage {
        height: calc(var(--fz-center-h) + 36px);
        min-height: calc(var(--fz-center-h) + 36px);
        --fz-gap: 20px;
        --fz-center-w: 320px;
        --fz-center-h: 550px;
        --fz-side-w: 220px;
        --fz-side-h: 380px;
        --fz-offset: 290px;
        /* 160 + 20 + 110 */
    }

    .fz-vs-features {
        gap: 24px 32px;
    }
}

@media (max-width: 767px) {
    .fz-vs-stage {
        padding: 0 20px;
        height: calc(var(--fz-center-h) + 36px);
        min-height: calc(var(--fz-center-h) + 36px);
        --fz-gap: 16px;
        --fz-center-w: 290px;
        --fz-center-h: 500px;
        --fz-side-w: 190px;
        --fz-side-h: 330px;
        --fz-offset: 256px;
        /* 145 + 16 + 95 */
        -webkit-mask-image: linear-gradient(to right,
                transparent 0,
                #000 24px,
                #000 calc(100% - 24px),
                transparent 100%);
        mask-image: linear-gradient(to right,
                transparent 0,
                #000 24px,
                #000 calc(100% - 24px),
                transparent 100%);
    }

    .fz-vs-arrow {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }

    .fz-vs-features {
        gap: 18px 24px;
    }

    .fz-vs-feat-item {
        gap: 10px;
    }

    .fz-vs-label-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .fz-vs-stage {
        padding: 0 10px;
        height: calc(var(--fz-center-h) + 30px);
        min-height: calc(var(--fz-center-h) + 30px);
        --fz-gap: 12px;
        --fz-center-w: clamp(280px, 84vw, 320px);
        --fz-center-h: clamp(480px, 140vw, 545px);
        --fz-side-w: 155px;
        --fz-side-h: 265px;
        --fz-offset: 240px;
        /* 150 + 12 + 78 */
        -webkit-mask-image: linear-gradient(to right,
                transparent 0,
                #000 15px,
                #000 calc(100% - 15px),
                transparent 100%);
        mask-image: linear-gradient(to right,
                transparent 0,
                #000 15px,
                #000 calc(100% - 15px),
                transparent 100%);
    }

    .fz-vs-features {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .fz-vs-arrow {
        display: none;
    }

    .fz-vs-label-text {
        font-size: 13px;
        font-weight: 500;
    }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {

    .fz-vs-card,
    .fz-vs-play-btn,
    .fz-vs-arrow,
    .fz-vs-dot {
        transition: none !important;
    }
}