/* ==========================================
   APEX DESIGN SYSTEM & STYLESHEET
   Aesthetics: Sleek Obsidian Dark, Neon Violet/Cyan gradients, Glassmorphism
   ========================================== */

/* --- Custom Properties (Variables) --- */
:root {
    /* Color Palette */
    --bg-main: #09090b;       /* Obsidian dark background */
    --bg-card: rgba(17, 17, 21, 0.75); /* Translucent glass card */
    --bg-card-hover: rgba(26, 26, 32, 0.85);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-active: rgba(139, 92, 246, 0.4);
    
    --text-primary: #f4f4f5;
    --text-muted: #a1a1aa;
    --text-inverse: #09090b;

    /* Gradient Colors */
    --primary-grad: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    --primary-glow: rgba(139, 92, 246, 0.35);
    
    --accent-violet: #8b5cf6;
    --accent-cyan: #06b6d4;
    
    /* Layout & Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --max-width: 1200px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* --- Base & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent-violet);
    outline-offset: 2px;
}

/* --- Utilities / Gradients --- */
.gradient-text {
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow Background Effects */
.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
}

.glow-hero-1 {
    top: -10%;
    left: 10%;
    background: var(--accent-violet);
}

.glow-hero-2 {
    top: 15%;
    right: 5%;
    background: var(--accent-cyan);
}

.glow-pricing {
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-violet);
    width: 800px;
    height: 400px;
}

.glow-cta {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-cyan);
    width: 700px;
    height: 400px;
}

/* Scroll reveal class setup */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 30px;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: var(--primary-grad);
    color: var(--text-inverse);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.shadow-glow {
    box-shadow: 0 8px 20px -6px var(--primary-glow);
}

/* --- Navigation Bar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(9, 9, 11, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(9, 9, 11, 0.95);
    box-shadow: 0 1px 20px rgba(0,0,0,0.4);
}

.navbar.scrolled .nav-container {
    padding-top: 12px;
    padding-bottom: 12px;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-primary);
}

.logo-icon {
    color: var(--accent-violet);
    fill: rgba(139, 92, 246, 0.2);
    width: 24px;
    height: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-btn-mobile {
    display: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-btn {
    display: none;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.mobile-menu-btn .close-icon {
    display: none;
}

.mobile-menu-btn.open .menu-icon {
    display: none;
}

.mobile-menu-btn.open .close-icon {
    display: block;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 150px 24px 80px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.hero-container {
    max-width: 850px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #c084fc;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.badge-icon {
    width: 14px;
    height: 14px;
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 40px auto;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 64px;
}

/* Hero Preview Window */
.hero-preview-container {
    width: 100%;
    perspective: 1000px;
}

.hero-preview-border {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    padding: 6px;
    border-radius: 16px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border-color);
}

.hero-preview-window {
    background: #0f0f13;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.window-header {
    height: 40px;
    background: #14141a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: relative;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.window-dots .dot-red   { background: #ff5f57; }
.window-dots .dot-yellow { background: #febc2e; }
.window-dots .dot-green  { background: #28c840; }

.window-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.window-content {
    background: #09090b;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dashboard-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Logos / Trusted By --- */
.logos-section {
    padding: 60px 24px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
}

.logos-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 28px;
    font-weight: 600;
}

.logos-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
}

.logo-item {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.logo-item i {
    width: 18px;
    height: 18px;
}

.logo-item:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px auto;
}

.section-title {
    font-size: 2.6rem;
    line-height: 1.2;
    margin-bottom: 18px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* --- Features Section --- */
.features-section {
    padding: 100px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 36px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-active);
    transform: translateY(-4px);
}

.feature-icon-container {
    width: 48px;
    height: 48px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon {
    color: var(--accent-violet);
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Pricing Section --- */
.pricing-section {
    position: relative;
    padding: 100px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    overflow: visible;
}

.toggle-container {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 14px;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
}

.toggle-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.toggle-label.active {
    color: var(--text-primary);
}

.badge-discount {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-cyan);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 9999px;
    font-weight: 600;
    margin-left: 4px;
}

.toggle-switch {
    width: 48px;
    height: 26px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    position: relative;
    transition: var(--transition-smooth);
}

.toggle-switch.yearly {
    background: var(--accent-violet);
}

.toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--text-primary);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.toggle-switch.yearly .toggle-knob {
    left: 25px;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.pricing-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.pricing-card-header h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.pricing-card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.price-container {
    display: flex;
    align-items: baseline;
    margin-bottom: 32px;
}

.price-container .currency {
    font-size: 1.6rem;
    font-weight: 700;
    align-self: flex-start;
    margin-right: 4px;
}

.price-container .price {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
    will-change: transform, opacity;
}

.price-container .duration {
    color: var(--text-muted);
    margin-left: 6px;
    font-size: 0.95rem;
}

.pricing-card-body {
    flex-grow: 1;
    margin-bottom: 40px;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.pricing-features li i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.pricing-features li i[data-lucide="check"] {
    color: var(--accent-cyan);
}

.pricing-features li i[data-lucide="x"] {
    color: rgba(255, 255, 255, 0.2);
}

.pricing-features li.disabled {
    color: rgba(255, 255, 255, 0.35);
}

/* Premium Pro Card Styles */
.premium-card {
    border: 1px solid var(--border-color-active);
    background: rgba(139, 92, 246, 0.03);
    position: relative;
}

.premium-card:hover {
    border-color: var(--accent-violet);
    box-shadow: 0 15px 40px -15px var(--primary-glow);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-grad);
    color: var(--text-inverse);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 14px;
    border-radius: 9999px;
}

/* --- FAQ Section --- */
.faq-section {
    padding: 100px 24px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.faq-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
}

.faq-chevron {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent-violet);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-content {
    max-height: 250px;
}

.faq-content p {
    padding: 0 24px 24px 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- CTA Section --- */
.cta-section {
    position: relative;
    padding: 120px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.cta-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 80px 40px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-desc {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 40px auto;
}


.cta-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border-color);
    background: rgba(9, 9, 11, 0.8);
    padding: 80px 24px 40px 24px;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 320px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 16px;
}

.footer-links-grid {
    display: flex;
    gap: 64px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.footer-column a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-column a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    color: rgba(255, 255, 255, 0.4);
    transition: var(--transition-fast);
}

.footer-socials a:hover {
    color: var(--text-primary);
}

.footer-socials a i {
    width: 20px;
    height: 20px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-card:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: flex;
        z-index: 101;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #0d0d12;
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: var(--transition-smooth);
        z-index: 102;
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .nav-btn-mobile {
        display: inline-flex;
        background: var(--primary-grad);
        color: var(--text-inverse);
        padding: 12px 32px;
        border-radius: 9999px;
        font-weight: 600;
        margin-top: 20px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card:last-child {
        grid-column: span 1;
    }
    
    .cta-title {
        font-size: 2.2rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 32px;
    }
    
    .footer-links-grid {
        flex-direction: column;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* ==========================================
   COMMERCIAL-GRADE EXTENSIONS
   ========================================== */

/* 1. Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary-grad);
    width: 0%;
    z-index: 999;
    transition: width 0.1s ease-out;
}

/* 2. Sleek Input Form Styling */
.cta-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 32px auto 16px auto;
    width: 100%;
}

.cta-input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 14px 20px;
    border-radius: 9999px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    outline: none;
}

.cta-input:focus-visible {
    outline: 2px solid var(--accent-violet);
    outline-offset: 2px;
}

.cta-input:focus {
    border-color: var(--accent-violet);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.15);
}

.footer-newsletter {
    display: flex;
    margin-top: 16px;
    position: relative;
    max-width: 280px;
}

.footer-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 10px 48px 10px 16px;
    border-radius: 9999px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-fast);
}

.footer-input:focus {
    border-color: var(--accent-violet);
    background: rgba(255, 255, 255, 0.06);
}

.footer-input:focus-visible {
    outline: 2px solid var(--accent-violet);
    outline-offset: 2px;
}

.footer-submit-btn {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-grad);
    color: var(--text-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.footer-submit-btn i {
    width: 14px;
    height: 14px;
}

.footer-submit-btn:hover {
    transform: scale(1.05);
}

/* 3. Interactive Video Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal.closing .modal-container {
    animation: modal-zoom-out 0.2s ease forwards;
}

@keyframes modal-zoom-out {
    to { transform: scale(0.95); opacity: 0; }
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(8px);
}

.modal-container {
    background: #0d0d12;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modal-zoom 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modal-zoom {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    z-index: 2;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

.modal-video-wrapper {
    width: 100%;
    height: 100%;
}

.mock-video-player {
    width: 100%;
    height: 100%;
    background: #09090b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px;
    text-align: center;
}

.mock-video-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--accent-violet);
    filter: blur(80px);
    opacity: 0.3;
}

.mock-play-btn {
    width: 64px;
    height: 64px;
    background: var(--primary-grad);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
    transition: var(--transition-smooth);
    cursor: default;
}

.mock-play-icon {
    color: white;
    width: 28px;
    height: 28px;
    margin-left: 4px; /* optical center for play icon */
}

.mock-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
}

.mock-video-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.mock-video-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 450px;
}

/* 4. Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(17, 17, 21, 0.9);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 98;
    max-width: 450px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
    transform: translateY(120px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cookie-icon {
    color: var(--accent-cyan);
    flex-shrink: 0;
    margin-top: 2px;
    width: 20px;
    height: 20px;
}

.cookie-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.cookie-content a {
    color: var(--accent-violet);
    text-decoration: underline;
}

/* 5. Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 97;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--accent-violet);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px -3px var(--primary-glow);
}

/* 6. Success Toast Notification */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    background: rgba(9, 9, 11, 0.95);
    border: 1px solid #10b981; /* green border */
    border-radius: 12px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.2);
    pointer-events: auto;
    animation: toast-slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    max-height: 100px;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, margin 0.4s ease, opacity 0.4s ease, transform 0.4s ease, border 0.4s ease;
}

@keyframes toast-slide-in {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.toast-icon {
    color: #10b981;
    width: 20px;
    height: 20px;
}

.toast-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive adjustments for new features */
@media (max-width: 768px) {
    .cta-form {
        flex-direction: column;
        border-radius: 16px;
    }
    .cookie-banner {
        left: 16px;
        right: 16px;
        bottom: 16px;
        flex-direction: column;
        align-items: stretch;
        max-width: none;
    }
    .cookie-banner button {
        align-self: flex-end;
    }
    .back-to-top {
        left: auto;
        right: 16px;
        bottom: 90px; /* offset to not block menu */
    }
}

