/* =========================================
   BmbAi Landing Page Styles
   ========================================= */

/* CSS Variables */
:root {
    /* Colors - Dark Theme (Default) */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-tertiary: #6b6b7a;
    
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --accent-glow: rgba(59, 130, 246, 0.3);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.2);
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;
    
    /* WhatsApp Colors */
    --message-user-bg: #005c4b;
    --message-user-text: #ffffff;
    --message-bot-bg: #202c33;
    --message-bot-text: #e9edef;
    --sidebar-bg: #111b21;
    --chat-bg: #0b141a;
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f5;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f9fa;
    
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-tertiary: #6b6b7a;
    
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --accent-glow: rgba(59, 130, 246, 0.15);
    
    --border-color: rgba(0, 0, 0, 0.08);
    --border-light: rgba(0, 0, 0, 0.12);
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.1);
    
    /* WhatsApp Colors - Light */
    --message-user-bg: #d9fdd3;
    --message-user-text: #111b21;
    --message-bot-bg: #ffffff;
    --message-bot-text: #111b21;
    --sidebar-bg: #f0f2f5;
    --chat-bg: #efeae2;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* =========================================
   Navigation (Ipo sawa)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
}

[data-theme="light"] .navbar { background: rgba(255, 255, 255, 0.8); }

.navbar.scrolled {
    border-bottom-color: var(--border-color);
    background: rgba(10, 10, 15, 0.95);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
}

.nav-logo:hover { opacity: 0.8; }

.logo-icon {
    width: 32px;
    height: 32px;
}

.logo-icon svg { width: 100%; height: 100%; }

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links a {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-github {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    transition: all 0.2s ease;
}

.nav-github:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.8);
}

.theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.8);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    height: 24px;
    padding: 4px 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(80px + var(--space-3xl)) 0 var(--space-3xl);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    filter: blur(60px);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.hero-content { max-width: 560px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-gradient);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(var(--text-4xl), 8vw, var(--text-6xl));
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    letter-spacing: 0.05em;
}

.hero-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--text-base);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
}

.extension-preview {
    width: 100%;
    max-width: 380px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.extension-preview:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 30px 60px rgba(59, 130, 246, 0.3);
    border-color: var(--accent-blue);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.preview-dots { display: flex; gap: 6px; }
.preview-dots span {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--bg-card);
}
.preview-dots span:nth-child(1) { background: #ff5f57; }
.preview-dots span:nth-child(2) { background: #febc2e; }
.preview-dots span:nth-child(3) { background: #28c840; }

.preview-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
}

.preview-content { padding: var(--space-lg); }

.start-chat-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.hero-scroll a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-tertiary);
    animation: bounce 2s infinite;
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* =========================================
   Section Styles
   ========================================= */
section { padding: var(--space-4xl) 0; }

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-3xl);
}

.section-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--accent-blue);
    margin-bottom: var(--space-lg);
}

.section-title {
    font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
}

/* =========================================
   Features Section (Ipo sawa)
   ========================================= */
.features { background: var(--bg-secondary); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.feature-icon svg { width: 24px; height: 24px; stroke: var(--accent-blue); }

.feature-card h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =========================================
   How It Works Section (Ipo sawa)
   ========================================= */
.how-it-works { background: var(--bg-primary); }

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

.step-card {
    position: relative;
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-4px);
}

.step-number {
    position: absolute;
    top: -16px; left: 50%;
    transform: translateX(-50%);
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-gradient);
    border-radius: 50%;
    font-size: var(--text-sm); font-weight: 700; color: white;
}

.step-icon {
    width: 64px; height: 64px;
    margin: var(--space-md) auto var(--space-lg);
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-xl);
}

.step-icon svg { width: 32px; height: 32px; stroke: var(--accent-cyan); }

.step-card h3 {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.step-card p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-xl);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.trust-badge svg { width: 20px; height: 20px; stroke: #10b981; }

/* =========================================
   Privacy Section (Ipo sawa)
   ========================================= */
.privacy { background: var(--bg-secondary); }

.privacy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.privacy-text .section-title { text-align: left; }

.privacy-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    line-height: 1.7;
}

.privacy-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.privacy-list li {
    display: flex;
    gap: var(--space-md);
}

.privacy-list li svg {
    flex-shrink: 0;
    width: 24px; height: 24px;
    stroke: var(--accent-blue);
    margin-top: 2px;
}

.privacy-list li strong {
    display: block;
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.privacy-list li span {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

.privacy-shield {
    width: 300px; height: 300px;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.privacy-shield svg { width: 150px; height: 150px; }

/* =========================================
   Setup Section (Ipo sawa)
   ========================================= */
.setup { background: var(--bg-primary); }

.setup-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.tab-btn.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.tab-icon { width: 8px; height: 8px; border-radius: 50%; }
.tab-icon.ollama { background: #10b981; }
.tab-icon.gemini { background: #8b5cf6; }
.tab-icon.openai { background: #f59e0b; }

.tab-content { display: none; }
.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.setup-card {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-2xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
}

.setup-card h3 {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.setup-card h3 svg { width: 28px; height: 28px; stroke: var(--accent-blue); }

.setup-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.setup-step {
    display: flex;
    gap: var(--space-md);
}

.step-num {
    flex-shrink: 0;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-gradient);
    border-radius: 50%;
    font-size: var(--text-sm); font-weight: 600; color: white;
}

.code-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.code-block code {
    font-family: 'SF Mono', monospace;
    font-size: var(--text-sm);
    color: var(--accent-cyan);
}

.copy-btn {
    padding: var(--space-xs);
    color: var(--text-tertiary);
    transition: all 0.2s ease;
    cursor: pointer;
}

.copy-btn:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

/* Info Boxes */
.info-box {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
}

.info-box svg { width: 20px; height: 20px; stroke: var(--accent-blue); }
.info-box.success { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.2); }
.info-box.success svg { stroke: #10b981; }
.info-box.warning { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.2); }
.info-box.warning svg { stroke: #f59e0b; }

/* Recommended Models */
.model-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.model-chip {
    padding: var(--space-xs) var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-family: monospace;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* =========================================
   CTA Section
   ========================================= */
.cta-section {
    position: relative;
    padding: var(--space-4xl) 0;
    background: var(--bg-secondary);
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-4xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand .footer-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    cursor: pointer;
}

.footer-brand .footer-logo:hover { opacity: 0.8; }
.footer-brand .logo-icon { width: 28px; height: 28px; }

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
}

.footer-column h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-column a {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    transition: color 0.2s ease;
}

.footer-column a:hover { color: var(--text-primary); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--border-color);
}

.footer-bottom p { font-size: var(--text-sm); color: var(--text-tertiary); }

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* =========================================
   APP CONTAINER (WhatsApp Style)
   ========================================= */
.app-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--chat-bg);
    z-index: 2000;
    display: none;
    grid-template-columns: 350px 1fr;
    overflow: hidden;
}

.app-container.active { display: grid; }

/* Sidebar */
.sidebar {
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.user-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: var(--space-md);
    border: 2px solid var(--accent-blue);
}

.user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-header h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.sidebar-header p {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-bottom: var(--space-md);
}

.sidebar-actions {
    display: flex;
    gap: var(--space-sm);
    width: 100%;
}

.sidebar-btn {
    flex: 1;
    padding: var(--space-sm);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: var(--text-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    transition: all 0.2s ease;
}

.sidebar-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.sidebar-search {
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.sidebar-search i {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: var(--text-sm);
}

.sidebar-search input {
    width: 100%;
    padding: var(--space-sm) var(--space-sm) var(--space-sm) 35px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: var(--text-sm);
    outline: none;
}

.sidebar-search input:focus {
    border-color: var(--accent-blue);
}

.sidebar-tabs {
    display: flex;
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--border-color);
    gap: var(--space-sm);
}

.sidebar-tab {
    flex: 1;
    padding: var(--space-sm);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-tertiary);
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.sidebar-tab.active {
    background: var(--bg-tertiary);
    color: var(--accent-blue);
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-sm);
}

.history-item {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: var(--space-sm);
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 2px;
}

.history-item:hover {
    background: var(--bg-tertiary);
}

.history-item.active {
    background: var(--bg-card-hover);
}

.history-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.history-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-info {
    overflow: hidden;
}

.history-name {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.history-preview {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-time {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

.sidebar-footer {
    padding: var(--space-md);
    border-top: 1px solid var(--border-color);
}

.new-chat-btn {
    width: 100%;
    padding: var(--space-md);
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: var(--text-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.new-chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Chat Interface */
.chat-interface {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--chat-bg);
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-lg);
    background: var(--sidebar-bg);
    border-bottom: 1px solid var(--border-color);
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-right: var(--space-sm);
}

.menu-toggle:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.chat-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-info h3 {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: 2px;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
}

.chat-header-right {
    display: flex;
    gap: var(--space-xs);
}

.chat-header-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-header-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* Message Bubbles */
.message {
    display: flex;
    gap: var(--space-sm);
    max-width: 80%;
    animation: messageIn 0.3s ease;
}

@keyframes messageIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.user {
    margin-left: auto;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content-wrapper {
    max-width: calc(100% - 50px);
}

.message-sender {
    font-size: var(--text-xs);
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--accent-blue);
}

.message.user .message-sender {
    text-align: right;
    color: var(--text-secondary);
}

.message-content {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
}

.message.bot .message-content {
    background: var(--message-bot-bg);
    color: var(--message-bot-text);
    border-top-left-radius: 4px;
}

.message.user .message-content {
    background: var(--message-user-bg);
    color: var(--message-user-text);
    border-top-right-radius: 4px;
}

.message-time {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.message-status {
    color: var(--accent-blue);
    font-size: var(--text-xs);
}

.message-image {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xs);
    cursor: pointer;
}

.message-file {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
}

.message-file:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Chat Input */
.chat-input-area {
    padding: var(--space-md) var(--space-lg);
    background: var(--sidebar-bg);
    border-top: 1px solid var(--border-color);
}

.input-tools {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.tool-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tool-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.tool-btn.recording {
    background: #ef4444;
    color: white;
    animation: pulse 1s infinite;
}

.chat-input-container {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-end;
}

.chat-input-wrapper {
    flex: 1;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xs) var(--space-md);
}

.chat-input-wrapper textarea {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: var(--text-sm);
    line-height: 1.6;
    resize: none;
    min-height: 40px;
    max-height: 120px;
    outline: none;
}

.chat-input-wrapper textarea::placeholder {
    color: var(--text-tertiary);
}

.input-actions {
    display: flex;
    gap: var(--space-xs);
}

.send-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.send-btn:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.provider-selector {
    display: flex;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
    padding: 0 var(--space-md);
}

.provider-option {
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.provider-option:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.provider-option.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: var(--space-sm) var(--space-md);
    background: var(--message-bot-bg);
    border-radius: var(--radius-lg);
    width: fit-content;
    margin-left: 50px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-tertiary);
    border-radius: 50%;
    animation: typing 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

/* =========================================
   Modals
   ========================================= */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.active { display: flex; }

.modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: var(--text-xl);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.modal-close:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: var(--space-lg);
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.auth-tab {
    flex: 1;
    padding: var(--space-sm);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.auth-tab.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

/* Forms */
.auth-form {
    display: none;
}

.auth-form.active { display: block; }

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.form-group label i {
    margin-right: var(--space-xs);
    color: var(--accent-blue);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-family: inherit;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.avatar-upload {
    text-align: center;
}

.avatar-preview {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-md);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-blue);
}

.avatar-change-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    border: 2px solid var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.auth-submit-btn {
    width: 100%;
    padding: var(--space-md);
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: var(--text-base);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* =========================================
   Notifications
   ========================================= */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent-blue);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-sm);
    box-shadow: var(--shadow-lg);
    z-index: 4000;
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    max-width: 350px;
}

.notification.success { border-left-color: #10b981; }
.notification.error { border-left-color: #ef4444; }
.notification.info { border-left-color: #3b82f6; }

.notification i {
    font-size: 1.2rem;
}

.notification.success i { color: #10b981; }
.notification.error i { color: #ef4444; }
.notification.info i { color: #3b82f6; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content { max-width: 100%; }
    .hero-cta { justify-content: center; }
    .hero-visual { order: -1; }
    
    .steps-container { grid-template-columns: repeat(2, 1fr); }
    .privacy-content { grid-template-columns: 1fr; }
    .privacy-visual { order: -1; }
    .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --container-padding: 1rem; }
    
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: var(--space-lg);
        padding: var(--space-xl);
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle { display: flex; }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .steps-container { grid-template-columns: 1fr; }
    .trust-badges { flex-direction: column; align-items: center; }
    .setup-tabs { flex-direction: column; }
    .footer-links { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero-cta { flex-direction: column; }
    .btn { width: 100%; }
    .cta-buttons { flex-direction: column; }
    
    /* App Container Responsive */
    .app-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        height: 100%;
        z-index: 2500;
        transition: left 0.3s ease;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .message {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .hero { padding-top: calc(60px + var(--space-2xl)); }
    .extension-preview { max-width: 100%; }
    .footer-links { grid-template-columns: 1fr; }
    .privacy-list li { flex-direction: column; text-align: center; }
    .message { max-width: 95%; }
    .chat-header-btn { width: 36px; height: 36px; }
    .tool-btn { width: 36px; height: 36px; }
}

/* =========================================
   Utility Classes
   ========================================= */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
}
