:root {
    /* Premium SaaS Color Palette */
    --primary: #4f46e5;      /* Electric Blue / Indigo */
    --primary-glow: rgba(79, 70, 229, 0.4);
    --secondary: #7c3aed;    /* Purple Accent */
    --secondary-glow: rgba(124, 58, 237, 0.4);
    
    --bg-dark: #09090b;      /* Deep Charcoal / Near Black */
    --bg-card: rgba(24, 24, 27, 0.6); /* Glassmorphism Card BG */
    --bg-card-hover: rgba(39, 39, 42, 0.8);
    
    --text-main: #f8fafc;
    --text-muted: #a1a1aa;
    
    --border-light: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --success: #10b981;
    --error: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* Base Body Background Gradient & Glows */
body::before {
    content: '';
    position: fixed;
    top: -20%; left: -10%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    opacity: 0.3;
    z-index: -1;
    filter: blur(80px);
}
body::after {
    content: '';
    position: fixed;
    bottom: -20%; right: -10%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 60%);
    opacity: 0.2;
    z-index: -1;
    filter: blur(80px);
}

.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5 {
    letter-spacing: -0.03em;
    font-weight: 700;
}

p {
    letter-spacing: -0.01em;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-primary {
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    transition: all 0.3s ease;
}
.glass-panel:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(79, 70, 229, 0); }
    100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-fade-in { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}
.btn-primary:hover {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.23);
}
.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}
.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

/* Auth Overlay & Card - Preserved but restyled */
.auth-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000; padding: 20px;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
}
.auth-overlay.visible {
    opacity: 1; visibility: visible;
}
.auth-card {
    background: #18181b; /* solid dark for modal */
    border: 1px solid var(--border-light);
    padding: 40px;
    border-radius: 20px;
    width: 100%; max-width: 440px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    position: relative;
    transform: scale(0.95) translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.auth-overlay.visible .auth-card {
    transform: scale(1) translateY(0);
}
.auth-card h2 { font-size: 28px; margin-bottom: 8px; }
.auth-card p { color: var(--text-muted); font-size: 15px; margin-bottom: 32px; }

.social-btn {
    width: 100%; padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: #27272a;
    color: #fff; font-weight: 500; font-size: 15px;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px;
    transition: all 0.2s ease; margin-bottom: 12px;
}
.social-btn:hover { background: #3f3f46; border-color: var(--border-hover); }
.social-btn.google { background: #fff; color: #09090b; border: none; }
.social-btn.google:hover { background: #f4f4f5; }

.divider {
    display: flex; align-items: center; gap: 16px; margin: 24px 0;
    color: var(--text-muted); font-size: 13px; font-weight: 500;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border-light); }

.input-group { text-align: left; margin-bottom: 16px; }
.input-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; color: var(--text-muted); }
.input-group input {
    width: 100%; padding: 12px 16px;
    border-radius: 8px; border: 1px solid var(--border-light);
    background: #09090b; color: #fff; font-size: 15px;
    transition: all 0.2s ease;
}
.input-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(79,70,229,0.2); }
.auth-error {
    background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--error); padding: 12px 16px; border-radius: 8px;
    font-size: 14px; margin-bottom: 24px; text-align: left;
}
.hidden { display: none !important; }

/* Landing Page Specific Additions */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; }
.navbar .logo { font-size: 24px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 8px; }
.navbar .logo svg { color: var(--primary); }

/* Policy Pages Layouts */
.policy-container {
    max-width: 800px;
    margin: 80px auto;
    padding: 40px;
}
.policy-container h1 { font-size: 36px; margin-bottom: 16px; }
.policy-container h2 { font-size: 24px; margin-top: 32px; margin-bottom: 16px; color: #fff; border-bottom: 1px solid var(--border-light); padding-bottom: 8px; }
.policy-container p, .policy-container li { color: var(--text-muted); margin-bottom: 16px; line-height: 1.7; }
.policy-container ul { margin-left: 24px; margin-bottom: 16px; }

/* Animations */
@keyframes pulseDot {
    0% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.4; transform: scale(0.9); }
}
@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes shimmerGlow {
    0% { text-shadow: 0 0 10px rgba(255,255,255,0); }
    50% { text-shadow: 0 0 20px rgba(255,255,255,0.4); }
    100% { text-shadow: 0 0 10px rgba(255,255,255,0); }
}
@keyframes flowingLine {
    0% { stroke-dashoffset: 8; }
    100% { stroke-dashoffset: 0; }
}
@keyframes softPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(79, 70, 229, 0); }
    50% { transform: scale(1.02); box-shadow: 0 0 20px rgba(79, 70, 229, 0.2); }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(79, 70, 229, 0); }
}

.float-item-1 { animation: slideUpFade 0.6s ease-out forwards; }
.float-item-2 { animation: slideUpFade 0.6s ease-out 0.3s forwards; opacity: 0; }
.shimmer-text { animation: shimmerGlow 3s infinite ease-in-out; }
.pulse-dot-anim { animation: pulseDot 2s infinite ease-in-out; }
.soft-pulse { animation: softPulse 3s infinite ease-in-out; }

/* Responsive Hero Mockup */
@media (max-width: 1023px) {
    .hero-mockup-container {
        padding: 16px !important;
        gap: 16px !important;
    }
    .hero-sidebar {
        width: 180px !important;
        padding-right: 12px !important;
    }
}

@media (max-width: 767px) {
    .hero-mockup-wrapper {
        padding: 4px !important;
        overflow-x: hidden !important;
    }
    .hero-mockup-container {
        flex-direction: column !important;
        padding: 12px !important;
        gap: 16px !important;
        min-height: auto !important;
        overflow-x: hidden !important;
    }
    .hero-main-content {
        gap: 16px !important;
        overflow-x: hidden !important;
    }
    .hero-sidebar {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
        padding-right: 0 !important;
        padding-bottom: 16px !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
    }
    .hero-sidebar > div {
        flex: 1 1 45%;
        padding: 8px !important;
        font-size: 12px !important;
        justify-content: center !important;
    }
    .hero-sidebar > div:last-child {
        flex: 1 1 100%;
        margin-top: 8px !important;
    }
    .hero-stats-row {
        flex-direction: column !important;
        gap: 12px !important;
    }
    .hero-flow-row {
        flex-direction: column !important;
        gap: 12px !important;
    }
    .hero-stats-row > div, .hero-flow-row > div {
        width: 100% !important;
        flex: none !important;
    }
    .shimmer-text {
        font-size: 24px !important;
    }
}


/* --- V2 LANDING PAGE ADDITIONS --- */

/* Marquee */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}
.marquee-content {
    display: inline-flex;
    gap: 40px;
    animation: scrollMarquee 30s linear infinite;
}
@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Sticky Cards */
.sticky-stack-container {
    position: relative;
    padding-bottom: 60px;
}
.sticky-card {
    position: sticky;
    transition: transform 0.3s ease;
}
.sticky-card:nth-child(1) { top: 100px; z-index: 1; }
.sticky-card:nth-child(2) { top: 120px; z-index: 2; }
.sticky-card:nth-child(3) { top: 140px; z-index: 3; }

/* FAQ Accordion */
.faq-accordion {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}
.faq-item summary {
    padding: 24px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    list-style: none;
    position: relative;
    color: #fff;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 300;
    color: var(--primary);
    transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}
.faq-content {
    padding: 0 24px 24px 24px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Hero Funnel */
.funnel-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}
.funnel-node {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 16px 24px;
    margin: 0 auto;
    width: 100%;
    backdrop-filter: blur(12px);
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}
.funnel-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    margin: 0 auto;
    position: relative;
}
.funnel-line::after {
    content: '';
    position: absolute;
    top: 0; left: -3px; width: 8px; height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff;
    animation: flowDown 2s infinite linear;
}
@keyframes flowDown {
    0% { top: 0; opacity: 1; }
    80% { top: 40px; opacity: 0.5; }
    100% { top: 40px; opacity: 0; }
}
