﻿/* ========================================
       CSS VARIABLES - DESIGN TOKENS
    ======================================== */
:root {
    /* Primary Colors */
    --primary: 239 84% 67%;
    --primary-dark: 243 75% 42%;
    --primary-foreground: 0 0% 100%;
    /* Secondary & Accent */
    --secondary: 207 90% 54%;
    --accent: 142 100% 46%;
    /* Backgrounds */
    --background: 0 0% 100%;
    --surface: 0 0% 100%;
    --surface-alt: 240 20% 98%;
    --muted: 240 20% 98%;
    /* Text */
    --foreground: 220 9% 10%;
    --muted-foreground: 220 9% 40%;
    /* Borders */
    --border: 239 84% 67% / 0.12;
    --ring: 207 90% 54% / 0.35;
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    /* Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
       RESET & BASE STYLES
    ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
       VSL SECTION STYLES
    ======================================== */
.vsl-section {
    position: relative;
    padding: 4rem 1rem;
    background: linear-gradient( 180deg, hsl(var(--surface-alt)) 0%, hsl(var(--background)) 100% );
    overflow: hidden;
}

    .vsl-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        height: 1px;
        background: linear-gradient( 90deg, transparent 0%, hsl(var(--primary) / 0.3) 50%, transparent 100% );
    }

.vsl-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Header */
.vsl-header {
    text-align: center;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

    .vsl-header.visible {
        opacity: 1;
        transform: translateY(0);
    }

.vsl-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: hsl(var(--primary) / 0.1);
    border: 1px solid hsl(var(--primary) / 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--primary));
    margin-bottom: 1rem;
}

    .vsl-badge svg {
        width: 1rem;
        height: 1rem;
        animation: pulse 2s infinite;
    }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.vsl-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient( 135deg, hsl(var(--foreground)) 0%, hsl(var(--primary)) 100% );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vsl-subtitle {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    max-width: 600px;
    margin: 0 auto;
}

/* Video Container */
.vsl-video-wrapper {
    position: relative;
    margin-bottom: 3rem;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    transition-delay: 200ms;
}

    .vsl-video-wrapper.visible {
        opacity: 1;
        transform: scale(1);
    }

.vsl-video-container {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient( 135deg, hsl(var(--primary-dark)) 0%, hsl(var(--primary)) 50%, hsl(var(--secondary)) 100% );
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

    .vsl-video-container:hover {
        transform: scale(1.02);
        box-shadow: 0 25px 50px -12px hsl(var(--primary) / 0.25);
    }

.vsl-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient( 180deg, transparent 0%, hsl(var(--foreground) / 0.3) 100% );
}

.vsl-play-button {
    width: 80px;
    height: 80px;
    background: hsl(var(--background));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    animation: play-pulse 2s infinite;
}

@keyframes play-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 hsl(var(--background) / 0.7);
    }

    50% {
        box-shadow: 0 0 0 20px hsl(var(--background) / 0);
    }
}

.vsl-video-container:hover .vsl-play-button {
    transform: scale(1.1);
}

.vsl-play-button svg {
    width: 32px;
    height: 32px;
    color: hsl(var(--primary));
    margin-left: 4px;
}

.vsl-video-text {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--background));
    text-shadow: 0 2px 4px hsl(var(--foreground) / 0.3);
}

.vsl-video-duration {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--background) / 0.8);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .vsl-video-duration svg {
        width: 1rem;
        height: 1rem;
    }

/* Video Modal */
.vsl-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: hsl(var(--foreground) / 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
    z-index: 60;
}

    .vsl-modal.is-open {
        opacity: 1;
        pointer-events: auto;
    }

.vsl-modal-backdrop {
    position: absolute;
    inset: 0;
}

.vsl-modal-content {
    position: relative;
    width: min(960px, 92vw);
    background: hsl(var(--surface));
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transform: translateY(12px);
    transition: transform var(--transition-base);
}

.vsl-modal.is-open .vsl-modal-content {
    transform: translateY(0);
}

.vsl-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid hsl(var(--border));
    background: hsl(var(--surface-alt));
}

.vsl-modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.vsl-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid;
    border-radius: var(--radius-full);
    background: hsl(var(--background));
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    transition: all var(--transition-fast);
}

    .vsl-modal-close:hover {
        color: hsl(var(--foreground));
        box-shadow: var(--shadow-sm);
    }

    .vsl-modal-close svg {
        width: 18px;
        height: 18px;
    }

.vsl-modal-video {
    position: relative;
    padding-top: 56.25%;
    background: hsl(var(--foreground));
}

    .vsl-modal-video iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

/* Features Section */
.vsl-features {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    transition-delay: 400ms;
}

    .vsl-features.visible {
        opacity: 1;
        transform: translateY(0);
    }

.vsl-features-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 1.5rem;
}

/* Mobile Navigation Pills */
.vsl-mobile-nav {
    display: flex;
    flex-wrap:wrap;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .vsl-mobile-nav::-webkit-scrollbar {
        display: none;
    }

.vsl-nav-pill {
    flex-shrink: 0;
    padding: 0.75rem 1.25rem;
    background: hsl(var(--background));
    border: 2px solid hsl(var(--border));
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

    .vsl-nav-pill:hover {
        border-color: hsl(var(--primary) / 0.5);
        color: hsl(var(--primary));
    }

    .vsl-nav-pill.active {
        background: hsl(var(--primary));
        border-color: hsl(var(--primary));
        color: hsl(var(--primary-foreground));
        box-shadow: 0 4px 14px hsl(var(--primary) / 0.4);
    }

/* Feature Card (Mobile) */
.vsl-feature-card-mobile {
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vsl-feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--secondary)) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 14px hsl(var(--primary) / 0.3);
}

    .vsl-feature-icon svg {
        width: 28px;
        height: 28px;
        color: hsl(var(--primary-foreground));
    }

.vsl-feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.vsl-feature-description {
    font-size: 0.9375rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin-bottom: 1rem;
}

.vsl-feature-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vsl-benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
}

.vsl-benefit-icon {
    width: 20px;
    height: 20px;
    background: hsl(var(--accent) / 0.15);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .vsl-benefit-icon svg {
        width: 12px;
        height: 12px;
        color: hsl(var(--accent));
    }

/* Desktop Grid */
.vsl-features-grid {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.vsl-grid-card {
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: all var(--transition-base);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
}

    .vsl-grid-card.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .vsl-grid-card:hover {
        border-color: hsl(var(--primary) / 0.5);
        box-shadow: var(--shadow-lg);
        transform: translateY(-4px);
    }

        .vsl-grid-card:hover .vsl-feature-icon {
            transform: scale(1.1);
        }

    .vsl-grid-card .vsl-feature-icon {
        transition: transform var(--transition-base);
    }

/* Progress Indicator */
.vsl-progress {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.vsl-progress-dot {
    width: 8px;
    height: 8px;
    background: hsl(var(--border));
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

    .vsl-progress-dot.active {
        width: 24px;
        background: hsl(var(--primary));
    }

/* CTA Section */
.vsl-cta {
    margin-top: 3rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    transition-delay: 600ms;
}

    .vsl-cta.visible {
        opacity: 1;
        transform: translateY(0);
    }

.vsl-cta-text {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.vsl-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary-dark)) 100%);
    color: hsl(var(--primary-foreground));
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 14px hsl(var(--primary) / 0.4);
}

    .vsl-cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px hsl(var(--primary) / 0.5);
    }

    .vsl-cta-button:active {
        transform: translateY(0);
    }

    .vsl-cta-button svg {
        width: 20px;
        height: 20px;
        transition: transform var(--transition-base);
    }

    .vsl-cta-button:hover svg {
        transform: translateX(4px);
    }

/* ========================================
       RESPONSIVE STYLES
    ======================================== */
@media (min-width: 768px) {
    .vsl-section {
        padding: 5rem 2rem;
    }

    .vsl-mobile-nav,
    .vsl-feature-card-mobile,
    .vsl-progress {
        display: none;
    }

    .vsl-features-grid {
        display: grid;
    }

    .vsl-play-button {
        width: 96px;
        height: 96px;
    }

        .vsl-play-button svg {
            width: 40px;
            height: 40px;
        }
}

@media (max-width: 767px) {
    .vsl-modal {
        padding: 0;
    }

    .vsl-modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    .vsl-modal-header {
        padding: 1rem;
    }

    .vsl-modal-video {
        flex: 1;
        padding-top: 0;
    }

    .vsl-modal-video iframe {
        position: absolute;
    }
}

@media (min-width: 1024px) {
    .vsl-section {
        padding: 6rem 2rem;
    }

    .vsl-features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }

    .vsl-grid-card {
        padding: 1.25rem;
    }
}
