/* ========================================
   VIDEO DEMO SECTION - Mobile First
   ======================================== */

.video-demo {
    padding: 3rem 0.5rem;
    position: relative;
    overflow: hidden;
}

.video-demo .container {
    position: relative;
    z-index: 1;
    padding: 0 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Video Display Area */
.video-demo-display {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

/* Phone Frame Wrapper */
.phone-frame {
    position: relative;
    width: 220px;
    background: #1a1a2e;
    border-radius: 32px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #1a1a2e;
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

.phone-frame .phone-screen {
    position: relative;
    width: 100%;
    border-radius: 22px;
    overflow: hidden;
    background: var(--surface-light);
    aspect-ratio: 9 / 19.5;
}

/* Video element inside phone frame */
.phone-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder when no video src is set */
.phone-screen .video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--surface-light) 0%, var(--surface-hover) 100%);
    color: var(--text-muted);
    text-align: center;
    padding: 1rem;
}

.video-placeholder .placeholder-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.video-placeholder .placeholder-icon svg {
    width: 24px;
    height: 24px;
}

.video-placeholder p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* === Single Video Option (Option A) === */
.video-demo-single {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.video-demo-single .video-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--surface-light);
    aspect-ratio: 16 / 9;
}

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

.video-demo-single .video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--surface-light) 0%, var(--surface-hover) 100%);
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
}


/* ========================================
   MOBILE (default, < 768px)
   ======================================== */

/* Option B: Two phones — stack or overlap on mobile */
.video-demo-display {
    flex-direction: row;
    gap: 0.75rem;
}

.video-demo-display .phone-frame {
    width: 160px;
}


/* ========================================
   TABLET (ab 768px)
   ======================================== */

@media (min-width: 768px) {
    .video-demo {
        padding: 4rem 2rem;
    }

    .video-demo-display {
        flex-direction: row;
        gap: 2rem;
    }

    .video-demo-display .phone-frame {
        width: 220px;
    }

    .video-demo-single .video-wrapper {
        max-width: 700px;
    }
}


/* ========================================
   DESKTOP (ab 1024px)
   ======================================== */

@media (min-width: 1024px) {
    .video-demo {
        padding: 6rem 2rem;
    }

    .video-demo-display .phone-frame {
        width: 260px;
    }

    .video-demo-single .video-wrapper {
        max-width: 900px;
    }
}
