/* Creator Revolution - Industry-Leading Design System */
/* Modern creator economy platform design */
/* With Dark/Light Theme Support and Auto System Detection */
/* Last updated: 2025-12-09 - Chat button positioning fix */

/* ============================================
   THEME SYSTEM - CSS Custom Properties
   Supports: prefers-color-scheme media query
   Browsers: Chrome 76+, Firefox 67+, Safari 12.1+, Edge 79+
   ============================================ */

:root {
    /* Light Theme (Default) */
    /* WCAG 2.1 AA Compliant Color Palette */
    --primary: #7c3aed;  /* Purple for 4.5:1+ contrast on white */
    --primary-dark: #6d28d9;
    --primary-light: #ede9fe;
    --primary-hover: #5b21b6;
    --primary-rgb: 124, 58, 237;
    --primary-accent: #8b5cf6;  /* Lighter purple for decorative use */
    
    /* Theme-aware colors - WCAG AA compliant (4.5:1 minimum) */
    --text-primary: #111827;    /* ~16:1 contrast on white */
    --text-secondary: #374151;  /* ~10:1 contrast on white */
    --text-tertiary: #4b5563;   /* ~7:1 contrast on white */
    --text-muted: #6b7280;      /* ~5:1 contrast on white - AA compliant */
    --text-inverse: #ffffff;
    
    /* Legacy aliases for backwards compatibility */
    --text-dark: var(--text-primary);
    --text-light: var(--text-tertiary);
    
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --bg-accent: #faf5ff;
    --bg-elevated: #ffffff;
    --bg-overlay: rgba(0, 0, 0, 0.5);
    
    /* Legacy aliases */
    --bg-light: var(--bg-accent);
    --bg-gray: var(--bg-secondary);
    --bg-dark: #111827;
    --white: var(--bg-primary);
    
    /* Borders */
    --border-primary: #e5e7eb;
    --border-secondary: #f3f4f6;
    --border-focus: var(--primary);
    
    /* Legacy aliases */
    --border: var(--border-primary);
    --border-light: var(--border-secondary);
    
    /* Semantic colors */
    --success: #10b981;
    --success-light: #d1fae5;
    --success-dark: #047857;
    --error: #ef4444;
    --error-light: #fecaca;
    --error-dark: #b91c1c;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --warning-dark: #b45309;
    --info: #3b82f6;
    --info-light: #dbeafe;
    --info-dark: #1d4ed8;
    
    /* Shadows - theme aware */
    --shadow-color: 0, 0, 0;
    --shadow-sm: 0 1px 2px rgba(var(--shadow-color), 0.05);
    --shadow-md: 0 4px 6px rgba(var(--shadow-color), 0.1);
    --shadow-lg: 0 10px 25px rgba(var(--shadow-color), 0.1);
    --shadow-xl: 0 20px 40px rgba(var(--shadow-color), 0.15);
    --shadow-inner: inset 0 2px 4px rgba(var(--shadow-color), 0.05);
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.2s ease;
    --transition-fast: all 0.1s ease;
    --transition-slow: all 0.3s ease;
    --transition-theme: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    
    /* Z-index scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
    
    /* Color scheme indicator for form controls */
    color-scheme: light dark;
}

/* ============================================
   DARK THEME - Auto-detected via media query
   ============================================ */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        /* Dark Theme - WCAG AA Compliant */
        --primary: #a78bfa;         /* Lighter purple on dark = 6:1+ contrast */
        --primary-dark: #8b5cf6;
        --primary-light: #2e1065;   /* Darker for dark mode backgrounds */
        --primary-hover: #c4b5fd;
        --primary-rgb: 167, 139, 250;
        --primary-accent: #a78bfa;
        
        /* Text colors - all 4.5:1+ on dark backgrounds */
        --text-primary: #f9fafb;    /* ~15:1 on #111827 */
        --text-secondary: #e5e7eb;  /* ~13:1 on #111827 */
        --text-tertiary: #d1d5db;   /* ~11:1 on #111827 */
        --text-muted: #9ca3af;      /* ~5.5:1 on #111827 - AA compliant */
        --text-inverse: #111827;
        
        --bg-primary: #111827;
        --bg-secondary: #1f2937;
        --bg-tertiary: #374151;
        --bg-accent: #1e1b2e;
        --bg-elevated: #1f2937;
        --bg-overlay: rgba(0, 0, 0, 0.7);
        
        --border-primary: #374151;
        --border-secondary: #4b5563;
        
        --success-light: #064e3b;
        --error-light: #7f1d1d;
        --warning-light: #78350f;
        --info-light: #1e3a8a;
        
        --shadow-color: 0, 0, 0;
        --shadow-sm: 0 1px 2px rgba(var(--shadow-color), 0.3);
        --shadow-md: 0 4px 6px rgba(var(--shadow-color), 0.4);
        --shadow-lg: 0 10px 25px rgba(var(--shadow-color), 0.5);
        --shadow-xl: 0 20px 40px rgba(var(--shadow-color), 0.6);
    }
}

/* ============================================
   EXPLICIT DARK THEME - Via data attribute
   ============================================ */
[data-theme="dark"] {
    /* Explicit Dark Theme - WCAG AA Compliant */
    --primary: #a78bfa;         /* Lighter purple on dark = 6:1+ contrast */
    --primary-dark: #8b5cf6;
    --primary-light: #2e1065;   /* Darker for dark mode backgrounds */
    --primary-hover: #c4b5fd;
    --primary-rgb: 167, 139, 250;
    --primary-accent: #a78bfa;

    /* Text colors - all 4.5:1+ on dark backgrounds */
    --text-primary: #f9fafb;    /* ~15:1 on #111827 */
    --text-secondary: #e5e7eb;  /* ~13:1 on #111827 */
    --text-tertiary: #d1d5db;   /* ~11:1 on #111827 */
    --text-muted: #9ca3af;      /* ~5.5:1 on #111827 - AA compliant */
    --text-inverse: #111827;

    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-tertiary: #374151;
    --bg-accent: #1e1b2e;
    --bg-elevated: #1f2937;
    --bg-overlay: rgba(0, 0, 0, 0.7);
    
    --border-primary: #374151;
    --border-secondary: #4b5563;
    
    --success-light: #064e3b;
    --error-light: #7f1d1d;
    --warning-light: #78350f;
    --info-light: #1e3a8a;
    
    --shadow-color: 0, 0, 0;
    --shadow-sm: 0 1px 2px rgba(var(--shadow-color), 0.3);
    --shadow-md: 0 4px 6px rgba(var(--shadow-color), 0.4);
    --shadow-lg: 0 10px 25px rgba(var(--shadow-color), 0.5);
    --shadow-xl: 0 20px 40px rgba(var(--shadow-color), 0.6);
}

/* ============================================
   EXPLICIT LIGHT THEME - Via data attribute
   ============================================ */
[data-theme="light"] {
    /* Explicit Light Theme - WCAG AA Compliant */
    --primary: #7c3aed;  /* Purple for 4.5:1+ contrast on white */
    --primary-dark: #6d28d9;
    --primary-light: #ede9fe;
    --primary-hover: #5b21b6;
    --primary-rgb: 124, 58, 237;
    --primary-accent: #8b5cf6;  /* Lighter purple for decorative use */
    
    /* Text colors - all 4.5:1+ on white backgrounds */
    --text-primary: #111827;    /* ~16:1 contrast on white */
    --text-secondary: #374151;  /* ~10:1 contrast on white */
    --text-tertiary: #4b5563;   /* ~7:1 contrast on white */
    --text-muted: #6b7280;      /* ~5:1 contrast on white - AA compliant */
    --text-inverse: #ffffff;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --bg-accent: #faf5ff;
    --bg-elevated: #ffffff;
    --bg-overlay: rgba(0, 0, 0, 0.5);
    
    --border-primary: #e5e7eb;
    --border-secondary: #f3f4f6;
    
    --success-light: #d1fae5;
    --error-light: #fecaca;
    --warning-light: #fef3c7;
    --info-light: #dbeafe;
    
    --shadow-color: 0, 0, 0;
    --shadow-sm: 0 1px 2px rgba(var(--shadow-color), 0.05);
    --shadow-md: 0 4px 6px rgba(var(--shadow-color), 0.1);
    --shadow-lg: 0 10px 25px rgba(var(--shadow-color), 0.1);
    --shadow-xl: 0 20px 40px rgba(var(--shadow-color), 0.15);
}

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

html { 
    scroll-behavior: smooth;
}

/* Prevent flash of wrong theme */
html:not([data-theme]) {
    visibility: visible;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: var(--transition-theme);
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    z-index: 10000;
    font-weight: 600;
    border-radius: 0 0 var(--radius-md) 0;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

/* Announcement Banner */
.announcement-bar {
    background: var(--bg-dark);
    color: var(--white);
    padding: 0.75rem 0;
    font-size: 0.875rem;
    text-align: center;
}

.announcement-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.announcement-badge {
    background: var(--primary);
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.announcement-bar a {
    color: var(--primary-light);
    text-decoration: underline;
}

.announcement-bar a:hover { color: var(--primary); }

/* Header & Navigation */
header {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-theme);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon { font-size: 1.5rem; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-links > li { position: relative; }

.nav-links > li > a,
.nav-link-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
}

.nav-links > li > a:hover,
.nav-link-btn:hover {
    color: var(--primary);
    background: var(--bg-tertiary);
}

.dropdown-arrow { font-size: 0.625rem; opacity: 0.6; margin-left: 0.25rem; }

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 1.5rem;
    min-width: 600px;
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    z-index: 100;
}

.dropdown-menu.dropdown-simple {
    min-width: 250px;
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 0;
}

.dropdown-simple a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.dropdown-simple a:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
}

.dropdown-simple a i {
    width: 1.25rem;
    color: var(--primary);
}

.nav-dropdown:hover .dropdown-menu { display: grid; }

.dropdown-section h4 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.dropdown-section a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-section a i {
    width: 1.25rem;
    color: var(--primary);
    font-size: 0.875rem;
}

.dropdown-section a:hover { color: var(--primary); }

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-elevated);
    z-index: 999;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav-content {
    padding: 1.5rem;
}

.mobile-nav-section {
    margin-bottom: 2rem;
}

.mobile-nav-section h4 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-primary);
}

.mobile-nav-section a {
    display: block;
    padding: 0.75rem 0;
    color: var(--text-primary);
    font-weight: 500;
    border-bottom: 1px solid var(--border-primary);
}

.mobile-nav-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
}

.mobile-nav-cta .secondary-button {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link-login {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.nav-link-login:hover { color: var(--primary); }

.nav-link-pricing {
    color: var(--primary);
    font-weight: 600;
    padding: 0.5rem 1rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.primary-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.primary-button.large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--white);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.secondary-button:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

.secondary-button.large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Hero Section - Uses decorative orange gradient (no text contrast needed on bg) */
.hero {
    background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
    color: var(--white);
    padding: 5rem 0 4rem;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-preheadline {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1 .highlight {
    display: block;
    color: rgba(255,255,255,0.95);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.hero-note {
    font-size: 0.9rem;
    opacity: 0.9;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-note span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.trust-badge i {
    color: var(--warning);
}

/* AI Interface Mockup */
.ai-interface-mockup {
    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.mockup-header {
    background: var(--bg-gray);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #f59e0b; }
.mockup-dot.green { background: #10b981; }

.mockup-title {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.ai-interface-mockup .ai-message {
    padding: 1rem 1.5rem;
}

.ai-interface-mockup .ai-message.user {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.ai-interface-mockup .ai-message.user i {
    color: var(--primary);
}

.ai-interface-mockup .ai-message.system {
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ai-interface-mockup .ai-message.system i {
    color: var(--success);
}

.processing-indicator {
    display: flex;
    gap: 0.25rem;
}

.processing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse 1.4s infinite ease-in-out both;
}

.processing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.processing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes pulse {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.hero-stat { text-align: center; }

.hero-stat .stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
}

.hero-stat .stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Social Proof */
.social-proof {
    background: var(--bg-gray);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-primary);
}

.proof-label {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.logo-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.partner-logo {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.875rem;
}

.social-proof-label {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.platform-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.platform-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
}

.platform-logo i {
    font-size: 2rem;
    transition: var(--transition);
}

.platform-logo:hover {
    color: var(--primary);
}

.platform-logo:hover i {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .platform-logos {
        gap: 1.5rem;
    }

    .platform-logo i {
        font-size: 1.5rem;
    }
}

/* Value Propositions */
.value-props {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.value-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.value-card p {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* Sections */
section { padding: 5rem 0; }

section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    background: var(--bg-tertiary);
    color: var(--primary);
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Comparison Section */
.comparison-section {
    background: var(--bg-gray);
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.comparison-table thead {
    background: var(--bg-dark);
    color: var(--white);
}

.comparison-table th {
    padding: 1.25rem 1rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table th.brand-col {
    text-align: center;
    min-width: 180px;
}

.comparison-table th.revolution {
    background: var(--primary);
}

.comparison-table th.competitor {
    background: var(--text-light);
}

.brand-icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}

.comparison-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.feature-name {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-name i {
    color: var(--primary);
    width: 1.25rem;
}

.revolution-cell {
    text-align: center;
    background: var(--bg-tertiary);
}

.revolution-cell strong {
    color: var(--primary);
}

.competitor-cell {
    text-align: center;
}

.cell-good { color: var(--success); font-weight: 600; }
.cell-neutral { color: var(--text-light); }
.cell-bad { color: var(--error); }

.text-success { color: var(--success); }

.comparison-table small {
    display: block;
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.comparison-cta {
    text-align: center;
}

/* Features Categories with Tabs */
.features-categories {
    background: var(--bg-gray);
}

.feature-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    background: var(--bg-elevated);
    border: 2px solid var(--border-primary);
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.tab-button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tab-button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--bg-elevated);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card > p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.375rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    font-size: 0.9375rem;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* Solutions */
.solutions {
    background: var(--bg-primary);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.solution-card {
    background: var(--bg-elevated);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-primary);
    position: relative;
    transition: var(--transition);
    text-align: center;
}

.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.solution-card.featured {
    border-color: var(--primary);
}

.solution-card.enterprise {
    border-color: #6366f1;
    background: linear-gradient(to bottom, var(--bg-elevated), var(--bg-tertiary));
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.solution-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.solution-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.solution-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.solution-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
    text-align: left;
}

.solution-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.solution-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.solution-cta {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--bg-elevated);
    color: var(--primary);
    font-weight: 600;
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
}

.solution-cta:hover,
.solution-cta.primary {
    background: var(--primary);
    color: var(--white);
}

/* Pricing */
.pricing {
    background: var(--bg-gray);
}

.pricing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.toggle-label {
    font-weight: 500;
    color: var(--text-light);
}

.savings-badge {
    background: var(--success);
    color: var(--white);
    padding: 0.125rem 0.5rem;
    border-radius: 50px;
    font-size: 0.625rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input { display: none; }

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--border-primary);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: var(--bg-elevated);
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-elevated);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-primary);
    position: relative;
    transition: var(--transition);
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(249, 115, 22, 0.2);
    z-index: 1;
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.pricing-tagline {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.pricing-card .price {
    margin-bottom: 0.5rem;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    vertical-align: top;
    margin-right: 0.125rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.price-period {
    font-size: 1rem;
    color: var(--text-muted);
    transition: opacity 0.15s ease;
}

.pricing-card.annual-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.2), 0 10px 30px rgba(0, 0, 0, 0.12);
}

.pricing-card.annual-active .price-amount {
    color: var(--primary);
}

.toggle-label.active {
    color: var(--text-primary);
    font-weight: 600;
}

.price-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    font-size: 0.9375rem;
}

.pricing-features li.included {
    color: var(--text-primary);
}

.pricing-features li.excluded {
    color: var(--text-muted);
    text-decoration: line-through;
}

.pricing-features li.included::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.pricing-features li.excluded::before {
    content: "×";
    position: absolute;
    left: 0;
    color: var(--text-muted);
    font-weight: 700;
}

.pricing-button {
    display: block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--bg-elevated);
    color: var(--primary);
    font-weight: 600;
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.pricing-button:hover,
.pricing-button.primary {
    background: var(--primary);
    color: var(--white);
}

/* Processing Rates */
.processing-rates {
    margin-top: 4rem;
    text-align: center;
}

.processing-rates h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.rates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.rate-card {
    background: var(--bg-elevated);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
}

.rate-card h4 {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.rate {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.rate-note {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.rates-note {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Add-ons Section */
.addons-section {
    margin-top: 4rem;
}

.addons-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.addons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.addon-card {
    background: var(--bg-elevated);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
}

.addon-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.addon-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.addon-price span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-muted);
}

.addon-card p {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Testimonials */
.testimonials {
    background: var(--bg-primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.testimonial-card {
    background: var(--bg-gray);
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.testimonial-rating {
    color: var(--warning);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-card blockquote {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-card blockquote strong {
    color: var(--primary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.author-title {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.testimonial-result {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--success-light);
    color: #065f46;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.testimonials-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-primary);
}

.stat-item { text-align: center; }

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* AI Features Section */
.ai-features {
    background: var(--bg-primary);
}

.ai-features .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.ai-features .feature-card {
    background: var(--bg-gray);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
    transition: var(--transition);
}

.ai-features .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.features-cta {
    text-align: center;
}

/* ==============================================
   5 SHELLS SECTION
   ============================================== */
.shells-section {
    background: var(--bg-primary);
    padding: 5rem 0;
}

.shells-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.shell-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-primary);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shell-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.shell-card.featured {
    border-color: #6366f1;
    background: linear-gradient(to bottom, var(--bg-elevated), rgba(99, 102, 241, 0.05));
}

.shell-badge {
    position: absolute;
    top: -10px;
    right: 1rem;
    background: #6366f1;
    color: var(--white);
    padding: 0.25rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
}

.shell-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.shell-card.featured .shell-icon {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.shell-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.shell-content p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.shell-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shell-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding: 0.375rem 0;
}

.shell-features li i {
    color: var(--success);
    font-size: 0.75rem;
}

@media (max-width: 1024px) {
    .shells-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shell-card:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .shells-grid {
        grid-template-columns: 1fr;
    }

    .shell-card:last-child {
        grid-column: span 1;
    }
}

/* Segments Preview Grid */
.segments-preview {
    background: var(--bg-gray);
}

.segments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.segment-card {
    background: var(--bg-elevated);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-primary);
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.segment-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.segment-card.enterprise {
    border-color: #6366f1;
    background: linear-gradient(to bottom, var(--bg-elevated), var(--bg-tertiary));
}

.segment-badge {
    position: absolute;
    top: -10px;
    right: 1rem;
    background: #6366f1;
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.segment-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.segment-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.segment-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.link-text {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Pricing CTA */
.pricing-cta {
    text-align: center;
    margin-top: 2rem;
}

.pricing-cta .secondary-button {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.pricing-cta .secondary-button:hover {
    background: var(--primary);
    color: var(--white);
}

/* Integrations */
.integrations {
    background: var(--bg-gray);
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.integration-category {
    text-align: center;
}

.integration-category h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.integration-logos {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.integration-logos span {
    background: var(--bg-elevated);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}

/* FAQ */
.faq {
    background: var(--bg-primary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    padding: 1.5rem;
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
}

.faq-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.faq-item p {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
    color: var(--white);
    text-align: center;
    padding: 5rem 0;
}

.final-cta h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.final-cta > .container > p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.cta-note {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    margin: 1rem 0;
    font-size: 0.9375rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover { background: var(--primary); }

.footer-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.footer-section ul { list-style: none; }

.footer-section li { margin-bottom: 0.75rem; }

.footer-section a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer-section a:hover { color: var(--white); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}

.footer-badges {
    display: flex;
    gap: 1.5rem;
}

.footer-badges span {
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .value-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .solutions-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-card.featured { transform: scale(1); }
    .addons-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .integrations-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .segments-grid { grid-template-columns: repeat(2, 1fr); }
    .ai-features .features-grid { grid-template-columns: repeat(2, 1fr); }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-ctas,
    .hero-note,
    .trust-badges {
        justify-content: center;
    }
    
    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .mobile-menu-toggle { display: block; }
    .mobile-nav { display: block; }

    .dropdown-menu {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        transform: none;
        grid-template-columns: 1fr;
        min-width: auto;
    }

    .hero h1 { font-size: 2.25rem; }
    .hero-stats { gap: 1.5rem; }

    .value-grid,
    .features-grid,
    .solutions-grid,
    .pricing-grid,
    .addons-grid,
    .testimonials-grid,
    .integrations-grid,
    .faq-grid,
    .rates-grid,
    .segments-grid,
    .ai-features .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-ctas,
    .cta-buttons { flex-direction: column; align-items: center; }
    
    .hero-note {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: 1rem;
    }

    .testimonials-stats { flex-direction: column; gap: 2rem; }
    
    .comparison-table {
        font-size: 0.875rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .feature-name {
        font-size: 0.8125rem;
    }
    
    .feature-name i {
        display: none;
    }

    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-social { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .footer-badges { flex-wrap: wrap; justify-content: center; }
}

/* ===========================
   Hardware Freedom Section
   =========================== */
.hardware-freedom {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 5rem 0;
}

.hardware-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.hardware-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.hardware-card .hardware-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hardware-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.hardware-card > p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.hardware-card ul {
    list-style: none;
}

.hardware-card li {
    padding: 0.375rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.hardware-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: 700;
}

/* Comparison Table */
.hardware-comparison {
    background: var(--bg-elevated);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.hardware-comparison h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.comparison-table {
    overflow-x: auto;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    align-items: center;
}

.comparison-row.header {
    font-weight: 700;
    background: var(--gray-50);
    border-radius: var(--radius) var(--radius) 0 0;
}

.comparison-row .good {
    color: #22c55e;
    font-weight: 600;
}

.comparison-row .bad {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ===========================
   Coming Soon Section
   =========================== */
.coming-soon {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    padding: 5rem 0;
    color: white;
}

.coming-soon h2 {
    color: white;
}

.coming-soon .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.coming-soon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.coming-soon-card {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: var(--radius-lg);
    position: relative;
}

.coming-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.coming-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.coming-soon-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.coming-soon-card > p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.coming-soon-card ul {
    margin-bottom: 1.5rem;
}

.coming-soon-card li {
    padding: 0.375rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
}

.coming-soon-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.coming-cta {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
    color: white;
    font-weight: 600;
    transition: all var(--transition);
}

.coming-cta:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .hardware-grid,
    .coming-soon-grid {
        grid-template-columns: 1fr;
    }

    .comparison-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .comparison-row.header {
        display: none;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    section { padding: 3rem 0; }
    .hero { padding: 3rem 0 2rem; }
    section h2 { font-size: 1.75rem; }
}

/* ===========================
   AI Chat Widget - Enhanced UX
   =========================== */
.ai-widget {
    position: fixed;
    bottom: 100px;
    right: 1.5rem;
    width: 420px;
    max-height: 600px;
    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ai-widget.closed {
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
}

.ai-header {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: var(--white);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ai-avatar {
    font-size: 1.75rem;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-title {
    flex: 1;
}

.ai-title .name {
    display: block;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}

.ai-title .status {
    font-size: 0.8125rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.125rem;
}

.ai-title .status i {
    color: #10b981;
    font-size: 0.5rem;
}

.close-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-btn:hover {
    background: rgba(255,255,255,0.3);
}

.ai-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    max-height: 420px;
    scroll-behavior: smooth;
}

.ai-body .message {
    margin-bottom: 1.25rem;
}

.ai-body .message p {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    line-height: 1.65;
    letter-spacing: 0.01em;
}

.ai-body .message p a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}

.ai-body .message.user p {
    background: var(--primary);
    color: var(--white);
    margin-left: 1.5rem;
    border-bottom-right-radius: var(--radius-sm);
}

.ai-body .message.system p {
    background: var(--bg-gray);
    color: var(--text-primary);
    margin-right: 1.5rem;
    border-bottom-left-radius: var(--radius-sm);
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 1rem;
    padding-top: 0.5rem;
}

.quick-replies button {
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    padding: 0.625rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.quick-replies button:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(249, 115, 22, 0.05);
}

.typing-indicator {
    display: flex;
    gap: 0.375rem;
    padding: 1rem 1.25rem;
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    width: fit-content;
    margin-right: 1.5rem;
}

.typing-indicator span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.ai-input {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-primary);
    background: var(--bg-gray);
}

.ai-input input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--border-primary);
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.ai-input input::placeholder {
    color: var(--text-muted);
}

.ai-input input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.ai-input button {
    background: var(--primary);
    color: var(--white);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.ai-input button:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.ai-input button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Voice Button */
.ai-input .voice-btn {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    width: 44px;
    height: 44px;
}

.ai-input .voice-btn:hover {
    background: var(--bg-gray);
    border-color: var(--primary);
    color: var(--primary);
    transform: none;
}

.ai-input .voice-btn.listening {
    background: var(--error);
    color: var(--white);
    border-color: var(--error);
    animation: pulse-voice 1s ease-in-out infinite;
}

/* Voice Active Mode (continuous conversation) */
.ai-input .voice-btn.voice-active {
    background: var(--success, #10b981);
    color: var(--white);
    border-color: var(--success, #10b981);
    animation: pulse-voice-active 1.5s ease-in-out infinite;
}

@keyframes pulse-voice-active {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
}

/* Speaker Toggle Button */
.ai-input .speaker-btn {
    background: var(--bg-elevated);
    color: var(--text-muted);
    border: 1px solid var(--border-primary);
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
    opacity: 0.7;
}

.ai-input .speaker-btn:hover {
    background: var(--bg-gray);
    border-color: var(--primary);
    color: var(--primary);
    opacity: 1;
    transform: none;
}

.ai-input .speaker-btn.active {
    background: var(--success, #10b981);
    color: var(--white);
    border-color: var(--success, #10b981);
    opacity: 1;
}

/* Speaker actively speaking */
.ai-input .speaker-btn.speaking {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    opacity: 1;
    animation: speaking-glow 1s ease-in-out infinite;
}

@keyframes speaking-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(249, 115, 22, 0); }
}

@keyframes pulse-voice {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

/* Speaking Indicator */
.speaking-indicator {
    margin-left: 0.5rem;
    color: #10b981;
    animation: speaking-pulse 0.8s ease-in-out infinite;
}

@keyframes speaking-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Typing Cursor Animation */
.cursor {
    animation: blink-cursor 0.8s infinite;
    color: var(--primary);
}

@keyframes blink-cursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Thinking Message */
.ai-body .message.thinking p {
    font-style: italic;
    color: var(--text-muted);
}

/* Olympia's Messages - Warm personality */
.ai-body .message.olympia p {
    background: linear-gradient(135deg, var(--bg-gray) 0%, #fef3e8 100%);
    border-left: 3px solid var(--primary);
}

/* Chat Links */
.chat-link {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
    transition: var(--transition);
}

.chat-link:hover {
    color: var(--primary-dark);
}

.ai-launcher {
    position: fixed !important;
    bottom: 1.5rem !important;
    right: 1.5rem !important;
    left: auto !important;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: var(--white);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.35);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.ai-launcher:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 40px rgba(249, 115, 22, 0.45);
}

.ai-launcher.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

.ai-launcher.pulse {
    animation: launcher-pulse 2s ease-in-out;
}

@keyframes launcher-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 30px rgba(249, 115, 22, 0.35); }
    25% { transform: scale(1.15); box-shadow: 0 12px 50px rgba(249, 115, 22, 0.5); }
    50% { transform: scale(1.05); }
    75% { transform: scale(1.12); box-shadow: 0 12px 50px rgba(249, 115, 22, 0.5); }
}

.notification-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    background: var(--error);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.notification-dot.hidden {
    display: none;
}
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    animation: pulse-notification 2s infinite;
}

@keyframes pulse-notification {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Proactive Message Styling */
.ai-body .message.proactive {
    animation: slideInUp 0.4s ease-out;
}

.ai-body .message.proactive p {
    background: linear-gradient(135deg, #fef3e2 0%, #fff7ed 100%);
    border: 1px solid rgba(249, 115, 22, 0.2);
    color: var(--text-primary);
}

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

/* Proactive Quick Replies */
.proactive-replies {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.proactive-replies button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.proactive-replies button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Chat Open Body State */
body.ai-chat-open {
    overflow: hidden;
}

@media (min-width: 481px) {
    body.ai-chat-open {
        overflow: auto;
    }
}

/* AI Chat Footer */
.ai-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-primary);
    font-size: 0.75rem;
}

.ai-footer .human-link {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: color 0.2s ease;
}

.ai-footer .human-link:hover {
    color: var(--primary);
}

.ai-footer .ai-powered {
    color: var(--text-light);
    font-weight: 500;
}

/* Chat Widget Responsive */
@media (max-width: 480px) {
    .ai-widget {
        right: 0.5rem;
        left: 0.5rem;
        width: auto;
        bottom: 80px;
        max-height: 75vh;
    }
    
    .ai-header {
        padding: 1rem 1.25rem;
    }
    
    .ai-avatar {
        width: 42px;
        height: 42px;
        font-size: 1.5rem;
    }
    
    .ai-body {
        padding: 1.25rem;
        max-height: calc(75vh - 180px);
    }
    
    .ai-body .message p {
        font-size: 0.9375rem;
        padding: 0.875rem 1rem;
    }
    
    .ai-body .message.user p {
        margin-left: 1rem;
    }
    
    .ai-body .message.system p {
        margin-right: 1rem;
    }
    
    .ai-input {
        padding: 1rem;
    }
    
    .ai-input input {
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
    }
    
    .ai-input button {
        width: 44px;
        height: 44px;
    }
    
    .ai-launcher {
        right: 1rem;
        bottom: 1rem;
        width: 56px;
        height: 56px;
    }
    
    .quick-replies button {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }
}

/* ==============================================
   ACCESSIBILITY: Reduced Motion
   ============================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .typing-indicator span {
        animation: none;
        opacity: 1;
    }
    
    .ai-launcher:hover {
        transform: none;
    }
}

/* ==============================================
   ACCESSIBILITY: High Contrast Mode Support
   ============================================== */
@media (prefers-contrast: high) {
    :root {
        --primary: #c94400;
        --text-light: #4b5563;
        --border: #9ca3af;
    }
    
    .primary-button,
    .secondary-button {
        border-width: 2px;
    }
    
    a:focus,
    button:focus {
        outline: 3px solid currentColor;
        outline-offset: 2px;
    }
}

/* ==============================================
   PRINT STYLES
   ============================================== */
@media print {
    /* Hide non-essential elements */
    header,
    footer,
    .ai-widget,
    .ai-launcher,
    .mobile-nav,
    .mobile-menu-btn,
    .announcement-bar,
    .hero-ctas,
    .cta-buttons,
    .final-cta,
    .chat-toggle,
    video,
    iframe {
        display: none !important;
    }
    
    /* Reset backgrounds and colors for print */
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .hero,
    .solutions,
    .features-categories,
    .value-props,
    section {
        background: white !important;
        color: black !important;
        page-break-inside: avoid;
    }
    
    /* Make links visible */
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
    
    a[href^="#"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }
    
    /* Ensure text is readable */
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        page-break-after: avoid;
    }
    
    p, li {
        orphans: 3;
        widows: 3;
    }
    
    /* Cards and grids for print */
    .features-grid,
    .value-grid {
        display: block !important;
    }
    
    .feature-card,
    .value-card,
    .pricing-card {
        border: 1px solid #ccc !important;
        background: white !important;
        box-shadow: none !important;
        margin-bottom: 1rem;
        page-break-inside: avoid;
    }
    
    /* Images */
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
}

/* ==============================================
   FOCUS VISIBLE POLYFILL STYLES
   (For browsers that support :focus-visible)
   ============================================== */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Remove outline for mouse users, keep for keyboard */
:focus:not(:focus-visible) {
    outline: none;
}

/* Ensure all interactive elements have visible focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);
}

/* ==============================================
   UI POLISH IMPROVEMENTS (2025-01)
   ============================================== */

/* 1. Secondary Button Light Background Context */
.secondary-button.on-light {
    border-color: var(--primary);
    color: var(--primary);
}

.secondary-button.on-light:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* 3. Nav Button Focus Visible Enhancement */
.nav-link-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    background: var(--bg-tertiary);
}

/* 4. Segment Card Active State */
.segment-card:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 5. Trust Badge Hover Interaction */
.trust-badge {
    transition: var(--transition);
    cursor: default;
}

.trust-badge:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.trust-badge i {
    transition: var(--transition);
}

.trust-badge:hover i {
    transform: scale(1.1);
}

/* 7. Comparison Table Row Smooth Transition */
.comparison-table tbody tr {
    transition: background-color 0.15s ease;
}

/* 8. AI Chat Quick Reply Touch Target */
.quick-replies button {
    min-height: 44px;
}

/* 9. Footer Social Link Active State */
.footer-social a:active {
    transform: scale(0.95);
    background: var(--primary-dark);
}

/* 10. Mobile Navigation Section Headers Enhancement */
.mobile-nav-section h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.075em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

/* Additional Quick Polish Fixes */

/* Smoother button transitions */
.primary-button,
.secondary-button {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Better card shadow on hover */
.feature-card:hover,
.value-card:hover,
.pricing-card:hover {
    box-shadow: var(--shadow-xl);
}

/* Improved loading state for images */
img {
    background: var(--bg-gray);
}

/* Smoother accordion/dropdown animations */
.dropdown-menu {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Active state for primary buttons */
.primary-button:active {
    transform: translateY(1px);
    box-shadow: var(--shadow-sm);
}

/* Link underline animation */
.footer-links a,
.case-study-link {
    position: relative;
}

.footer-links a::after,
.case-study-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.2s ease;
}

.footer-links a:hover::after,
.case-study-link:hover::after {
    width: 100%;
}
/* ========================================
   NEBUSAI METHODOLOGY STYLES
   Context-aware, predictive, adaptive UI
======================================== */

/* Suggestion Container */
#nebusai-suggestions {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 320px;
    max-width: calc(100vw - 40px);
    z-index: 999;
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    animation: slideInRight 0.3s ease;
}

#nebusai-suggestions.active {
    display: flex;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nebusai-suggestion {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border: 1px solid var(--border-primary);
    transition: var(--transition);
    position: relative;
}

.nebusai-suggestion:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

/* Close button for suggestions */
.nebusai-suggestion-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.75rem;
    opacity: 0.6;
    z-index: 1;
}

.nebusai-suggestion-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    opacity: 1;
}

.nebusai-suggestion-close:active {
    transform: scale(0.95);
}

/* Dismiss animation */
.nebusai-suggestion-dismissed {
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
}

.nebusai-suggestion-content {
    flex: 1;
}

.nebusai-suggestion-title {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.nebusai-suggestion-description {
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.4;
    margin: 0;
}

.nebusai-suggestion-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--white);
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.nebusai-suggestion-action:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.nebusai-suggestion-action:active {
    transform: translateY(0);
}

/* Context-Aware Highlight Classes */
.nebusai-highlight {
    position: relative;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(249, 115, 22, 0);
    }
}

/* Engagement-Level Adaptations */
body.nebusai-ready-to-buy .primary-button {
    animation: pulseGlow 2s ease-in-out infinite;
}

body.nebusai-ready-to-buy .pricing-cta {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

body.nebusai-evaluating .comparison-table {
    border: 2px solid var(--primary-light);
}

body.nebusai-evaluating .pricing-card.popular {
    transform: scale(1.02);
}

/* Segment-Specific Adaptations */
body.nebusai-segment-food-truck .mobile-features,
body.nebusai-segment-food-truck [data-segment="food-truck"] {
    order: -1;
    border-color: var(--primary);
}

body.nebusai-segment-bar .happy-hour-features,
body.nebusai-segment-bar [data-segment="bar"] {
    order: -1;
    border-color: var(--primary);
}

body.nebusai-segment-enterprise .enterprise-features,
body.nebusai-segment-enterprise [data-segment="enterprise"] {
    order: -1;
    border-color: var(--primary);
}

/* Device-Specific Adaptations */
body.nebusai-mobile .desktop-only {
    display: none;
}

body.nebusai-desktop .mobile-only {
    display: none;
}

/* Time-Based Adaptations */
body.nebusai-business-hours .support-available {
    display: flex;
}

body:not(.nebusai-business-hours) .support-available {
    display: none;
}

body:not(.nebusai-business-hours) .ai-support-available {
    display: flex;
}

/* Visitor Status Adaptations */
body.nebusai-new-visitor .welcome-message {
    display: block;
}

body.nebusai-returning-visitor .welcome-back-message {
    display: block;
}

body.nebusai-returning-visitor .welcome-message {
    display: none;
}

/* Urgency Banner for Ready-to-Buy */
[data-nebusai-element="urgency"] {
    display: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
}

[data-nebusai-element="urgency"].active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Predictive Content Highlights */
[data-nebusai-relevant="true"] {
    position: relative;
}

[data-nebusai-relevant="true"]::before {
    content: "Recommended for you";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success);
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    z-index: 1;
}

/* Methodology Debug Panel (Development Only) */
.nebusai-debug {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.9);
    color: #00ff00;
    font-family: monospace;
    font-size: 0.75rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    max-width: 300px;
    max-height: 200px;
    overflow: auto;
    z-index: 10000;
    display: none;
}

body[data-nebusai-debug="true"] .nebusai-debug {
    display: block;
}

/* Progressive Disclosure Support */
.nebusai-more-options {
    color: var(--text-muted);
    font-size: 0.875rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.nebusai-more-options:hover {
    color: var(--primary);
}

.nebusai-advanced-options {
    display: none;
    animation: fadeIn 0.2s ease;
}

.nebusai-advanced-options.visible {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile Responsiveness for Methodology Features */
@media (max-width: 768px) {
    #nebusai-suggestions {
        bottom: 80px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }
    
    .nebusai-suggestion {
        padding: 0.875rem;
    }
    
    .nebusai-suggestion-title {
        font-size: 0.875rem;
    }
    
    .nebusai-suggestion-description {
        font-size: 0.75rem;
    }
}

/* Hide suggestions when chat is open */
body.ai-chat-open #nebusai-suggestions {
    display: none;
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: var(--z-fixed);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    color: var(--text-secondary);
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.theme-toggle:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle-icon {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

/* Sun icon visible in dark mode */
.theme-toggle .icon-sun {
    display: none;
}

/* Moon icon visible in light mode */
.theme-toggle .icon-moon {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun,
:root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon,
:root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: none;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-sun {
        display: block;
    }
    :root:not([data-theme="light"]) .theme-toggle .icon-moon {
        display: none;
    }
}

/* System/Auto option in toggle */
.theme-toggle[data-mode="system"]::after {
    content: "";
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background: var(--info);
    border: 2px solid var(--bg-elevated);
    border-radius: var(--radius-full);
}

/* Mobile positioning */
@media (max-width: 768px) {
    .theme-toggle {
        top: auto;
        bottom: 140px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   DARK MODE COMPONENT OVERRIDES
   ============================================ */

/* Header */
[data-theme="dark"] header,
:root:not([data-theme="light"]) header {
    background: var(--bg-secondary);
    border-bottom-color: var(--border-primary);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) header {
        background: var(--bg-secondary);
        border-bottom-color: var(--border-primary);
    }
}

/* Cards and elevated surfaces */
[data-theme="dark"] .feature-card,
[data-theme="dark"] .pricing-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .integration-card,
[data-theme="dark"] .segment-card,
[data-theme="dark"] .faq-item {
    background: var(--bg-secondary);
    border-color: var(--border-primary);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .feature-card,
    :root:not([data-theme="light"]) .pricing-card,
    :root:not([data-theme="light"]) .testimonial-card,
    :root:not([data-theme="light"]) .integration-card,
    :root:not([data-theme="light"]) .segment-card,
    :root:not([data-theme="light"]) .faq-item {
        background: var(--bg-secondary);
        border-color: var(--border-primary);
    }
}

/* Hero sections */
[data-theme="dark"] .hero,
[data-theme="dark"] .final-cta {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .hero,
    :root:not([data-theme="light"]) .final-cta {
        background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    }
}

/* Footer */
[data-theme="dark"] footer {
    background: var(--bg-secondary);
    border-top-color: var(--border-primary);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) footer {
        background: var(--bg-secondary);
        border-top-color: var(--border-primary);
    }
}

/* Form inputs */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: var(--bg-tertiary);
    border-color: var(--border-primary);
    color: var(--text-primary);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) input,
    :root:not([data-theme="light"]) textarea,
    :root:not([data-theme="light"]) select {
        background: var(--bg-tertiary);
        border-color: var(--border-primary);
        color: var(--text-primary);
    }
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: var(--text-muted);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) input::placeholder,
    :root:not([data-theme="light"]) textarea::placeholder {
        color: var(--text-muted);
    }
}

/* Tables */
[data-theme="dark"] table,
[data-theme="dark"] .comparison-table {
    background: var(--bg-secondary);
}

[data-theme="dark"] th {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

[data-theme="dark"] td {
    border-color: var(--border-primary);
}

[data-theme="dark"] tr:nth-child(even) {
    background: var(--bg-tertiary);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) table,
    :root:not([data-theme="light"]) .comparison-table {
        background: var(--bg-secondary);
    }
    
    :root:not([data-theme="light"]) th {
        background: var(--bg-tertiary);
        color: var(--text-primary);
    }
    
    :root:not([data-theme="light"]) td {
        border-color: var(--border-primary);
    }
    
    :root:not([data-theme="light"]) tr:nth-child(even) {
        background: var(--bg-tertiary);
    }
}

/* AI Chat Widget - Dark Mode */
[data-theme="dark"] .ai-widget,
[data-theme="dark"] #ai-chat-widget {
    background: var(--bg-secondary);
    border-color: var(--border-primary);
}

[data-theme="dark"] .ai-header {
    background: var(--bg-tertiary);
    border-bottom-color: var(--border-primary);
}

[data-theme="dark"] .ai-body {
    background: var(--bg-secondary);
}

[data-theme="dark"] .ai-input {
    background: var(--bg-tertiary);
    border-top-color: var(--border-primary);
}

[data-theme="dark"] .ai-input input {
    background: var(--bg-secondary);
    border-color: var(--border-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .message.user {
    background: var(--primary);
    color: var(--text-inverse);
}

[data-theme="dark"] .message.system {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

[data-theme="dark"] .quick-replies button {
    background: var(--bg-tertiary);
    border-color: var(--border-primary);
    color: var(--text-secondary);
}

[data-theme="dark"] .quick-replies button:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .ai-widget,
    :root:not([data-theme="light"]) #ai-chat-widget {
        background: var(--bg-secondary);
        border-color: var(--border-primary);
    }
    
    :root:not([data-theme="light"]) .ai-header {
        background: var(--bg-tertiary);
        border-bottom-color: var(--border-primary);
    }
    
    :root:not([data-theme="light"]) .ai-body {
        background: var(--bg-secondary);
    }
    
    :root:not([data-theme="light"]) .ai-input {
        background: var(--bg-tertiary);
        border-top-color: var(--border-primary);
    }
    
    :root:not([data-theme="light"]) .ai-input input {
        background: var(--bg-secondary);
        border-color: var(--border-primary);
        color: var(--text-primary);
    }
    
    :root:not([data-theme="light"]) .message.user {
        background: var(--primary);
        color: var(--text-inverse);
    }
    
    :root:not([data-theme="light"]) .message.system {
        background: var(--bg-tertiary);
        color: var(--text-primary);
    }
    
    :root:not([data-theme="light"]) .quick-replies button {
        background: var(--bg-tertiary);
        border-color: var(--border-primary);
        color: var(--text-secondary);
    }
    
    :root:not([data-theme="light"]) .quick-replies button:hover {
        background: var(--primary);
        border-color: var(--primary);
        color: var(--white);
    }
}

/* ==============================================
   URGENCY BANNER
   ============================================== */
[data-nebusai-element="urgency"] {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
}

[data-nebusai-element="urgency"] .promo-link {
    color: white;
    margin-left: 0.5rem;
    text-decoration: underline;
}

[data-nebusai-element="urgency"] .promo-link:hover {
    opacity: 0.9;
}

/* Announcement bar - stays dark */
.announcement-bar {
    background: var(--bg-dark) !important;
    color: var(--white) !important;
}

/* Code blocks */
[data-theme="dark"] code,
[data-theme="dark"] pre {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) code,
    :root:not([data-theme="light"]) pre {
        background: var(--bg-tertiary);
        color: var(--text-primary);
    }
}

/* Blockquotes */
[data-theme="dark"] blockquote {
    background: var(--bg-secondary);
    border-left-color: var(--primary);
    color: var(--text-secondary);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) blockquote {
        background: var(--bg-secondary);
        border-left-color: var(--primary);
        color: var(--text-secondary);
    }
}

/* Images - slight dim in dark mode for comfort */
[data-theme="dark"] img:not([data-no-dim]) {
    filter: brightness(0.9);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) img:not([data-no-dim]) {
        filter: brightness(0.9);
    }
}

/* Logo always bright */
[data-theme="dark"] .logo img,
[data-theme="dark"] .logo svg {
    filter: brightness(1);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .logo img,
    :root:not([data-theme="light"]) .logo svg {
        filter: brightness(1);
    }
}

/* NëbusAI Suggestions - Dark Mode */
[data-theme="dark"] #nebusai-suggestions {
    background: var(--bg-secondary);
    border-color: var(--border-primary);
}

[data-theme="dark"] .nebusai-suggestion {
    background: var(--bg-tertiary);
    border-color: var(--border-primary);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) #nebusai-suggestions {
        background: var(--bg-secondary);
        border-color: var(--border-primary);
    }
    
    :root:not([data-theme="light"]) .nebusai-suggestion {
        background: var(--bg-tertiary);
        border-color: var(--border-primary);
    }
}

/* Smooth theme transition for all elements */
* {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.15s ease;
}

/* Disable transitions during theme change to prevent flickering */
html.theme-changing * {
    transition: none !important;
}

/* ============================================
   ENTERPRISE PAGE - Advanced Feature Styles
   White-Label, Roadmap, Feature Badges
   ============================================ */

/* Feature Badge - Phase/Coming Soon Labels */
.feature-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    margin-left: 0.5rem;
    vertical-align: middle;
}

.feature-badge.phase-3 {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
}

.feature-badge.phase-4 {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: #ffffff;
}

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

/* Future Feature Cards */
.feature-card.future {
    position: relative;
    border-style: dashed;
    opacity: 0.9;
}

.feature-card.future::before {
    content: "Coming Soon";
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--warning);
    color: var(--bg-primary);
    border-radius: var(--radius-sm);
}

.feature-card.future:hover {
    opacity: 1;
    border-style: solid;
}

/* White-Label Section */
.white-label-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.white-label-card {
    background: var(--bg-elevated);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
    transition: var(--transition);
}

.white-label-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.white-label-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.white-label-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.white-label-card li {
    padding: 0.375rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.white-label-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* Roadmap Section */
.roadmap-section {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-radius: var(--radius-xl);
    padding: 3rem;
    margin-top: 3rem;
}

.roadmap-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.roadmap-phase {
    background: var(--bg-elevated);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-primary);
    transition: var(--transition);
}

.roadmap-phase:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.roadmap-phase h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.roadmap-phase .phase-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.roadmap-phase.phase-3 .phase-number {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.roadmap-phase.phase-4 .phase-number {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.roadmap-phase ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.roadmap-phase li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.roadmap-phase li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* Enterprise Hero Enhancements */
.enterprise-hero {
    position: relative;
    overflow: hidden;
}

.enterprise-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Maximus AI Feature Highlight */
.feature-card.maximus-ai {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-accent) 100%);
}

.feature-card.maximus-ai .feature-icon {
    color: var(--primary);
}

/* Dark Mode Support for Enterprise Features */
[data-theme="dark"] .roadmap-section {
    background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
}

[data-theme="dark"] .white-label-card,
[data-theme="dark"] .roadmap-phase {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .feature-badge.coming-soon {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

[data-theme="dark"] .feature-card.future::before {
    background: var(--warning-dark);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .roadmap-section {
        background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    }
    
    :root:not([data-theme="light"]) .white-label-card,
    :root:not([data-theme="light"]) .roadmap-phase {
        background: var(--bg-tertiary);
    }
}

/* Responsive adjustments for enterprise features */
@media (max-width: 768px) {
    .roadmap-section {
        padding: 2rem 1.5rem;
    }
    
    .roadmap-grid {
        grid-template-columns: 1fr;
    }
    
    .white-label-features {
        grid-template-columns: 1fr;
    }
    
    .feature-badge {
        display: block;
        margin-left: 0;
        margin-top: 0.5rem;
        width: fit-content;
    }
}

/* Print styles - always light mode */
@media print {
    :root {
        --text-primary: #000000 !important;
        --bg-primary: #ffffff !important;
        --bg-secondary: #f5f5f5 !important;
        --border-primary: #cccccc !important;
    }
    
    .theme-toggle {
        display: none !important;
    }
}

/* ============================================
   MINERVA AI ASSISTANT - Enhanced Styles
   Roman Goddess of Wisdom - Owl Theme
   ============================================ */

/* Minerva's Avatar - Owl Symbol */
.ai-avatar {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    font-size: 1.5rem !important;
}

/* Minerva's Messages - Wisdom-inspired gradient */
.ai-body .message.minerva p,
.ai-body .message.olympia p {
    background: linear-gradient(135deg, var(--bg-gray) 0%, #fef7ed 100%);
    border-left: 3px solid var(--primary);
}

[data-theme="dark"] .ai-body .message.minerva p,
[data-theme="dark"] .ai-body .message.olympia p {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, #2d2418 100%);
}

/* Speaking icon animation */
.speaking-icon {
    color: #10b981;
    animation: speaking-pulse 0.8s ease-in-out infinite;
}

@keyframes speaking-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

/* Voice button enhanced states */
.ai-input .voice-btn {
    position: relative;
    overflow: hidden;
}

.ai-input .voice-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(249, 115, 22, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.ai-input .voice-btn:hover::before {
    width: 100%;
    height: 100%;
}

.ai-input .voice-btn.listening {
    background: var(--error) !important;
    color: var(--white) !important;
    border-color: var(--error) !important;
}

/* Speaker toggle button (enhanced) */
.ai-input .speaker-btn.active {
    background: var(--success, #10b981) !important;
    color: var(--white) !important;
    border-color: var(--success, #10b981) !important;
}

.ai-input .voice-btn.listening::before {
    width: 200%;
    height: 200%;
    animation: ripple-out 1s ease-out infinite;
}

@keyframes ripple-out {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 200%;
        height: 200%;
        opacity: 0;
    }
}

/* Return visitor recognition styling */
.ai-body .message.welcome-back p {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-left: 3px solid var(--success);
}

[data-theme="dark"] .ai-body .message.welcome-back p {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
}

/* Quick replies enhanced hover */
.quick-replies button {
    position: relative;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-replies button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.quick-replies button:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.quick-replies button:active {
    transform: scale(0.95);
}

/* Proactive message animation */
.ai-body .message.proactive {
    animation: slideInUp 0.4s ease-out, glow-pulse 2s ease-in-out 0.4s;
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
    50% { box-shadow: 0 0 20px 5px rgba(249, 115, 22, 0.15); }
}

/* Chat launcher wisdom glow - using box-shadow instead of ::after to preserve position: fixed */
.ai-launcher::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.3) 0%, transparent 70%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.ai-launcher:hover::after {
    opacity: 1;
}

/* Enhanced input focus state */
.ai-input input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Message links styling */
.ai-body .message a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.ai-body .message a:hover {
    color: var(--primary-dark);
    text-decoration-thickness: 2px;
}

/* Accessibility: Focus visible for all chat elements */
.ai-input button:focus-visible,
.quick-replies button:focus-visible,
.ai-launcher:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);
}

/* ============================================
   FEATURE PAGES - Deep Dive Sections
   ============================================ */

.feature-deep-dive {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-primary);
}

.feature-row:last-child {
    border-bottom: none;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse > * {
    direction: ltr;
}

.feature-text {
    padding: 1rem;
}

.feature-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-text h3 i {
    color: var(--primary);
    font-size: 1.25rem;
}

.feature-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.feature-text p strong {
    color: var(--text-primary);
}

.feature-text ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.feature-text ul li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-secondary);
}

.feature-text ul li:last-child {
    border-bottom: none;
}

.feature-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.feature-text ul li strong {
    color: var(--text-primary);
}

.feature-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    min-height: 250px;
}

/* Voice Wave Animation */
.voice-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 80px;
}

.voice-wave span {
    display: block;
    width: 8px;
    height: 40px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-full);
    animation: voice-wave 1s ease-in-out infinite;
}

.voice-wave span:nth-child(1) { animation-delay: 0s; height: 20px; }
.voice-wave span:nth-child(2) { animation-delay: 0.1s; height: 40px; }
.voice-wave span:nth-child(3) { animation-delay: 0.2s; height: 60px; }
.voice-wave span:nth-child(4) { animation-delay: 0.3s; height: 40px; }
.voice-wave span:nth-child(5) { animation-delay: 0.4s; height: 20px; }

@keyframes voice-wave {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

/* UI Mockup Component */
.ui-mockup {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: 100%;
    max-width: 300px;
    box-shadow: var(--shadow-lg);
}

.ui-mockup .ui-header {
    background: var(--primary);
    color: var(--text-inverse);
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

.ui-mockup .ui-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 1rem;
}

.ui-mockup .btn {
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
    cursor: pointer;
}

.ui-mockup .btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.ui-mockup .btn.action {
    grid-column: span 2;
    background: var(--primary);
    color: var(--text-inverse);
    border-color: var(--primary);
}

.ui-mockup .btn.action:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--text-inverse);
}

/* Feature Page Responsive */
@media (max-width: 768px) {
    .feature-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-row.reverse {
        direction: ltr;
    }
    
    .feature-visual {
        order: -1;
    }
    
    .feature-text h3 {
        font-size: 1.25rem;
    }
    
    .feature-text p {
        font-size: 1rem;
    }
}

/* ============================================
   HUMAN FOLLOW UP MODAL
   Last updated: 2025-01-13
   ============================================ */
.followup-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10002; /* Above chat widget */
    display: flex;
    align-items: center;
    justify-content: center;
}

.followup-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.followup-modal-content {
    position: relative;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.followup-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s;
    font-size: 1.25rem;
}

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

.followup-modal-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.followup-modal-content h3 i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.followup-subtitle {
    color: var(--text-tertiary);
    font-size: 0.9375rem;
    margin: 0 0 1.5rem 0;
}

#human-followup-form .form-group {
    margin-bottom: 1rem;
}

#human-followup-form label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

#human-followup-form label .required {
    color: #dc2626;
}

#human-followup-form input,
#human-followup-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

#human-followup-form input:focus,
#human-followup-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

#human-followup-form input::placeholder,
#human-followup-form textarea::placeholder {
    color: var(--text-muted);
}

#human-followup-form textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.form-actions .btn-secondary {
    flex: 1;
    padding: 0.875rem 1.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s;
}

.form-actions .btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--text-tertiary);
}

.form-actions .btn-primary {
    flex: 2;
    padding: 0.875rem 1.5rem;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-inverse);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s;
}

.form-actions .btn-primary:hover {
    background: var(--primary-dark);
}

.form-actions .btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Success State */
.followup-success {
    text-align: center;
    padding: 2rem 1rem;
}

.followup-success i {
    font-size: 4rem;
    color: #22c55e;
    margin-bottom: 1rem;
}

.followup-success h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.followup-success p {
    color: var(--text-tertiary);
    margin: 0 0 1.5rem 0;
}

.followup-success .btn-primary {
    padding: 0.875rem 2rem;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-inverse);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.followup-success .btn-primary:hover {
    background: var(--primary-dark);
}

/* Chat footer button styling */
.ai-footer .human-link {
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.ai-footer .human-link:hover {
    color: var(--primary);
}

.ai-footer .human-link i {
    margin-right: 0.25rem;
}

/* Modal responsive */
@media (max-width: 480px) {
    .followup-modal-content {
        padding: 1.5rem;
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn-secondary,
    .form-actions .btn-primary {
        flex: none;
        width: 100%;
    }
}

/* ==============================================
   SUPPORT HANDOFF & WAITLIST FORMS (In-Chat)
   ============================================== */

/* Container styling for in-chat forms */
.handoff-container,
.waitlist-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(249, 250, 251, 0.95));
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.handoff-title,
.waitlist-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.handoff-desc,
.waitlist-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
}

/* Form styling */
.handoff-form,
.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.handoff-input,
.waitlist-input,
.handoff-textarea,
.waitlist-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.handoff-input:focus,
.waitlist-input:focus,
.handoff-textarea:focus,
.waitlist-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(201, 68, 0, 0.1);
}

.handoff-textarea {
    min-height: 60px;
    resize: vertical;
}

.waitlist-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M2.5 4.5L6 8L9.5 4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.handoff-submit,
.waitlist-submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 0.25rem;
}

.handoff-submit:hover,
.waitlist-submit:hover {
    background: var(--primary-dark);
}

.handoff-submit:active,
.waitlist-submit:active {
    transform: scale(0.98);
}

.handoff-submit:disabled,
.waitlist-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Success states */
.handoff-success,
.waitlist-success {
    font-weight: 600;
    color: #059669;
    margin: 0 0 0.5rem 0;
    font-size: 0.9375rem;
}

.handoff-note,
.waitlist-note {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
}

.handoff-note strong,
.waitlist-note strong {
    color: var(--text-primary);
}

/* Dark mode support */
[data-theme="dark"] .handoff-container,
[data-theme="dark"] .waitlist-container {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.95), rgba(17, 24, 39, 0.95));
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .handoff-title,
[data-theme="dark"] .waitlist-title {
    color: #f9fafb;
}

[data-theme="dark"] .handoff-desc,
[data-theme="dark"] .waitlist-desc {
    color: #9ca3af;
}

[data-theme="dark"] .handoff-input,
[data-theme="dark"] .waitlist-input,
[data-theme="dark"] .handoff-textarea,
[data-theme="dark"] .waitlist-select {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
}

[data-theme="dark"] .handoff-input::placeholder,
[data-theme="dark"] .waitlist-input::placeholder,
[data-theme="dark"] .handoff-textarea::placeholder {
    color: #6b7280;
}

/* Responsive adjustments for in-chat forms */
@media (max-width: 480px) {
    .handoff-container,
    .waitlist-container {
        padding: 1rem;
        margin-top: 0.375rem;
    }
    
    .handoff-title,
    .waitlist-title {
        font-size: 0.9375rem;
    }
    
    .handoff-input,
    .waitlist-input,
    .handoff-textarea,
    .waitlist-select {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .handoff-submit,
    .waitlist-submit {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
    }
}