/* ============================================
   PIXELAI - AI IMAGE ENHANCER
   Premium CSS Stylesheet
   ============================================ */

/* CSS Variables & Theme */
:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #818CF8;
    --primary-gradient: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    --primary-gradient-hover: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    --accent: #8B5CF6;
    --accent-light: #A78BFA;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.7);
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --text-light: #CBD5E1;
    --border-color: #E2E8F0;
    --border-light: #F1F5F9;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --section-padding: 120px;
    --container-max-width: 1320px;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

[data-bs-theme="dark"] {
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-tertiary: #334155;
    --bg-card: rgba(30, 41, 59, 0.8);
    --bg-glass: rgba(15, 23, 42, 0.7);
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #64748B;
    --border-color: #334155;
    --border-light: #1E293B;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* Base Styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

/* Utilities */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-header { margin-bottom: 60px; }
.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-gradient);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation */
#mainNavbar {
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-base);
    z-index: 1000;
}
[data-bs-theme="dark"] #mainNavbar { background: rgba(15, 23, 42, 0.8); }
#mainNavbar.scrolled { padding: 10px 0; box-shadow: var(--shadow-md); }
.brand-wrapper { display: flex; align-items: center; gap: 10px; }
.brand-text { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; color: var(--text-primary); }
.brand-accent {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.navbar-nav { gap: 8px; }
.nav-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary) !important;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}
.nav-link:hover { color: var(--primary) !important; background: rgba(99, 102, 241, 0.08); }
.nav-actions { gap: 8px; }
.theme-toggle {
    width: 36px; height: 36px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition-fast);
}
.theme-toggle:hover { background: var(--primary); color: white; border-color: var(--primary); }
.language-dropdown .dropdown-toggle { border-color: var(--border-color); color: var(--text-secondary); font-size: 0.85rem; }
.language-dropdown .dropdown-toggle:hover { background: var(--primary); color: white; border-color: var(--primary); }
.nav-login { font-size: 0.85rem; font-weight: 500; padding: 6px 16px; }
.nav-register {
    font-size: 0.85rem; font-weight: 600; padding: 6px 16px;
    background: var(--primary-gradient); border: none;
}
.nav-register:hover { background: var(--primary-gradient-hover); box-shadow: var(--shadow-glow); }

/* Hero Section */
.hero-section { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; background: var(--bg-primary); }
.hero-bg-shapes { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.shape { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; animation: float 20s ease-in-out infinite; }
.shape-1 { width: 400px; height: 400px; background: linear-gradient(135deg, #6366F1, #8B5CF6); top: -100px; right: -100px; animation-delay: 0s; }
.shape-2 { width: 300px; height: 300px; background: linear-gradient(135deg, #8B5CF6, #EC4899); bottom: -50px; left: -50px; animation-delay: -5s; }
.shape-3 { width: 200px; height: 200px; background: linear-gradient(135deg, #6366F1, #3B82F6); top: 50%; left: 30%; animation-delay: -10s; }
.shape-4 { width: 150px; height: 150px; background: linear-gradient(135deg, #EC4899, #F472B6); top: 20%; right: 20%; animation-delay: -15s; }
.shape-5 { width: 250px; height: 250px; background: linear-gradient(135deg, #3B82F6, #6366F1); bottom: 20%; right: 10%; animation-delay: -7s; }
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}
.hero-content { position: relative; z-index: 1; padding-top: 80px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.badge-pulse { width: 8px; height: 8px; background: #10B981; border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.2); } }
.hero-title { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; line-height: 1.1; margin-bottom: 24px; color: var(--text-primary); }
.hero-subtitle { font-size: 1.125rem; color: var(--text-secondary); margin-bottom: 40px; max-width: 540px; line-height: 1.7; }

/* Upload Area */
.upload-area { margin-bottom: 32px; }
.upload-zone {
    position: relative;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
}
.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: var(--shadow-glow);
}
.upload-icon-wrapper { width: 80px; height: 80px; background: var(--primary-gradient); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; box-shadow: var(--shadow-glow); }
.upload-icon { font-size: 2rem; color: white; }
.upload-title { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
.upload-formats { color: var(--text-secondary); margin-bottom: 4px; }
.upload-size { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 20px; }
.upload-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.upload-btn { background: var(--primary-gradient); border: none; font-weight: 600; padding: 12px 28px; }
.upload-btn:hover { background: var(--primary-gradient-hover); box-shadow: var(--shadow-glow); }
.paste-btn { border-color: var(--primary); color: var(--primary); font-weight: 600; padding: 12px 28px; }
.paste-btn:hover { background: var(--primary); color: white; }
.upload-divider { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; color: var(--text-muted); font-size: 0.875rem; }
.upload-divider::before, .upload-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-color); }
.url-input-wrapper .input-group { max-width: 400px; margin: 0 auto; }
.url-input-wrapper .input-group-text { background: var(--bg-tertiary); border-color: var(--border-color); color: var(--text-muted); }
.url-input-wrapper .form-control { border-color: var(--border-color); background: var(--bg-primary); color: var(--text-primary); }
.url-input-wrapper .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); }

/* Upload Preview */
.upload-preview { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.upload-preview img { width: 100%; max-height: 300px; object-fit: contain; border-radius: var(--radius-lg); }
.preview-overlay { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }

/* Trust Badges */
.trust-badges { display: flex; gap: 24px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); }
.trust-item i { color: var(--primary); font-size: 1rem; }

/* Comparison Slider */
.comparison-wrapper { position: relative; z-index: 1; padding-top: 80px; }
.comparison-card { background: var(--bg-glass); backdrop-filter: blur(20px); border: 1px solid var(--border-color); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-xl); }
.comparison-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border-light); }
.comparison-label { font-size: 0.875rem; font-weight: 600; color: var(--text-secondary); }
.comparison-badges { display: flex; gap: 8px; }
.comparison-badges .badge { font-size: 0.7rem; padding: 4px 10px; border-radius: var(--radius-sm); }
.comparison-slider { position: relative; width: 100%; height: 400px; overflow: hidden; cursor: col-resize; }
.comparison-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.comparison-image img { width: 100%; height: 100%; object-fit: cover; }
.comparison-image.before-image { width: 50%; overflow: hidden; }
.image-label { position: absolute; bottom: 16px; padding: 6px 14px; border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.label-before { left: 16px; background: rgba(0, 0, 0, 0.7); color: white; }
.label-after { right: 16px; background: var(--primary-gradient); color: white; }
.slider-handle { position: absolute; top: 0; left: 50%; width: 4px; height: 100%; transform: translateX(-50%); cursor: col-resize; z-index: 10; }
.handle-line { width: 100%; height: 100%; background: white; box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); }
.handle-circle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); color: var(--primary); font-size: 1.25rem; }
.comparison-footer { padding: 20px; border-top: 1px solid var(--border-light); }
.comparison-stats { display: flex; justify-content: space-around; text-align: center; }
.comparison-stats .stat-value { display: block; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.comparison-stats .stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* Scroll Indicator */
.scroll-indicator { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; z-index: 1; }
.scroll-mouse { width: 24px; height: 40px; border: 2px solid var(--text-muted); border-radius: 12px; display: flex; justify-content: center; padding-top: 8px; }
.scroll-wheel { width: 4px; height: 8px; background: var(--primary); border-radius: 2px; animation: scrollWheel 2s ease-in-out infinite; }
@keyframes scrollWheel { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(8px); opacity: 0.3; } }
.scroll-text { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
/* AI Settings Section */
.ai-settings-section { padding: var(--section-padding) 0; background: var(--bg-secondary); }
.settings-card { background: var(--bg-glass); backdrop-filter: blur(20px); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow-lg); }
.settings-header { text-align: center; margin-bottom: 40px; }
.settings-header h3 { font-size: 1.5rem; margin-bottom: 8px; }
.setting-group { margin-bottom: 24px; }
.setting-label { display: block; font-family: var(--font-heading); font-size: 0.875rem; font-weight: 600; color: var(--text-primary); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.scale-options { display: flex; gap: 8px; flex-wrap: wrap; }
.scale-btn { padding: 10px 24px; border: 2px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-primary); color: var(--text-secondary); font-family: var(--font-heading); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all var(--transition-fast); }
.scale-btn:hover { border-color: var(--primary-light); color: var(--primary); }
.scale-btn.active { background: var(--primary-gradient); border-color: var(--primary); color: white; box-shadow: var(--shadow-glow); }
.feature-toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.feature-toggle { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-md); cursor: pointer; transition: all var(--transition-fast); }
.feature-toggle:hover { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }
.feature-toggle input { display: none; }
.toggle-slider { width: 40px; height: 22px; background: var(--border-color); border-radius: 11px; position: relative; transition: background var(--transition-fast); flex-shrink: 0; }
.toggle-slider::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: white; border-radius: 50%; transition: transform var(--transition-fast); box-shadow: var(--shadow-sm); }
.feature-toggle input:checked + .toggle-slider { background: var(--primary); }
.feature-toggle input:checked + .toggle-slider::after { transform: translateX(18px); }
.toggle-label { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); }
.toggle-label i { width: 20px; text-align: center; color: var(--primary); }
.settings-footer { text-align: center; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border-light); }
.process-btn { position: relative; background: var(--primary-gradient); border: none; padding: 16px 48px; font-size: 1.1rem; font-weight: 600; overflow: hidden; }
.process-btn:hover { background: var(--primary-gradient-hover); box-shadow: var(--shadow-glow); }
.btn-glow { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%); opacity: 0; transition: opacity var(--transition-fast); }
.process-btn:hover .btn-glow { opacity: 1; }

/* Processing Section */
.processing-section { padding: var(--section-padding) 0; background: var(--bg-secondary); min-height: 80vh; display: flex; align-items: center; }
.processing-card { background: var(--bg-glass); backdrop-filter: blur(20px); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 60px 40px; text-align: center; box-shadow: var(--shadow-xl); max-width: 700px; margin: 0 auto; }
.loader-wrapper { margin-bottom: 40px; }
.ai-loader { position: relative; width: 120px; height: 120px; margin: 0 auto; }
.loader-ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 3px solid transparent; }
.loader-ring:nth-child(1) { width: 120px; height: 120px; border-top-color: var(--primary); animation: spin 1.5s linear infinite; }
.loader-ring:nth-child(2) { width: 90px; height: 90px; border-right-color: var(--accent); animation: spin 1.2s linear infinite reverse; }
.loader-ring:nth-child(3) { width: 60px; height: 60px; border-bottom-color: #EC4899; animation: spin 0.9s linear infinite; }
.loader-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; background: var(--primary-gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.25rem; animation: pulse 2s ease-in-out infinite; }
@keyframes spin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
.processing-title { font-size: 1.75rem; margin-bottom: 8px; }
.processing-subtitle { color: var(--text-secondary); margin-bottom: 32px; }
.progress-wrapper { display: flex; align-items: center; gap: 16px; margin-bottom: 40px; }
.progress { flex: 1; height: 8px; background: var(--bg-tertiary); border-radius: 4px; overflow: hidden; }
.progress-bar { background: var(--primary-gradient); border-radius: 4px; transition: width 0.5s ease; }
.progress-percent { font-family: var(--font-heading); font-weight: 700; color: var(--primary); min-width: 45px; text-align: right; }
.processing-stages { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.stage { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; min-width: 80px; opacity: 0.4; transition: all var(--transition-base); }
.stage.active { opacity: 1; }
.stage.completed { opacity: 1; }
.stage.completed .stage-icon { background: #10B981; }
.stage-icon { width: 44px; height: 44px; background: var(--bg-tertiary); border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 1rem; transition: all var(--transition-base); }
.stage.active .stage-icon { background: var(--primary-gradient); color: white; box-shadow: var(--shadow-glow); animation: stagePulse 1.5s ease-in-out infinite; }
@keyframes stagePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.stage-name { font-size: 0.7rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.time-estimate { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text-muted); font-size: 0.875rem; }
.time-estimate i { color: var(--primary); }

/* Result Section */
.result-section { padding: var(--section-padding) 0; background: var(--bg-secondary); }
.result-header { text-align: center; margin-bottom: 40px; }
.success-badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); border-radius: var(--radius-full); color: #10B981; font-weight: 600; margin-bottom: 16px; }
.success-badge i { font-size: 1.25rem; }
.result-header h2 { font-size: 2rem; margin-bottom: 8px; }
.result-card { background: var(--bg-glass); backdrop-filter: blur(20px); border: 1px solid var(--border-color); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-xl); }
.result-comparison-slider { position: relative; width: 100%; height: 500px; overflow: hidden; cursor: col-resize; }
.result-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.result-image img { width: 100%; height: 100%; object-fit: contain; background: var(--bg-tertiary); }
.result-image.before-image { width: 50%; overflow: hidden; }
.result-label { position: absolute; top: 16px; padding: 6px 14px; border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.result-label.label-before { left: 16px; background: rgba(0, 0, 0, 0.7); color: white; }
.result-label.label-after { right: 16px; background: var(--primary-gradient); color: white; }
.result-slider-handle { position: absolute; top: 0; left: 50%; width: 4px; height: 100%; transform: translateX(-50%); cursor: col-resize; z-index: 10; }
.result-handle-line { width: 100%; height: 100%; background: white; box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); }
.result-handle-circle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); color: var(--primary); font-size: 1.25rem; }
.result-actions { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-top: 1px solid var(--border-light); flex-wrap: wrap; gap: 12px; }
.action-group { display: flex; gap: 8px; }
.download-group { flex: 1; justify-content: center; }
.download-btn { background: var(--primary-gradient); border: none; font-weight: 600; }
.download-btn:hover { background: var(--primary-gradient-hover); box-shadow: var(--shadow-glow); }
.result-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--border-light); }
.result-stat { display: flex; align-items: center; gap: 12px; padding: 20px; border-right: 1px solid var(--border-light); }
.result-stat:last-child { border-right: none; }
.stat-icon { width: 44px; height: 44px; background: rgba(99, 102, 241, 0.1); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1rem; flex-shrink: 0; }
.stat-info { display: flex; flex-direction: column; }
.stat-value { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); }

/* Features Section */
.features-section { padding: var(--section-padding) 0; background: var(--bg-primary); }
.feature-card { background: var(--bg-glass); backdrop-filter: blur(10px); border: 1px solid var(--border-color); border-radius: var(--radius-xl); overflow: hidden; transition: all var(--transition-base); height: 100%; position: relative; }
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: var(--primary-light); }
.feature-image { position: relative; height: 180px; overflow: hidden; }
.feature-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.feature-card:hover .feature-image img { transform: scale(1.1); }
.feature-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, transparent 0%, var(--bg-primary) 100%); }
.feature-icon { position: relative; margin-top: -28px; margin-left: 24px; width: 56px; height: 56px; background: var(--primary-gradient); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.25rem; box-shadow: var(--shadow-lg); z-index: 2; }
.feature-content { padding: 20px 24px 28px; }
.feature-content h3 { font-size: 1.125rem; margin-bottom: 10px; }
.feature-content p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 0; }

/* Use Cases Section */
.use-cases-section { padding: var(--section-padding) 0; background: var(--bg-secondary); }
.use-case-card { background: var(--bg-glass); backdrop-filter: blur(10px); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 32px 24px; text-align: center; transition: all var(--transition-base); height: 100%; }
.use-case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.use-case-icon { width: 64px; height: 64px; background: var(--primary-gradient); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: white; font-size: 1.5rem; box-shadow: var(--shadow-glow); transition: transform var(--transition-base); }
.use-case-card:hover .use-case-icon { transform: scale(1.1) rotate(-5deg); }
.use-case-card h4 { font-size: 1.125rem; margin-bottom: 10px; }
.use-case-card p { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 0; }

/* Live Demo Section */
.live-demo-section { padding: var(--section-padding) 0; background: var(--bg-primary); }
.demo-gallery { max-width: 900px; margin: 0 auto; }
.demo-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.demo-tab { padding: 10px 24px; border: 1px solid var(--border-color); border-radius: var(--radius-full); background: var(--bg-primary); color: var(--text-secondary); font-family: var(--font-heading); font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: all var(--transition-fast); }
.demo-tab:hover { border-color: var(--primary-light); color: var(--primary); }
.demo-tab.active { background: var(--primary-gradient); border-color: var(--primary); color: white; box-shadow: var(--shadow-glow); }
.demo-comparison-wrapper { position: relative; }
.demo-comparison { display: none; }
.demo-comparison.active { display: block; }
.demo-slider { position: relative; width: 100%; height: 450px; overflow: hidden; border-radius: var(--radius-xl); cursor: col-resize; box-shadow: var(--shadow-xl); }
.demo-after, .demo-before { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.demo-after img, .demo-before img { width: 100%; height: 100%; object-fit: cover; }
.demo-before { width: 50%; overflow: hidden; }
.demo-handle { position: absolute; top: 0; left: 50%; width: 4px; height: 100%; transform: translateX(-50%); cursor: col-resize; z-index: 10; }
.demo-handle-line { width: 100%; height: 100%; background: white; box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); }
.demo-handle-circle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); color: var(--primary); font-size: 1.25rem; }

/* How It Works Section */
.how-it-works-section { padding: var(--section-padding) 0; background: var(--bg-secondary); }
.steps-wrapper { position: relative; }
.steps-line { position: absolute; top: 60px; left: 16.66%; right: 16.66%; height: 2px; background: var(--primary-gradient); opacity: 0.3; z-index: 0; }
.step-card { text-align: center; position: relative; z-index: 1; padding: 20px; }
.step-number { font-family: var(--font-heading); font-size: 4rem; font-weight: 800; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; opacity: 0.15; position: absolute; top: -20px; left: 50%; transform: translateX(-50%); z-index: -1; }
.step-icon { width: 80px; height: 80px; background: var(--primary-gradient); border-radius: var(--radius-xl); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; color: white; font-size: 2rem; box-shadow: var(--shadow-glow); transition: transform var(--transition-base); }
.step-card:hover .step-icon { transform: scale(1.1) rotate(5deg); }
.step-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.step-card p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0; }

/* Testimonials Section */
.testimonials-section { padding: var(--section-padding) 0; background: var(--bg-primary); overflow: hidden; }
.testimonials-carousel { position: relative; max-width: 1000px; margin: 0 auto; }
.testimonials-track { display: flex; gap: 24px; transition: transform var(--transition-slow); padding: 10px 0; }
.testimonial-card { flex: 0 0 calc(33.333% - 16px); min-width: 300px; background: var(--bg-glass); backdrop-filter: blur(10px); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 32px; transition: all var(--transition-base); }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial-rating { display: flex; gap: 4px; margin-bottom: 16px; }
.testimonial-rating i { color: #FBBF24; font-size: 0.875rem; }
.testimonial-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.author-info h5 { font-size: 0.9rem; margin-bottom: 2px; }
.author-info span { font-size: 0.8rem; color: var(--text-muted); }
.carousel-controls { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 40px; }
.carousel-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-color); background: var(--bg-primary); color: var(--text-secondary); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--transition-fast); }
.carousel-btn:hover { background: var(--primary); border-color: var(--primary); color: white; box-shadow: var(--shadow-glow); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-color); border: none; cursor: pointer; transition: all var(--transition-fast); }
.carousel-dot.active { background: var(--primary); width: 28px; border-radius: 5px; }

/* Pricing Section */
.pricing-section { padding: var(--section-padding) 0; background: var(--bg-secondary); }
.billing-toggle { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 48px; }
.toggle-label { font-family: var(--font-heading); font-weight: 600; color: var(--text-secondary); transition: color var(--transition-fast); }
.toggle-label.active { color: var(--primary); }
.toggle-switch { position: relative; width: 52px; height: 28px; cursor: pointer; }
.toggle-switch input { display: none; }
.toggle-slider-round { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--border-color); border-radius: 14px; transition: background var(--transition-fast); }
.toggle-slider-round::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: white; border-radius: 50%; transition: transform var(--transition-fast); box-shadow: var(--shadow-sm); }
.toggle-switch input:checked + .toggle-slider-round { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider-round::after { transform: translateX(24px); }
.save-badge { padding: 4px 10px; background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); border-radius: var(--radius-full); color: #10B981; font-size: 0.75rem; font-weight: 600; }
.pricing-card { background: var(--bg-glass); backdrop-filter: blur(10px); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 32px 24px; text-align: center; transition: all var(--transition-base); position: relative; height: 100%; display: flex; flex-direction: column; }
.pricing-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.pricing-card.popular { border-color: var(--primary); box-shadow: var(--shadow-glow); transform: scale(1.05); }
.pricing-card.popular:hover { transform: scale(1.05) translateY(-8px); }
.popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 6px 16px; background: var(--primary-gradient); color: white; font-size: 0.75rem; font-weight: 600; border-radius: var(--radius-full); white-space: nowrap; }
.pricing-header { margin-bottom: 20px; }
.pricing-header h3 { font-size: 1.5rem; margin-bottom: 4px; }
.pricing-header p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0; }
.pricing-price { margin-bottom: 28px; }
.pricing-price .currency { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; vertical-align: top; color: var(--text-primary); }
.pricing-price .amount { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 800; color: var(--text-primary); line-height: 1; }
.pricing-price .period { font-size: 0.875rem; color: var(--text-muted); }
.pricing-features { text-align: left; margin-bottom: 28px; flex: 1; }
.feature-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 0.875rem; color: var(--text-secondary); }
.feature-item i { font-size: 0.75rem; width: 16px; text-align: center; }
.feature-item i.fa-check { color: #10B981; }
.feature-item i.fa-times { color: var(--text-muted); }
.feature-item.disabled { color: var(--text-muted); }
.pricing-btn { font-weight: 600; padding: 12px 24px; }
/* API Section */
.api-section { padding: var(--section-padding) 0; background: var(--bg-primary); }
.api-features { margin-bottom: 32px; }
.api-feature { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.api-feature-icon { width: 48px; height: 48px; background: rgba(99, 102, 241, 0.1); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.25rem; flex-shrink: 0; }
.api-feature-content h4 { font-size: 1.1rem; margin-bottom: 6px; }
.api-feature-content p { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 0; }
.api-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.code-block-wrapper { background: #1E293B; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-xl); }
.code-header { display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: #0F172A; border-bottom: 1px solid #334155; }
.code-dots { display: flex; gap: 6px; }
.code-dots span { width: 12px; height: 12px; border-radius: 50%; }
.code-dots span:nth-child(1) { background: #EF4444; }
.code-dots span:nth-child(2) { background: #FBBF24; }
.code-dots span:nth-child(3) { background: #10B981; }
.code-title { font-size: 0.8rem; color: #94A3B8; font-family: monospace; }
.code-block { margin: 0; padding: 24px; background: #1E293B; color: #E2E8F0; font-family: 'Fira Code', 'Consolas', monospace; font-size: 0.85rem; line-height: 1.8; overflow-x: auto; }
.code-keyword { color: #C084FC; }
.code-string { color: #86EFAC; }

/* FAQ Section */
.faq-section { padding: var(--section-padding) 0; background: var(--bg-secondary); }
.accordion-item { background: var(--bg-glass); backdrop-filter: blur(10px); border: 1px solid var(--border-color); border-radius: var(--radius-lg); margin-bottom: 12px; overflow: hidden; }
.accordion-button { padding: 20px 24px; font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--text-primary); background: transparent; border: none; box-shadow: none; }
.accordion-button:not(.collapsed) { background: transparent; color: var(--primary); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: transparent; }
.accordion-button::after { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236366F1'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e"); }
.accordion-body { padding: 0 24px 20px; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

/* CTA Section */
.cta-section { padding: var(--section-padding) 0; background: var(--bg-primary); }
.cta-card { position: relative; background: var(--primary-gradient); border-radius: var(--radius-xl); padding: 80px 40px; text-align: center; overflow: hidden; }
.cta-content { position: relative; z-index: 1; }
.cta-content h2 { color: white; font-size: 2.5rem; margin-bottom: 16px; }
.cta-content p { color: rgba(255, 255, 255, 0.8); font-size: 1.125rem; margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta-buttons .btn-light { background: white; color: var(--primary); font-weight: 600; border: none; }
.cta-buttons .btn-light:hover { background: var(--bg-secondary); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
.cta-buttons .btn-outline-light { border-color: rgba(255, 255, 255, 0.5); color: white; font-weight: 600; }
.cta-buttons .btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); border-color: white; }
.cta-shapes { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.cta-shape { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.cta-shape-1 { width: 300px; height: 300px; top: -100px; right: -50px; }
.cta-shape-2 { width: 200px; height: 200px; bottom: -50px; left: -50px; }
.cta-shape-3 { width: 150px; height: 150px; top: 50%; right: 20%; opacity: 0.05; }

/* Footer */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border-color); padding-top: 80px; }
.footer-brand { max-width: 300px; }
.footer-description { font-size: 0.9rem; color: var(--text-secondary); margin: 16px 0 24px; line-height: 1.7; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 1rem; transition: all var(--transition-fast); }
.footer-social a:hover { background: var(--primary); color: white; transform: translateY(-2px); }
.footer-title { font-size: 1rem; font-weight: 700; margin-bottom: 20px; color: var(--text-primary); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.875rem; color: var(--text-secondary); transition: all var(--transition-fast); }
.footer-links a:hover { color: var(--primary); padding-left: 4px; }
.footer-newsletter { margin-top: 60px; padding: 40px; background: var(--bg-glass); backdrop-filter: blur(10px); border: 1px solid var(--border-color); border-radius: var(--radius-xl); margin-bottom: 40px; }
.footer-newsletter h4 { font-size: 1.25rem; margin-bottom: 4px; }
.footer-newsletter p { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 0; }
.newsletter-form .input-group { max-width: 400px; margin-left: auto; }
.newsletter-form .form-control { border-color: var(--border-color); background: var(--bg-primary); color: var(--text-primary); padding: 12px 20px; }
.newsletter-form .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); }
.newsletter-form .btn { padding: 12px 24px; font-weight: 600; }
.footer-bottom { padding: 24px 0; border-top: 1px solid var(--border-color); }
.copyright { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0; }
.footer-badges { display: flex; gap: 12px; justify-content: flex-end; }
.footer-badges .badge { padding: 6px 12px; background: var(--bg-tertiary); color: var(--text-secondary); font-size: 0.75rem; font-weight: 500; border-radius: var(--radius-sm); }

/* Toast Notifications */
.toast-container { z-index: 9999; }
.custom-toast { background: var(--bg-glass); backdrop-filter: blur(20px); border: 1px solid var(--border-color); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); padding: 16px 20px; display: flex; align-items: center; gap: 12px; min-width: 300px; animation: toastSlideIn 0.3s ease; }
@keyframes toastSlideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.toast-icon.success { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.toast-icon.error { background: rgba(239, 68, 68, 0.1); color: #EF4444; }
.toast-icon.info { background: rgba(99, 102, 241, 0.1); color: var(--primary); }
.toast-content { flex: 1; }
.toast-title { font-family: var(--font-heading); font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; color: var(--text-primary); }
.toast-message { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0; }
.toast-close { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; transition: color var(--transition-fast); }
.toast-close:hover { color: var(--text-primary); }

/* Responsive Design */
@media (max-width: 1199.98px) {
    :root { --section-padding: 80px; }
    .comparison-slider { height: 350px; }
    .result-comparison-slider { height: 400px; }
    .demo-slider { height: 350px; }
    .testimonial-card { flex: 0 0 calc(50% - 12px); }
    .pricing-card.popular { transform: scale(1); }
    .pricing-card.popular:hover { transform: translateY(-8px); }
}

@media (max-width: 991.98px) {
    .hero-content { padding-top: 40px; text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .upload-buttons { justify-content: center; }
    .trust-badges { justify-content: center; }
    .comparison-wrapper { padding-top: 40px; }
    .comparison-slider { height: 300px; }
    .result-comparison-slider { height: 350px; }
    .result-stats { grid-template-columns: repeat(2, 1fr); }
    .result-stat { border-bottom: 1px solid var(--border-light); }
    .result-stat:nth-child(2) { border-right: none; }
    .result-stat:nth-child(3), .result-stat:nth-child(4) { border-bottom: none; }
    .demo-slider { height: 300px; }
    .steps-line { display: none; }
    .testimonial-card { flex: 0 0 calc(100% - 0px); }
    .cta-content h2 { font-size: 2rem; }
    .code-block-wrapper { margin-top: 40px; }
    .footer-newsletter .input-group { margin-left: 0; margin-top: 16px; }
}

@media (max-width: 767.98px) {
    :root { --section-padding: 60px; }
    .hero-title { font-size: 2.5rem; }
    .upload-zone { padding: 24px; }
    .comparison-slider { height: 250px; }
    .comparison-stats { flex-wrap: wrap; gap: 16px; }
    .result-comparison-slider { height: 280px; }
    .result-actions { flex-direction: column; align-items: stretch; }
    .action-group { justify-content: center; }
    .download-group { flex-direction: column; }
    .result-stats { grid-template-columns: 1fr; }
    .result-stat { border-right: none; border-bottom: 1px solid var(--border-light); }
    .result-stat:last-child { border-bottom: none; }
    .demo-slider { height: 250px; }
    .demo-tabs { gap: 6px; }
    .demo-tab { padding: 8px 16px; font-size: 0.8rem; }
    .feature-toggles { grid-template-columns: 1fr; }
    .processing-stages { gap: 12px; }
    .stage { min-width: 60px; }
    .stage-name { font-size: 0.6rem; }
    .pricing-card.popular { transform: scale(1); }
    .cta-card { padding: 48px 24px; }
    .cta-content h2 { font-size: 1.75rem; }
    .footer-badges { justify-content: flex-start; margin-top: 16px; }
    .scroll-indicator { display: none; }
}

@media (max-width: 575.98px) {
    .hero-title { font-size: 2rem; }
    .upload-buttons { flex-direction: column; }
    .upload-btn, .paste-btn { width: 100%; }
    .comparison-slider { height: 200px; }
    .result-comparison-slider { height: 220px; }
    .demo-slider { height: 200px; }
    .settings-card { padding: 24px 16px; }
    .processing-card { padding: 40px 20px; }
    .ai-loader { width: 100px; height: 100px; }
    .loader-ring:nth-child(1) { width: 100px; height: 100px; }
    .loader-ring:nth-child(2) { width: 75px; height: 75px; }
    .loader-ring:nth-child(3) { width: 50px; height: 50px; }
    .testimonial-card { padding: 24px; }
    .api-cta { flex-direction: column; }
    .api-cta .btn { width: 100%; }
    .cta-buttons { flex-direction: column; }
    .cta-buttons .btn { width: 100%; }
}

/* Animations & Effects */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

/* Loading Skeleton */
.skeleton { background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%); background-size: 200% 100%; animation: skeleton-loading 1.5s ease-in-out infinite; border-radius: var(--radius-sm); }
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Smooth scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Selection color */
::selection { background: rgba(99, 102, 241, 0.3); color: var(--text-primary); }

/* Focus styles */
*:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn:focus-visible { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3); }

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

/* Print styles */
@media print {
    .navbar, .scroll-indicator, .cta-section, .footer-social, .newsletter-form, .carousel-controls { display: none !important; }
    body { background: white; color: black; }
}

/* API Section */
.api-section { padding: var(--section-padding) 0; background: var(--bg-primary); }
.api-features { margin-bottom: 32px; }
.api-feature { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.api-feature-icon { width: 48px; height: 48px; background: rgba(99, 102, 241, 0.1); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.25rem; flex-shrink: 0; }
.api-feature-content h4 { font-size: 1.1rem; margin-bottom: 6px; }
.api-feature-content p { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 0; }
.api-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.code-block-wrapper { background: #1E293B; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-xl); }
.code-header { display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: #0F172A; border-bottom: 1px solid #334155; }
.code-dots { display: flex; gap: 6px; }
.code-dots span { width: 12px; height: 12px; border-radius: 50%; }
.code-dots span:nth-child(1) { background: #EF4444; }
.code-dots span:nth-child(2) { background: #FBBF24; }
.code-dots span:nth-child(3) { background: #10B981; }
.code-title { font-size: 0.8rem; color: #94A3B8; font-family: monospace; }
.code-block { margin: 0; padding: 24px; background: #1E293B; color: #E2E8F0; font-family: 'Fira Code', 'Consolas', monospace; font-size: 0.85rem; line-height: 1.8; overflow-x: auto; }
.code-keyword { color: #C084FC; }
.code-string { color: #86EFAC; }

/* FAQ Section */
.faq-section { padding: var(--section-padding) 0; background: var(--bg-secondary); }
.accordion-item { background: var(--bg-glass); backdrop-filter: blur(10px); border: 1px solid var(--border-color); border-radius: var(--radius-lg); margin-bottom: 12px; overflow: hidden; }
.accordion-button { padding: 20px 24px; font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--text-primary); background: transparent; border: none; box-shadow: none; }
.accordion-button:not(.collapsed) { background: transparent; color: var(--primary); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: transparent; }
.accordion-button::after { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236366F1'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e"); }
.accordion-body { padding: 0 24px 20px; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

/* CTA Section */
.cta-section { padding: var(--section-padding) 0; background: var(--bg-primary); }
.cta-card { position: relative; background: var(--primary-gradient); border-radius: var(--radius-xl); padding: 80px 40px; text-align: center; overflow: hidden; }
.cta-content { position: relative; z-index: 1; }
.cta-content h2 { color: white; font-size: 2.5rem; margin-bottom: 16px; }
.cta-content p { color: rgba(255, 255, 255, 0.8); font-size: 1.125rem; margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta-buttons .btn-light { background: white; color: var(--primary); font-weight: 600; border: none; }
.cta-buttons .btn-light:hover { background: var(--bg-secondary); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
.cta-buttons .btn-outline-light { border-color: rgba(255, 255, 255, 0.5); color: white; font-weight: 600; }
.cta-buttons .btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); border-color: white; }
.cta-shapes { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.cta-shape { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.cta-shape-1 { width: 300px; height: 300px; top: -100px; right: -50px; }
.cta-shape-2 { width: 200px; height: 200px; bottom: -50px; left: -50px; }
.cta-shape-3 { width: 150px; height: 150px; top: 50%; right: 20%; opacity: 0.05; }

/* Footer */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border-color); padding-top: 80px; }
.footer-brand { max-width: 300px; }
.footer-description { font-size: 0.9rem; color: var(--text-secondary); margin: 16px 0 24px; line-height: 1.7; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 1rem; transition: all var(--transition-fast); }
.footer-social a:hover { background: var(--primary); color: white; transform: translateY(-2px); }
.footer-title { font-size: 1rem; font-weight: 700; margin-bottom: 20px; color: var(--text-primary); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.875rem; color: var(--text-secondary); transition: all var(--transition-fast); }
.footer-links a:hover { color: var(--primary); padding-left: 4px; }
.footer-newsletter { margin-top: 60px; padding: 40px; background: var(--bg-glass); backdrop-filter: blur(10px); border: 1px solid var(--border-color); border-radius: var(--radius-xl); margin-bottom: 40px; }
.footer-newsletter h4 { font-size: 1.25rem; margin-bottom: 4px; }
.footer-newsletter p { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 0; }
.newsletter-form .input-group { max-width: 400px; margin-left: auto; }
.newsletter-form .form-control { border-color: var(--border-color); background: var(--bg-primary); color: var(--text-primary); padding: 12px 20px; }
.newsletter-form .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); }
.newsletter-form .btn { padding: 12px 24px; font-weight: 600; }
.footer-bottom { padding: 24px 0; border-top: 1px solid var(--border-color); }
.copyright { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0; }
.footer-badges { display: flex; gap: 12px; justify-content: flex-end; }
.footer-badges .badge { padding: 6px 12px; background: var(--bg-tertiary); color: var(--text-secondary); font-size: 0.75rem; font-weight: 500; border-radius: var(--radius-sm); }

/* Toast Notifications */
.toast-container { z-index: 9999; }
.custom-toast { background: var(--bg-glass); backdrop-filter: blur(20px); border: 1px solid var(--border-color); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); padding: 16px 20px; display: flex; align-items: center; gap: 12px; min-width: 300px; animation: toastSlideIn 0.3s ease; }
@keyframes toastSlideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.toast-icon.success { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.toast-icon.error { background: rgba(239, 68, 68, 0.1); color: #EF4444; }
.toast-icon.info { background: rgba(99, 102, 241, 0.1); color: var(--primary); }
.toast-content { flex: 1; }
.toast-title { font-family: var(--font-heading); font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; color: var(--text-primary); }
.toast-message { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0; }
.toast-close { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; transition: color var(--transition-fast); }
.toast-close:hover { color: var(--text-primary); }

/* Responsive Design */
@media (max-width: 1199.98px) {
    :root { --section-padding: 80px; }
    .comparison-slider { height: 350px; }
    .result-comparison-slider { height: 400px; }
    .demo-slider { height: 350px; }
    .testimonial-card { flex: 0 0 calc(50% - 12px); }
    .pricing-card.popular { transform: scale(1); }
    .pricing-card.popular:hover { transform: translateY(-8px); }
}
@media (max-width: 991.98px) {
    .hero-content { padding-top: 40px; text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .upload-buttons { justify-content: center; }
    .trust-badges { justify-content: center; }
    .comparison-wrapper { padding-top: 40px; }
    .comparison-slider { height: 300px; }
    .result-comparison-slider { height: 350px; }
    .result-stats { grid-template-columns: repeat(2, 1fr); }
    .result-stat { border-bottom: 1px solid var(--border-light); }
    .result-stat:nth-child(2) { border-right: none; }
    .result-stat:nth-child(3), .result-stat:nth-child(4) { border-bottom: none; }
    .demo-slider { height: 300px; }
    .steps-line { display: none; }
    .testimonial-card { flex: 0 0 calc(100% - 0px); }
    .cta-content h2 { font-size: 2rem; }
    .code-block-wrapper { margin-top: 40px; }
    .footer-newsletter .input-group { margin-left: 0; margin-top: 16px; }
}
@media (max-width: 767.98px) {
    :root { --section-padding: 60px; }
    .hero-title { font-size: 2.5rem; }
    .upload-zone { padding: 24px; }
    .comparison-slider { height: 250px; }
    .comparison-stats { flex-wrap: wrap; gap: 16px; }
    .result-comparison-slider { height: 280px; }
    .result-actions { flex-direction: column; align-items: stretch; }
    .action-group { justify-content: center; }
    .download-group { flex-direction: column; }
    .result-stats { grid-template-columns: 1fr; }
    .result-stat { border-right: none; border-bottom: 1px solid var(--border-light); }
    .result-stat:last-child { border-bottom: none; }
    .demo-slider { height: 250px; }
    .demo-tabs { gap: 6px; }
    .demo-tab { padding: 8px 16px; font-size: 0.8rem; }
    .feature-toggles { grid-template-columns: 1fr; }
    .processing-stages { gap: 12px; }
    .stage { min-width: 60px; }
    .stage-name { font-size: 0.6rem; }
    .pricing-card.popular { transform: scale(1); }
    .cta-card { padding: 48px 24px; }
    .cta-content h2 { font-size: 1.75rem; }
    .footer-badges { justify-content: flex-start; margin-top: 16px; }
    .scroll-indicator { display: none; }
}
@media (max-width: 575.98px) {
    .hero-title { font-size: 2rem; }
    .upload-buttons { flex-direction: column; }
    .upload-btn, .paste-btn { width: 100%; }
    .comparison-slider { height: 200px; }
    .result-comparison-slider { height: 220px; }
    .demo-slider { height: 200px; }
    .settings-card { padding: 24px 16px; }
    .processing-card { padding: 40px 20px; }
    .ai-loader { width: 100px; height: 100px; }
    .loader-ring:nth-child(1) { width: 100px; height: 100px; }
    .loader-ring:nth-child(2) { width: 75px; height: 75px; }
    .loader-ring:nth-child(3) { width: 50px; height: 50px; }
    .testimonial-card { padding: 24px; }
    .api-cta { flex-direction: column; }
    .api-cta .btn { width: 100%; }
    .cta-buttons { flex-direction: column; }
    .cta-buttons .btn { width: 100%; }
}

/* Animations & Effects */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.skeleton { background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%); background-size: 200% 100%; animation: skeleton-loading 1.5s ease-in-out infinite; border-radius: var(--radius-sm); }
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
::selection { background: rgba(99, 102, 241, 0.3); color: var(--text-primary); }
*:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn:focus-visible { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3); }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
}
@media print {
    .navbar, .scroll-indicator, .cta-section, .footer-social, .newsletter-form, .carousel-controls { display: none !important; }
    body { background: white; color: black; }
}
