/* =========================================================
   "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: #f6f5ff;
    --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: var(--hv-bg);
    overflow: hidden;
    font-family: var(--primary-font, sans-serif);
}

.hv-glow {
    position: absolute;
    top: -15%;
    left: 55%;
    width: 620px;
    height: 620px;
    background: var(--hv-grad);
    opacity: 0.1;
    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: 20px;
    border: 1px solid var(--hv-line);
    box-shadow: var(--hv-shadow);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(.16,.8,.3,1), box-shadow 0.4s ease;
}

.hv-frame:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 80px -25px rgba(90, 31, 214, 0.4);
}

.hv-frame-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: #fafaff;
    border-bottom: 1px solid var(--hv-line);
}

.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: 500px;
}

.hv-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hv-violet);
    margin-bottom: 16px;
}

.hv-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hv-grad);
}

.text-video-section h3 {
    font-size: 3rem;
    font-weight: 600;
    color: var(--hv-ink);
    margin: 0 0 20px;
    line-height: 1.15;
}

.text-video-section p {
    font-size: 18px;
    color: var(--hv-muted);
    line-height: 1.8;
    margin-bottom: 30px;
}

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

.hv-points li {
    font-size: 15.5px;
    font-weight: 600;
    color: var(--hv-ink);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hv-points li::before {
    content: "\2713";
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--hv-grad);
    color: #fff;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-video-section button {
    padding: 16px 34px;
    border: none;
    border-radius: 14px;
    background: var(--primary-button-color, var(--hv-grad));
    color: white;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s ease;
}

.text-video-section button:hover {
    background: var(--primary-button-hover-color, var(--hv-violet));
    transform: translateY(-3px);
    box-shadow: 0 16px 32px -12px rgba(46, 90, 248, 0.5);
}

/* ---------- 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);
}

/* =========================
   BRANDS VIDEO SECTION 
========================= */
@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: 1080px) {
    .how-video-section { flex-direction: column; gap: 60px; }
    .hv-media { max-width: 620px; width: 100%; }
    .text-video-section { max-width: 620px; text-align: center; }
    .hv-points { align-items: center; }
    .hv-points li { text-align: left; }
}

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