/* AI Web Builder - Landing Page */
:root {
    --brand-primary: #8b5cf6;
    --brand-secondary: #22d3ee;
    --brand-accent: #60a5fa;
    --brand-gradient: linear-gradient(135deg, #8b5cf6 0%, #60a5fa 50%, #22d3ee 100%);
    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    --accent-glow: rgba(139, 92, 246, 0.4);
    --indigo: #60a5fa;
    --bg-dark: #030712;
}

* { font-family: 'Inter', system-ui, -apple-system, sans-serif; }

/* ═══ Animations ═══ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ═══ Zook Orb Glow - Desktop uses filter, Mobile uses box-shadow ═══ */
@keyframes zook-glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.4)) drop-shadow(0 0 30px rgba(56, 189, 248, 0.2)) drop-shadow(0 0 60px rgba(99, 102, 241, 0.15));
        -webkit-filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.4)) drop-shadow(0 0 30px rgba(56, 189, 248, 0.2)) drop-shadow(0 0 60px rgba(99, 102, 241, 0.15));
    }
    50% {
        filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.6)) drop-shadow(0 0 50px rgba(99, 102, 241, 0.35)) drop-shadow(0 0 80px rgba(139, 92, 246, 0.2));
        -webkit-filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.6)) drop-shadow(0 0 50px rgba(99, 102, 241, 0.35)) drop-shadow(0 0 80px rgba(139, 92, 246, 0.2));
    }
}

/* Mobile glow - ONLY box-shadow, no filter (iOS Safari compatible) */
@keyframes zook-glow-box {
    0%, 100% {
        box-shadow: 0 0 15px 5px rgba(56, 189, 248, 0.25),
                    0 0 30px 10px rgba(99, 102, 241, 0.15),
                    0 0 45px 15px rgba(139, 92, 246, 0.08);
    }
    50% {
        box-shadow: 0 0 25px 10px rgba(56, 189, 248, 0.4),
                    0 0 50px 20px rgba(99, 102, 241, 0.25),
                    0 0 70px 25px rgba(139, 92, 246, 0.15);
    }
}

/* Orb glow - box-shadow (works everywhere, no filter issues on iOS) */
.zook-orb-glow {
    display: block;
    border-radius: 50%;
    object-fit: cover;
    animation: zook-float 3s ease-in-out infinite, zook-glow-box 2.5s ease-in-out infinite;
}

/* ═══ Zook Orb Animations ═══ */
@keyframes zook-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes zook-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.2));
        -webkit-filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.2));
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.5));
        -webkit-filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.5));
    }
}
@keyframes zook-success {
    0% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(34,197,94,0.4)); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 24px rgba(34,197,94,0.7)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(34,197,94,0.4)); }
}

.zook-orb {
    width: 64px; height: auto;
    animation: zook-float 3s ease-in-out infinite, zook-pulse 2s ease-in-out infinite;
    -webkit-animation: zook-float 3s ease-in-out infinite, zook-pulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
}
.zook-orb-xs { width: 24px; height: auto; animation: zook-float 3s ease-in-out infinite; }
.zook-orb-sm { width: 32px; height: auto; animation: zook-float 3s ease-in-out infinite, zook-pulse 2.5s ease-in-out infinite; }
.zook-orb-lg {
    width: 120px; height: auto;
    animation: zook-float 3s ease-in-out infinite, zook-pulse 2s ease-in-out infinite;
    -webkit-animation: zook-float 3s ease-in-out infinite, zook-pulse 2s ease-in-out infinite;
}
.zook-orb-idle { animation: zook-float 3s ease-in-out infinite; }
.zook-orb-active { animation: zook-float 2.5s ease-in-out infinite, zook-pulse 1.5s ease-in-out infinite; transform: scale(1.05); }
.zook-orb-error { animation: zook-float 3s ease-in-out infinite; filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.5)) hue-rotate(160deg); }
.zook-orb-success { animation: zook-success 1.5s ease-in-out; }

/* Logo hover */
.hover-logo:hover img { transform: scale(1.05); }

/* ═══ Reveal / Scroll Animations ═══ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ═══ Navbar ═══ */
.nav-landing {
    transition: all 0.3s ease;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.nav-landing.scrolled {
    background: rgba(3, 7, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(75, 85, 99, 0.3);
}

.nav-link {
    position: relative;
    transition: color 0.2s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--indigo));
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ═══ Mobile Menu (Supernova fullscreen overlay pattern) ═══ */
#sn-hamburger {
    display: none;
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}
#sn-hamburger svg {
    width: 28px;
    height: 28px;
    fill: #FFF;
    display: block;
}
@media (max-width: 767px) {
    #sn-hamburger { display: flex; }
}

#sn-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 7, 18, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
#sn-mobile-overlay.active {
    display: flex;
}
#sn-mobile-overlay a {
    color: #FFF;
    font-size: 1.5rem;
    text-decoration: none;
    padding: 8px 20px;
}
/* No fancy animations - just show/hide reliably */
#sn-close-menu {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: #FFF;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
/* Close menu visible when overlay active */

/* ═══ Hero ═══ */
.hero-bg {
    position: relative;
    overflow: hidden;
    background: var(--bg-dark);
    z-index: 0;
}
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3,7,18,0.5) 0%, rgba(3,7,18,0.35) 40%, rgba(3,7,18,0.5) 80%, rgb(3,7,18) 100%);
    z-index: 2;
    pointer-events: none;
}
.hero-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 3;
}
.hero-badge {
    animation: float 3s ease-in-out infinite;
    background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(99,102,241,0.15));
    border: 1px solid rgba(124,58,237,0.3);
    backdrop-filter: blur(10px);
}
.hero-headline {
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 50%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

/* ═══ SECTION STACKING - every section after hero paints on top ═══ */
.landing-section {
    position: relative;
    z-index: 1;
    background-color: var(--bg-dark);
}

/* ═══ Buttons ═══ */
.btn-cta {
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn-cta::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(124,58,237,0.5); }
.btn-cta:hover::before { left: 100%; }

.btn-outline {
    border: 1px solid rgba(124,58,237,0.5);
    transition: all 0.3s ease;
}
.btn-outline:hover {
    background: rgba(124,58,237,0.1);
    border-color: rgba(124,58,237,0.8);
    transform: translateY(-2px);
}

/* ═══ Step Cards ═══ */
.step-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.step-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(124,58,237,0.3);
    transform: translateY(-4px);
}
.step-number {
    background: linear-gradient(135deg, var(--accent), var(--indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.step-connector {
    background: linear-gradient(90deg, transparent, rgba(124,58,237,0.3), transparent);
}

/* ═══ Glass Cards ═══ */
.glass-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}
.glass-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(124,58,237,0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.glass-card .card-icon {
    background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(99,102,241,0.15));
    border: 1px solid rgba(124,58,237,0.2);
}

/* ═══ Portfolio / Gallery ═══ */
.portfolio-img {
    box-shadow: 0 0 60px rgba(124,58,237,0.2), 0 0 120px rgba(99,102,241,0.1);
    border: 1px solid rgba(124,58,237,0.3);
}
.gallery-card {
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.4s ease;
}
.gallery-card:hover {
    border-color: rgba(124,58,237,0.4);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 60px rgba(124,58,237,0.15);
}

/* ═══ Stats ═══ */
.stats-bg {
    position: relative;
    background-size: cover;
    background-position: center;
}
.stats-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(3,7,18) 0%, rgba(3,7,18,0.85) 50%, rgb(3,7,18) 100%);
}
.stat-value {
    background: linear-gradient(135deg, #ffffff, var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══ Testimonials ═══ */
.testimonial-card { position: relative; }
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 12px; right: 16px;
    font-size: 3rem;
    line-height: 1;
    color: rgba(124,58,237,0.15);
    font-family: Georgia, serif;
}

/* ═══ FAQ ═══ */
.faq-item summary {
    list-style: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] {
    background: rgba(255,255,255,0.03);
    border-color: rgba(124,58,237,0.2);
}
.faq-item summary svg {
    -webkit-transition: transform 0.2s ease;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

/* ═══ Pricing ═══ */
.pricing-popular {
    border-color: rgba(124,58,237,0.4);
    background: rgba(124,58,237,0.05);
    box-shadow: 0 0 40px rgba(124,58,237,0.15);
}
.pricing-popular:hover { box-shadow: 0 0 60px rgba(124,58,237,0.25); }

/* ═══ Contact Form ═══ */
.form-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    font-size: 16px; /* Prevent iOS zoom */
}
.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.2);
    background: rgba(255,255,255,0.08);
}
.form-btn {
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    transition: all 0.3s ease;
}
.form-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(124,58,237,0.5); }
.form-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.form-btn .spinner { display: none; }
.form-btn.loading .spinner { display: inline-block; }
.form-btn.loading .btn-text { display: none; }

/* ═══ Floating Badges ═══ */
.animate-float-slow { animation: float 4s ease-in-out infinite; }
.animate-float-delayed { animation: float 4s ease-in-out infinite; animation-delay: 1.5s; }

/* ═══ Footer ═══ */
.footer-gradient { background: linear-gradient(180deg, rgb(3,7,18) 0%, rgb(10,10,30) 100%); }

/* ═══ Utilities ═══ */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124,58,237,0.3), transparent);
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #030712; }
::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #4b5563; }

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE (max-width: 767px)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    /* CRITICAL: Disable transform on reveal to prevent layout shifts on mobile */
    .reveal {
        transform: none;
        opacity: 0;
        transition: opacity 0.5s ease;
    }
    .reveal.visible {
        opacity: 1;
        transform: none;
    }
    .reveal-delay-1,
    .reveal-delay-2,
    .reveal-delay-3,
    .reveal-delay-4,
    .reveal-delay-5,
    .reveal-delay-6 {
        transition-delay: 0s;
    }

    /* Hero */
    .hero-bg {
        background-attachment: scroll;
    }
    .hero-headline {
        font-size: 1.75rem;
        line-height: 1.15;
    }

    /* Orb glow mobile - same as desktop, already uses simple zook-pulse */

    /* Disable hover transforms on mobile */
    .glass-card:hover,
    .step-card:hover,
    .btn-cta:hover,
    .btn-outline:hover {
        transform: none;
    }

    /* Stats */
    .stat-value {
        font-size: 1.75rem !important;
    }

    /* FAQ tap area */
    .faq-item summary {
        padding: 1.25rem 1.5rem;
        min-height: 48px;
    }
}
