/* ===================================
   CSS Variables & Theme System
   =================================== */
:root {
    /* Colors - Light Mode */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: rgba(148, 163, 184, 0.2);

    /* Accent Colors */
    --accent-purple: #8b5cf6;
    --accent-purple-light: rgba(139, 92, 246, 0.1);
    --accent-blue: #3b82f6;
    --accent-blue-light: rgba(59, 130, 246, 0.1);
    --accent-green: #10b981;
    --accent-green-light: rgba(16, 185, 129, 0.1);
    --accent-orange: #f97316;
    --accent-orange-light: rgba(249, 115, 22, 0.1);

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-title: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #f97316 100%);
    --gradient-btn: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);

    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

    /* Sizing */
    --header-height: 72px;
    --container-max: 1200px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-color: rgba(148, 163, 184, 0.1);

    --glass-bg: rgba(30, 41, 59, 0.8);
    --glass-border: rgba(148, 163, 184, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================
   Animated Background
   =================================== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-purple);
    top: -200px;
    right: -150px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-blue);
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--accent-green);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
    opacity: 0.3;
}

@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, 30px) scale(1.02);
    }
}

[data-theme="dark"] .orb {
    opacity: 0.2;
}

/* ===================================
   Header
   =================================== */
.header {
    position: sticky;
    top: 0;
    height: var(--header-height);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
    transition: background var(--transition-normal);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 36px;
    height: 36px;
    color: var(--accent-purple);
    animation: sparkle 3s infinite ease-in-out;
}

@keyframes sparkle {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(5deg) scale(1.05);
    }

    75% {
        transform: rotate(-5deg) scale(0.95);
    }
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-purple);
}

.logo-accent {
    color: var(--text-primary);
    font-weight: 500;
}

.nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--accent-purple-light);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--accent-purple-light);
    color: var(--accent-purple);
    border-color: var(--accent-purple);
}

.moon-icon {
    display: none;
}

[data-theme="dark"] .sun-icon {
    display: none;
}

[data-theme="dark"] .moon-icon {
    display: block;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    padding: 80px 0 60px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--accent-purple-light);
    color: var(--accent-purple);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 24px;
    white-space: nowrap;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-title-gradient {
    display: block;
    background: var(--gradient-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-subtitle strong {
    color: var(--accent-purple);
}

/* ===================================
   Glass Card
   =================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-normal);
}

.glass-card:hover {
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15);
}

/* ===================================
   Upload Card
   =================================== */
.upload-card {
    max-width: 700px;
    margin: 0 auto 50px;
    padding: 8px;
}

.upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 40px 24px;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--accent-purple);
    background: var(--accent-purple-light);
}

.upload-zone.dragover {
    transform: scale(1.02);
}

.upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--gradient-btn);
    border-radius: 50%;
    color: white;
    margin-bottom: 20px;
    transition: transform var(--transition-normal);
}

.upload-zone:hover .upload-icon {
    transform: translateY(-5px);
}

.upload-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

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

/* ===================================
   Steps
   =================================== */
.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--gradient-btn);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 50%;
}

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

.step-arrow {
    color: var(--text-muted);
    font-size: 1.2rem;
}

@media (max-width: 640px) {
    .step-arrow {
        display: none;
    }

    .steps {
        gap: 12px;
    }
}

/* ===================================
   Results Section
   =================================== */
.results-section {
    padding: 40px 0 80px;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.results-title {
    font-size: 1.75rem;
    font-weight: 700;
}

.results-actions {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--gradient-btn);
    color: white;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-tertiary);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.85rem;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-btn);
    border-radius: 10px;
    transition: width var(--transition-normal);
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Results Grid */
.results-grid {
    display: grid;
    gap: 24px;
}

/* Result Card */
.result-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.result-card:hover {
    box-shadow: var(--glass-shadow);
}

@media (max-width: 768px) {
    .result-card {
        grid-template-columns: 1fr;
    }
}

.result-image-container {
    position: relative;
}

.result-label {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    z-index: 10;
}

.result-label.original {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.result-label.processed {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.result-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    cursor: zoom-in;
}

.result-info {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.result-name {
    font-weight: 600;
    color: var(--text-primary);
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

/* ===================================
   Features Section
   =================================== */
.features-section {
    padding: 80px 0;
    background: var(--bg-tertiary);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 30px;
    text-align: center;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.feature-icon.purple {
    background: var(--accent-purple-light);
    color: var(--accent-purple);
}

.feature-icon.blue {
    background: var(--accent-blue-light);
    color: var(--accent-blue);
}

.feature-icon.green {
    background: var(--accent-green-light);
    color: var(--accent-green);
}

.feature-icon.orange {
    background: var(--accent-orange-light);
    color: var(--accent-orange);
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================================
   How It Works Section
   =================================== */
.how-section {
    padding: 80px 0;
}

.how-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
}

.how-formula {
    margin-bottom: 24px;
}

.how-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.formula {
    display: block;
    padding: 16px 24px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.formula.highlight {
    background: var(--accent-purple-light);
    color: var(--accent-purple);
    font-weight: 600;
}

.how-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

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

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

.footer-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.footer-text a {
    color: var(--accent-purple);
    text-decoration: none;
}

.footer-text a:hover {
    text-decoration: underline;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===================================
   Loading Overlay
   =================================== */
.loading-overlay {
    position: fixed;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.loading-overlay.active {
    display: flex;
}

[data-theme="dark"] .loading-overlay {
    background: rgba(15, 23, 42, 0.9);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--bg-tertiary);
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-text {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 768px) {
    .hero {
        padding: 50px 0 40px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .results-actions {
        width: 100%;
    }

    .btn {
        flex: 1;
        justify-content: center;
    }

    .features-section,
    .testimonials-section,
    .faq-section {
        padding: 50px 0;
    }

    .how-content {
        padding: 24px;
    }
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonials-section {
    padding: 80px 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-top: -40px;
    margin-bottom: 50px;
}

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

.testimonial-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-btn);
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

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

/* ===================================
   FAQ Section
   =================================== */
.faq-section {
    padding: 80px 0;
    background: var(--bg-tertiary);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--accent-purple);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.faq-question:hover {
    color: var(--accent-purple);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform var(--transition-normal);
    color: var(--text-muted);
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
    color: var(--accent-purple);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal), padding var(--transition-normal);
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===================================
   Mobile Sticky Download Bar
   =================================== */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    z-index: 99;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}

.mobile-sticky-bar.visible {
    transform: translateY(0);
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .mobile-sticky-bar {
        display: block;
    }

    /* Hide desktop download button on mobile when sticky bar is visible */
    .results-section .btn-primary#downloadAllBtn {
        display: none !important;
    }

    /* Add padding to bottom of page for sticky bar */
    .footer {
        padding-bottom: 100px;
    }
}

/* ===================================
   Enhanced Footer
   =================================== */
.footer {
    padding: 50px 0 30px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-purple);
}

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

.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.footer-logo-link:hover {
    opacity: 0.8;
}

.footer-logo-icon {
    width: 28px;
    height: 28px;
    color: var(--accent-purple);
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--accent-purple);
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Footer Expanded (with columns) */
.footer-expanded {
    text-align: left;
}

.footer-expanded .footer-brand {
    align-items: flex-start;
    margin-bottom: 16px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
    margin-bottom: 32px;
}

.footer-columns-4 {
    grid-template-columns: 1.2fr repeat(3, 1fr);
}

.footer-brand-column {
    padding-right: 20px;
}

.footer-brand-column .footer-tagline {
    margin-top: 12px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.footer-column .footer-link {
    font-size: 0.85rem;
    padding: 4px 0;
}

.footer-expanded .footer-copyright {
    text-align: center;
    width: 100%;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {

    .footer-columns,
    .footer-columns-4 {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-brand-column {
        align-items: center;
        text-align: center;
        padding-right: 0;
    }

    .footer-brand-column .footer-logo-link {
        justify-content: center;
    }
}

/* ===================================
   Before/After Comparison Slider
   =================================== */
.comparison-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    cursor: ew-resize;
    touch-action: none;
}

.comparison-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.comparison-image.original {
    z-index: 1;
}

.comparison-image.processed {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

.comparison-slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: white;
    z-index: 10;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.comparison-slider::before,
.comparison-slider::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.comparison-slider::before {
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--gradient-btn);
}

.comparison-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 11;
}

.comparison-handle svg {
    color: var(--accent-purple);
}

.comparison-labels {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    z-index: 5;
    pointer-events: none;
}

.comparison-label {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.comparison-label.original {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.comparison-label.processed {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

/* ===================================
   Processing Animation
   =================================== */
.processing-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    z-index: 20;
}

.processing-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ===================================
   Enhanced Mobile Responsiveness
   =================================== */
@media (max-width: 768px) {

    /* Larger touch targets */
    .upload-zone {
        min-height: 200px;
        padding: 30px 20px;
    }

    .upload-icon {
        width: 70px;
        height: 70px;
    }

    .upload-title {
        font-size: 1.1rem;
    }

    /* Better result cards on mobile */
    .result-card {
        padding: 16px;
        gap: 16px;
    }

    .result-image {
        height: 200px;
    }

    .result-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .result-name {
        max-width: 100%;
    }

    /* Steps mobile layout */
    .step {
        flex: 1;
        min-width: 100px;
        justify-content: center;
        padding: 10px 12px;
    }

    .step-text {
        font-size: 0.85rem;
    }

    /* Testimonials mobile */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 24px;
    }

    /* FAQ mobile */
    .faq-question {
        padding: 16px 20px;
        font-size: 0.95rem;
    }

    .faq-answer p {
        padding: 0 20px 16px;
        font-size: 0.9rem;
    }

    /* Hero badge mobile */
    .hero-badge {
        font-size: 0.7rem;
        padding: 6px 12px;
    }

    /* Section spacing */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .section-subtitle {
        margin-top: -20px;
        margin-bottom: 30px;
        font-size: 0.9rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 40px 0 30px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .steps {
        flex-direction: column;
        gap: 8px;
    }

    .step {
        width: 100%;
    }

    .feature-card {
        padding: 24px;
    }

    .feature-title {
        font-size: 1rem;
    }

    .feature-desc {
        font-size: 0.9rem;
    }
}