/* ============================================
   AI INCOME ENGINE BOOTCAMP — Design System
   ============================================ */

/* --- CSS Custom Properties (Theme Tokens) --- */
:root {
    --color-page:         9 9 11;         /* zinc-950 */
    --color-surface:      24 24 27;       /* zinc-900 */
    --color-surface-alt:  39 39 42;       /* zinc-800 */
    --color-content:      250 250 250;    /* zinc-50 */
    --color-muted:        161 161 170;    /* zinc-400 */
    --color-borderline:   63 63 70;       /* zinc-700 */

    --color-accent:       6 182 212;      /* cyan-500 */
    --color-accent-dark:  8 145 178;      /* cyan-600 */
    --color-royal:        99 102 241;     /* indigo-500 */
    --color-gold:         245 158 11;     /* amber-500 */
    --color-success:      34 197 94;      /* green-500 */
    --color-whatsapp:     37 211 102;
}

/* Light mode overrides */
.theme-light {
    --color-page:         250 250 250;    /* zinc-50 */
    --color-surface:      255 255 255;    /* pure white */
    --color-surface-alt:  244 244 245;    /* zinc-100 */
    --color-content:      9 9 11;         /* zinc-950 */
    --color-muted:        113 113 122;    /* zinc-500 */
    --color-borderline:   228 228 231;    /* zinc-200 */
    --color-accent:       8 145 178;      /* cyan-600 */
}

/* --- Light Theme Components Styling Enhancements --- */
.theme-light .glass {
    background: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(9, 9, 11, 0.08) !important;
    box-shadow: 0 4px 20px rgba(9, 9, 11, 0.02) !important;
}

.theme-light .glass-strong {
    background: rgba(255, 255, 255, 0.88) !important;
    border-color: rgba(9, 9, 11, 0.1) !important;
    box-shadow: 0 10px 30px rgba(9, 9, 11, 0.04) !important;
}

.theme-light .bg-surface,
.theme-light .bg-page\/50 {
    box-shadow: 0 4px 15px rgba(9, 9, 11, 0.02) !important;
    border: 1px solid rgba(9, 9, 11, 0.06) !important;
}

.theme-light .card-hover {
    box-shadow: 0 4px 20px rgba(9, 9, 11, 0.02);
    border: 1px solid rgba(9, 9, 11, 0.06) !important;
}

.theme-light .card-hover:hover {
    box-shadow: 0 20px 40px -5px rgba(9, 9, 11, 0.08) !important;
    border-color: rgb(var(--color-accent)) !important;
}

/* Translucent top navbar overrides when overlaying the dark hero section in light theme */
.theme-light #navbar:not(.glass-strong) a:not(.btn-shine) {
    color: rgba(248, 250, 252, 0.8) !important;
}

.theme-light #navbar:not(.glass-strong) a:not(.btn-shine):hover {
    color: rgb(var(--color-accent)) !important;
}

.theme-light #navbar:not(.glass-strong) #theme-toggle,
.theme-light #navbar:not(.glass-strong) #theme-toggle-mobile,
.theme-light #navbar:not(.glass-strong) #mobile-menu-btn {
    color: rgba(248, 250, 252, 0.8) !important;
    border-color: rgba(248, 250, 252, 0.2) !important;
}

.theme-light #navbar:not(.glass-strong) .dark-logo {
    display: block !important;
}

.theme-light #navbar:not(.glass-strong) .light-logo {
    display: none !important;
}


/* --- Base Styles --- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: rgb(var(--color-page));
    color: rgb(var(--color-content));
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: rgb(var(--color-accent));
    color: rgb(var(--color-page));
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(var(--color-muted), 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgb(var(--color-accent));
}

/* --- Utility Classes --- */
.glass {
    background: rgba(var(--color-surface), 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(var(--color-borderline), 0.3);
}

.glass-strong {
    background: rgba(var(--color-surface), 0.85);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(var(--color-borderline), 0.4);
}

.gradient-text {
    background: linear-gradient(135deg, rgb(var(--color-accent)), rgb(var(--color-royal)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-gold {
    background: linear-gradient(135deg, rgb(var(--color-gold)), #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Animations --- */

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger 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; }

/* Float */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}
.animate-float {
    animation: float 5s ease-in-out infinite;
}

/* Gentle pulse glow */
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(var(--color-accent), 0.3); }
    50% { box-shadow: 0 0 40px rgba(var(--color-accent), 0.6); }
}
.animate-glow {
    animation: glow-pulse 3s ease-in-out infinite;
}

/* Slide in from left */
@keyframes slide-in-left {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}
.animate-slide-left {
    animation: slide-in-left 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Slide in from right */
@keyframes slide-in-right {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}
.animate-slide-right {
    animation: slide-in-right 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scale in */
@keyframes scale-in {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}
.animate-scale-in {
    animation: scale-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Marquee scroll */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-marquee {
    animation: marquee 30s linear infinite;
}

/* Counter number spin */
@keyframes count-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Gradient background shift */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

/* Card hover lift */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Button shine effect */
.btn-shine {
    position: relative;
    overflow: hidden;
}
.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    transform: rotate(30deg);
    transition: transform 0.6s;
}
.btn-shine:hover::after {
    transform: rotate(30deg) translateX(100%);
}

/* Image parallax overlay */
.img-overlay {
    position: relative;
    overflow: hidden;
}
.img-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(var(--color-page)) 0%, transparent 60%);
    pointer-events: none;
}

/* FAQ Answer Expand */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}
.faq-answer.open {
    max-height: 300px;
    opacity: 1;
}
