/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Future Dark Theme */
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f1a;
    --bg-tertiary: #1a1a2e;
    --bg-accent: #16213e;
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    --border-color: #27272a;
    --border-accent: #3f3f46;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', monospace;
    
    /* Animations */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    animation: pulse 2s infinite;
}

.loading-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xl);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 2px;
    animation: loading 2s ease-in-out infinite;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.8);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-normal);
}

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

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

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

.logo-icon {
    font-size: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-xl);
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 8px;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px var(--spacing-lg) var(--spacing-3xl);
    perspective: 2000px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.15) 1px, transparent 1px),
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    background-size: 60px 60px, 60px 60px, 800px 800px, 600px 600px;
    animation: gridMove 25s linear infinite, gridPulse 6s ease-in-out infinite;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-terminal {
    position: absolute;
    top: 15%;
    left: 5%;
    width: 180px;
    height: 120px;
    background: rgba(15, 15, 26, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: floatTerminal 8s ease-in-out infinite;
    opacity: 0.7;
}

.floating-terminal::before {
    content: '$ windowsnap --help\n> Available commands:\n> snap left\n> snap right';
    position: absolute;
    top: 8px;
    left: 8px;
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--accent-primary);
    white-space: pre-line;
    line-height: 1.2;
}

.floating-code {
    position: absolute;
    top: 60%;
    right: 8%;
    width: 200px;
    height: 100px;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: floatCode 10s ease-in-out infinite;
    opacity: 0.6;
}

.floating-code::before {
    content: 'func snapWindow() {\n  window.setFrame()\n  animate(0.3)\n}';
    position: absolute;
    top: 8px;
    left: 8px;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--accent-secondary);
    white-space: pre-line;
    line-height: 1.3;
}

.floating-stats {
    position: absolute;
    bottom: 20%;
    left: 10%;
    width: 150px;
    height: 80px;
    background: rgba(20, 20, 35, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: floatStats 12s ease-in-out infinite;
    opacity: 0.5;
}

.floating-stats::before {
    content: 'Performance\n⚡ 0.1ms latency\n🎯 100% accuracy\n🚀 60fps smooth';
    position: absolute;
    top: 8px;
    left: 8px;
    font-family: var(--font-family);
    font-size: 8px;
    color: var(--text-secondary);
    white-space: pre-line;
    line-height: 1.4;
}

/* Dynamic Lighting */
.dynamic-lighting {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
            rgba(99, 102, 241, 0.1) 0%, 
            rgba(139, 92, 246, 0.05) 30%, 
            transparent 70%);
    animation: lightingPulse 4s ease-in-out infinite;
    mix-blend-mode: overlay;
}

/* Character Animation */
.char-animate {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) rotateX(60deg) scale(0.8);
    animation: charReveal 1.2s ease-out forwards;
}

.char-animate:nth-child(1) { animation-delay: 0.3s; }
.char-animate:nth-child(2) { animation-delay: 0.38s; }
.char-animate:nth-child(3) { animation-delay: 0.46s; }
.char-animate:nth-child(4) { animation-delay: 0.54s; }
.char-animate:nth-child(5) { animation-delay: 0.62s; }
.char-animate:nth-child(6) { animation-delay: 0.7s; }
.char-animate:nth-child(7) { animation-delay: 0.78s; }
.char-animate:nth-child(8) { animation-delay: 0.86s; }
.char-animate:nth-child(9) { animation-delay: 0.94s; }
.char-animate:nth-child(10) { animation-delay: 1.02s; }
.char-animate:nth-child(11) { animation-delay: 1.1s; }
.char-animate:nth-child(12) { animation-delay: 1.18s; }
.char-animate:nth-child(13) { animation-delay: 1.26s; }
.char-animate:nth-child(14) { animation-delay: 1.34s; }
.char-animate:nth-child(15) { animation-delay: 1.42s; }
.char-animate:nth-child(16) { animation-delay: 1.5s; }
.char-animate:nth-child(17) { animation-delay: 1.58s; }
.char-animate:nth-child(18) { animation-delay: 1.66s; }
.char-animate:nth-child(19) { animation-delay: 1.74s; }
.char-animate:nth-child(20) { animation-delay: 1.82s; }
.char-animate:nth-child(21) { animation-delay: 1.9s; }
.char-animate:nth-child(22) { animation-delay: 1.98s; }
.char-animate:nth-child(23) { animation-delay: 2.06s; }
.char-animate:nth-child(24) { animation-delay: 2.14s; }
.char-animate:nth-child(25) { animation-delay: 2.22s; }

/* Enhanced CTA Buttons */
.button-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: var(--accent-gradient);
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.3s ease;
    z-index: -1;
}

.cta-button:hover .button-glow {
    opacity: 0.7;
    animation: glowPulse 2s ease-in-out infinite;
}

/* Enhanced Demo Screen */
.screen-reflection {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 20%, 
        transparent 80%, 
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: 14px;
    z-index: 10;
    pointer-events: none;
}

.demo-cursor {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--accent-primary);
    border-radius: 50%;
    z-index: 15;
    animation: cursorMove 4s ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent-primary);
}

/* Floating UI Elements */
.floating-ui-elements {
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    pointer-events: none;
}

.floating-ui {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 8px;
}

.floating-ui.menu-bar {
    top: 20px;
    left: 20px;
    width: 120px;
    height: 20px;
    animation: floatMenuBar 6s ease-in-out infinite;
}

.floating-ui.dock {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 60px;
    border-radius: 20px;
    animation: floatDock 8s ease-in-out infinite;
}

.floating-ui.notification {
    top: 60px;
    right: 20px;
    width: 180px;
    height: 50px;
    animation: floatNotification 7s ease-in-out infinite;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-particles::before,
.hero-particles::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 20px var(--accent-primary);
}

.hero-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.hero-particles::after {
    top: 60%;
    right: 15%;
    animation-delay: 3s;
}

/* Neural network connections */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphShape 8s ease-in-out infinite, float 6s ease-in-out infinite;
    filter: blur(1px);
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 60%;
    right: 15%;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(99, 102, 241, 0.15));
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morphShape2 10s ease-in-out infinite, float 8s ease-in-out infinite reverse;
    filter: blur(1px);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.hero-badge {
    display: inline-block;
    margin-bottom: var(--spacing-lg);
    animation: slideInUp 0.8s ease 0.2s both;
}

.badge-text {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-primary);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.title-line {
    display: block;
    animation: slideInUp 0.8s ease both;
    position: relative;
    overflow: hidden;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: textShimmer 4s ease-in-out infinite, holographicFlicker 5s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.4));
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

/* Holographic effect on hover */
.gradient-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(99, 102, 241, 0.3) 20%, 
        rgba(139, 92, 246, 0.5) 40%, 
        rgba(236, 72, 153, 0.4) 60%, 
        rgba(99, 102, 241, 0.2) 80%, 
        transparent 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: holographicSweep 3s ease-in-out infinite;
    opacity: 0.5;
}

.hero-title:hover .gradient-text::before {
    opacity: 1;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.6;
    animation: slideInUp 0.8s ease 0.6s both;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
    animation: slideInUp 0.8s ease 0.8s both;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

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

.cta-button:hover::before {
    left: 100%;
}

.cta-button.primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--shadow-glow);
    animation: buttonPulse 3s ease-in-out infinite;
}

.cta-button.primary:hover {
    transform: translateY(-2px) rotateX(5deg);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5), 0 10px 20px rgba(0, 0, 0, 0.3);
    animation-play-state: paused;
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-accent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-2px) rotateX(5deg);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.hero-stats {
    display: flex;
    gap: var(--spacing-xl);
    animation: slideInUp 0.8s ease 1s both;
}

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

.stat-number {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-visual {
    animation: slideInRight 1s ease 0.4s both;
}

.window-demo {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    perspective: 1000px;
}

.demo-screen {
    width: 100%;
    height: 300px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-accent);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform-style: preserve-3d;
    animation: screenFloat 4s ease-in-out infinite;
}

.demo-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(99, 102, 241, 0.1) 90deg,
        transparent 180deg,
        rgba(139, 92, 246, 0.1) 270deg,
        transparent 360deg
    );
    animation: screenRotate 8s linear infinite;
    border-radius: 50%;
}

.demo-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-secondary);
    border-radius: 14px;
    z-index: 1;
}

.demo-window {
    position: absolute;
    background: var(--accent-gradient);
    border-radius: 8px;
    opacity: 0.8;
    transition: all var(--transition-slow);
    z-index: 2;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.demo-window.active {
    opacity: 1;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    animation: windowGlow 2s ease-in-out infinite;
}

#demoWindow1 {
    width: 45%;
    height: 60%;
    top: 20%;
    left: 5%;
    animation: windowSlideLeft 3s ease-in-out infinite;
}

#demoWindow2 {
    width: 40%;
    height: 50%;
    top: 30%;
    right: 5%;
    animation: windowSlideRight 3s ease-in-out infinite 1s;
}

#demoWindow3 {
    width: 30%;
    height: 40%;
    bottom: 10%;
    left: 35%;
    animation: windowFade 3s ease-in-out infinite 2s;
}

.keyboard-shortcuts {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-lg);
}

.shortcut-key {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    animation: keyPress 3s ease-in-out infinite;
}

.shortcut-key:nth-child(2) {
    animation-delay: 0.1s;
}

.shortcut-key:nth-child(3) {
    animation-delay: 0.2s;
}

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

section {
    padding: var(--spacing-3xl) 0;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

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

.feature-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: var(--spacing-xl);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

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

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

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
    animation: iconFloat 3s ease-in-out infinite;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Demo Section */
.demo-container {
    max-width: 800px;
    margin: 0 auto;
}

.demo-screen-large {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-accent);
    border-radius: 20px;
    padding: var(--spacing-xl);
    position: relative;
}

.demo-windows {
    height: 400px;
    position: relative;
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
}

.demo-window-large {
    position: absolute;
    background: var(--accent-gradient);
    border-radius: 8px;
    transition: all var(--transition-slow);
    opacity: 0.9;
}

#demoWindowLeft {
    width: 48%;
    height: 80%;
    top: 10%;
    left: 2%;
}

#demoWindowRight {
    width: 48%;
    height: 80%;
    top: 10%;
    right: 2%;
}

.demo-controls {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.demo-btn {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-accent);
    color: var(--text-primary);
    border: 1px solid var(--border-accent);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 500;
}

.demo-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.demo-btn.active {
    background: var(--accent-gradient);
    border-color: var(--accent-primary);
}

/* Shortcuts Section */
.shortcuts {
    background: var(--bg-secondary);
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.shortcut-category {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: var(--spacing-xl);
}

.category-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    color: var(--accent-primary);
}

.shortcut-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.shortcut-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    background: var(--bg-accent);
    border-radius: 8px;
    transition: var(--transition-fast);
}

.shortcut-item:hover {
    background: rgba(99, 102, 241, 0.1);
}

.shortcut-keys {
    display: flex;
    gap: var(--spacing-xs);
}

kbd {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--border-accent);
    box-shadow: var(--shadow-sm);
}

.shortcut-desc {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Download Section */
.download {
    background: var(--bg-primary);
    position: relative;
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.download-info h2 {
    text-align: left;
    margin-bottom: var(--spacing-lg);
}

.download-info p {
    text-align: left;
    margin-bottom: var(--spacing-xl);
}

.requirements {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: var(--spacing-lg);
}

.requirements h4 {
    color: var(--accent-primary);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.requirements ul {
    list-style: none;
}

.requirements li {
    padding: var(--spacing-sm) 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: var(--spacing-lg);
}

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

.download-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.download-button {
    display: flex;
    align-items: center;
    padding: var(--spacing-lg);
    border-radius: 16px;
    text-decoration: none;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.download-button.primary {
    background: var(--accent-gradient);
    color: white;
    border-color: var(--accent-primary);
}

.download-button.secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

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

.button-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.button-icon {
    font-size: 2rem;
}

.button-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.button-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.button-subtitle {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-description {
    color: var(--text-secondary);
}

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

.link-group h4 {
    color: var(--accent-primary);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--spacing-xs) 0;
    transition: var(--transition-fast);
}

.link-group a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Animations */
@keyframes loading {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0%); }
    100% { transform: translateX(100%); }
}

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

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

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

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes gridPulse {
    0%, 100% { 
        background-size: 50px 50px;
        opacity: 0.5;
    }
    50% { 
        background-size: 60px 60px;
        opacity: 0.8;
    }
}

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

@keyframes morphShape {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg) scale(1);
    }
    25% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%;
        transform: rotate(180deg) scale(0.9);
    }
    75% {
        border-radius: 40% 60% 70% 30% / 50% 70% 30% 60%;
        transform: rotate(270deg) scale(1.05);
    }
}

@keyframes morphShape2 {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: rotate(0deg) scale(1);
    }
    33% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(120deg) scale(1.15);
    }
    66% {
        border-radius: 70% 30% 50% 50% / 50% 70% 30% 60%;
        transform: rotate(240deg) scale(0.85);
    }
}

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

@keyframes holographicFlicker {
    0%, 98%, 100% { opacity: 1; }
    99% { opacity: 0.95; }
}

@keyframes holographicSweep {
    0% { 
        background-position: -200% 50%; 
        opacity: 0.3; 
    }
    50% { 
        background-position: 0% 50%; 
        opacity: 1; 
    }
    100% { 
        background-position: 200% 50%; 
        opacity: 0.3; 
    }
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
        transform: scale(1.02);
    }
}

@keyframes screenFloat {
    0%, 100% {
        transform: translateY(0) rotateX(0deg);
    }
    50% {
        transform: translateY(-5px) rotateX(2deg);
    }
}

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

@keyframes windowGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.8), 0 0 40px rgba(139, 92, 246, 0.3);
    }
}

@keyframes windowSlideLeft {
    0%, 100% { left: 5%; width: 45%; }
    50% { left: 2%; width: 48%; }
}

@keyframes windowSlideRight {
    0%, 100% { right: 5%; width: 40%; }
    50% { right: 2%; width: 48%; }
}

@keyframes windowFade {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}

@keyframes keyPress {
    0%, 90%, 100% { 
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    95% { 
        transform: scale(0.95);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(180deg); }
}

@keyframes charReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) rotateX(60deg) scale(0.8);
        filter: blur(4px);
    }
    60% {
        opacity: 1;
        transform: translateY(-2px) rotateX(-2deg) scale(1.05);
        filter: blur(0px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) scale(1);
        filter: blur(0px);
    }
}

@keyframes floatTerminal {
    0%, 100% {
        transform: translateY(0) rotateZ(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-15px) rotateZ(2deg);
        opacity: 0.9;
    }
}

@keyframes floatCode {
    0%, 100% {
        transform: translateY(0) rotateZ(0deg) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) rotateZ(-1deg) scale(1.05);
        opacity: 0.8;
    }
}

@keyframes floatStats {
    0%, 100% {
        transform: translateY(0) rotateZ(0deg);
        opacity: 0.5;
    }
    33% {
        transform: translateY(-10px) rotateZ(1deg);
        opacity: 0.7;
    }
    66% {
        transform: translateY(-5px) rotateZ(-0.5deg);
        opacity: 0.6;
    }
}

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

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes cursorMove {
    0% {
        top: 50%;
        left: 20%;
    }
    25% {
        top: 30%;
        left: 70%;
    }
    50% {
        top: 70%;
        left: 80%;
    }
    75% {
        top: 60%;
        left: 30%;
    }
    100% {
        top: 50%;
        left: 20%;
    }
}

@keyframes floatMenuBar {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-8px) translateX(5px);
        opacity: 0.8;
    }
}

@keyframes floatDock {
    0%, 100% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateX(-50%) translateY(-10px) scale(1.02);
        opacity: 0.9;
    }
}

@keyframes floatNotification {
    0%, 100% {
        transform: translateY(0) translateX(0) rotateZ(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-12px) translateX(-5px) rotateZ(1deg);
        opacity: 0.8;
    }
}

/* Reveal Animation */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: var(--spacing-lg);
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px var(--spacing-md) var(--spacing-xl);
        perspective: 500px; /* Reduced for mobile */
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
    }

    .hero-visual {
        order: -1;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        justify-content: center;
        gap: var(--spacing-lg);
    }

    .download-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .download-info h2,
    .download-info p {
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    /* Mobile-optimized animations */
    .hero-grid {
        background-size: 30px 30px; /* Smaller grid for mobile */
    }

    .hero-background::before {
        width: 150px;
        height: 150px;
        animation-duration: 10s; /* Slower for mobile performance */
    }

    .hero-background::after {
        width: 120px;
        height: 120px;
        animation-duration: 12s;
    }

    .demo-screen {
        height: 250px; /* Smaller demo screen */
    }

    .window-demo {
        perspective: 500px; /* Reduced perspective for mobile */
    }

    /* Reduce particle count on mobile */
    .hero-particles {
        opacity: 0.7;
    }

    /* Simplified animations for mobile */
    .cta-button:hover {
        transform: translateY(-1px) scale(1.02); /* Less dramatic on mobile */
    }

    .feature-card:hover {
        transform: translateY(-3px); /* Reduced hover effect */
    }

    /* Mobile-friendly text sizing */
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-description {
        font-size: 1.125rem;
    }

    /* Faster character animations on mobile */
    .char-animate {
        animation-duration: 0.8s;
    }

    .char-animate:nth-child(1) { animation-delay: 0.2s; }
    .char-animate:nth-child(2) { animation-delay: 0.26s; }
    .char-animate:nth-child(3) { animation-delay: 0.32s; }
    .char-animate:nth-child(4) { animation-delay: 0.38s; }
    .char-animate:nth-child(5) { animation-delay: 0.44s; }
    .char-animate:nth-child(6) { animation-delay: 0.5s; }
    .char-animate:nth-child(7) { animation-delay: 0.56s; }
    .char-animate:nth-child(8) { animation-delay: 0.62s; }
    .char-animate:nth-child(9) { animation-delay: 0.68s; }
    .char-animate:nth-child(10) { animation-delay: 0.74s; }
    .char-animate:nth-child(11) { animation-delay: 0.8s; }
    .char-animate:nth-child(12) { animation-delay: 0.86s; }
    .char-animate:nth-child(13) { animation-delay: 0.92s; }
    .char-animate:nth-child(14) { animation-delay: 0.98s; }
    .char-animate:nth-child(15) { animation-delay: 1.04s; }
    .char-animate:nth-child(16) { animation-delay: 1.1s; }
    .char-animate:nth-child(17) { animation-delay: 1.16s; }
    .char-animate:nth-child(18) { animation-delay: 1.22s; }
    .char-animate:nth-child(19) { animation-delay: 1.28s; }
    .char-animate:nth-child(20) { animation-delay: 1.34s; }

    /* Simpler gradient on mobile */
    .gradient-text {
        filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
        animation: textShimmer 3s ease-in-out infinite;
    }

    .gradient-text::before {
        display: none; /* Remove holographic effect on mobile */
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 var(--spacing-md);
    }

    .hero {
        padding: 100px var(--spacing-md) var(--spacing-xl);
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .shortcuts-grid {
        grid-template-columns: 1fr;
    }

    .demo-controls {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

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

    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .stat-item {
        display: flex;
        align-items: center;
        gap: var(--spacing-sm);
    }

    .stat-number {
        font-size: 1.5rem;
        margin-bottom: 0;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
        padding: var(--spacing-lg);
    }

    .download-button {
        width: 100%;
        justify-content: center;
    }

    /* Very small screens - minimal animations */
    .hero-background::before,
    .hero-background::after {
        animation-duration: 15s; /* Even slower */
        opacity: 0.5; /* More subtle */
    }

    .demo-screen {
        height: 200px;
    }

    .keyboard-shortcuts {
        gap: var(--spacing-xs);
    }

    .shortcut-key {
        width: 35px;
        height: 35px;
        font-size: 0.75rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #555;
        --border-accent: #777;
        --text-secondary: #ccc;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-background::before,
    .hero-background::after,
    .hero-particles::before,
    .hero-particles::after {
        animation: none !important;
    }
    
    .demo-window {
        animation: none !important;
    }
}

/* Mobile performance optimizations */
@media (max-width: 768px) {
    /* Enable hardware acceleration */
    .hero,
    .demo-screen,
    .cta-button,
    .feature-card {
        transform: translateZ(0);
        will-change: transform;
    }
    
    /* Optimize animations for mobile */
    .hero-background::before,
    .hero-background::after {
        will-change: transform, border-radius;
    }
    
    .particle,
    .neural-connection {
        will-change: transform, opacity;
    }
    
    /* Reduce motion blur on mobile */
    .demo-window {
        backface-visibility: hidden;
        perspective: 1000px;
    }
    
    /* Touch optimizations */
    .cta-button,
    .demo-btn,
    .nav-link {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Prevent text selection on interactive elements */
    .cta-button,
    .demo-btn,
    .shortcut-key {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    /* Optimize scrolling */
    .hero,
    .features,
    .demo,
    .shortcuts,
    .download {
        overscroll-behavior: contain;
    }
}

/* Very small screens optimizations */
@media (max-width: 480px) {
    /* Further reduce particle complexity */
    .hero-particles {
        opacity: 0.5;
    }
    
    .neural-connection {
        display: none; /* Hide connections on very small screens */
    }
    
    /* Simplify morphing shapes */
    .hero-background::before {
        border-radius: 50% !important;
        animation: float 8s ease-in-out infinite;
    }
    
    .hero-background::after {
        border-radius: 50% !important;
        animation: float 10s ease-in-out infinite reverse;
    }
    
    /* Optimize text rendering */
    .hero-title,
    .section-title {
        text-rendering: optimizeSpeed;
        -webkit-font-smoothing: antialiased;
    }

    /* Even faster animations on very small screens */
    .char-animate {
        animation-duration: 0.6s;
    }

    .char-animate:nth-child(n) {
        animation-delay: calc(0.15s + (var(--char-index, 0) * 0.04s));
    }

    /* Simplified gradient text for small screens */
    .gradient-text {
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
        filter: none;
        animation: none;
    }
}
