/* ========== Main Styles ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
}

/* ── Header ── */
.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover .logo-icon {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link {
    padding: 8px 16px;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
}

.nav-link.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.nav-link.primary:hover {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Main ── */
.main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 24px 64px;
}

/* ── Hero ── */
.hero {
    text-align: center;
    margin-bottom: 36px;
    transition: margin 0.35s ease;
}

.hero.compact { margin-bottom: 18px; }

.hero h1 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
    transition: font-size 0.35s ease, margin 0.35s ease;
}

.hero.compact h1 { font-size: 22px; margin-bottom: 0; }

.hero h1 span {
    background: linear-gradient(135deg, var(--primary), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--primary);
}

.hero-sub {
    color: var(--text-light);
    font-size: 16px;
    max-height: 200px;
    overflow: hidden;
    transition: opacity 0.25s ease, max-height 0.35s ease;
}

.hero.compact .hero-sub { opacity: 0; max-height: 0; }

/* ── Upload Card ── */
.upload-card {
    background: var(--card);
    border-radius: 20px;
    padding: 40px 48px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
    transition: padding 0.35s ease, border-radius 0.35s ease;
}

.upload-card.compact { padding: 16px 24px; border-radius: 14px; }

.drop-zone {
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 56px 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg);
    text-align: center;
}

.upload-card.compact .drop-zone {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 10px;
}

.drop-zone:hover, .drop-zone.drag-over {
    border-color: var(--primary);
    background: #eef2ff;
}

.drop-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
    transition: all 0.35s ease;
}

.upload-card.compact .drop-icon {
    width: 42px; height: 42px; font-size: 18px; margin: 0; border-radius: 10px;
}

.drop-text { flex: 1; min-width: 0; }

.drop-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    transition: font-size 0.35s ease, margin 0.35s ease;
}

.upload-card.compact .drop-title { font-size: 14px; margin-bottom: 2px; }

.drop-hint {
    color: var(--text-light);
    font-size: 14px;
    transition: font-size 0.35s ease;
}

.upload-card.compact .drop-hint { font-size: 12px; }
.drop-hint strong { color: var(--primary); }

kbd {
    background: var(--border);
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 11px;
    padding: 1px 5px;
    font-family: inherit;
    font-weight: 600;
    color: var(--text-light);
}

.lang-hint { font-size: 12px; color: var(--text-light); }
.upload-card.compact .lang-hint { display: none; }

.file-input { display: none; }

/* ── Trust Strip ── */
.trust-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 14px 20px;
    background: var(--card);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.trust-item { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-light); white-space: nowrap; }
.trust-icon { font-size: 15px; }

/* ── Files Section ── */
.files-section {
    background: var(--card);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
    display: none;
}

.files-section.show { display: block; }

.files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.files-title { font-size: 17px; font-weight: 600; }
.files-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.count-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.progress-info { font-size: 13px; color: var(--text-light); display: none; }
.progress-info.show { display: inline; }

.clear-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.2s;
}

.clear-btn:hover:not(:disabled) { background: #fee2e2; color: var(--error); }
.clear-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    max-height: 460px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Custom scrollbar */
.files-grid::-webkit-scrollbar { width: 6px; }
.files-grid::-webkit-scrollbar-track { background: transparent; }
.files-grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.files-grid::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

.file-card {
    background: var(--bg);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.file-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.file-preview { width: 100%; height: 130px; background: var(--border); position: relative; overflow: hidden; }
.file-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* PDF thumbnail loading state */
.pdf-thumb-loading {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: linear-gradient(135deg, #fff1f2, #ffe4e6);
    gap: 6px;
}

.pdf-thumb-loading .pdf-icon { font-size: 30px; }
.pdf-thumb-loading .pdf-label { font-size: 10px; color: #e11d48; font-weight: 700; letter-spacing: 0.5px; }

/* Red PDF badge across bottom of file preview */
.pdf-page-badge {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(220, 38, 38, 0.92);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    text-align: center;
    letter-spacing: 0.4px;
}

.file-remove {
    position: absolute;
    top: 7px; right: 7px;
    width: 26px; height: 26px;
    background: rgba(0,0,0,0.6);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 13px;
}

.file-card:hover .file-remove { opacity: 1; }
@media (hover: none) { .file-remove { opacity: 0.85; } }

.file-info { padding: 10px 12px; }

.file-name {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.file-status { display: flex; align-items: center; gap: 6px; font-size: 11px; }

.status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status-pending    { background: var(--warning); }
.status-processing { background: #3b82f6; animation: pulse 1.5s infinite; }
.status-success    { background: var(--success); }
.status-error      { background: var(--error); }

/* File Progress Bar */
.file-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--border);
    overflow: hidden;
}

.file-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    width: 0%;
    transition: width 0.3s ease;
}

.file-progress-bar.complete { background: var(--success); }
.file-progress-bar.error { background: var(--error); }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.actions { display: flex; gap: 12px; margin-top: 20px; }

.btn {
    flex: 1;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 14px 0 rgba(99,102,241,0.39);
}

.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px 0 rgba(99,102,241,0.4); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover:not(:disabled) { background: var(--border); }
.btn-secondary:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Done Summary ── */
.done-summary {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1px solid #6ee7b7;
    border-radius: 14px;
    padding: 16px 24px;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    animation: fadeUp 0.4s ease;
}

.done-summary.show { display: flex; }

.done-summary-text {
    font-size: 15px;
    font-weight: 600;
    color: #065f46;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-restart {
    background: white;
    color: #065f46;
    border: 1px solid #6ee7b7;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-restart:hover { background: #065f46; color: white; }

/* ── Results Section ── */
.results-section {
    background: var(--card);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    display: none;
    margin-bottom: 20px;
}

.results-section.show { display: block; }

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.results-title { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.results-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 8px; }

#downloadAllBtn { white-space: nowrap; }

/* ── Result Cards -compact collapsible ── */
.results-grid { display: flex; flex-direction: column; gap: 10px; }

.result-card {
    background: var(--bg);
    border-radius: 10px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.25s ease;
}

.result-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    background: var(--card);
}

.result-card-header:hover { background: var(--bg); }

.result-thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s;
}

.result-thumb:hover {
    transform: scale(1.05);
}

.result-thumb-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s;
}

.result-thumb-placeholder:hover {
    transform: scale(1.05);
}

.result-info { flex: 1; min-width: 0; }

.result-filename {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-meta {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
}

.result-expand {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.result-expand:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.result-card.expanded .result-expand { transform: rotate(180deg); }

.result-card-body {
    display: none;
    padding: 14px;
    border-top: 1px solid var(--border);
    background: var(--card);
}

.result-card.expanded .result-card-body { display: block; }

.result-text {
    width: 100%;
    min-height: 140px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'DM Sans', monospace;
    font-size: 13px;
    line-height: 1.65;
    resize: vertical;
    outline: none;
    background: var(--bg);
    color: var(--text);
}

.result-text:focus { border-color: var(--primary); }

.result-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.download-options {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.download-options .btn {
    flex: none;
    padding: 8px 12px;
    font-size: 12px;
}

/* ── Empty State ── */
.empty { text-align: center; padding: 60px 24px; color: var(--text-light); }
.empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }

/* ── Toast ── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 1000; }

.toast {
    background: var(--text);
    color: white;
    padding: 13px 18px;
    border-radius: 10px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease forwards;
    max-width: 320px;
}

.toast.hide    { animation: slideOut 0.3s ease forwards; }
.toast-success { border-left: 4px solid var(--success); }
.toast-error   { border-left: 4px solid var(--error); }
.toast-warning { border-left: 4px solid var(--warning); }

/* ── Lightbox ── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: zoom-out;
    animation: fadeIn 0.2s ease;
}

.lightbox.open { display: flex; }

.lightbox-inner {
    position: relative;
    max-width: min(92vw, 1000px);
    max-height: 90vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.5);
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: all 0.2s;
    z-index: 10;
}

.lightbox-close:hover { background: var(--error); color: white; }

/* Lightbox page navigation (for PDF) */
.lightbox-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
}

.lightbox-nav button {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.lightbox-nav button:hover { background: rgba(255,255,255,0.3); }
.lightbox-nav button:disabled { opacity: 0.3; cursor: not-allowed; }
.lightbox-nav-info { color: rgba(255,255,255,0.8); font-size: 13px; font-weight: 500; }

/* ── FAQ Section ── */
.faq-section {
    max-width: 1000px;
    margin: 0 auto 48px;
    padding: 0 24px;
}

.faq-title { font-size: 22px; font-weight: 700; margin-bottom: 20px; color: var(--text); }

.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-q {
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
    font-family: inherit;
}

.faq-q:hover { background: var(--bg); }

.faq-chevron { font-size: 12px; color: var(--text-light); transition: transform 0.25s ease; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-a { max-height: 300px; }

.faq-a-inner {
    padding: 0 20px 18px;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ── Spinner ── */
.spinner {
    width: 17px; height: 17px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

/* ── About / Features Section ── */
.about-section {
    max-width: 1000px;
    margin: 0 auto 48px;
    padding: 0 24px;
}

.about-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    color: var(--text);
}

.about-title span {
    background: linear-gradient(135deg, var(--primary), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Trust section cards hover */
.trust-section .trust-card:hover {
    background: rgba(255, 255, 255, 0.16) !important;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.feature-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.feature-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ── Testimonials Section ── */
.testimonials-section {
    max-width: 1000px;
    margin: 0 auto 48px;
    padding: 0 24px;
}

.testimonials-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    color: var(--text);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    overflow: hidden;
}

.testimonial-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.testimonial-info span {
    font-size: 13px;
    color: var(--text-light);
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 16px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    font-style: italic;
}

/* ── Stats Section ── */
.stats-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 40px 24px;
    margin-bottom: 48px;
}

.stats-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    text-align: center;
}

.stat-item {
    padding: 0 20px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* ── How to Use Guide ── */
.guide-section {
    max-width: 1000px;
    margin: 0 auto 48px;
    padding: 0 24px;
}

.guide-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 28px;
    color: var(--text);
}

.guide-steps {
    counter-reset: guide-counter;
}

.guide-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    background: var(--card);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.guide-step-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.guide-step-content h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.guide-step-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

/* ── Footer ── */
.footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 40px 24px;
    margin-top: 0;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 12px;
}

.footer-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.footer-desc {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright {
    color: var(--text-light);
    font-size: 13px;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--text-light);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--primary);
}

/* ── Animations ── */
@keyframes pulse  { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes spin   { to { transform: rotate(360deg); } }
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(120%); opacity: 0; } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp  { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ── Responsive ── */
@media (max-width: 700px) {
    .hero h1 { font-size: 28px; }
    .hero.compact h1 { font-size: 20px; }
    .upload-card { padding: 28px 18px; }
    .upload-card.compact { padding: 12px 14px; }
    .drop-zone { padding: 36px 18px; }
    .files-grid { grid-template-columns: repeat(2, 1fr); }
    .actions { flex-direction: column; }
    .done-summary { flex-direction: column; align-items: flex-start; }
    .results-section { padding: 20px 16px; }
    .trust-strip { gap: 14px; }
    .lightbox-close {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .stats-inner { gap: 24px; }
    .stat-number { font-size: 28px; }
    .features-grid { grid-template-columns: 1fr; }
    .about-title { font-size: 24px; }
    .guide-step { flex-direction: column; gap: 12px; }
    .guide-step-num { width: 36px; height: 36px; font-size: 14px; }

    /* Header Mobile */
    .header { padding: 10px 16px; }
    .logo span { display: none; }
    .nav-toggle { display: flex; }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card);
        flex-direction: column;
        padding: 12px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        display: none;
    }
    .nav-menu.active { display: flex; }
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
    }
    .nav-link.primary {
        margin-top: 4px;
    }
}
