/**
 * 🚀 BIG AI REBRANDED LANDING PAGE
 * Modern, Dynamic, Interactive Design
 */

/* ============================================
   🎨 CUSTOM FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    /* Colors - Vibrant Gradient Palette */
    --primary-purple: #a855f7;
    --primary-magenta: #ec4899;
    --primary-cyan: #06b6d4;
    --neon-purple: #bf5af2;
    --neon-pink: #ff2d92;
    --neon-cyan: #00f5d4;
    
    /* Background Colors */
    --bg-dark: #0a0a0f;
    --bg-card: rgba(15, 15, 25, 0.8);
    --bg-glass: rgba(168, 85, 247, 0.08);
    
    /* Glows */
    --glow-purple: 0 0 40px rgba(168, 85, 247, 0.5);
    --glow-magenta: 0 0 40px rgba(236, 72, 153, 0.5);
    --glow-neon: 0 0 60px rgba(191, 90, 242, 0.6);
    
    /* Fonts */
    --font-heading: 'Syne', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* ============================================
   🌌 ANIMATED BACKGROUND
   ============================================ */
.landing-bg {
    background: linear-gradient(135deg, 
        #0a0a0f 0%, 
        #1a0a2e 20%,
        #16082a 40%,
        #0f0a1f 60%,
        #0a0a0f 100%);
    background-size: 400% 400%;
    animation: gradientFlow 20s ease infinite;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 50% 100%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 0%; }
}

/* Particle Canvas Background */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Grid Pattern Overlay */
.grid-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(168, 85, 247, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
}

/* ============================================
   ✨ GLITCH EFFECT
   ============================================ */
.glitch-text {
    position: relative;
    font-family: var(--font-heading);
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch-1 2s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    color: var(--neon-cyan);
}

.glitch-text::after {
    animation: glitch-2 2s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    color: var(--neon-pink);
}

@keyframes glitch-1 {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-3px); }
    40% { transform: translateX(3px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(3px); }
    40% { transform: translateX(-3px); }
    60% { transform: translateX(2px); }
    80% { transform: translateX(-2px); }
}

/* ============================================
   💫 NEON GLOW EFFECTS
   ============================================ */
.neon-glow {
    text-shadow: 
        0 0 10px var(--neon-purple),
        0 0 20px var(--neon-purple),
        0 0 40px var(--neon-purple),
        0 0 80px var(--neon-pink);
}

.neon-border {
    border: 2px solid var(--primary-purple);
    box-shadow: 
        0 0 10px var(--primary-purple),
        inset 0 0 10px rgba(168, 85, 247, 0.1);
}

.neon-btn {
    position: relative;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-magenta));
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: white;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 20px rgba(168, 85, 247, 0.4),
        0 10px 40px rgba(236, 72, 153, 0.3);
}

.neon-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.neon-btn:hover::before {
    left: 100%;
}

.neon-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 0 40px rgba(168, 85, 247, 0.6),
        0 15px 50px rgba(236, 72, 153, 0.4);
}

/* Pulse Animation for CTA */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(168, 85, 247, 0.4),
            0 10px 40px rgba(236, 72, 153, 0.3);
    }
    50% {
        box-shadow: 
            0 0 40px rgba(168, 85, 247, 0.8),
            0 15px 60px rgba(236, 72, 153, 0.5),
            0 0 80px rgba(168, 85, 247, 0.4);
    }
}

/* ============================================
   🎴 3D FLIP CARDS
   ============================================ */
.flip-card {
    perspective: 1000px;
    height: 320px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 1.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.flip-card-front {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.flip-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.15));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ============================================
   📊 STATS COUNTER
   ============================================ */
.stat-counter {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-magenta), var(--primary-cyan));
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: var(--glow-purple);
}

/* ============================================
   🎚️ ROI CALCULATOR SLIDERS
   ============================================ */
.roi-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--bg-card) 0%, var(--bg-card) 100%);
    outline: none;
    position: relative;
}

.roi-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-magenta));
    cursor: pointer;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
    transition: transform 0.2s ease;
}

.roi-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.roi-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-magenta));
    cursor: pointer;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
    border: none;
}

.roi-result {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    border: 2px solid var(--primary-purple);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    animation: resultGlow 2s ease-in-out infinite;
}

@keyframes resultGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.3); }
    50% { box-shadow: 0 0 40px rgba(168, 85, 247, 0.5); }
}

/* ============================================
   📋 COMPARISON TABLE
   ============================================ */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
}

.comparison-table th {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-magenta));
    padding: 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
    text-align: center;
}

.comparison-table tr:hover td {
    background: rgba(168, 85, 247, 0.1);
}

.comparison-check {
    color: #22c55e;
    font-size: 1.5rem;
}

.comparison-cross {
    color: #ef4444;
    font-size: 1.5rem;
}

.comparison-winner {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(236, 72, 153, 0.3)) !important;
}

/* Toggle View */
.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-card);
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.view-toggle button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: white;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
}

.view-toggle button.active {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-magenta));
}

/* ============================================
   🎯 QUIZ STEPPER
   ============================================ */
.quiz-container {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 24px;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.quiz-progress {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.quiz-progress-step {
    flex: 1;
    height: 4px;
    background: rgba(168, 85, 247, 0.2);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.quiz-progress-step.active {
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-magenta));
}

.quiz-option {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    background: rgba(168, 85, 247, 0.1);
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    color: white;
    cursor: pointer;
    font-family: var(--font-heading);
    text-align: left;
    transition: all 0.3s ease;
}

.quiz-option:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--primary-purple);
    transform: translateX(8px);
}

.quiz-option.selected {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(236, 72, 153, 0.3));
    border-color: var(--primary-magenta);
}

.quiz-result {
    text-align: center;
    padding: 2rem;
}

.quiz-result-plan {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

/* ============================================
   📽️ TESTIMONIAL SLIDER
   ============================================ */
.testimonial-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    flex: 0 0 100%;
    padding: 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    margin: 0 1rem;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary-purple);
    object-fit: cover;
}

.testimonial-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background: var(--primary-purple);
    transform: scale(1.2);
}

/* ============================================
   📜 SCROLLYTELLING
   ============================================ */
.scroll-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.scroll-step {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-indicator {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.scroll-indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-indicator-dot.active {
    background: var(--primary-purple);
    box-shadow: 0 0 15px var(--primary-purple);
}

/* ============================================
   💬 FLOATING CHAT WIDGET
   ============================================ */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-magenta));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
    transition: all 0.3s ease;
    animation: chatPulse 2s ease-in-out infinite;
}

@keyframes chatPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-toggle i {
    font-size: 1.5rem;
    color: white;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background: var(--bg-dark);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.chat-window.open {
    display: flex;
    animation: chatOpen 0.3s ease;
}

@keyframes chatOpen {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-magenta));
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-message {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-message.bot {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.3);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-message.user {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-magenta));
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-quick-replies {
    padding: 0.75rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
}

.chat-quick-reply {
    padding: 0.5rem 1rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-quick-reply:hover {
    background: rgba(168, 85, 247, 0.3);
}

/* ============================================
   🎨 TYPOGRAPHY
   ============================================ */
.heading-xl {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.heading-lg {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
}

.heading-md {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-magenta) 50%, var(--primary-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-mono {
    font-family: var(--font-mono);
}

/* ============================================
   🎬 ANIMATIONS
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger Animation Delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* Floating Animation */
.float-slow {
    animation: floatSlow 8s ease-in-out infinite;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ============================================
   📱 RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .flip-card {
        height: auto;
    }
    
    .flip-card-inner {
        transform: none !important;
    }
    
    .flip-card-back {
        position: relative;
        transform: none;
        margin-top: 1rem;
    }
    
    .chat-window {
        width: 300px;
        height: 400px;
        right: -1rem;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .testimonial-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
}

