/**
 * =============================================================================
 * BRAIN ASSISTANT - STUNNING CSS DESIGN SYSTEM
 * AI-Powered Virtual Assistant & Automation Solution
 * =============================================================================
 */

/* Police Söhne */
@font-face {
    font-family: 'Söhne';
    src: url('../fonts/Sohne-Regular.woff2') format('woff2'),
         url('../fonts/Sohne-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Söhne';
    src: url('../fonts/Sohne-Medium.woff2') format('woff2'),
         url('../fonts/Sohne-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Söhne';
    src: url('../fonts/Sohne-SemiBold.woff2') format('woff2'),
         url('../fonts/Sohne-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* =============================================================================
   CSS CUSTOM PROPERTIES - AI ASSISTANT THEME
   ============================================================================= */

:root {
    /* AI Assistant Color Palette */
    --primary-ai: #6366f1;
    --primary-ai-light: #818cf8;
    --primary-ai-dark: #4f46e5;
    --secondary-ai: #06b6d4;
    --secondary-ai-light: #22d3ee;
    --secondary-ai-dark: #0891b2;
    
    /* Gradient Combinations */
    --gradient-ai: linear-gradient(135deg, #6366f1 0%, #06b6d4 50%, #8b5cf6 100%);
    --gradient-ai-reverse: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 50%, #6366f1 100%);
    --gradient-ai-soft: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(6, 182, 212, 0.1) 50%, rgba(139, 92, 246, 0.1) 100%);
    --gradient-ai-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(6, 182, 212, 0.2) 50%, rgba(139, 92, 246, 0.2) 100%);
    
    /* Neutral Colors */
    --white: #ffffff;
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    --neutral-950: #020617;
    
    /* Status Colors */
    --success-green: #10b981;
    --warning-orange: #f59e0b;
    --error-red: #ef4444;
    --info-blue: #3b82f6;
    
    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;
    
    /* Typography */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    
    /* Glass Morphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --blur-light: blur(8px);
    --blur-medium: blur(16px);
    --blur-strong: blur(24px);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    --shadow-ai: 0 0 20px rgba(99, 102, 241, 0.3);
    --shadow-ai-glow: 0 0 40px rgba(99, 102, 241, 0.2);
    
    /* Transitions */
    --duration-fast: 0.15s;
    --duration-normal: 0.3s;
    --duration-slow: 0.5s;
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* =============================================================================
   BASE STYLES
   ============================================================================= */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Söhne', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--white);
    background: var(--neutral-900);
    overflow-x: hidden;
}

/* =============================================================================
   MAIN CONTAINER
   ============================================================================= */

.brain-assistant-main {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(12, 20, 37, 0.7) 50%, rgba(30, 41, 59, 0.8) 100%);
    display: flex;
    flex-direction: column;
}

/* =============================================================================
   FLOATING AI PARTICLES BACKGROUND
   ============================================================================= */

#brain-assistant-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}

/* =============================================================================
   HERO SECTION - STUNNING DESIGN
   ============================================================================= */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-2xl) 0;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--glass-bg);
    backdrop-filter: var(--blur-medium);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    margin-bottom: var(--space-xl);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--neutral-200);
    animation: fadeInUp 0.8s var(--ease-smooth) both;
}

.hero-badge svg {
    color: var(--primary-ai);
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s var(--ease-smooth) 0.2s both;
}

.gradient-text {
    background: var(--gradient-ai);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.gradient-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-ai);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: left;
    animation: expandLine 1s var(--ease-smooth) 1s forwards;
}

.hero-description {
    font-size: var(--font-size-lg);
    color: var(--neutral-300);
    margin-bottom: var(--space-2xl);
    line-height: 1.7;
    animation: fadeInUp 0.8s var(--ease-smooth) 0.4s both;
}

.hero-stats {
    display: flex;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 0.8s var(--ease-smooth) 0.6s both;
}

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

.stat-number {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--primary-ai);
    display: block;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--neutral-400);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: var(--space-lg);
    animation: fadeInUp 0.8s var(--ease-smooth) 0.8s both;
}

/* Buttons - TemplateB CTA Style */
.brain-assistant-main .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 100px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    position: relative;
    background: var(--white);
    color: #4B2B16;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brain-assistant-main .btn-primary::before {
    display: none;
}

.brain-assistant-main .btn-primary span,
.brain-assistant-main .btn-primary svg {
    position: relative;
    z-index: 1;
    color: #4B2B16;
}

.brain-assistant-main .btn-primary:hover,
.brain-assistant-main .btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.4);
}

.brain-assistant-main .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 9999px;
    background: var(--glass-bg);
    color: var(--neutral-200);
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: var(--blur-light);
    cursor: pointer;
}

.brain-assistant-main .btn-secondary:hover,
.brain-assistant-main .btn-secondary:focus {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    color: var(--neutral-200);
}

@keyframes glowingBorderAssistant {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* =============================================================================
   HERO VISUAL - ASSISTANT INTERFACE
   ============================================================================= */

.hero-visual {
    z-index: 2;
    animation: fadeInUp 0.8s var(--ease-smooth) 1s both;
}

.assistant-interface {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-strong);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    position: relative;
}

.assistant-interface::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-ai-soft);
    opacity: 0.3;
    pointer-events: none;
}

.interface-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--glass-border);
}

.interface-controls {
    display: flex;
    gap: var(--space-xs);
}

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

.control.red { background: var(--error-red); }
.control.yellow { background: var(--warning-orange); }
.control.green { background: var(--success-green); }

.interface-title {
    font-weight: 600;
    color: var(--white);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--success-green);
}

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

.interface-content {
    padding: var(--space-xl);
}

.chat-messages {
    margin-bottom: var(--space-lg);
}

.message {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.message.assistant {
    align-items: flex-start;
}

.message.user {
    flex-direction: row-reverse;
    align-items: flex-end;
}

.message-avatar {
    width: 32px;
    height: 32px;
    background: var(--gradient-ai);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-avatar svg {
    color: var(--white);
    width: 16px;
    height: 16px;
}

.message-content {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-md) var(--space-lg);
    border-radius: 16px;
    max-width: 80%;
}

.message.user .message-content {
    background: var(--primary-ai);
    color: var(--white);
}

.message-content p {
    margin: 0;
    line-height: 1.5;
}

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

.message-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: var(--space-md) var(--space-lg);
    color: var(--white);
    font-size: var(--font-size-sm);
}

.message-input::placeholder {
    color: var(--neutral-400);
}

.send-button {
    width: 40px;
    height: 40px;
    background: var(--gradient-ai);
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.send-button:hover {
    transform: scale(1.05);
}

.send-button svg {
    color: var(--white);
    width: 16px;
    height: 16px;
}

/* =============================================================================
   FEATURES SECTION
   ============================================================================= */

.features-section {
    padding: var(--space-5xl) 0;
    position: relative;
    clear: both;
    margin-bottom: 0;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--glass-bg);
    backdrop-filter: var(--blur-medium);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--neutral-200);
}

.section-badge svg {
    color: var(--primary-ai);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

.section-description {
    font-size: var(--font-size-lg);
    color: var(--neutral-300);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-medium);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: var(--space-2xl);
    transition: all var(--duration-normal) var(--ease-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-ai);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-smooth);
    border-radius: 16px;
}

.feature-card:hover::before {
    opacity: 0.1;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-ai);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 2;
}

.feature-icon svg {
    color: var(--white);
    width: 24px;
    height: 24px;
}

.feature-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--white);
    position: relative;
    z-index: 2;
}

.feature-description {
    color: var(--neutral-300);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
    position: relative;
    z-index: 2;
    flex: 1;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    position: relative;
    z-index: 2;
}

.tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-ai);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 6px;
    font-size: var(--font-size-xs);
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* =============================================================================
   DEMO SECTION
   ============================================================================= */

.demo-section {
    padding: var(--space-5xl) 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02) 0%, rgba(6, 182, 212, 0.02) 100%);
    position: relative;
    clear: both;
    margin-top: 0;
}

.demo-container {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-strong);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    margin-top: var(--space-2xl);
}

.demo-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    z-index: 10;
}

.demo-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: transparent;
    border: none;
    color: var(--neutral-400);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-smooth);
    position: relative;
}

.demo-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-ai);
    transform: scaleX(0);
    transition: transform var(--duration-normal) var(--ease-smooth);
}

.demo-tab.active {
    color: var(--white);
    background: rgba(99, 102, 241, 0.1);
}

.demo-tab.active::after {
    transform: scaleX(1);
}

.demo-tab:hover {
    color: var(--white);
    background: rgba(99, 102, 241, 0.05);
}

.demo-content {
    padding: var(--space-2xl);
}

.demo-panel {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s var(--ease-smooth);
}

.demo-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeIn 0.5s var(--ease-smooth);
}

.demo-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.demo-header h3 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--white);
}

.demo-header p {
    color: var(--neutral-400);
    font-size: var(--font-size-base);
}

.demo-widget {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: var(--space-2xl);
    min-height: 400px;
}

/* Chat Demo Styles */
.chat-demo {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chat-messages-demo {
    flex: 1;
    margin-bottom: var(--space-lg);
}

.message-demo {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.message-demo.assistant {
    align-items: flex-start;
}

.message-demo.user {
    flex-direction: row-reverse;
    align-items: flex-end;
}

.message-avatar-demo {
    width: 32px;
    height: 32px;
    background: var(--gradient-ai);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-avatar-demo svg {
    color: var(--white);
    width: 16px;
    height: 16px;
}

.message-content-demo {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-md) var(--space-lg);
    border-radius: 16px;
    max-width: 80%;
}

.message-demo.user .message-content-demo {
    background: var(--primary-ai);
    color: var(--white);
}

.message-content-demo p {
    margin: 0 0 var(--space-md) 0;
    line-height: 1.5;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.quick-action {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: var(--space-sm) var(--space-md);
    color: var(--white);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.quick-action:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

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

.message-input-demo {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: var(--space-md) var(--space-lg);
    color: var(--white);
    font-size: var(--font-size-sm);
}

.message-input-demo::placeholder {
    color: var(--neutral-400);
}

.send-button-demo {
    width: 40px;
    height: 40px;
    background: var(--gradient-ai);
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.send-button-demo:hover {
    transform: scale(1.05);
}

.send-button-demo svg {
    color: var(--white);
    width: 16px;
    height: 16px;
}

/* Automation Demo Styles */
.automation-demo {
    height: 100%;
}

.automation-canvas {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.automation-node {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: var(--space-lg);
    min-width: 200px;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.automation-node:hover {
    transform: translateY(-2px);
    border-color: var(--primary-ai);
    box-shadow: var(--shadow-ai);
}

.automation-node.trigger {
    border-color: var(--success-green);
}

.automation-node.action {
    border-color: var(--primary-ai);
}

.node-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-ai);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.node-icon svg {
    color: var(--white);
    width: 16px;
    height: 16px;
}

.node-content h4 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-xs);
}

.node-content p {
    font-size: var(--font-size-xs);
    color: var(--neutral-400);
    margin: 0;
}

.automation-connection {
    width: 2px;
    height: 20px;
    background: var(--gradient-ai);
    border-radius: 1px;
}

.automation-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.stat {
    text-align: center;
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-value {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-ai);
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--neutral-400);
}

/* Analytics Demo Styles */
.analytics-demo {
    height: 100%;
}

.analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.analytics-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: var(--space-lg);
}

.analytics-card h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.analytics-chart {
    margin-bottom: var(--space-lg);
}

.analytics-insight {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.insight-label {
    font-size: var(--font-size-sm);
    color: var(--neutral-400);
}

.insight-value {
    font-size: var(--font-size-sm);
    color: var(--success-green);
    font-weight: 600;
}

.completion-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.completion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.completion-item:last-child {
    border-bottom: none;
}

.completion-label {
    font-size: var(--font-size-sm);
    color: var(--neutral-400);
}

.completion-value {
    font-size: var(--font-size-sm);
    color: var(--white);
    font-weight: 600;
}

/* =============================================================================
   TESTIMONIALS SECTION
   ============================================================================= */

.testimonials-section {
    padding: var(--space-5xl) 0;
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.testimonial-card {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-medium);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: var(--space-2xl);
    transition: all var(--duration-normal) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-ai);
    transform: scaleX(0);
    transition: transform var(--duration-normal) var(--ease-smooth);
}

.testimonial-card:hover::before {
    transform: scaleX(1);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-ai);
    box-shadow: var(--shadow-ai);
}

.testimonial-rating {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.star {
    color: var(--warning-orange);
    font-size: var(--font-size-lg);
}

.testimonial-text {
    font-size: var(--font-size-base);
    color: var(--neutral-300);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-ai);
    position: absolute;
    top: -10px;
    left: -10px;
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-xs);
}

.author-role {
    font-size: var(--font-size-sm);
    color: var(--primary-ai);
    margin-bottom: var(--space-xs);
}

.author-company {
    font-size: var(--font-size-sm);
    color: var(--neutral-400);
}

/* =============================================================================
   CTA SECTION
   ============================================================================= */

.cta-section {
    padding: var(--space-5xl) 0;
    position: relative;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(6, 182, 212, 0.03) 100%);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

.cta-description {
    font-size: var(--font-size-lg);
    color: var(--neutral-300);
    margin-bottom: var(--space-2xl);
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    margin-bottom: var(--space-2xl);
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--neutral-300);
}

.feature-item svg {
    color: var(--success-green);
    width: 16px;
    height: 16px;
}

/* =============================================================================
   ANIMATIONS
   ============================================================================= */

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

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

@keyframes expandLine {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

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

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

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

/* =============================================================================
   ADDITIONAL FIXES FOR FEATURES AND DEMO
   ============================================================================= */

/* Ensure proper spacing and visibility */
.features-section {
    position: relative;
    z-index: 5;
    margin-bottom: 0;
    padding-bottom: var(--space-5xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.demo-section {
    position: relative;
    z-index: 5;
    margin-top: 0;
    padding-top: var(--space-5xl);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02) 0%, rgba(6, 182, 212, 0.02) 100%);
}

/* Add a visual separator between sections */
.features-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--gradient-ai);
    border-radius: 1px;
    opacity: 0.3;
}

/* Ensure sections are properly isolated */
section {
    position: relative;
    width: 100%;
    display: block;
}

/* Prevent any floating issues */
.features-section,
.demo-section,
.testimonials-section,
.cta-section {
    float: none;
    clear: both;
}

/* Fix for feature cards on smaller screens */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .feature-card {
        min-height: auto;
        padding: var(--space-xl);
    }
    
    .demo-tabs {
        flex-direction: column;
    }
    
    .demo-tab {
        padding: var(--space-md);
        border-bottom: 1px solid var(--glass-border);
    }
    
    .demo-tab:last-child {
        border-bottom: none;
    }
    
    .automation-stats {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

@media (max-width: 1200px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }
    
    .hero-visual {
        order: -1;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .automation-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --space-5xl: 4rem;
        --space-4xl: 3rem;
        --space-3xl: 2rem;
    }
    
    .section-container {
        padding: 0 var(--space-lg);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .hero-actions {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .demo-tabs {
        flex-direction: column;
    }
    
    .demo-tab {
        padding: var(--space-md);
        border-bottom: 1px solid var(--glass-border);
    }
    
    .cta-actions {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .cta-features {
        flex-direction: column;
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .hero-container,
    .section-container {
        padding: 0 var(--space-md);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: var(--space-lg);
    }
    
    .demo-content {
        padding: var(--space-lg);
    }
    
    .demo-widget {
        padding: var(--space-lg);
    }
}

/* =============================================================================
   TYPING INDICATOR STYLES
   ============================================================================= */

.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--primary-ai);
    border-radius: 50%;
    animation: typingPulse 1.4s infinite ease-in-out;
}

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

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

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

/* =============================================================================
   ACCESSIBILITY & PERFORMANCE
   ============================================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary-ai);
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.1);
        --glass-border: rgba(255, 255, 255, 0.2);
        --neutral-300: #d1d5db;
        --neutral-400: #9ca3af;
    }
}

@media print {
    .brain-assistant-main {
        background: white;
        color: black;
    }
    
    .hero-section,
    .features-section,
    .demo-section,
    .testimonials-section,
    .cta-section {
        break-inside: avoid;
    }
}
