/* =============================================
   PLATFORM DEMO VIDEO SECTION
   Professional video showcase with features
   ============================================= */

.platform-demo {
    padding: 8rem 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.platform-demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(139,92,246,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.demo-content {
    position: relative;
    z-index: 2;
}

.demo-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.demo-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.demo-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Video Container */
.demo-video-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

.video-wrapper {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--bg-card);
    border: 1px solid var(--gray-200);
}

#platform-demo-video {
    width: 100%;
    height: auto;
    display: block;
    min-height: 400px;
    background: var(--gradient-dark);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: var(--transition);
    pointer-events: none;
}

.video-wrapper:hover .video-overlay {
    opacity: 0.7;
}

.play-button {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: all;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.play-button i {
    font-size: 2rem;
    color: var(--text-white);
    margin-left: 4px; /* Center the play icon visually */
}

/* Demo Features */
.demo-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-orange);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--text-white);
}

.feature h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Demo CTA */
.demo-cta {
    text-align: center;
    padding: 3rem;
    background: var(--gradient-dark);
    border-radius: 1.5rem;
    color: var(--text-white);
}

.demo-cta .btn-primary {
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-accent);
    border: none;
    box-shadow: var(--shadow-lg);
}

.demo-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.demo-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.demo-guarantee i {
    color: var(--brand-orange);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .demo-video-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .demo-features {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .feature {
        flex: 1;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .platform-demo {
        padding: 6rem 0;
    }
    
    .demo-header h2 {
        font-size: 2.5rem;
    }
    
    .demo-video-container {
        gap: 2rem;
    }
    
    .demo-features {
        flex-direction: column;
    }
    
    .feature {
        flex-direction: column;
        text-align: center;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .demo-header h2 {
        font-size: 2rem;
    }
    
    .demo-cta {
        padding: 2rem;
    }
    
    .demo-cta .btn-primary {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}