/* AIxtract Landing Page - Modern Design with Glass Effects */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary: #1e3a5f;
    --secondary: #4dd0e1;
    --accent: #26c6da;
    --dark: #0f1419;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --success: #10b981;
    
    /* Gradients */
    --gradient: linear-gradient(135deg, #1e3a5f 0%, #26c6da 100%);
    --gradient-light: linear-gradient(135deg, rgba(30, 58, 95, 0.03) 0%, rgba(38, 198, 218, 0.03) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.16);
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
    overflow-x: hidden;
}

/* ========== HEADER & NAVIGATION ========== */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    height: 45px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:not(.cta-button):hover {
    color: var(--primary);
}

.nav-links a:not(.cta-button)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-links a:not(.cta-button):hover::after {
    width: 100%;
}

#languageSelector {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(100, 116, 139, 0.2);
    color: var(--gray);
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

#languageSelector:hover {
    border-color: var(--accent);
    background: white;
}

.language-selector {
    display: flex;
    gap: 0.5rem;
    background: rgba(248, 250, 252, 0.8);
    padding: 0.3rem;
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.lang-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition-smooth);
    opacity: 0.5;
}

.lang-btn:hover {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.5);
}

.lang-btn.active {
    opacity: 1;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}


.cta-button {
    background: var(--gradient);
    color: white !important;
    padding: 0.65rem 1.4rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(38, 198, 218, 0.25);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(38, 198, 218, 0.35);
}

.cta-button::after {
    display: none;
}

/* ========== HERO SECTION ========== */
.hero {
    padding: 140px 2rem 100px;
    text-align: center;
    background: 
        radial-gradient(ellipse at top right, rgba(77, 208, 225, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(30, 58, 95, 0.06) 0%, transparent 50%),
        var(--light);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(77, 208, 225, 0.08) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-50px, 30px); }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--primary);
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(38, 198, 218, 0.1);
}

h1 {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.primary-button {
    background: var(--gradient);
    color: white !important;
    padding: 1.1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-smooth);
    box-shadow: 0 6px 24px rgba(38, 198, 218, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(38, 198, 218, 0.4);
}

.secondary-button {
    background: white;
    color: var(--primary);
    padding: 1.1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(30, 58, 95, 0.1);
}

.secondary-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

/* ========== STATS SECTION ========== */
.stats {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 3rem 2.5rem;
    margin: -40px auto 0;
    max-width: 1100px;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.8rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--gray);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ========== CODE DEMO SECTION ========== */
.code-demo {
    background: linear-gradient(180deg, #0a0e14 0%, #1a1f2e 100%);
    padding: 90px 2rem;
    overflow: hidden;
    position: relative;
}

.code-demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(77, 208, 225, 0.5), transparent);
}

.code-demo-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.code-demo-text h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.code-demo-text p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    line-height: 1.7;
}

.code-window {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.code-header {
    background: rgba(45, 45, 45, 0.8);
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.code-dot.red { background: #ff5f56; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green { background: #27c93f; }

.code-window:hover .code-dot {
    transform: scale(1.2);
}

.code-content {
    padding: 1.8rem;
    font-family: 'Courier New', Consolas, Monaco, monospace;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #a9b7c6;
    min-height: 320px;
}

.code-line {
    display: block;
    white-space: pre;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.code-keyword { color: #cc7832; }
.code-string { color: #6a8759; }
.code-function { color: #ffc66d; }
.code-comment { color: #808080; font-style: italic; }
.code-number { color: #6897bb; }
.code-key { color: #9876aa; }

/* ========== BEFORE/AFTER SECTION ========== */
.before-after {
    padding: 90px 2rem;
    background: white;
}

.before-after-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--gray);
    max-width: 650px;
    margin: 0 auto;
}

.before-after-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
    align-items: center;
}

.before-box, .after-box {
    background: var(--light);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    padding: 2.5rem;
    min-height: 420px;
    transition: var(--transition-smooth);
}

.before-box:hover, .after-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.pdf-preview {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    font-family: Georgia, serif;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #333;
}

.pdf-preview h4 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 700;
}

.arrow-transform {
    font-size: 3rem;
    color: var(--accent);
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: scale(1.15);
        opacity: 1;
    }
}

.after-box {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f1419 100%);
    color: #a9b7c6;
    border-color: rgba(38, 198, 218, 0.2);
}

.json-output {
    font-family: 'Courier New', Consolas, Monaco, monospace;
    font-size: 0.85rem;
    line-height: 1.7;
    overflow-x: auto;
}

/* ========== INTERACTIVE DEMO ========== */
.interactive-demo {
    padding: 90px 2rem;
    background: var(--gradient-light);
}

.demo-container {
    max-width: 950px;
    margin: 0 auto;
}

.demo-box {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    margin-top: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.demo-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    background: rgba(248, 250, 252, 0.8);
    padding: 0.5rem;
    border-radius: 12px;
}

.demo-tab {
    flex: 1;
    padding: 0.9rem 1.5rem;
    background: transparent;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition-smooth);
    border-radius: 8px;
}

.demo-tab:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.5);
}

.demo-tab.active {
    color: white;
    background: var(--gradient);
    box-shadow: 0 4px 12px rgba(38, 198, 218, 0.25);
}

.demo-content {
    display: none;
}

.demo-content.active {
    display: block;
    animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.demo-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.demo-result {
    background: rgba(248, 250, 252, 0.6);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.demo-result h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.demo-result pre {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f1419 100%);
    color: #a9b7c6;
    padding: 1.8rem;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.7;
    border: 1px solid rgba(38, 198, 218, 0.1);
}

.try-button {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(38, 198, 218, 0.3);
}

.try-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(38, 198, 218, 0.4);
}

.try-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.loading-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== FEATURES SECTION ========== */
.features {
    padding: 90px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.3rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.9rem;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ========== DOCUMENTS SECTION ========== */
.documents {
    background: var(--gradient-light);
    padding: 80px 2rem;
}

.documents-container {
    max-width: 1200px;
    margin: 0 auto;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2.8rem;
}

.document-card {
    background: white;
    padding: 1.8rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.document-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.document-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.document-card:hover .icon {
    transform: scale(1.15);
}

.document-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.6rem;
}

.document-card p {
    color: var(--gray);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ========== PRICING SECTION ========== */
.pricing {
    padding: 80px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: white;
    padding: 2.8rem 2.2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
    border: 2px solid rgba(226, 232, 240, 0.6);
    transition: var(--transition-smooth);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.pricing-card.featured {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured::before {
    content: '⭐ RECOMMANDÉ';
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    padding: 0.5rem 1.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(38, 198, 218, 0.3);
}

.pricing-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.price {
    font-size: 2.8rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 1.5rem 0;
}

.price span {
    font-size: 1.1rem;
    color: var(--gray);
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.8rem 0;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.95rem;
}

.pricing-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.pricing-button {
    width: 100%;
    padding: 1.1rem;
    background: var(--gradient);
    color: white !important;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: block;
    text-align: center;
    box-shadow: 0 4px 15px rgba(38, 198, 218, 0.25);
}

.pricing-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(38, 198, 218, 0.4);
}

/* ========== FAQ SECTION ========== */
.faq {
    padding: 80px 2rem;
    background: white;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-list {
    margin-top: 3rem;
}

.faq-item {
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem 1.8rem;
    background: none;
    border: none;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--light);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.4s ease;
    color: var(--accent);
    font-weight: 300;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.8rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.8rem 1.5rem;
}

.faq-answer p {
    color: var(--gray);
    line-height: 1.7;
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: var(--gradient);
    padding: 90px 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

.cta-section h2 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 1.3rem;
    position: relative;
    z-index: 1;
}

.cta-section p {
    font-size: 1.15rem;
    margin-bottom: 2.8rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .primary-button {
    background: white;
    color: var(--primary) !important;
    position: relative;
    z-index: 1;
}

.cta-section .primary-button:hover {
    transform: translateY(-3px) scale(1.02);
}

/* ========== FOOTER ========== */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ========== ANIMATIONS ========== */
.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========== SOCIAL PROOF / TESTIMONIALS ========== */
.testimonials {
    padding: 90px 2rem;
    background: white;
    overflow: hidden;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--light);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition-smooth);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.testimonial-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.testimonial-info p {
    font-size: 0.85rem;
    color: var(--gray);
}

.testimonial-text {
    color: var(--gray);
    line-height: 1.7;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.testimonial-rating {
    display: flex;
    gap: 0.3rem;
    margin-top: 1rem;
    font-size: 1.1rem;
}

.star {
    color: #fbbf24;
}

/* ========== COMPARISON TABLE ========== */
.comparison {
    padding: 90px 2rem;
    background: var(--gradient-light);
}

.comparison-container {
    max-width: 1200px;
    margin: 0 auto;
}

.comparison-table {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-top: 3rem;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table thead {
    background: var(--gradient);
    color: white;
}

.comparison-table th {
    padding: 1.5rem 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 1.05rem;
}

.comparison-table th:first-child {
    border-radius: 20px 0 0 0;
}

.comparison-table th:last-child {
    border-radius: 0 20px 0 0;
}

.comparison-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    color: var(--gray);
    font-size: 0.95rem;
}

.comparison-table tr:hover {
    background: var(--light);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.check-icon {
    color: var(--success);
    font-size: 1.3rem;
    font-weight: bold;
}

.cross-icon {
    color: #ef4444;
    font-size: 1.3rem;
    font-weight: bold;
}

.highlight-col {
    background: rgba(38, 198, 218, 0.05);
    font-weight: 600;
    color: var(--primary);
}

/* ========== USE CASES ========== */
.use-cases {
    padding: 90px 2rem;
    background: white;
}

.use-cases-container {
    max-width: 1200px;
    margin: 0 auto;
}

.use-cases-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.use-case-tab {
    background: white;
    border: 2px solid rgba(226, 232, 240, 0.8);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.use-case-tab:hover {
    border-color: var(--accent);
    color: var(--primary);
}

.use-case-tab.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(38, 198, 218, 0.3);
}

.use-case-content {
    display: none;
    margin-top: 3rem;
    animation: fadeInScale 0.5s ease;
}

.use-case-content.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.use-case-text h3 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 1rem;
}

.use-case-text p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.use-case-features {
    list-style: none;
}

.use-case-features li {
    padding: 0.8rem 0;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.use-case-features li::before {
    content: '→';
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
}

.use-case-visual {
    background: var(--light);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    padding: 2rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.use-case-icon {
    font-size: 8rem;
    opacity: 0.2;
}

/* ========== PERFORMANCE METRICS ========== */
.performance {
    padding: 90px 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, #26c6da 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.performance::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 20px 20px;
    opacity: 0.3;
}

.performance-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.performance-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

.performance-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
}

.performance-number {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    display: block;
}

.performance-label {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

.performance-sublabel {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* ========== ANIMATED PARTICLES BACKGROUND ========== */
.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 20s infinite;
}

@keyframes particleFloat {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translate(100px, -100vh) scale(0);
        opacity: 0;
    }
}

.particle:nth-child(2) { animation-delay: 2s; left: 20%; }
.particle:nth-child(3) { animation-delay: 4s; left: 40%; }
.particle:nth-child(4) { animation-delay: 6s; left: 60%; }
.particle:nth-child(5) { animation-delay: 8s; left: 80%; }

/* ========== TYPEWRITER EFFECT ========== */
.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--accent);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent) }
}

/* ========== COUNTER ANIMATION ========== */
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-item h3.counting {
    animation: countUp 1s ease-out;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.3rem;
    }

    .hero {
        padding: 120px 1.5rem 80px;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .nav-links {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .stats {
        padding: 2.5rem 1.5rem;
    }

    .stats-grid {
        gap: 2rem;
    }

    .code-demo-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .before-after-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .arrow-transform {
        transform: rotate(90deg);
        margin: 1rem 0;
    }

    .demo-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .demo-box {
        padding: 2rem 1.5rem;
    }

    .features-grid,
    .documents-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        overflow-x: auto;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 1rem 0.5rem;
        font-size: 0.85rem;
    }

    .use-case-content.active {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .use-cases-tabs {
        flex-direction: column;
    }

    .performance-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .performance-number {
        font-size: 2.5rem;
    }
}