/* ================================================================
   PPT Translator — Service Website Design System
   Font: Inter | Colors: Indigo-Violet gradient
   ================================================================ */

/* ── Reset & Variables ───────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --accent: #8b5cf6;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0f172a;
    --surface: #ffffff;
    --text: #1e293b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
    --gradient-soft: linear-gradient(135deg, #eef2ff, #ede9fe, #f5f3ff);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Navbar ──────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 64px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

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

.navbar-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.navbar-title {
    font-weight: 700;
    font-size: 1.05rem;
}

.navbar-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--text);
    background: var(--bg-alt);
}

.nav-cta {
    background: var(--gradient);
    color: #fff !important;
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 600;
}

.nav-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ── Hero ────────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    padding: 160px 24px 120px;
    text-align: center;
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    color: #fff;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

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

.orb-1 {
    width: 600px;
    height: 600px;
    background: #6366f1;
    top: -150px;
    left: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #8b5cf6;
    bottom: -100px;
    right: -50px;
    animation-delay: 2s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: #a78bfa;
    top: 50%;
    left: 60%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    font-size: 0.82rem;
    font-weight: 600;
    color: #a5b4fc;
    letter-spacing: 0.02em;
    margin-bottom: 28px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(135deg, #818cf8, #c084fc, #f0abfc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 32px;
    background: var(--gradient);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transition: all 0.3s;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.5);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.trust-avatars {
    display: flex;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-left: -8px;
}

.avatar:first-child {
    margin-left: 0;
}

.trust-text {
    font-size: 0.88rem;
    color: #94a3b8;
}

.trust-text strong {
    color: #e2e8f0;
}

/* ── Sections ────────────────────────────────────── */
.section {
    padding: 100px 24px;
}

.section-alt {
    background: var(--bg-alt);
}

.upload-section {
    background: var(--bg);
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    background: var(--gradient-soft);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 48px;
}

.section-inner>.section-badge,
.section-inner>.section-title,
.section-inner>.section-subtitle {
    text-align: center;
    display: block;
}

/* ── Steps (How it Works) ────────────────────────── */
.steps-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.step-card {
    flex: 0 1 280px;
    text-align: center;
    padding: 36px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.step-num {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.step-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary-light);
    padding: 0 16px;
    font-weight: 300;
}

@media (max-width: 768px) {
    .steps-row {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .step-arrow {
        transform: rotate(90deg);
        padding: 8px 0;
    }
}

/* ── Features Grid ───────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 32px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.fc-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: var(--gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Upload Card ─────────────────────────────────── */
.upload-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.lang-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 4px;
}

.lang-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.25s;
}

.lang-btn.selected {
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.lang-flag {
    font-size: 1.1em;
}

.lang-arrow {
    color: var(--primary);
    font-weight: 700;
}

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.04);
}

.uz-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.upload-zone h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.upload-zone p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.upload-btn-fake {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 50px;
    background: var(--gradient);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.upload-zone:hover .upload-btn-fake {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

#fileInput {
    display: none;
}

/* ── Error Message ───────────────────────────────── */
.error-message {
    display: none;
    max-width: 640px;
    margin: 12px auto 0;
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.error-message.active {
    display: block;
}

/* ── Progress Section ────────────────────────────── */
.progress-section {
    display: none;
    max-width: 640px;
    margin: 24px auto 0;
}

.progress-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-lg);
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.progress-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
}

.progress-percent-display {
    font-size: 2.4rem;
    font-weight: 800;
    text-align: center;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.progress-bar-track {
    height: 8px;
    background: var(--bg-alt);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.progress-step-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 12px;
}

.timer-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.timer-value {
    font-weight: 700;
    color: var(--text);
}

/* ── Result Section ──────────────────────────────── */
.result-section {
    display: none;
    max-width: 1200px;
    margin: 32px auto 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
}

.stat-success {
    color: var(--success);
}

.stat-danger {
    color: var(--danger);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

.completion-bar {
    margin-bottom: 20px;
}

.completion-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.completion-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.completion-percent {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

.completion-track {
    height: 8px;
    background: var(--bg-alt);
    border-radius: 4px;
    overflow: hidden;
}

.completion-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* ── Alerts ──────────────────────────────────────── */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.btn-link {
    background: none;
    border: none;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font);
}

/* ── Timing Card ─────────────────────────────────── */
.timing-card {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.timing-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.timing-total-label {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
}

.timing-total-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-left: auto;
}

/* ── Actions ─────────────────────────────────────── */
.actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--bg-alt);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #f1f5f9;
}

/* ── Preview Tabs ────────────────────────────────── */
.preview-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.preview-tab {
    flex: 1;
    min-width: 100px;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.preview-tab.active {
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.preview-tab:hover:not(.active) {
    color: var(--text);
}

/* ── Slide Nav ───────────────────────────────────── */
.slide-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.slide-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.slide-nav-btn:hover:not(:disabled) {
    background: var(--bg-alt);
    border-color: var(--primary);
}

.slide-nav-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.slide-nav-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

/* ── Slide Preview ───────────────────────────────── */
.slide-preview-wrapper {
    max-width: 960px;
    margin: 0 auto;
}

.slide-canvas {
    position: relative;
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.slide-shape {
    position: absolute;
    overflow: hidden;
    padding: 4px;
}

.slide-text {
    line-height: 1.4;
    word-break: break-word;
}

.slide-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.65rem;
}

.slide-table td {
    border: 1px solid #ddd;
    padding: 2px 4px;
    vertical-align: top;
}

.slide-number-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
}

.slide-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #9ca3af;
}

.slide-preview-hint {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 12px 0;
}

.untranslated-text {
    color: var(--danger) !important;
    font-weight: 600;
}

/* ── Dual View ───────────────────────────────────── */
.dual-view-container {
    display: flex;
    gap: 20px;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 24px;
}

.dual-view-panel {
    flex: 1;
}

.dual-view-panel h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}

@media (max-width: 768px) {
    .dual-view-container {
        flex-direction: column;
    }
}

/* ── Comparison Tables ───────────────────────────── */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.comparison-table th {
    padding: 10px 14px;
    background: var(--bg-alt);
    border-bottom: 2px solid var(--border);
    text-align: left;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.comparison-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.row-untranslated {
    background: #fef2f2;
}

.is-untranslated {
    color: var(--danger);
    font-style: italic;
}

/* ── Badges ──────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
}

.badge-translated {
    background: #ecfdf5;
    color: #065f46;
}

.badge-literal {
    background: #eff6ff;
    color: #1e40af;
}

.badge-liberal {
    background: #fdf4ff;
    color: #86198f;
}

.badge-mixed {
    background: #fffbeb;
    color: #92400e;
}

.badge-keep {
    background: var(--bg-alt);
    color: var(--text-muted);
}

.badge-untranslated {
    background: #fee2e2;
    color: #dc2626;
}

/* ── Modal ───────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
}

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

.modal-content {
    background: var(--surface);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 640px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-alt);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 24px;
}

.rationale-section {
    margin-bottom: 20px;
}

.rationale-section h4 {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.rationale-original,
.rationale-translated {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    font-size: 0.9rem;
    line-height: 1.6;
}

.word-breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.word-breakdown-table th {
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.78rem;
    border-bottom: 2px solid var(--border);
    color: var(--text-muted);
    background: var(--bg-alt);
}

.word-breakdown-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
}

/* ── Footer ──────────────────────────────────────── */
.footer {
    background: var(--bg-dark);
    color: #94a3b8;
    padding: 60px 24px 32px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.footer-brand strong {
    color: #e2e8f0;
    font-size: 1rem;
}

.footer-brand span {
    font-size: 0.82rem;
    color: #64748b;
}

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

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #e2e8f0;
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: #475569;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 640px) {
    .navbar {
        padding: 0 16px;
    }

    .navbar-links {
        gap: 4px;
    }

    .nav-link {
        padding: 6px 10px;
        font-size: 0.82rem;
    }

    .hero {
        padding: 120px 16px 80px;
    }

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

    .section {
        padding: 60px 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        flex-direction: column;
    }
}