/* ═══════════════════════════════════════════
   THE WORLD IS SCARY — Brochure / Pre-Launch
   Dark Editorial: Apple × LCARS
   ═══════════════════════════════════════════ */

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

:root {
    --bg0: #0c0c10;
    --bg1: #131318;
    --bg2: #1a1a21;
    --bg3: #222230;
    --bg4: #2c2c3a;
    --border: rgba(140,140,180,0.08);
    --border-med: rgba(140,140,180,0.14);
    --text0: #f0eeeb;
    --text1: #c4c1bb;
    --text2: #8e8b85;
    --text3: #5e5c58;
    --accent: #d4883a;
    --accent-hover: #e09748;
    --accent-muted: rgba(212,136,58,0.10);
    --accent-border: rgba(212,136,58,0.25);
    --accent-glow: rgba(212,136,58,0.06);
    --lc-blue: #5b8dd9;
    --lc-teal: #4fc3b0;
    --lc-amber: #d4a03a;
    --lc-coral: #d46a5b;
    --lc-lavender: #9b8ec4;
    --safe: #4ead6b;
    --moderate: #c9a227;
    --high: #d47835;
    --severe: #c04040;
}

::selection { background: rgba(212,136,58,0.33); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg1); }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 3px; }

body {
    background: var(--bg0);
    color: var(--text0);
    font-family: 'DM Sans', -apple-system, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Animations ── */
@keyframes scanline {
    0% { top: -2px; }
    100% { top: 100%; }
}

@keyframes pipPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    opacity: 0;
    animation: fadeInUp 0.7s cubic-bezier(0.22,1,0.36,1) forwards;
    animation-delay: var(--delay, 0s);
}

/* ── Scan Line ── */
.scanline-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none; z-index: 9999; overflow: hidden; opacity: 0.015;
}
.scanline {
    position: absolute; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212,136,58,0.5), transparent);
    animation: scanline 8s linear infinite;
}

/* ── Pip ── */
.pip {
    display: inline-block; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.pip-pulse { animation: pipPulse 2s ease-in-out infinite; }
.pip-teal { background: var(--lc-teal); box-shadow: 0 0 6px rgba(79,195,176,0.4); }
.pip-accent { background: var(--accent); box-shadow: 0 0 6px rgba(212,136,58,0.4); }
.pip-safe { background: var(--safe); box-shadow: 0 0 6px rgba(78,173,107,0.4); }
.pip-blue { background: var(--lc-blue); box-shadow: 0 0 6px rgba(91,141,217,0.4); }
.pip-amber { background: var(--lc-amber); box-shadow: 0 0 6px rgba(212,160,58,0.4); }
.pip-lavender { background: var(--lc-lavender); box-shadow: 0 0 6px rgba(155,142,196,0.4); }

/* ── Navbar ── */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 32px; border-bottom: 1px solid var(--border);
    background: rgba(19,19,24,0.93); backdrop-filter: blur(16px);
    position: sticky; top: 0; z-index: 100;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
    width: 32px; height: 26px; border-radius: 6px 12px 12px 6px;
    background: linear-gradient(135deg, var(--accent), rgba(212,136,58,0.73));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 12px rgba(212,136,58,0.13);
    font-size: 13px; font-weight: 800; color: #fff;
    font-family: 'JetBrains Mono', monospace;
}
.logo-title {
    font-family: 'DM Serif Display', serif; font-size: 17px;
    color: var(--text0); line-height: 1.1;
}
.logo-subtitle {
    font-family: 'JetBrains Mono', monospace; font-size: 8.5px;
    color: var(--text3); letter-spacing: 1px;
    display: flex; align-items: center; gap: 6px;
}
.nav-badge {
    font-family: 'JetBrains Mono', monospace; font-size: 10px;
    color: var(--accent); background: var(--accent-muted);
    border: 1px solid var(--accent-border); padding: 5px 14px;
    border-radius: 999px; letter-spacing: 0.5px; font-weight: 500;
}

/* ── Hero ── */
.hero {
    text-align: center; padding: 68px 24px 44px; position: relative;
}
.hero-glow {
    position: absolute; top: 25%; left: 50%; transform: translate(-50%,-50%);
    width: 700px; height: 500px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 60%);
    pointer-events: none;
}
.hero-label {
    font-family: 'JetBrains Mono', monospace; font-size: 11px;
    color: var(--accent); letter-spacing: 2px; margin-bottom: 18px;
    font-weight: 500; display: flex; align-items: center;
    justify-content: center; gap: 8px;
}
.hero-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(34px, 5.5vw, 60px);
    color: var(--text0); line-height: 1.15; font-weight: 400;
    max-width: 660px; margin: 0 auto 18px;
}
.hero-sub {
    font-size: 16.5px; color: var(--text2); max-width: 500px;
    margin: 0 auto 32px; line-height: 1.65;
}

/* ── Vertical Tabs ── */
.verticals {
    display: flex; gap: 7px; justify-content: center;
    flex-wrap: wrap; margin-bottom: 28px; padding: 0 16px;
}
.vtab {
    display: flex; align-items: center; gap: 7px; padding: 9px 16px;
    border-radius: 999px; border: 1px solid var(--border);
    background: transparent; color: var(--text2);
    font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 400;
    cursor: default; transition: all 0.15s; white-space: nowrap;
}
.vtab-active {
    border-color: var(--accent-border); background: var(--accent-muted);
    color: var(--accent); font-weight: 600;
}
.vtab-count {
    font-family: 'JetBrains Mono', monospace; font-size: 9px;
    color: var(--text3); background: var(--bg4); padding: 1px 6px;
    border-radius: 999px; margin-left: 2px;
}
.vtab-count-active {
    color: var(--accent); background: rgba(212,136,58,0.13);
}

/* ── Search / Email Bar ── */
.email-capture {
    display: flex; justify-content: center;
}
.search-bar {
    display: flex; max-width: 640px; width: 100%;
    border: 1.5px solid var(--border-med); border-radius: 16px;
    overflow: hidden; background: var(--bg2); transition: all 0.25s;
}
.search-bar:focus-within {
    border-color: rgba(212,136,58,0.4);
    box-shadow: 0 0 20px rgba(212,136,58,0.08), 0 0 40px rgba(212,136,58,0.04);
}
.search-icon {
    display: flex; align-items: center; padding: 0 16px; color: var(--text3);
}
.search-bar input {
    flex: 1; background: transparent; border: none; outline: none;
    color: var(--text0); font-family: 'DM Sans', sans-serif;
    font-size: 15px; padding: 15px 8px;
}
.search-bar input::placeholder { color: var(--text3); }
.search-btn {
    background: linear-gradient(135deg, var(--accent), rgba(212,136,58,0.87));
    border: none; color: #fff; font-family: 'DM Sans', sans-serif;
    font-size: 14px; font-weight: 600; padding: 0 28px;
    cursor: pointer; transition: all 0.2s;
}
.search-btn:hover { background: linear-gradient(135deg, var(--accent-hover), var(--accent)); }

.form-success {
    display: flex; align-items: center; gap: 10px; justify-content: center;
    font-family: 'JetBrains Mono', monospace; font-size: 13px;
    color: var(--safe); padding: 16px 0;
}

/* ── Agencies ── */
.agencies {
    margin-top: 24px; display: flex; justify-content: center;
    gap: 20px; flex-wrap: wrap; opacity: 0.5;
}
.agencies span {
    font-family: 'JetBrains Mono', monospace; font-size: 10px;
    color: var(--text3); letter-spacing: 1.5px;
}

/* ── Metrics ── */
.metrics {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
    padding: 12px 32px 52px; max-width: 880px; margin: 0 auto;
}
.metric-panel {
    background: var(--bg2); border-radius: 4px 20px 20px 4px;
    border: 1px solid var(--border); padding: 18px 20px 18px 18px;
    flex: 1 1 180px; min-width: 155; position: relative; overflow: hidden;
}
.metric-bar {
    position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: linear-gradient(180deg, var(--lc-color), color-mix(in srgb, var(--lc-color) 27%, transparent));
    border-radius: 4px 0 0 4px;
}
.metric-content { padding-left: 8px; }
.metric-value {
    font-family: 'DM Serif Display', serif; font-size: 30px;
    color: var(--text0); line-height: 1; margin-bottom: 5px;
}
.metric-label { font-size: 12px; color: var(--text2); font-weight: 500; }
.metric-sub {
    display: flex; align-items: center; gap: 5px; margin-top: 4px;
    font-family: 'JetBrains Mono', monospace; font-size: 9.5px; color: var(--text3);
}

/* ── How It Works ── */
.how-it-works {
    max-width: 880px; margin: 0 auto; padding: 48px 24px 80px;
    border-top: 1px solid var(--border);
}
.section-header { text-align: center; margin-bottom: 44px; }
.section-title {
    font-family: 'DM Serif Display', serif; font-size: 30px;
    color: var(--text0); margin-bottom: 8px;
}
.section-sub { font-size: 15px; color: var(--text2); }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card {
    background: var(--bg2); border-radius: 4px 20px 20px 4px;
    border: 1px solid var(--border); position: relative; overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.step-bar {
    position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: linear-gradient(180deg, var(--lc-color), color-mix(in srgb, var(--lc-color) 27%, transparent));
}
.step-content { padding: 28px 24px 24px 28px; }
.step-number {
    font-family: 'JetBrains Mono', monospace; font-size: 11px;
    color: var(--lc-color); letter-spacing: 1px; margin-bottom: 12px;
}
.step-title {
    font-family: 'DM Sans', sans-serif; font-size: 18px;
    color: var(--text0); font-weight: 600; margin-bottom: 8px;
}
.step-desc { font-size: 13px; color: var(--text2); line-height: 1.65; }

/* ── Findings Preview ── */
.preview-section {
    max-width: 700px; margin: 0 auto; padding: 0 24px 80px;
}
.findings-preview { display: flex; flex-direction: column; gap: 0; }
.finding-card {
    display: flex; gap: 14px; padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.finding-severity {
    width: 3px; min-height: 40px; border-radius: 2px; flex-shrink: 0; margin-top: 2px;
}
.finding-critical { background: var(--severe); }
.finding-high { background: var(--high); }
.finding-medium { background: var(--moderate); }
.finding-low { background: var(--safe); }
.finding-body { flex: 1; }
.finding-header {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}
.finding-title {
    font-size: 14.5px; color: var(--text0); font-weight: 500; line-height: 1.35;
}
.finding-badge {
    font-family: 'JetBrains Mono', monospace; font-size: 9.5px;
    font-weight: 600; letter-spacing: 0.5px; padding: 3px 8px;
    border-radius: 4px; flex-shrink: 0; white-space: nowrap;
}
.badge-critical { color: var(--severe); background: rgba(192,64,64,0.07); }
.badge-high { color: var(--high); background: rgba(212,120,53,0.07); }
.badge-medium { color: var(--moderate); background: rgba(201,162,39,0.07); }
.badge-low { color: var(--safe); background: rgba(78,173,107,0.07); }
.finding-source {
    font-family: 'JetBrains Mono', monospace; font-size: 9.5px;
    color: var(--text3); margin-top: 5px;
}

/* ── Data Sources ── */
.sources-section {
    max-width: 880px; margin: 0 auto; padding: 0 24px 80px;
}
.section-label {
    display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
    justify-content: center;
}
.label-bar {
    width: 3px; height: 16px; border-radius: 2px;
    box-shadow: 0 0 8px rgba(91,141,217,0.2);
}
.section-label span {
    font-family: 'DM Sans', sans-serif; font-size: 12px;
    color: var(--text2); letter-spacing: 1.5px; font-weight: 600;
}
.sources-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.source-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border);
}
.source-item:nth-child(odd) { background: var(--bg3); }
.source-name { font-size: 12px; color: var(--text1); }
.source-agency {
    font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--text3);
}

/* ── Bottom CTA ── */
.bottom-cta {
    text-align: center; padding: 60px 24px 80px;
    border-top: 1px solid var(--border);
    max-width: 640px; margin: 0 auto;
}
.cta-title {
    font-family: 'DM Serif Display', serif; font-size: 28px;
    color: var(--text0); margin-bottom: 8px;
}
.cta-sub { font-size: 15px; color: var(--text2); margin-bottom: 28px; }
.cta-form { margin: 0 auto; }

/* ── Footer ── */
.footer {
    border-top: 1px solid var(--border); padding: 28px 32px;
    display: flex; justify-content: space-between; align-items: center;
}
.footer-left { display: flex; align-items: center; gap: 10px; }
.footer-logo-mark {
    width: 24px; height: 20px; border-radius: 5px 10px 10px 5px;
    background: linear-gradient(135deg, var(--accent), rgba(212,136,58,0.73));
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 800; color: #fff;
    font-family: 'JetBrains Mono', monospace;
}
.footer-brand {
    font-family: 'DM Serif Display', serif; font-size: 14px; color: var(--text3);
}
.footer-credit {
    font-family: 'JetBrains Mono', monospace; font-size: 9px;
    color: var(--text3); margin-left: 8px;
}
.footer-right { display: flex; align-items: center; gap: 8px; }
.footer-note {
    font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text3);
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .navbar { padding: 12px 16px; }
    .hero { padding: 48px 16px 32px; }
    .hero-title { font-size: clamp(28px, 8vw, 42px); }
    .verticals { gap: 5px; padding: 0 8px; }
    .vtab { padding: 7px 12px; font-size: 12px; }
    .metrics { padding: 12px 16px 40px; }
    .metric-panel { min-width: calc(50% - 8px); }
    .steps-grid { grid-template-columns: 1fr; }
    .sources-grid { grid-template-columns: 1fr 1fr; }
    .finding-header { flex-direction: column; gap: 6px; }
    .footer { flex-direction: column; gap: 12px; text-align: center; }
    .footer-left { flex-wrap: wrap; justify-content: center; }
    .search-bar { flex-direction: column; border-radius: 12px; }
    .search-icon { padding: 12px 16px 0; }
    .search-bar input { padding: 12px 16px; }
    .search-btn { padding: 14px 28px; border-radius: 0 0 10px 10px; }
}

@media (max-width: 480px) {
    .verticals { display: none; }
    .agencies { display: none; }
    .sources-grid { grid-template-columns: 1fr; }
    .metric-panel { min-width: 100%; }
}
