/* ==========================================================================
   SOLID Chat Automasi - Modern SaaS Landing Page Stylesheet
   Theme: Emerald Slate (Dark-First with Full Light-Mode Parity)
   ========================================================================== */

:root {
    /* Base Dark Theme (Default) */
    --lp-bg: #0B131B;
    --lp-surface: #111E2E;
    --lp-surface2: #16263A;
    --lp-surface3: #1E324A;
    --lp-border: #233953;
    --lp-border-subtle: #192C40;
    --lp-border-glow: rgba(16, 185, 129, 0.35);
    
    /* Typography Colors (Dark Mode) */
    --lp-heading: #FFFFFF;
    --lp-text: #F1F5F9;
    --lp-muted: #94A3B8;
    --lp-subtle: #64748B;
    
    /* Accents */
    --lp-emerald: #10B981;
    --lp-emerald-hover: #059669;
    --lp-emerald-glow: rgba(16, 185, 129, 0.35);
    --lp-emerald-surface: rgba(16, 185, 129, 0.12);
    --lp-emerald-border: rgba(16, 185, 129, 0.3);
    
    --lp-cyan: #06B6D4;
    --lp-purple: #8B5CF6;
    --lp-amber: #F59E0B;
    --lp-pink: #EC4899;
    --lp-blue: #3B82F6;
    
    /* Glass Components */
    --lp-card-bg: rgba(17, 30, 46, 0.85);
    --lp-nav-bg: rgba(11, 19, 27, 0.88);
    --lp-code-bg: #080D13;
    
    /* Chat Mockup Bubbles */
    --lp-chat-bg: #091017;
    --lp-bubble-in: #1E293B;
    --lp-bubble-in-text: #F8FAFC;
    --lp-bubble-in-subtext: #94A3B8;
    --lp-bubble-out-ai: #064E3B;
    --lp-bubble-out-ai-text: #ECFDF5;
    --lp-bubble-out-cs: #0369A1;
    --lp-bubble-out-cs-text: #F0F9FF;

    /* Fonts */
    --lp-font: 'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --lp-font-mono: 'Fira Code', monospace;
}

[data-theme="light"] {
    /* Base Light Theme */
    --lp-bg: #F8FAFC;
    --lp-surface: #FFFFFF;
    --lp-surface2: #F1F5F9;
    --lp-surface3: #E2E8F0;
    --lp-border: #CBD5E1;
    --lp-border-subtle: #E2E8F0;
    --lp-border-glow: rgba(16, 185, 129, 0.4);
    
    /* Typography Colors (Light Mode) */
    --lp-heading: #0F172A;
    --lp-text: #1E293B;
    --lp-muted: #475569;
    --lp-subtle: #64748B;
    
    /* Accents */
    --lp-emerald: #059669;
    --lp-emerald-hover: #047857;
    --lp-emerald-glow: rgba(5, 150, 105, 0.25);
    --lp-emerald-surface: rgba(5, 150, 105, 0.1);
    --lp-emerald-border: rgba(5, 150, 105, 0.25);
    
    --lp-cyan: #0891B2;
    --lp-purple: #7C3AED;
    --lp-amber: #D97706;
    --lp-pink: #DB2777;
    --lp-blue: #2563EB;
    
    /* Glass Components */
    --lp-card-bg: rgba(255, 255, 255, 0.95);
    --lp-nav-bg: rgba(248, 250, 252, 0.92);
    --lp-code-bg: #0F172A;
    
    /* Chat Mockup Bubbles */
    --lp-chat-bg: #E2E8F0;
    --lp-bubble-in: #FFFFFF;
    --lp-bubble-in-text: #0F172A;
    --lp-bubble-in-subtext: #64748B;
    --lp-bubble-out-ai: #D1FAE5;
    --lp-bubble-out-ai-text: #064E3B;
    --lp-bubble-out-cs: #E0F2FE;
    --lp-bubble-out-cs-text: #0369A1;
}

body.lp-body {
    background-color: var(--lp-bg);
    color: var(--lp-text);
    font-family: var(--lp-font);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography Helpers */
.lp-heading {
    color: var(--lp-heading) !important;
}

.lp-text {
    color: var(--lp-text) !important;
}

.lp-muted {
    color: var(--lp-muted) !important;
}

.lp-subtle {
    color: var(--lp-subtle) !important;
}

/* Ambient Background Lights */
.lp-ambient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.lp-orb-1 {
    position: absolute;
    top: -10%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0) 70%);
    filter: blur(80px);
}

.lp-orb-2 {
    position: absolute;
    top: 25%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, rgba(6, 182, 212, 0) 70%);
    filter: blur(100px);
}

.lp-orb-3 {
    position: absolute;
    bottom: 5%;
    right: 15%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.10) 0%, rgba(139, 92, 246, 0) 70%);
    filter: blur(90px);
}

[data-theme="light"] .lp-orb-1 {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0) 70%);
}

[data-theme="light"] .lp-orb-2 {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, rgba(6, 182, 212, 0) 70%);
}

/* Sticky Glass Navbar */
.lp-navbar {
    background: var(--lp-nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--lp-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.lp-nav-link {
    color: var(--lp-muted);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0.5rem 0.75rem;
}

.lp-nav-link:hover {
    color: var(--lp-emerald);
}

/* Theme Toggle Button */
.lp-theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--lp-surface2);
    border: 1px solid var(--lp-border);
    color: var(--lp-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lp-theme-toggle:hover {
    background: var(--lp-surface3);
    color: var(--lp-emerald);
    transform: scale(1.05);
}

/* Buttons */
.btn-emerald {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #FFFFFF !important;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 14px var(--lp-emerald-glow);
    transition: all 0.25s ease;
}

.btn-emerald:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-outline-glass {
    background: var(--lp-surface2);
    border: 1px solid var(--lp-border);
    color: var(--lp-text) !important;
    font-weight: 600;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.btn-outline-glass:hover {
    background: var(--lp-surface3);
    border-color: var(--lp-emerald);
    color: var(--lp-emerald) !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    z-index: 1;
    padding: 4.5rem 0 3.5rem 0;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    background: var(--lp-emerald-surface);
    border: 1px solid var(--lp-emerald-border);
    color: var(--lp-emerald);
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--lp-emerald);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.hero-title {
    color: var(--lp-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.gradient-text {
    background: linear-gradient(135deg, #10B981 0%, #06B6D4 50%, #8B5CF6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--lp-muted);
    max-width: 580px;
    margin-bottom: 2rem;
}

/* Mockup UI Window */
.mockup-window {
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 40px var(--lp-emerald-glow);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.mockup-header {
    background: var(--lp-surface2);
    border-bottom: 1px solid var(--lp-border);
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #10B981; }

.mockup-search {
    background: var(--lp-bg);
    border-radius: 6px;
    padding: 2px 12px;
    font-size: 0.75rem;
    color: var(--lp-muted);
    font-family: var(--lp-font-mono);
    border: 1px solid var(--lp-border-subtle);
}

.mockup-chat-stream {
    background: var(--lp-chat-bg);
    min-height: 290px;
}

/* Chat Mockup Bubbles */
.bubble-in {
    background: var(--lp-bubble-in);
    color: var(--lp-bubble-in-text);
    border: 1px solid var(--lp-border);
}

.bubble-out-ai {
    background: var(--lp-bubble-out-ai);
    color: var(--lp-bubble-out-ai-text);
    border: 1px solid var(--lp-emerald);
}

.bubble-out-cs {
    background: var(--lp-bubble-out-cs);
    color: var(--lp-bubble-out-cs-text);
    border: 1px solid var(--lp-cyan);
}

/* Glass Card */
.glass-card {
    background: var(--lp-card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--lp-border);
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
}

.glass-card:hover {
    border-color: var(--lp-border-glow);
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.15);
}

/* Live Activity Ticker */
.ticker-bar {
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: 9999px;
    padding: 0.55rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
    margin: 1.5rem 0 3rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ticker-tag {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ticker-item {
    font-size: 0.88rem;
    color: var(--lp-text);
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.25rem;
}

.bento-8 { grid-column: span 8; }
.bento-4 { grid-column: span 4; }
.bento-6 { grid-column: span 6; }
.bento-12 { grid-column: span 12; }

@media (max-width: 991px) {
    .bento-8, .bento-4, .bento-6 { grid-column: span 12; }
    .hero-title { font-size: 2.25rem; }
}

/* Feature Icon Circles */
.feature-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.icon-emerald { background: rgba(16, 185, 129, 0.15); color: #10B981; }
.icon-cyan { background: rgba(6, 182, 212, 0.15); color: #06B6D4; }
.icon-purple { background: rgba(139, 92, 246, 0.15); color: #8B5CF6; }
.icon-amber { background: rgba(245, 158, 11, 0.15); color: #F59E0B; }
.icon-pink { background: rgba(236, 72, 153, 0.15); color: #EC4899; }
.icon-blue { background: rgba(59, 130, 246, 0.15); color: #3B82F6; }

/* Custom Badge Colors (WCAG Compliant) */
.badge-custom-emerald {
    background: var(--lp-emerald-surface);
    color: var(--lp-emerald);
    border: 1px solid var(--lp-emerald-border);
}

.badge-custom-cyan {
    background: rgba(6, 182, 212, 0.12);
    color: var(--lp-cyan);
    border: 1px solid rgba(6, 182, 212, 0.25);
}

.badge-custom-purple {
    background: rgba(139, 92, 246, 0.12);
    color: var(--lp-purple);
    border: 1px solid rgba(139, 92, 246, 0.25);
}

/* Pricing Card */
.pricing-card {
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: 1.25rem;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.pricing-card.popular {
    border-color: #10B981;
    background: linear-gradient(180deg, var(--lp-emerald-surface) 0%, var(--lp-surface) 100%);
    box-shadow: 0 0 35px var(--lp-emerald-glow);
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: #FFFFFF !important;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Code Snippet Box */
.code-preview-box {
    background: var(--lp-code-bg);
    border: 1px solid var(--lp-border);
    border-radius: 0.75rem;
    font-family: var(--lp-font-mono);
    font-size: 0.85rem;
    overflow-x: auto;
    color: #F8FAFC;
}

/* FAQ Accordion */
.lp-accordion .accordion-item {
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: 0.75rem !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.lp-accordion .accordion-button {
    background: var(--lp-surface);
    color: var(--lp-heading);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: none;
    padding: 1.15rem 1.25rem;
}

.lp-accordion .accordion-button:not(.collapsed) {
    background: var(--lp-surface2);
    color: var(--lp-emerald);
}

.lp-accordion .accordion-button::after {
    filter: invert(0.5);
}

[data-theme="dark"] .lp-accordion .accordion-button::after {
    filter: invert(1);
}

.lp-accordion .accordion-body {
    background: var(--lp-surface2);
    color: var(--lp-muted);
    font-size: 0.92rem;
    border-top: 1px solid var(--lp-border);
}

/* Footer */
.lp-footer {
    background: var(--lp-surface);
    border-top: 1px solid var(--lp-border);
    padding: 4rem 0 2rem 0;
    color: var(--lp-muted);
    font-size: 0.88rem;
}

.lp-footer-link {
    color: var(--lp-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.lp-footer-link:hover {
    color: var(--lp-emerald);
}
