/* =========================================================
   "SEE IT IN ACTION" — click-to-play demo section
   Browser-chrome video frame + floating proof badges.
   Palette from the PX logo (electric blue -> violet).
========================================================= */

:root {
    --hv-blue: #2e5af8;
    --hv-violet: #7b2ff7;
    --hv-grad: linear-gradient(135deg, var(--hv-blue), var(--hv-violet));
    --hv-ink: #0b1130;
    --hv-muted: #5b6178;
    --hv-bg: #A6B4DC;
    --hv-card: #ffffff;
    --hv-line: #e4e1fa;
    --hv-shadow: 0 30px 60px -25px rgba(90, 31, 214, 0.3);
}

.how-video {
    position: relative;
    padding: 120px 8%;
    background: #A6B4DC;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
    overflow: hidden;
    font-family: var(--primary-font, sans-serif);
}

.hv-glow {
    position: absolute;
    top: -15%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 550px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, rgba(99, 102, 241, 0.22) 50%, transparent 75%);
    opacity: 0.9;
    filter: blur(140px);
    border-radius: 50%;
    pointer-events: none;
}

.how-video-section {
    position: relative;
    max-width: 1400px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    z-index: 1;
}

/* ---------- media / video frame ---------- */
.hv-media {
    position: relative;
    flex: 1;
    max-width: 750px;
}

.hv-frame {
    position: relative;
    background: var(--hv-card);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 28px 70px -18px rgba(15, 23, 42, 0.32), 0 2px 8px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(.16,.8,.3,1), box-shadow 0.4s ease;
}

.hv-frame:hover {
    transform: translateY(-6px);
    box-shadow: 0 36px 80px -20px rgba(15, 23, 42, 0.40);
}

.hv-frame-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 13px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.hv-frame-bar span:nth-child(1),
.hv-frame-bar span:nth-child(2),
.hv-frame-bar span:nth-child(3) {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--hv-line);
    flex-shrink: 0;
}
.hv-frame-bar span:nth-child(1) { background: #ff5f57; }
.hv-frame-bar span:nth-child(2) { background: #febc2e; }
.hv-frame-bar span:nth-child(3) { background: #28c840; }

.hv-frame-url {
    margin-left: 10px;
    font-size: 12.5px;
    color: var(--hv-muted);
    background: #fff;
    border: 1px solid var(--hv-line);
    border-radius: 20px;
    padding: 4px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hv-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #05061a;
    overflow: hidden;
}

.hv-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
}

.hv-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* play button */
.hv-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 86px;
    height: 86px;
    border-radius: 50%;
    border: none;
    background: var(--hv-grad);
    color: #fff;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 20px 45px -12px rgba(46, 90, 248, 0.6);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    z-index: 2;
}

.hv-play i { margin-left: 4px; }

.hv-play:hover {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 24px 55px -10px rgba(123, 47, 247, 0.65);
}

.hv-play-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #fff;
    opacity: 0;
    animation: hvRingPulse 2.6s ease-out infinite;
}
.hv-play-ring-2 { animation-delay: 1.3s; }

@keyframes hvRingPulse {
    0% { transform: scale(1); opacity: 0.55; }
    100% { transform: scale(1.9); opacity: 0; }
}

.hv-player.is-playing .hv-thumb,
.hv-player.is-playing .hv-play {
    display: none;
}

.hv-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28c840;
    box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.6);
    animation: hvDotPulse 1.8s ease-out infinite;
}

@keyframes hvDotPulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(40, 200, 64, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 200, 64, 0); }
}

@keyframes hvFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ---------- video coming soon overlay ---------- */
.hv-coming-soon-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 17, 48, 0.45);
    backdrop-filter: blur(4px);
    z-index: 2;
}

.hv-cs-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(123, 47, 247, 0.25);
    border-radius: 40px;
    font-size: 16px;
    font-weight: 700;
    color: var(--hv-ink);
    box-shadow: 0 20px 40px -10px rgba(46, 90, 248, 0.35);
    letter-spacing: 0.02em;
    animation: hvFloat 3s ease-in-out infinite;
}

.hv-cs-badge i {
    color: var(--hv-violet);
    font-size: 18px;
}

/* ---------- copy side ---------- */
.text-video-section {
    max-width: 520px;
}

.hv-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1e1b4b;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.85);
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(8px);
    margin-bottom: 16px;
}

.hv-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2563eb;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.6);
}

.text-video-section h3 {
    font-size: 3rem;
    font-weight: 700;
    color: #0b1130;
    margin: 0 0 18px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.text-video-section p {
    font-size: 17.5px;
    color: #1e293b;
    line-height: 1.75;
    margin-bottom: 26px;
    font-weight: 450;
}

.hv-points {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hv-points li {
    font-size: 15.5px;
    font-weight: 600;
    color: #0b1130;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hv-points li::before {
    content: "\2713";
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

.text-video-section a.hs-btn,
.text-video-section button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2e5af8 0%, #7c3aed 100%);
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 28px -6px rgba(46, 90, 248, 0.45);
    transition: all 0.3s cubic-bezier(0.16, 0.8, 0.3, 1);
}

.text-video-section a.hs-btn:hover,
.text-video-section button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -6px rgba(123, 47, 247, 0.55);
    filter: brightness(1.06);
}

/* ---------- scroll reveal (matches rest of site) ---------- */
.how-video [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(.16,.8,.3,1), transform 0.7s cubic-bezier(.16,.8,.3,1);
}
.how-video [data-reveal].in-view {
    opacity: 1;
    transform: translateY(0);
}
.hv-media [data-pop] {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.34,1.56,.64,1);
}
.hv-media.in-view [data-pop] {
    opacity: 1;
    transform: scale(1);
}

/* =========================================================
   PC / DESKTOP 100vh DOCKING (min-width: 1025px)
   Fits the entire container perfectly in 100vh on PC
========================================================= */
@media (min-width: 1025px) {
    .how-video {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        padding: clamp(20px, 4vh, 60px) 7%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .how-video-section {
        width: 100%;
        max-width: 1360px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: clamp(36px, 4.5vw, 72px);
    }

    .hv-media {
        flex: 1.15;
        max-width: clamp(520px, 48vw, 720px);
    }

    .hv-frame {
        border-radius: 20px;
    }

    .hv-frame-bar {
        padding: clamp(8px, 1.2vh, 12px) 16px;
    }

    .text-video-section {
        flex: 0.95;
        max-width: 520px;
    }

    .hv-eyebrow {
        margin-bottom: clamp(10px, 1.6vh, 16px);
    }

    .text-video-section h3 {
        font-size: clamp(2.2rem, 3.1vw, 2.9rem);
        margin: 0 0 clamp(10px, 1.6vh, 18px);
        line-height: 1.16;
    }

    .text-video-section p {
        font-size: clamp(14.5px, 1.1vw, 16.5px);
        line-height: 1.68;
        margin-bottom: clamp(14px, 2.2vh, 26px);
    }

    .hv-points {
        gap: clamp(8px, 1.2vh, 12px);
        margin: 0 0 clamp(18px, 2.5vh, 28px);
    }

    .hv-points li {
        font-size: clamp(13.5px, 0.95vw, 15px);
        gap: 10px;
    }

    .text-video-section a.hs-btn,
    .text-video-section button {
        padding: clamp(11px, 1.5vh, 14px) clamp(22px, 2vw, 28px);
        font-size: clamp(14.5px, 1vw, 16px);
    }
}

/* =========================
   RESPONSIVE (MOBILE & TABLET)
========================= */
@media (prefers-reduced-motion: reduce) {
    .how-video [data-reveal],
    .hv-media [data-pop] { opacity: 1; transform: none; transition: none; }
    .hv-play-ring, .hv-dot { animation: none !important; }
}

@media (max-width: 1024px) {
    .how-video {
        padding: 100px 6%;
    }
    .how-video-section {
        flex-direction: column;
        gap: 50px;
    }
    .hv-media {
        max-width: 680px;
        width: 100%;
    }
    .text-video-section {
        max-width: 680px;
        text-align: center;
    }
    .hv-points {
        align-items: center;
    }
    .hv-points li {
        text-align: left;
    }
}

@media (max-width: 560px) {
    .how-video {
        padding: 70px 5%;
    }
    .text-video-section h3 {
        font-size: 2.1rem;
    }
    .hv-frame-url {
        display: none;
    }
}

/* ==============================================================================
   VERSION 2 — "SEE IT IN ACTION" VIDEO DEMO SECTION
   Seamless #f8fafc canvas, macOS browser frame & floating trust badges
   ============================================================================== */
.video-demo-section {
    position: relative;
    padding: 48px 5% 56px;
    background: #f8fafc;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    font-family: 'Plus Jakarta Sans', var(--primary-font, sans-serif);
}

.vd-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 48px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

/* ---------- Left Column: Video Frame Mockup ---------- */
.vd-media-col {
    flex: 1;
    min-width: 0;
    position: relative;
}

.vd-frame-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

/* Browser Frame */
.vd-browser-frame {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 24px 60px -15px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.8);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vd-browser-frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 70px -18px rgba(15, 23, 42, 0.18);
}

/* Browser Header Bar */
.vd-browser-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.vd-window-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.vd-window-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.vd-address-bar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.vd-address-bar i {
    color: #10b981;
    font-size: 10px;
}

.vd-bar-actions {
    display: flex;
    align-items: center;
    width: 40px;
    justify-content: flex-end;
}

.vd-mute-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.vd-mute-btn:hover {
    color: #0f172a;
}

/* Video Player Box */
.vd-video-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    cursor: pointer;
    overflow: hidden;
}

.vd-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Play Button Overlay */
.vd-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    transition: opacity 0.3s ease;
}

.vd-play-btn {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #2563eb, #7b2ff7);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(123, 47, 247, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    padding-left: 4px;
}

.vd-video-player:hover .vd-play-btn {
    transform: scale(1.08);
    box-shadow: 0 14px 40px rgba(123, 47, 247, 0.6);
}

.vd-play-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(123, 47, 247, 0.5);
    animation: vdPulse 2.2s infinite;
    pointer-events: none;
}

.vd-play-ring-2 {
    inset: -14px;
    animation-delay: 0.7s;
    opacity: 0.6;
}

@keyframes vdPulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 0.2; }
    100% { transform: scale(1.3); opacity: 0; }
}

.vd-play-hint {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Floating Trust Badges */
.vd-floating-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.14);
    font-size: 12.5px;
    color: #1e293b;
    z-index: 3;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.vd-badge-speed {
    top: -18px;
    right: -16px;
}

.vd-badge-speed i {
    color: #f59e0b;
}

.vd-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.vd-badge-rating {
    bottom: -18px;
    left: -16px;
}

.vd-badge-rating i {
    color: #eab308;
}

/* ---------- Right Column: Text & Benefits ---------- */
.vd-text-col {
    flex: 1;
    max-width: 520px;
    min-width: 0;
    text-align: left;
}

.vd-header {
    margin-bottom: 14px;
}

.vd-eyebrow {
    margin-bottom: 10px;
}

.vd-eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 13px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.vd-eyebrow-badge i {
    font-size: 10px;
    color: #7b2ff7;
}

.vd-title {
    font-family: 'Plus Jakarta Sans', var(--primary-font, sans-serif);
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #0f172a;
    line-height: 1.25;
    margin: 0;
}

.vd-title-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #7b2ff7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vd-lead {
    font-size: 1.02rem;
    line-height: 1.55;
    color: #64748b;
    margin: 0 0 24px;
}

/* Benefit checklist */
.vd-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 34px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vd-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.vd-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vd-checklist li:hover .vd-feature-icon {
    transform: translateY(-2px);
}

.vd-icon-blue {
    background: rgba(37, 99, 235, 0.09);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.vd-icon-purple {
    background: rgba(123, 47, 247, 0.09);
    color: #7b2ff7;
    border: 1px solid rgba(123, 47, 247, 0.2);
}

.vd-icon-emerald {
    background: rgba(16, 185, 129, 0.09);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.vd-checklist li strong {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 3px;
}

.vd-checklist li p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.45;
    margin: 0;
}

/* Dual CTAs */
.vd-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.vd-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb 0%, #7b2ff7 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.vd-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(123, 47, 247, 0.45);
}

.vd-btn-primary i {
    transition: transform 0.2s ease;
}

.vd-btn-primary:hover i {
    transform: translateX(3px);
}

.vd-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: all 0.25s ease;
}

.vd-btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 1024px) {
    .vd-container {
        flex-direction: column;
        gap: 60px;
    }
    .vd-media-col, .vd-text-col {
        max-width: 640px;
        width: 100%;
        text-align: left;
    }
    .vd-floating-badge {
        display: none;
    }
}

@media (max-width: 640px) {
    .video-demo-section {
        padding: 60px 5% 70px;
    }
    .vd-title {
        font-size: 1.7rem;
    }
    .vd-play-btn {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }
    .vd-actions {
        flex-direction: column;
        width: 100%;
    }
    .vd-btn-primary, .vd-btn-secondary {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}
