/* ================================
   Binary Restoration Lab — CSS
   Theme: Dark Forensic / Technical
   Fonts: DM Serif Display + DM Mono + Outfit
================================ */

:root {
    --primary: #00e5a0;
    --primary-dim: rgba(0, 229, 160, 0.12);
    --primary-glow: rgba(0, 229, 160, 0.25);
    --secondary: #0a0e1a;
    --surface: #111827;
    --surface-2: #1a2236;
    --border: rgba(255,255,255,0.07);
    --border-strong: rgba(0, 229, 160, 0.2);
    --text: #e2e8f0;
    --text-muted: #64748b;
    --text-dim: #94a3b8;
    --accent-blue: #38bdf8;
    --accent-orange: #fb923c;
    --danger: #f87171;
    --success: #00e5a0;
    --bg: #0a0e1a;
    --white: #ffffff;
    --mono: 'DM Mono', 'Courier New', monospace;
    --serif: 'DM Serif Display', Georgia, serif;
    --sans: 'Outfit', system-ui, sans-serif;
}

/* ========================
   RESET & BASE
======================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--sans);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Subtle grid background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,229,160,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,229,160,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

main, section, nav, header, footer { position: relative; z-index: 1; }

/* ========================
   NAVIGATION
======================== */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 48px;
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: var(--mono);
    font-weight: 500;
    font-size: 1.05em;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}
.logo span { color: var(--primary); font-weight: 700; }
.logo-icon { color: var(--primary); font-size: 1.2em; }

.nav-center {
    display: flex;
    gap: 32px;
}
.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.875em;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--primary); }

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

.lang-switcher { display: flex; gap: 4px; }
.btn-lang {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-dim);
    padding: 5px 12px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.78em;
    font-family: var(--mono);
    transition: all 0.2s ease;
    letter-spacing: 1px;
}
.btn-lang.active {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
}
.btn-lang:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

.nav-cta {
    background: var(--primary);
    color: var(--secondary);
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}
.nav-cta:hover { background: #00ffb3; box-shadow: 0 0 20px var(--primary-glow); }

/* ========================
   HEADER / HERO
======================== */
.header {
    background: var(--secondary);
    padding: 100px 48px 140px;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 229, 160, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.header-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.header-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-family: var(--mono);
    font-size: 0.78em;
    color: var(--primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--primary-glow); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px transparent; }
}

h1 {
    font-family: var(--serif);
    font-size: clamp(2.2em, 4vw, 3.2em);
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}
h1 em {
    font-style: italic;
    color: var(--primary);
}

.hero-sub {
    color: var(--text-dim);
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 36px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    width: fit-content;
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 28px;
    gap: 4px;
}
.stat-num {
    font-family: var(--mono);
    font-size: 1.15em;
    font-weight: 500;
    color: var(--primary);
    letter-spacing: 2px;
}
.stat-label {
    font-size: 0.72em;
    color: var(--text-muted);
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--secondary);
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95em;
    text-decoration: none;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
}
.hero-cta:hover {
    background: #00ffb3;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--primary-glow);
}

/* HEX DISPLAY */
.header-visual {
    display: flex;
    justify-content: flex-end;
}
.hex-grid {
    width: 100%;
    max-width: 400px;
}
.hex-display {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    padding: 24px;
    font-family: var(--mono);
    font-size: 0.8em;
    position: relative;
    overflow: hidden;
}
.hex-display::before {
    content: 'HEX INSPECTOR v2.1';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 6px 16px;
    background: rgba(0, 229, 160, 0.08);
    border-bottom: 1px solid var(--border-strong);
    font-size: 0.7em;
    color: var(--primary);
    letter-spacing: 2px;
}
.hex-line {
    display: flex;
    gap: 16px;
    padding: 6px 0;
    padding-top: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    align-items: center;
}
.hex-line:first-child { margin-top: 28px; }
.hex-addr { color: var(--text-muted); min-width: 52px; }
.hex-bytes { color: var(--text-dim); }
.hex-corrupt {
    color: var(--danger);
    background: rgba(248, 113, 113, 0.12);
    padding: 1px 4px;
    border-radius: 3px;
    animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hex-label {
    margin-top: 14px;
    font-size: 0.7em;
    color: var(--danger);
    letter-spacing: 0.5px;
    text-align: center;
}

.header-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}
.header-wave svg { display: block; width: 100%; height: 80px; }

/* ========================
   TRUST BAR
======================== */
.trust-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    overflow: hidden;
}
.trust-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.trust-label {
    font-size: 0.78em;
    color: var(--text-muted);
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.trust-badges { display: flex; gap: 8px; }
.file-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-family: var(--mono);
    font-size: 0.75em;
    font-weight: 500;
    border: 1px solid;
    letter-spacing: 0.5px;
}
.file-badge.docx { color: #60a5fa; border-color: rgba(96, 165, 250, 0.3); background: rgba(96, 165, 250, 0.08); }
.file-badge.xlsx { color: #4ade80; border-color: rgba(74, 222, 128, 0.3); background: rgba(74, 222, 128, 0.08); }
.file-badge.pptx { color: var(--accent-orange); border-color: rgba(251, 146, 60, 0.3); background: rgba(251, 146, 60, 0.08); }
.file-badge.pdf { color: #f87171; border-color: rgba(248, 113, 113, 0.3); background: rgba(248, 113, 113, 0.08); }
.trust-sep { color: var(--border); }
.trust-secure { font-size: 0.8em; color: var(--primary); font-weight: 500; }

/* ========================
   LAYOUT
======================== */
.container {
    max-width: 1000px;
    margin: 0 auto 80px;
    padding: 0 24px;
}

/* ========================
   PROCESS SECTION
======================== */
.process-section {
    padding: 80px 0 60px;
    text-align: center;
}
.process-section h2, .faq-section h2, .why-section h2, .tech-section h2 {
    font-family: var(--serif);
    font-size: clamp(1.6em, 3vw, 2.2em);
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}
.section-sub {
    color: var(--text-muted);
    margin-bottom: 52px;
    font-size: 1em;
}

.process-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    justify-content: center;
}
.process-step {
    flex: 1;
    max-width: 280px;
    text-align: center;
    padding: 32px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border-color 0.3s, transform 0.3s;
}
.process-step:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
}
.step-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: var(--primary-dim);
    border-radius: 50%;
    margin-bottom: 20px;
    color: var(--primary);
}
.step-num {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary);
    color: var(--secondary);
    font-family: var(--mono);
    font-size: 0.65em;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0;
}
.process-step h3 {
    font-weight: 700;
    font-size: 1.05em;
    color: var(--white);
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}
.process-step p {
    font-size: 0.875em;
    color: var(--text-muted);
    line-height: 1.6;
}
.process-step code {
    font-family: var(--mono);
    color: var(--primary);
    font-size: 0.85em;
    background: var(--primary-dim);
    padding: 1px 5px;
    border-radius: 4px;
}
.process-arrow {
    align-self: center;
    font-size: 1.5em;
    color: var(--primary);
    padding: 0 8px;
    margin-top: -20px;
    opacity: 0.5;
}

/* ========================
   DIAGNOSTIC CARD
======================== */
.diagnostic-card {
    background: var(--surface);
    padding: 48px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(0, 229, 160, 0.05);
    margin-bottom: 60px;
}
.card-header { margin-bottom: 32px; }
.card-badges { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }

.expert-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-dim);
    color: var(--primary);
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.72em;
    font-weight: 600;
    font-family: var(--mono);
    letter-spacing: 0.5px;
    border: 1px solid var(--border-strong);
}
.badge-secure {
    background: rgba(56, 189, 248, 0.08);
    color: var(--accent-blue);
    border-color: rgba(56, 189, 248, 0.2);
}

.diagnostic-card h2 {
    font-family: var(--serif);
    font-size: 1.8em;
    color: var(--white);
    margin-bottom: 10px;
}
.diagnostic-card p {
    color: var(--text-muted);
    font-size: 0.9em;
    line-height: 1.6;
}

/* UPLOAD ZONE */
.upload-zone {
    border: 2px dashed rgba(0, 229, 160, 0.2);
    padding: 56px 24px;
    text-align: center;
    border-radius: 16px;
    transition: all 0.3s ease;
    background: rgba(0,0,0,0.3);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.upload-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--primary-dim), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}
.upload-zone:hover, .upload-zone:focus-within {
    border-color: var(--primary);
    outline: none;
}
.upload-zone:hover::before { opacity: 1; }

.upload-icon { color: var(--primary); margin-bottom: 16px; opacity: 0.7; }
.upload-icon svg { display: inline-block; }
.upload-main {
    font-size: 1.05em;
    color: var(--text);
    margin-bottom: 8px;
}
.upload-hint {
    font-size: 0.8em;
    color: var(--text-muted);
    font-family: var(--mono);
    letter-spacing: 0.3px;
}

/* PROGRESS */
.progress-container {
    margin: 32px 0;
    display: none;
}
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.85em;
    color: var(--text-dim);
    font-family: var(--mono);
}
#progress-pct { color: var(--primary); font-weight: 600; }

.progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
#fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), #00ffb3);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    position: relative;
}
.progress-glow {
    position: absolute;
    right: 0;
    top: -2px;
    width: 20px;
    height: 10px;
    background: var(--primary);
    filter: blur(6px);
    border-radius: 50%;
    opacity: 0.6;
}

.scan-steps {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.scan-step {
    font-family: var(--mono);
    font-size: 0.75em;
    color: var(--text-muted);
    transition: color 0.3s;
    letter-spacing: 0.3px;
}
.scan-step.active { color: var(--primary); }
.scan-step.done { color: var(--text-dim); }
.scan-step.done::before { content: '✓ '; color: var(--primary); }

/* VERDICT BOX */
.verdict-box {
    display: none;
    margin-top: 32px;
    padding: 28px 32px;
    border-radius: 14px;
    border: 1px solid var(--border);
    border-left: 4px solid;
    background: var(--surface-2);
    animation: slideUp 0.4s ease-out;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.verdict-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.verdict-icon { font-size: 1.4em; }
.verdict-type {
    font-family: var(--mono);
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}
#diag-text {
    font-size: 0.95em;
    line-height: 1.7;
    margin-bottom: 16px;
}
#diag-text code {
    font-family: var(--mono);
    font-size: 0.85em;
    background: rgba(0,0,0,0.3);
    padding: 1px 6px;
    border-radius: 4px;
    color: var(--primary);
}

.tech-details {
    font-family: var(--mono);
    font-size: 0.75em;
    color: var(--text-muted);
    background: rgba(0,0,0,0.3);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    line-height: 1.8;
    margin-bottom: 20px;
    display: none;
}

/* FIVERR BUTTON */
.btn-fiverr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary);
    color: var(--secondary);
    padding: 18px 24px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95em;
    box-shadow: 0 4px 24px var(--primary-glow);
    transition: all 0.25s ease;
    letter-spacing: 0.2px;
}
.btn-fiverr:hover {
    background: #00ffb3;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--primary-glow);
}
.btn-fiverr-icon { font-size: 1.1em; opacity: 0.7; }
.btn-fiverr-arrow { font-size: 1.2em; }

/* ========================
   WHY SECTION
======================== */
.why-section {
    padding: 60px 0;
}
.why-section h2 { margin-bottom: 40px; text-align: center; }
.why-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: start;
}
.why-col {
    background: var(--surface);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border);
}
.why-auto { border-top: 3px solid var(--danger); }
.why-manual { border-top: 3px solid var(--primary); }
.why-col h3 {
    font-size: 1em;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.2px;
}
.why-auto h3 { color: var(--danger); }
.why-manual h3 { color: var(--primary); }
.why-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.why-col li {
    font-size: 0.875em;
    color: var(--text-muted);
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}
.why-auto li::before { content: '✗ '; color: var(--danger); position: absolute; left: 0; }
.why-manual li::before { content: '✓ '; color: var(--primary); position: absolute; left: 0; }
.why-vs {
    align-self: center;
    font-family: var(--serif);
    font-size: 1.5em;
    color: var(--text-muted);
    font-style: italic;
    padding: 0 8px;
}

/* ========================
   TECH SECTION
======================== */
.tech-section {
    padding: 60px 0;
}
.tech-section h2 { margin-bottom: 32px; }

.tech-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px;
    width: fit-content;
}
.tech-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 0.875em;
    font-weight: 600;
    font-family: var(--sans);
    transition: all 0.2s;
    letter-spacing: 0.2px;
}
.tech-tab.active {
    background: var(--primary-dim);
    color: var(--primary);
    border: 1px solid var(--border-strong);
}
.tech-tab:hover:not(.active) { color: var(--text); }

.tech-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px;
}
.tech-diagram { text-align: center; }
.tech-node {
    display: inline-block;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 20px;
    font-family: var(--mono);
    font-size: 0.8em;
    margin: 6px;
    transition: border-color 0.3s;
    text-align: center;
    min-width: 140px;
}
.tech-node strong { display: block; color: var(--text); font-size: 0.9em; margin-bottom: 3px; }
.tech-node small { color: var(--text-muted); font-size: 0.78em; }
.node-zip { border-color: rgba(56, 189, 248, 0.3); }
.node-xml { border-color: var(--border); }
.node-pdf { border-color: rgba(248, 113, 113, 0.3); }
.node-corrupt {
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.04);
}
.corrupt-marker {
    display: block;
    font-size: 0.7em;
    color: var(--danger);
    margin-top: 6px;
    letter-spacing: 0.3px;
}
.tech-arrow {
    font-size: 1.5em;
    color: var(--text-muted);
    padding: 8px 0;
    display: block;
}
.tech-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.tech-desc {
    margin-top: 24px;
    font-size: 0.875em;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    background: rgba(0,0,0,0.2);
    border-left: 3px solid var(--primary);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
}

/* ========================
   FAQ SECTION
======================== */
.faq-section {
    padding: 60px 0;
    border-top: 1px solid var(--border);
}
.faq-section h2 { margin-bottom: 36px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-item:hover { border-color: rgba(255,255,255,0.12); }

.faq-item summary {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95em;
    color: var(--text);
    list-style: none;
    transition: color 0.2s;
    gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { color: var(--primary); }
.faq-chevron {
    color: var(--text-muted);
    font-size: 1.1em;
    transition: transform 0.3s;
    flex-shrink: 0;
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--primary); }

.faq-body {
    padding: 0 24px 20px;
    animation: slideUp 0.25s ease-out;
}
.faq-body p {
    font-size: 0.875em;
    color: var(--text-muted);
    line-height: 1.75;
}
.faq-body code {
    font-family: var(--mono);
    font-size: 0.85em;
    color: var(--primary);
    background: var(--primary-dim);
    padding: 1px 5px;
    border-radius: 4px;
}

/* ========================
   FOOTER
======================== */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 48px 24px;
    text-align: center;
}
.footer-inner { max-width: 600px; margin: 0 auto; }
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    font-size: 1em;
}
.footer-brand .logo-icon { color: var(--primary); }
.footer-desc {
    font-size: 0.85em;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 24px;
}
.footer-links a {
    font-size: 0.85em;
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.2s;
}
.footer-links a:hover { opacity: 0.7; }
.footer-copy {
    font-size: 0.78em;
    color: var(--text-muted);
    font-family: var(--mono);
}

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 900px) {
    .nav-bar { padding: 14px 20px; }
    .nav-center { display: none; }
    .header { padding: 72px 24px 120px; }
    .header-grid { grid-template-columns: 1fr; gap: 40px; }
    .header-visual { justify-content: center; }
    .hex-grid { max-width: 100%; }
    .hero-stats { flex-wrap: wrap; }
    .trust-bar-inner { padding: 0 20px; }
    .container { padding: 0 16px; }
    .process-steps { flex-direction: column; align-items: center; }
    .process-arrow { transform: rotate(90deg); padding: 0; margin: 0; }
    .process-step { max-width: 100%; width: 100%; }
    .why-grid { grid-template-columns: 1fr; }
    .why-vs { text-align: center; padding: 8px; }
    .diagnostic-card { padding: 28px 20px; }
    .tech-row { flex-direction: column; align-items: center; }
}

@media (max-width: 540px) {
    h1 { font-size: 2em; }
    .hero-stats { width: 100%; }
    .stat-item { flex: 1; padding: 14px 12px; }
}

/* ========================
   CASES SECTION
======================== */
.cases-section {
    padding: 60px 0;
    border-top: 1px solid var(--border);
}
.cases-section h2 { margin-bottom: 12px; }

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.case-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: border-color 0.25s, transform 0.25s;
}
.case-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.case-type {
    font-family: var(--mono);
    font-size: 0.72em;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    letter-spacing: 1px;
}
.docx-type { background: rgba(96,165,250,0.12); color: #60a5fa; border: 1px solid rgba(96,165,250,0.25); }
.xlsx-type { background: rgba(74,222,128,0.12); color: #4ade80; border: 1px solid rgba(74,222,128,0.25); }
.pdf-type  { background: rgba(248,113,113,0.12); color: #f87171; border: 1px solid rgba(248,113,113,0.25); }

.case-status {
    font-size: 0.75em;
    font-weight: 600;
    color: var(--primary);
}

.case-situation {
    font-size: 0.875em;
    color: var(--text-muted);
    line-height: 1.65;
    font-style: italic;
    margin-bottom: 20px;
    padding-left: 14px;
    border-left: 2px solid var(--border);
}

.case-result {
    font-size: 0.82em;
    display: flex;
    gap: 6px;
    align-items: flex-start;
    background: var(--primary-dim);
    border: 1px solid var(--border-strong);
    padding: 10px 14px;
    border-radius: 8px;
}
.result-label {
    color: var(--primary);
    font-weight: 700;
    white-space: nowrap;
    font-family: var(--mono);
}
.case-result span:last-child { color: var(--text-dim); }

.cases-cta {
    text-align: center;
}
