/* Synqra - Main Stylesheet */

:root {
    /* Color Palette - Light Sky Blue Theme */
    --bg-primary: #f0f9ff;
    --bg-secondary: #e0f2fe;
    --bg-tertiary: #bae6fd;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-hover: rgba(56, 189, 248, 0.1);
    --bg-dark: #0c4a6e;
    
    --text-primary: #0c4a6e;
    --text-secondary: #0369a1;
    --text-muted: #64748b;
    
    /* Sky Blue accent */
    --accent-primary: #0ea5e9;
    --accent-secondary: #38bdf8;
    --accent-light: #7dd3fc;
    /* Gold accent */
    --gold-primary: #f59e0b;
    --gold-secondary: #fbbf24;
    --gold-light: #fcd34d;
    
    --accent-gradient: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 50%, #7dd3fc 100%);
    --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --accent-glow: 0 4px 20px rgba(14, 165, 233, 0.25);
    --gold-glow: 0 4px 20px rgba(245, 158, 11, 0.25);
    
    --error: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    
    --border-color: rgba(14, 165, 233, 0.15);
    --border-glow: rgba(56, 189, 248, 0.4);
    
    /* Typography */
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Borders */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}


/* Unique Design Signature - Animated Gradient Mesh */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
    background: 
        radial-gradient(ellipse 800px 600px at 20% 30%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 600px 800px at 80% 70%, rgba(56, 189, 248, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 700px 700px at 50% 50%, rgba(125, 211, 252, 0.1) 0%, transparent 50%);
    animation: gradientMesh 20s ease-in-out infinite;
    mix-blend-mode: overlay;
}

/* App wrapper for landing and auth pages - SINGLE SOURCE OF TRUTH */
body.landing #app,
body.auth-page #app {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Additional bubble animations for landing and auth pages */
body.landing .floating-particles,
body.auth-page .floating-particles {
    opacity: 1;
}

body.landing .particle,
body.auth-page .particle {
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Add pulsing effect to some bubbles */
.particle:nth-child(3n) {
    animation-name: float, pulse;
    animation-duration: 15s, 3s;
    animation-iteration-count: infinite, infinite;
}

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

/* Additional bubble animations for landing and auth pages */
body.landing .floating-particles,
body.auth-page .floating-particles {
    opacity: 1;
}

body.landing .particle,
body.auth-page .particle {
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes gradientMesh {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.5;
    }
    66% {
        transform: translate(-20px, 20px) scale(0.95);
        opacity: 0.35;
    }
}

/* Signature Accent Line - Appears on interactive elements */
.signature-accent {
    position: relative;
    overflow: hidden;
}

.signature-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.signature-accent:hover::before,
.signature-accent:focus::before {
    left: 100%;
}

/* Floating Particles Background */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.35) 0%, rgba(56, 189, 248, 0.25) 50%, transparent 70%);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
    filter: blur(1px);
}

/* More visible bubbles around hero section */
body.landing .hero ~ * .particle,
body.landing .hero .particle,
body.landing .particle:nth-child(n) {
    opacity: 1;
}

/* Hero section specific bubble enhancements */
body.landing .hero {
    position: relative;
}

body.landing .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    background: 
        radial-gradient(circle 150px at 20% 30%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
        radial-gradient(circle 120px at 80% 50%, rgba(56, 189, 248, 0.12) 0%, transparent 50%),
        radial-gradient(circle 100px at 50% 70%, rgba(125, 211, 252, 0.1) 0%, transparent 50%);
    animation: heroBubbles 8s ease-in-out infinite;
}

@keyframes heroBubbles {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.1); }
}

/* Large bubbles */
.particle.bubble-large {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.3) 0%, rgba(56, 189, 248, 0.2) 50%, transparent 70%);
    filter: blur(1.5px);
    animation: floatLarge 20s infinite ease-in-out;
}

/* Make large bubbles more visible in hero area */
body.landing .particle.bubble-large {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.4) 0%, rgba(56, 189, 248, 0.3) 50%, transparent 70%);
    filter: blur(1px);
}

/* Small bubbles */
.particle.bubble-small {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.4) 0%, rgba(56, 189, 248, 0.25) 50%, transparent 70%);
    filter: blur(0.5px);
    animation: floatSmall 12s infinite ease-in-out;
}

/* Make small bubbles more visible in hero area */
body.landing .particle.bubble-small {
    background: radial-gradient(circle, rgba(125, 211, 252, 0.5) 0%, rgba(56, 189, 248, 0.35) 50%, transparent 70%);
}

/* Varied positions and timings for all particles */
/* Hero section area bubbles (top 40% of screen) - more visible */
.particle:nth-child(1) { left: 5%; animation-delay: 0s; animation-duration: 12s; top: 10%; }
.particle:nth-child(2) { left: 15%; animation-delay: 2s; animation-duration: 18s; top: 20%; }
.particle:nth-child(3) { left: 25%; animation-delay: 4s; animation-duration: 15s; top: 5%; }
.particle:nth-child(4) { left: 35%; animation-delay: 1s; animation-duration: 20s; top: 15%; }
.particle:nth-child(5) { left: 45%; animation-delay: 3s; animation-duration: 14s; top: 8%; }
.particle:nth-child(6) { left: 55%; animation-delay: 5s; animation-duration: 16s; top: 25%; }
.particle:nth-child(7) { left: 65%; animation-delay: 2.5s; animation-duration: 13s; top: 12%; }
.particle:nth-child(8) { left: 75%; animation-delay: 4.5s; animation-duration: 17s; top: 18%; }
.particle:nth-child(9) { left: 85%; animation-delay: 1.5s; animation-duration: 19s; top: 7%; }
.particle:nth-child(10) { left: 10%; animation-delay: 6s; animation-duration: 14s; top: 30%; }
.particle:nth-child(11) { left: 30%; animation-delay: 3.5s; animation-duration: 16s; top: 22%; }
.particle:nth-child(12) { left: 50%; animation-delay: 7s; animation-duration: 18s; top: 35%; }
.particle:nth-child(13) { left: 70%; animation-delay: 4s; animation-duration: 15s; top: 28%; }
.particle:nth-child(14) { left: 90%; animation-delay: 5.5s; animation-duration: 17s; top: 15%; }
.particle:nth-child(15) { left: 20%; animation-delay: 8s; animation-duration: 13s; top: 40%; }
.particle:nth-child(16) { left: 12%; animation-delay: 1s; animation-duration: 22s; top: 45%; }
.particle:nth-child(17) { left: 60%; animation-delay: 6.5s; animation-duration: 19s; top: 50%; }
.particle:nth-child(18) { left: 80%; animation-delay: 3s; animation-duration: 21s; top: 42%; }
.particle:nth-child(19) { left: 8%; animation-delay: 7.5s; animation-duration: 11s; top: 55%; }
.particle:nth-child(20) { left: 40%; animation-delay: 2.5s; animation-duration: 13s; top: 60%; }
.particle:nth-child(21) { left: 65%; animation-delay: 8.5s; animation-duration: 15s; top: 58%; }
.particle:nth-child(22) { left: 25%; animation-delay: 4.5s; animation-duration: 17s; top: 65%; }
.particle:nth-child(23) { left: 55%; animation-delay: 9s; animation-duration: 14s; top: 70%; }

/* Enhanced visibility for hero section bubbles (top 40% of viewport) */
body.landing .particle:nth-child(-n+15) {
    opacity: 1 !important;
    filter: blur(0.5px) !important;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.45) 0%, rgba(56, 189, 248, 0.35) 50%, transparent 70%) !important;
}

/* Large bubbles in hero area - even more visible */
body.landing .particle.bubble-large:nth-child(-n+18) {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.5) 0%, rgba(56, 189, 248, 0.4) 50%, transparent 70%) !important;
    filter: blur(0.8px) !important;
    opacity: 1 !important;
}

/* Small bubbles in hero area */
body.landing .particle.bubble-small:nth-child(-n+23) {
    background: radial-gradient(circle, rgba(125, 211, 252, 0.6) 0%, rgba(56, 189, 248, 0.45) 50%, transparent 70%) !important;
    opacity: 1 !important;
}

@keyframes float {
    0% { transform: translateY(100vh) translateX(0) scale(0.8) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    50% { transform: translateY(50vh) translateX(30px) scale(1.1) rotate(180deg); opacity: 1; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-10vh) translateX(-30px) scale(0.9) rotate(360deg); opacity: 0; }
}

/* Enhanced visibility for bubbles in hero section area */
body.landing .particle:nth-child(n) {
    opacity: 1;
}

body.landing .particle:nth-child(n):nth-child(-n+15) {
    /* First 15 particles (hero area) - more visible */
    opacity: 1;
    filter: blur(0.8px);
}

@keyframes floatLarge {
    0% { transform: translateY(100vh) translateX(0) scale(0.7) rotate(0deg); opacity: 0; }
    10% { opacity: 0.5; }
    50% { transform: translateY(40vh) translateX(40px) scale(1.3) rotate(180deg); opacity: 0.7; }
    90% { opacity: 0.5; }
    100% { transform: translateY(-15vh) translateX(-40px) scale(0.8) rotate(360deg); opacity: 0; }
}

@keyframes floatSmall {
    0% { transform: translateY(100vh) translateX(0) scale(0.9) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    50% { transform: translateY(60vh) translateX(20px) scale(1.05) rotate(180deg); opacity: 1; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-5vh) translateX(-20px) scale(0.95) rotate(360deg); opacity: 0; }
}

/* Add pulsing effect to some bubbles */
.particle:nth-child(3n) {
    animation-name: float, pulse;
    animation-duration: 15s, 3s;
    animation-iteration-count: infinite, infinite;
}

.particle.bubble-large:nth-child(3n) {
    animation-name: floatLarge, pulse;
    animation-duration: 20s, 4s;
}

.particle.bubble-small:nth-child(3n) {
    animation-name: floatSmall, pulse;
    animation-duration: 12s, 2.5s;
}

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

/* Enhanced Card Hover with Signature Accent */
.card-enhanced {
    position: relative;
    transition: all var(--transition-base);
}

.card-enhanced::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-enhanced:hover::after {
    width: 100%;
}

.card-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.15);
}

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

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

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    position: relative;
    /* Prevent browser extensions from interfering */
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* App wrapper */
#app {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    /* Prevent browser extensions from interfering */
    isolation: isolate;
}

/* Ensure sections on landing page are full width */
body.landing #app > section,
body.landing #app > nav {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

/* Landing page sections */
body.landing .problems-section,
body.landing .features,
body.landing .security-section,
body.landing .case-studies-section,
body.landing .pricing-section,
body.landing .cta-section {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    /* Keep original padding - don't remove it */
}

/* Landing page container - SINGLE SOURCE OF TRUTH */
body.landing .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    box-sizing: border-box;
    width: 100%;
}

@media (min-width: 1400px) {
    body.landing .container {
        max-width: 1400px;
        padding: 0 2rem;
    }
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(56, 189, 248, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(14, 165, 233, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -2;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { color: var(--text-secondary); }

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-secondary);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.5);
    color: white;
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.btn-accent {
    background: var(--gold-gradient);
    color: white;
    box-shadow: var(--gold-glow);
    font-weight: 600;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.4);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--accent-primary);
    background: var(--bg-hover);
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: 1.05rem;
}

.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.875rem;
}

/* Form Elements */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: var(--space-md);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.form-input:hover {
    border-color: var(--accent-secondary);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
    transform: translateY(-1px);
}

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

/* Dark Mode Form Inputs */



/* Dark Mode Buttons */




/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.card-header {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

/* Dark Mode Cards - Ensure text is visible */


/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* Dark Mode Navbar */

.navbar-inner {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: 0 var(--space-lg);
    width: 100%;
    box-sizing: border-box;
}

/* Landing page navbar should not constrain width */
body.landing .navbar-inner {
    max-width: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    flex-shrink: 0;
    transition: all var(--transition-base);
    padding: var(--space-xs);
    border-radius: var(--radius-md);
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-brand:hover .logo .synqro-logo-icon {
    transform: rotate(5deg) scale(1.1);
    filter: drop-shadow(0 4px 15px rgba(255, 107, 53, 0.5));
}

.navbar-brand .logo {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: visible;
}

.navbar-brand .logo .synqro-logo-icon {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 8px rgba(255, 107, 53, 0.3));
    transition: all var(--transition-base);
}

.navbar-brand .logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.navbar-brand:hover .logo::before {
    left: 100%;
}

.navbar-brand .brand-text {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    transition: all var(--transition-base);
    position: relative;
}

.navbar-brand:hover .brand-text {
    background: linear-gradient(135deg, var(--gold-secondary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.05);
}

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

.navbar-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
    text-decoration: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
}

.navbar-link:hover {
    color: var(--accent-primary);
    background: var(--bg-hover);
}

.navbar-link.active {
    color: var(--gold-primary);
}

/* Dark Mode Navbar Links */



/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    min-width: 44px;
    min-height: 44px;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:active {
    background: var(--bg-hover);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 1001 !important;
        position: relative;
        pointer-events: auto !important;
        min-width: 44px;
        min-height: 44px;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        cursor: pointer !important;
        -webkit-user-select: none;
        user-select: none;
    }
    
    .mobile-menu-btn:active {
        background: var(--bg-hover) !important;
        transform: scale(0.95);
    }
    
    .navbar {
        position: fixed;
        z-index: 100;
    }
    
    .navbar-inner {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    .navbar-links {
        display: none !important;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: var(--space-md);
        border-bottom: 1px solid var(--border-color);
        gap: var(--space-sm);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        z-index: 999;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .navbar-links.open {
        display: flex !important;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: var(--space-lg);
    overflow-y: auto;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    margin-bottom: var(--space-xs);
}

.sidebar-link:hover,
.sidebar-link.active {
    background: var(--bg-hover);
    color: var(--accent-primary);
}

.sidebar-link svg {
    width: 20px;
    height: 20px;
}

/* Main Content Area */
.main-content {
    margin-left: 260px;
    margin-top: 60px;
    padding: var(--space-xl);
    min-height: calc(100vh - 60px);
}

/* Chat Interface */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
    max-width: 900px;
    margin: 0 auto;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
    scroll-behavior: smooth;
}

.message {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    animation: messageIn 0.3s ease;
}

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

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-avatar.ai {
    background: var(--accent-gradient);
}

.message-content {
    flex: 1;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
}

.message.user .message-content {
    background: rgba(45, 212, 191, 0.15);
    border: 1px solid rgba(45, 212, 191, 0.2);
}

.message-text {
    color: var(--text-primary);
    line-height: 1.7;
}

.message-sources {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
}

.source-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-right: var(--space-sm);
    margin-bottom: var(--space-xs);
}

.chat-input-container {
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.chat-input-wrapper {
    display: flex;
    gap: var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
    transition: all var(--transition-fast);
}

.chat-input-wrapper:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.1);
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: var(--space-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    resize: none;
}

.chat-input:focus {
    outline: none;
}

.chat-send-btn {
    padding: var(--space-md) var(--space-lg);
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: var(--bg-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.chat-send-btn:hover {
    transform: scale(1.02);
    box-shadow: var(--accent-glow);
}

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

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: var(--space-sm);
}

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

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

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-10px); opacity: 1; }
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.stat-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: var(--space-xs);
}

/* Document List */
.doc-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.doc-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.doc-item:hover {
    border-color: var(--border-glow);
    background: var(--bg-hover);
}

.doc-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.doc-info {
    flex: 1;
}

.doc-name {
    font-weight: 500;
    color: var(--text-primary);
}

.doc-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.doc-status {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.doc-status.completed {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.doc-status.processing {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.doc-status.failed {
    background: rgba(244, 63, 94, 0.15);
    color: var(--error);
}

/* Alerts */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.alert-error {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: var(--error);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
}

/* Dark Mode Alerts - Better contrast */



/* Loading Spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Landing Page Styles */
body.landing {
    padding-top: 0;
    overflow-x: hidden;
    margin: 0;
}

/* Duplicate rule removed - handled by consolidated rule above */

/* Ensure navbar on landing page works correctly */
body.landing .navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100 !important;
    margin: 0 !important;
    width: 100% !important;
}

.hero {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 2rem 1rem !important;
    padding-top: 120px !important;
    padding-bottom: 4rem !important;
    margin: 0 !important;
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%) !important;
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Animated Background Gradient */
.hero-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(56, 189, 248, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(125, 211, 252, 0.1) 0%, transparent 50%);
    animation: gradientMove 15s ease-in-out infinite;
    z-index: 0;
}

@keyframes gradientMove {
    0%, 100% {
        transform: scale(1) translate(0, 0);
        opacity: 1;
    }
    33% {
        transform: scale(1.1) translate(-20px, 20px);
        opacity: 0.9;
    }
    66% {
        transform: scale(0.95) translate(20px, -20px);
        opacity: 0.95;
    }
}

/* Animated Particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-particles .particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.2);
    animation: particleFloat 20s ease-in-out infinite;
}

.hero-particles .particle-1 {
    width: 8px;
    height: 8px;
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.hero-particles .particle-2 {
    width: 12px;
    height: 12px;
    top: 40%;
    right: 20%;
    animation-delay: 2s;
}

.hero-particles .particle-3 {
    width: 6px;
    height: 6px;
    bottom: 30%;
    left: 25%;
    animation-delay: 4s;
}

.hero-particles .particle-4 {
    width: 10px;
    height: 10px;
    top: 60%;
    right: 15%;
    animation-delay: 6s;
}

.hero-particles .particle-5 {
    width: 14px;
    height: 14px;
    bottom: 20%;
    right: 30%;
    animation-delay: 8s;
}

.hero-particles .particle-6 {
    width: 8px;
    height: 8px;
    top: 10%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(30px, -40px) scale(1.2);
        opacity: 0.5;
    }
    50% {
        transform: translate(-20px, -60px) scale(0.8);
        opacity: 0.4;
    }
    75% {
        transform: translate(40px, -20px) scale(1.1);
        opacity: 0.6;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.hero-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    color: var(--accent-primary);
    opacity: 0;
    animation: floatIn 1.5s ease-out forwards, floatGentle 25s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(14, 165, 233, 0.15));
    will-change: transform;
}

.floating-icon.icon-1 {
    top: 10%;
    left: 8%;
    animation-delay: 0.3s, 0s;
}

.floating-icon.icon-2 {
    top: 20%;
    right: 12%;
    animation-delay: 0.6s, 2s;
}

.floating-icon.icon-3 {
    bottom: 25%;
    left: 6%;
    animation-delay: 0.9s, 4s;
}

.floating-icon.icon-4 {
    bottom: 15%;
    right: 10%;
    animation-delay: 1.2s, 6s;
}

.floating-icon.icon-5 {
    top: 45%;
    left: 4%;
    animation-delay: 1.5s, 8s;
}

.floating-icon.icon-6 {
    top: 55%;
    right: 6%;
    animation-delay: 1.8s, 10s;
}

.floating-icon.icon-7 {
    top: 35%;
    left: 50%;
    animation-delay: 2.1s, 12s;
}

.floating-icon.icon-8 {
    bottom: 40%;
    right: 50%;
    animation-delay: 2.4s, 14s;
}

.floating-icon.icon-9 {
    top: 5%;
    left: 25%;
    animation-delay: 2.7s, 16s;
}

.floating-icon.icon-10 {
    top: 65%;
    left: 20%;
    animation-delay: 3s, 18s;
}

.floating-icon.icon-11 {
    bottom: 10%;
    left: 15%;
    animation-delay: 3.3s, 20s;
}

.floating-icon.icon-12 {
    top: 30%;
    right: 25%;
    animation-delay: 3.6s, 22s;
}

.floating-icon.icon-13 {
    bottom: 50%;
    right: 35%;
    animation-delay: 3.9s, 24s;
}

.floating-icon.icon-14 {
    top: 15%;
    left: 35%;
    animation-delay: 4.2s, 26s;
}

.floating-icon.icon-15 {
    bottom: 30%;
    left: 30%;
    animation-delay: 4.5s, 28s;
}

.floating-icon.icon-16 {
    top: 50%;
    right: 25%;
    animation-delay: 4.8s, 30s;
}

.floating-icon.icon-17 {
    bottom: 5%;
    right: 20%;
    animation-delay: 5.1s, 32s;
}

.floating-icon.icon-18 {
    top: 70%;
    left: 45%;
    animation-delay: 5.4s, 34s;
}

.floating-icon.icon-19 {
    top: 25%;
    left: 60%;
    animation-delay: 5.7s, 36s;
}

.floating-icon.icon-20 {
    bottom: 25%;
    left: 55%;
    animation-delay: 6s, 38s;
}

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

@keyframes floatGentle {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(25px, -30px) rotate(8deg) scale(1.1);
    }
    50% {
        transform: translate(-20px, -45px) rotate(-6deg) scale(0.9);
    }
    75% {
        transform: translate(30px, -20px) rotate(7deg) scale(1.05);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.15);
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(14, 165, 233, 0.12);
    transition: all 0.3s ease;
    animation: badgePulse 3s ease-in-out infinite;
}

.hero-badge svg {
    animation: badgeIconRotate 4s linear infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(14, 165, 233, 0.15);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 30px rgba(14, 165, 233, 0.25);
        transform: scale(1.02);
    }
}

@keyframes badgeIconRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hero-badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 35px rgba(14, 165, 233, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5.5rem) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin: 0 auto 1.5rem !important;
    text-align: center !important;
    max-width: 1100px !important;
    width: 100% !important;
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 40%, #0ea5e9 80%, #38bdf8 100%) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    letter-spacing: -0.03em;
    animation: titleGradientShift 5s ease-in-out infinite;
    text-shadow: 0 4px 20px rgba(14, 165, 233, 0.1);
}

@keyframes titleGradientShift {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem) !important;
    color: #0369a1 !important;
    max-width: 750px !important;
    margin: 0 auto 2.5rem !important;
    text-align: center !important;
    width: 100% !important;
    line-height: 1.7 !important;
    font-weight: 500 !important;
}

.hero-cta {
    display: flex !important;
    gap: 1.25rem !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 700px !important;
    margin: 0 auto !important;
}

.hero-primary-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hero-primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.hero-primary-btn:hover::before {
    left: 100%;
}

.hero-primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.4);
}

.features {
    padding: var(--space-2xl) var(--space-lg) !important;
    background: white;
    width: 100%;
    box-sizing: border-box;
    max-width: 100% !important;
}

.problems-section {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

/* Features grid - base styles */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    max-width: 1200px;
    margin: var(--space-xl) auto;
    width: 100%;
    box-sizing: border-box;
}

/* Landing page features grid - 3 columns on desktop */
body.landing .features-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
}

@media (min-width: 1400px) {
    body.landing .features-grid {
        max-width: 1400px;
    }
}

.feature-card {
    padding: var(--space-xl);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    color: white;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

/* Case Studies Section */
.case-studies-section {
    padding: var(--space-2xl) var(--space-lg) !important;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.case-studies-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: var(--space-xl) !important;
    max-width: 1200px !important;
    margin: var(--space-xl) auto !important;
    width: 100% !important;
}

.case-study-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    position: relative;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

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

.case-study-card.featured {
    border-color: var(--accent-primary);
    box-shadow: var(--accent-glow);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.03) 0%, rgba(56, 189, 248, 0.05) 100%);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent-gradient);
    color: white;
    padding: 4px 14px;
    border-radius: var(--radius-xl);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-study-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.case-study-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.case-study-company h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.case-study-industry {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.case-study-quote {
    flex: 1;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: var(--space-lg);
    padding-left: var(--space-md);
    border-left: 3px solid var(--accent-secondary);
}

.case-study-stats {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-md) 0;
    margin-bottom: var(--space-lg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.case-study-stats .stat {
    display: flex;
    flex-direction: column;
    text-align: center;
    flex: 1;
}

.case-study-stats .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1.2;
}

.case-study-stats .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.case-study-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

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

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

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

/* Metrics Banner */
.metrics-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
    padding: var(--space-xl) var(--space-2xl);
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0369a1 100%);
    border-radius: var(--radius-xl);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.metric-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

.metric-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
}

/* Case Studies Responsive */
@media (max-width: 1024px) {
    .case-studies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .case-study-card:last-child {
        grid-column: span 2;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
    
    .case-study-card:last-child {
        grid-column: span 1;
        max-width: none;
    }
    
    .metrics-banner {
        gap: var(--space-lg);
        padding: var(--space-lg);
    }
    
    .metric-divider {
        display: none;
    }
    
    .metric-item {
        min-width: 120px;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
}

/* Pricing Section */
.pricing-section {
    padding: var(--space-2xl) var(--space-lg) !important;
    background: var(--bg-secondary) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.pricing-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: var(--space-lg) !important;
    max-width: 1200px !important;
    margin: var(--space-xl) auto !important;
    width: 100% !important;
}

.pricing-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    position: relative;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

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

.pricing-card.popular {
    border-color: var(--accent-primary);
    box-shadow: var(--accent-glow);
    transform: scale(1.02);
}

.pricing-card.popular:hover {
    transform: scale(1.04);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: white;
    padding: 4px 16px;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.pricing-header h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.price-period {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pricing-features li svg {
    color: var(--success);
    flex-shrink: 0;
}

.enterprise-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    max-width: 800px;
    margin: var(--space-xl) auto 0;
    box-shadow: var(--shadow-sm);
}

.enterprise-content h3 {
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.enterprise-content p {
    color: var(--text-muted);
    margin: 0;
}

.cta-section {
    padding: 6rem 1.5rem !important;
    text-align: center !important;
    background: white !important;
    width: 100% !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-md) !important;
        padding: 0 var(--space-md) !important;
    }
    
    .pricing-card {
        padding: var(--space-lg) !important;
        margin-bottom: var(--space-md);
    }
    
    .pricing-header {
        margin-bottom: var(--space-md);
        padding-bottom: var(--space-md);
    }
    
    .pricing-header h3 {
        font-size: 1.1rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .price-period {
        font-size: 0.85rem;
    }
    
    .pricing-features {
        margin-bottom: var(--space-lg);
    }
    
    .pricing-features li {
        font-size: 0.85rem;
        padding: var(--space-xs) 0;
    }
    
    .pricing-card .btn {
        width: 100%;
        padding: var(--space-md) var(--space-lg);
        font-size: 0.9rem;
    }
    
    .enterprise-cta {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
        padding: var(--space-lg) !important;
        margin: var(--space-lg) var(--space-md) 0 !important;
    }
    
    .enterprise-content h3 {
        font-size: 1.1rem;
    }
    
    .enterprise-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-sm) !important;
        padding: 0 var(--space-sm) !important;
    }
    
    .pricing-card {
        padding: var(--space-md) !important;
    }
    
    .pricing-header h3 {
        font-size: 1rem;
    }
    
    .price-amount {
        font-size: 1.75rem;
    }
    
    .pricing-features li {
        font-size: 0.8rem;
    }
    
    .pricing-card .btn {
        font-size: 0.85rem;
        padding: var(--space-sm) var(--space-md);
    }
}

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

/* Auth Pages */
body.auth-page {
    padding-top: 0;
    overflow-x: hidden;
    margin: 0;
}

body.auth-page #app {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.auth-page .navbar {
    display: none; /* Hide navbar on auth pages */
}

.auth-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    padding-top: 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    margin: 0;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.auth-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 40px rgba(14, 165, 233, 0.2);
}

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

/* Dark mode auth card */


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

.auth-logo {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-logo .synqro-logo-icon {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 8px rgba(255, 107, 53, 0.3));
    transition: all var(--transition-base);
}

.auth-logo:hover {
    transform: translateY(-2px);
}

.auth-logo:hover .synqro-logo-icon {
    transform: scale(1.05) rotate(5deg);
    filter: drop-shadow(0 6px 25px rgba(255, 107, 53, 0.5));
}

.auth-title {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.auth-subtitle {
    color: var(--text-muted);
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.auth-footer a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    position: relative;
}

.auth-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width var(--transition-base);
}

.auth-footer a:hover {
    color: var(--accent-secondary);
    transform: translateX(2px);
}

.auth-footer a:hover::after {
    width: 100%;
}

/* Auth mobile styles */
@media (max-width: 480px) {
    .auth-container {
        padding: var(--space-md);
    }
    
    .auth-card {
        padding: var(--space-lg);
        border-radius: var(--radius-lg);
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-logo {
        width: 40px;
        height: 40px;
    }
    
    .form-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    body.landing .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    /* Hero responsive - Tablet */
    .hero-content {
        max-width: 900px;
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: clamp(2.2rem, 7vw, 4.5rem) !important;
    }
    
    .floating-icon {
        opacity: 0.1 !important;
    }
    
    .floating-icon.icon-7,
    .floating-icon.icon-8,
    .floating-icon.icon-9,
    .floating-icon.icon-10,
    .floating-icon.icon-11,
    .floating-icon.icon-12,
    .floating-icon.icon-13,
    .floating-icon.icon-14,
    .floating-icon.icon-15,
    .floating-icon.icon-16,
    .floating-icon.icon-17,
    .floating-icon.icon-18,
    .floating-icon.icon-19,
    .floating-icon.icon-20 {
        display: none;
    }
    
    .hero-particles .particle {
        opacity: 0.15;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        z-index: 50;
        width: 100%;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: var(--space-md);
    }
    
    .navbar-links {
        display: none;
    }
    
    .hero {
        padding: var(--space-xl) var(--space-md) !important;
        min-height: calc(100vh - 80px) !important;
        padding-top: 100px !important;
        margin-top: 0 !important;
    }
    
    .hero-content {
        max-width: 100% !important;
        padding: 0 1rem !important;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem) !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
        margin-bottom: 2rem !important;
        max-width: 100% !important;
    }
    
    .hero-cta {
        flex-direction: column !important;
        gap: 0.75rem !important;
        width: 100% !important;
    }
    
    .hero-cta .btn {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .hero-badge {
        font-size: 0.8rem !important;
        padding: var(--space-xs) var(--space-md) !important;
    }
    
    .floating-icon {
        opacity: 0.06 !important;
    }
    
    .floating-icon.icon-5,
    .floating-icon.icon-6,
    .floating-icon.icon-7,
    .floating-icon.icon-8,
    .floating-icon.icon-9,
    .floating-icon.icon-10,
    .floating-icon.icon-11,
    .floating-icon.icon-12,
    .floating-icon.icon-13,
    .floating-icon.icon-14,
    .floating-icon.icon-15,
    .floating-icon.icon-16,
    .floating-icon.icon-17,
    .floating-icon.icon-18,
    .floating-icon.icon-19,
    .floating-icon.icon-20 {
        display: none;
    }
    
    .hero-particles .particle {
        display: none;
    }
    
    .hero-gradient-bg {
        opacity: 0.7;
    }
    
    .floating-icon.icon-1,
    .floating-icon.icon-2,
    .floating-icon.icon-3,
    .floating-icon.icon-4 {
        opacity: 0.05 !important;
    }
    
    .hero-badge svg {
        animation: none;
    }
    
    .hero-primary-btn::before {
        display: none;
    }
    .floating-icon.icon-6 {
        width: 24px;
        height: 24px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
        padding: var(--space-md);
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.3), transparent);
    }
    
    .trust-badges {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .hero-gradient-orb {
        filter: blur(40px);
    }
    
    .orb-1, .orb-2, .orb-3 {
        width: 200px;
        height: 200px;
    }
    
    body.auth-page .auth-container {
        padding-top: 60px;
    }
    
    .hero {
        padding-top: 120px;
        padding-bottom: var(--space-xl);
        min-height: calc(100vh - 80px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 100% !important;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }
    
    .stat-card {
        padding: var(--space-md);
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: var(--space-lg);
    }
    
    .card {
        padding: var(--space-lg);
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    /* Chat mobile optimization */
    .chat-container {
        height: calc(100vh - 80px);
    }
    
    .chat-messages {
        padding: var(--space-md);
    }
    
    .message {
        gap: var(--space-sm);
    }
    
    .message-avatar {
        width: 32px;
        height: 32px;
    }
    
    .message-content {
        padding: var(--space-sm) var(--space-md);
    }
    
    .chat-input-container {
        padding: var(--space-md);
    }
    
    .chat-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .navbar {
        padding: var(--space-sm) var(--space-md);
    }
    
    .navbar-brand .logo {
        width: 32px;
        height: 32px;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: var(--space-xs) var(--space-sm);
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: var(--space-sm) var(--space-lg);
        font-size: 0.95rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-card {
        padding: var(--space-lg);
    }
    
    /* Ultra-compact chat on small screens */
    .chat-input-wrapper {
        gap: var(--space-sm);
        padding: var(--space-xs);
    }
    
    .chat-send-btn {
        padding: var(--space-sm);
        min-width: 44px;
    }
}

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

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

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.5s ease forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }

/* Utilities */
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.w-full { width: 100%; }

