/* ============================================================
   EXPERANOS Research & Innovation
   Design system: deep-navy brand frame, light content surfaces
   ============================================================ */

:root {
    /* Brand */
    --navy-950: #050b1a;
    --navy-900: #0a1530;
    --navy-800: #10203f;
    --navy-700: #1a2f56;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --cyan-500: #06b6d4;
    --cyan-400: #22d3ee;
    --gold-400: #f5b301;

    /* Light surfaces */
    --bg: #f6f8fb;
    --surface: #ffffff;
    --surface-2: #eef2f8;
    --ink: #0f1a2e;
    --ink-soft: #33415c;
    --muted: #5b6b85;
    --line: #dde4ee;

    /* On-dark */
    --on-dark: #f2f6fc;
    --on-dark-muted: #9fb0ca;
    --line-dark: rgba(255, 255, 255, 0.12);

    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(15, 26, 46, 0.05), 0 8px 24px rgba(15, 26, 46, 0.07);
    --shadow-lg: 0 2px 4px rgba(15, 26, 46, 0.06), 0 20px 48px rgba(15, 26, 46, 0.12);
    --maxw: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    font-size: 16.5px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.015em; line-height: 1.15; color: inherit; }
p { color: inherit; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; display: block; }
ul, ol { padding-left: 1.2rem; }

::selection { background: rgba(37, 99, 235, 0.2); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Kickers, badges, chips ---------- */
.kicker {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--blue-600); margin-bottom: 1rem;
}
.on-dark .kicker { color: var(--cyan-400); }
.kicker::before { content: ''; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }

.chip {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.32rem 0.8rem; border-radius: 100px;
    border: 1px solid var(--line); background: var(--surface);
    font-size: 0.82rem; font-weight: 500; color: var(--ink-soft);
    white-space: nowrap;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
a.chip { text-decoration: none !important; }
a.chip:hover { border-color: var(--cyan-400); color: var(--cyan-400); }
.on-dark .chip { background: rgba(255,255,255,0.06); border-color: var(--line-dark); color: var(--on-dark-muted); }

.pic-badge {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-family: var(--font-mono); font-size: 0.85rem; font-weight: 500;
    padding: 0.5rem 1rem; border-radius: var(--radius-sm);
    background: rgba(245, 179, 1, 0.1); border: 1px solid rgba(245, 179, 1, 0.35);
    color: var(--gold-400);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    padding: 0.8rem 1.5rem; border-radius: 10px;
    font-weight: 600; font-size: 0.95rem; font-family: var(--font-body);
    text-decoration: none !important; cursor: pointer; border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35); }
.btn-primary:hover { background: #1d4fd7; box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45); }

.btn-gold { background: var(--gold-400); color: #241a00; box-shadow: 0 6px 18px rgba(245, 179, 1, 0.3); }
.btn-gold:hover { background: #ffc41a; }

.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--blue-600); color: var(--blue-600); }
.on-dark .btn-outline { border-color: var(--line-dark); color: var(--on-dark); }
.on-dark .btn-outline:hover { border-color: var(--cyan-400); color: var(--cyan-400); }

/* ---------- Navbar ---------- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(5, 11, 26, 0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-dark);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 72px; }
.nav-logo img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.15rem; list-style: none; padding: 0; }
.nav-links a {
    color: var(--on-dark-muted); font-size: 0.88rem; font-weight: 500; text-decoration: none;
    transition: color 0.15s ease; padding: 0.35rem 0;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-links a[aria-current="page"] { box-shadow: 0 2px 0 var(--cyan-400); }
.nav-cta { flex: none; }
.nav-cta .btn { padding: 0.6rem 1.15rem; font-size: 0.88rem; }

.nav-toggle {
    display: none; background: none; border: 1px solid var(--line-dark); border-radius: 8px;
    color: var(--on-dark); width: 42px; height: 42px; cursor: pointer;
    align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1220px) {
    .nav-toggle { display: inline-flex; }
    .nav-links {
        position: fixed; top: 72px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--navy-950); border-bottom: 1px solid var(--line-dark);
        padding: 0.75rem 1.5rem 1.25rem; display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 0.8rem 0.25rem; border-bottom: 1px solid rgba(255,255,255,0.06); display: block; }
    .nav-links a[aria-current="page"] { box-shadow: none; color: var(--cyan-400); }
    .nav-cta { display: none; }
}

/* ---------- Dark sections (hero, bands, footer) ---------- */
.on-dark { background: var(--navy-950); color: var(--on-dark); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark p { color: var(--on-dark-muted); }
.on-dark a:not(.btn) { color: var(--cyan-400); }

.hero {
    position: relative; overflow: hidden;
    padding: 170px 0 90px;
    background:
        radial-gradient(900px 420px at 78% -10%, rgba(37, 99, 235, 0.28), transparent 65%),
        radial-gradient(700px 380px at 12% 110%, rgba(6, 182, 212, 0.16), transparent 60%),
        var(--navy-950);
}
.hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 30%, transparent 75%);
}
.hero .container { position: relative; z-index: 2; }

.hero h1 {
    font-size: clamp(2.3rem, 4.6vw, 3.7rem);
    margin: 0.4rem 0 1.4rem; max-width: 850px;
}
.hero h1 .accent {
    background: linear-gradient(100deg, var(--cyan-400), var(--blue-500));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .lede { font-size: 1.18rem; max-width: 720px; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.4rem; }

.page-hero { padding: 150px 0 64px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0.4rem 0 1rem; max-width: 820px; }
.page-hero .lede { font-size: 1.12rem; max-width: 740px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin-bottom: 0.9rem; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.on-dark .section-head p { color: var(--on-dark-muted); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.8rem; box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex; flex-direction: column; gap: 0.7rem;
}
a.card { color: inherit; text-decoration: none !important; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #c9d6ea; }
.card h3 { font-size: 1.18rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .chip-row { margin-top: auto; padding-top: 0.6rem; }

.card-icon {
    width: 46px; height: 46px; border-radius: 12px; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(6,182,212,0.12));
    border: 1px solid rgba(37, 99, 235, 0.2); color: var(--blue-600);
}
.card-icon svg { width: 23px; height: 23px; }

.card-link { margin-top: auto; font-weight: 600; font-size: 0.92rem; color: var(--blue-600); display: inline-flex; align-items: center; gap: 0.35rem; }

.on-dark .card { background: rgba(255,255,255,0.04); border-color: var(--line-dark); box-shadow: none; }
.on-dark .card p { color: var(--on-dark-muted); }
.on-dark .card:hover { border-color: rgba(34, 211, 238, 0.4); }

/* ---------- Stats ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
@media (max-width: 900px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: left; padding: 1.4rem 1.6rem; border-left: 3px solid var(--blue-600); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; box-shadow: var(--shadow); }
.stat .num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.stat .label { font-size: 0.88rem; color: var(--muted); margin-top: 0.3rem; }
.on-dark .stat { background: rgba(255,255,255,0.04); border-left-color: var(--cyan-400); box-shadow: none; }
.on-dark .stat .num { color: #fff; }
.on-dark .stat .label { color: var(--on-dark-muted); }

/* ---------- Fact table ---------- */
.fact-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.fact-table th, .fact-table td { padding: 0.9rem 1.3rem; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.96rem; vertical-align: top; }
.fact-table tr:last-child th, .fact-table tr:last-child td { border-bottom: none; }
.fact-table th { width: 250px; color: var(--muted); font-weight: 600; background: var(--surface-2); }
.fact-table td { color: var(--ink); }
.fact-table .mono { font-family: var(--font-mono); font-size: 0.9rem; }
@media (max-width: 640px) {
    .fact-table th { width: 130px; }
    .fact-table th, .fact-table td { padding: 0.75rem 0.9rem; font-size: 0.88rem; }
}

/* ---------- TRL ladder ---------- */
.trl-ladder { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.6rem; margin-top: 2rem; }
@media (max-width: 800px) { .trl-ladder { grid-template-columns: 1fr; } }
.trl-step { padding: 1.1rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); position: relative; }
.trl-step .trl-num { font-family: var(--font-mono); font-weight: 700; font-size: 0.8rem; color: var(--blue-600); }
.trl-step h4 { font-size: 0.98rem; margin: 0.3rem 0 0.2rem; }
.trl-step p { font-size: 0.83rem; color: var(--muted); }
.trl-step.active { border-color: var(--blue-600); background: linear-gradient(160deg, rgba(37,99,235,0.06), rgba(6,182,212,0.05)); }
.trl-step.active::before { content: 'WE OPERATE HERE'; position: absolute; top: -0.65rem; left: 0.8rem; font-size: 0.6rem; letter-spacing: 0.1em; font-weight: 700; color: #fff; background: var(--blue-600); padding: 0.15rem 0.5rem; border-radius: 4px; }

/* ---------- Copy blocks (partner profile boilerplate) ---------- */
.copyblock { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.copyblock-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 1.3rem; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.copyblock-head .title { font-weight: 700; font-size: 0.9rem; }
.copyblock-head .meta { font-size: 0.78rem; color: var(--muted); }
.copyblock-body { padding: 1.3rem 1.5rem; font-size: 0.95rem; color: var(--ink-soft); }
.copyblock-body p + p { margin-top: 0.8rem; }
.btn-copy {
    display: inline-flex; align-items: center; gap: 0.4rem; flex: none;
    background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
    padding: 0.42rem 0.9rem; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft);
    cursor: pointer; font-family: var(--font-body); transition: all 0.15s ease;
}
.btn-copy:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn-copy.copied { border-color: #16a34a; color: #16a34a; }
.btn-copy svg { width: 15px; height: 15px; }

/* ---------- FAQ ---------- */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 0.8rem; overflow: hidden; }
.faq summary { padding: 1.05rem 1.4rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-mono); font-size: 1.2rem; color: var(--blue-600); flex: none; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 1.4rem 1.2rem; color: var(--muted); font-size: 0.96rem; }
.faq .faq-body p + p { margin-top: 0.7rem; }

/* ---------- Video cards ---------- */
.video-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.video-card video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--navy-900); }
.video-card .video-info { padding: 1.3rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.video-card h3 { font-size: 1.1rem; }
.video-card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Pilot / feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 3rem 0; border-bottom: 1px solid var(--line); }
.feature-row:last-child { border-bottom: none; }
@media (max-width: 900px) { .feature-row { grid-template-columns: 1fr; gap: 1.5rem; } }
.feature-row h3 { font-size: 1.45rem; margin-bottom: 0.8rem; }
.feature-row p { color: var(--muted); }
.feature-row .visual { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }

.check-list { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-direction: column; gap: 0.55rem; }
.check-list li { padding-left: 1.7rem; position: relative; color: var(--ink-soft); font-size: 0.96rem; }
.check-list li::before {
    content: ''; position: absolute; left: 0; top: 0.32em; width: 16px; height: 16px;
    background: rgba(22, 163, 74, 0.12); border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    background-size: 10px; background-position: center; background-repeat: no-repeat;
}
.on-dark .check-list li { color: var(--on-dark-muted); }

/* ---------- Keyword bank ---------- */
.kw-group { margin-bottom: 1.6rem; }
.kw-group h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.7rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(115deg, var(--navy-900), var(--navy-800) 55%, #123a63); }
.cta-band .container { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; padding-top: 64px; padding-bottom: 64px; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 0.6rem; max-width: 560px; }
.cta-band p { color: var(--on-dark-muted); max-width: 520px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Articles (insights) ---------- */
.article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2.6rem 2.8rem; margin-bottom: 2.5rem; }
@media (max-width: 640px) { .article { padding: 1.6rem 1.3rem; } }
.article h2 { font-size: 1.6rem; margin: 0.5rem 0 1.2rem; }
.article h3 { font-size: 1.15rem; margin: 1.6rem 0 0.6rem; }
.article p { color: var(--ink-soft); margin-bottom: 0.9rem; font-size: 0.99rem; }
.article ul, .article ol { color: var(--ink-soft); margin: 0.5rem 0 1rem; font-size: 0.99rem; }
.article li { margin-bottom: 0.35rem; }
.article .tag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--cyan-500); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.form-field input, .form-field select, .form-field textarea {
    padding: 0.75rem 0.95rem; border-radius: var(--radius-sm); border: 1px solid var(--line);
    background: var(--surface); font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-status { margin-top: 1rem; font-size: 0.92rem; font-weight: 600; display: none; }
.form-status.ok { display: block; color: #16a34a; }
.form-status.err { display: block; color: #dc2626; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: var(--on-dark-muted); border-top: 1px solid var(--line-dark); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 3rem; padding-bottom: 3rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.footer a { color: var(--on-dark-muted); font-size: 0.92rem; }
.footer a:hover { color: #fff; text-decoration: none; }
.footer .footer-logo img { height: 36px; width: auto; margin-bottom: 1rem; }
.footer .legal-facts { font-size: 0.88rem; line-height: 1.8; }
.footer .legal-facts .mono { font-family: var(--font-mono); font-size: 0.82rem; color: var(--cyan-400); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 1.4rem 0; font-size: 0.82rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.footer-bottom .eu-note { display: flex; align-items: center; gap: 0.5rem; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   High-tech visual layer
   ============================================================ */

/* Neural network canvas behind hero */
.neural-canvas { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.55; }
.hero .container { z-index: 2; }

/* Hero split layout (text + vision console) */
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: center; }
@media (max-width: 1024px) { .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

/* Vision console (video + HUD overlay) */
.console-card {
    background: #050a16; border: 1px solid rgba(34, 211, 238, 0.25); border-radius: var(--radius);
    overflow: hidden; box-shadow: 0 0 60px rgba(6, 182, 212, 0.12), 0 24px 60px rgba(0, 0, 0, 0.5);
}
.console-head {
    display: flex; align-items: center; gap: 0.5rem; padding: 0.65rem 1rem;
    background: #0a1222; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-mono); font-size: 0.72rem; color: #7dd3fc;
}
.console-head .dot { width: 10px; height: 10px; border-radius: 50%; }
.console-head .dot.r { background: #ff5f56; } .console-head .dot.y { background: #ffbd2e; } .console-head .dot.g { background: #27c93f; }
.console-head .title { margin-left: 0.6rem; letter-spacing: 0.06em; }
.console-head .live { margin-left: auto; color: #34d399; display: inline-flex; align-items: center; gap: 0.35rem; }
.console-head .live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; animation: livepulse 1.6s ease-in-out infinite; }
@keyframes livepulse { 50% { opacity: 0.35; } }

.console-stage { position: relative; background: #000; }
.console-stage video, .console-stage .detect-sim { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.hud-overlay { position: absolute; inset: 0; pointer-events: none; }
.hud-frame { position: absolute; inset: 10px; }
.hud-frame::before, .hud-frame::after,
.hud-frame b::before, .hud-frame b::after {
    content: ''; position: absolute; width: 22px; height: 22px;
    border: 2px solid rgba(34, 211, 238, 0.85);
}
.hud-frame::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.hud-frame::after { top: 0; right: 0; border-left: none; border-bottom: none; }
.hud-frame b::before { bottom: 0; left: 0; border-right: none; border-top: none; }
.hud-frame b::after { bottom: 0; right: 0; border-left: none; border-top: none; }
.hud-scan {
    position: absolute; left: 0; right: 0; top: 0; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.8), transparent);
    animation: hudscan 4.5s ease-in-out infinite; opacity: 0.7;
}
@keyframes hudscan { 0% { top: 4%; } 50% { top: 94%; } 100% { top: 4%; } }
.hud-label {
    position: absolute; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em;
    color: #a5f3fc; background: rgba(5, 10, 22, 0.75); border: 1px solid rgba(34, 211, 238, 0.4);
    padding: 0.18rem 0.5rem; border-radius: 4px;
}
.console-telemetry {
    display: flex; flex-wrap: wrap; gap: 1.4rem; padding: 0.8rem 1.1rem;
    background: #0a1222; border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-mono); font-size: 0.72rem; color: #64748b;
}
.console-telemetry b { color: #22d3ee; font-weight: 500; min-width: 4.5ch; display: inline-block; }
.console-note { padding: 0.45rem 1.1rem 0.9rem; background: #0a1222; font-size: 0.68rem; color: #475569; font-family: var(--font-mono); }

/* Keyword marquee */
.marquee { overflow: hidden; padding: 1.1rem 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); background: var(--navy-950); position: relative; z-index: 2; }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.18em; color: #4d648c; white-space: nowrap; }
.marquee-track span b { color: #7896c4; font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Terminal (typewriter) */
.terminal { background: #0b1120; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.terminal-head { display: flex; align-items: center; gap: 0.5rem; padding: 0.65rem 1rem; background: #101a30; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.terminal-head .dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-head .file { margin-left: auto; font-family: var(--font-mono); font-size: 0.72rem; color: #64748b; }
.terminal-body {
    padding: 1.2rem 1.4rem; font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.7;
    color: #c9d8f0; min-height: 320px; white-space: pre-wrap; word-break: break-word;
}
.terminal-body .t-cursor { display: inline-block; width: 7px; height: 15px; background: var(--cyan-400); vertical-align: text-bottom; animation: tblink 1s steps(1) infinite; }
@keyframes tblink { 50% { opacity: 0; } }

/* Animated technical diagrams (SVG) */
.diagram-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; }
.diagram-card svg { width: 100%; height: auto; display: block; }
.diagram-card .caption { font-size: 0.8rem; color: var(--muted); margin-top: 0.8rem; font-family: var(--font-mono); }
.dg-box { fill: #f2f6fc; stroke: #c6d3e8; }
.dg-box-hi { fill: rgba(37, 99, 235, 0.08); stroke: var(--blue-600); }
.dg-label { font-family: 'Inter', sans-serif; font-size: 11.5px; font-weight: 600; fill: var(--ink); }
.dg-sub { font-family: 'JetBrains Mono', monospace; font-size: 8.5px; fill: var(--muted); }
.dg-flow { stroke: var(--blue-600); stroke-width: 1.6; fill: none; stroke-dasharray: 5 5; animation: dgflow 1.1s linear infinite; }
.dg-flow.cyan { stroke: var(--cyan-500); }
.dg-node { fill: var(--blue-600); animation: dgpulse 2.4s ease-in-out infinite; }
@keyframes dgflow { to { stroke-dashoffset: -20; } }
@keyframes dgpulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }

/* Framed imagery */
.img-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.img-frame img { width: 100%; display: block; max-height: 440px; object-fit: cover; }
.on-dark .img-frame { border-color: rgba(34, 211, 238, 0.25); box-shadow: 0 0 70px rgba(37, 99, 235, 0.25); }


/* ============================================================
   God-mode interface layer
   ============================================================ */

/* Boot sequence (index only, once per session) */
#boot-screen {
    position: fixed; inset: 0; z-index: 6000; background: #02040a;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    font-family: var(--font-mono); color: var(--cyan-400);
    animation: bootAway 0.5s ease 3.4s forwards;
}
#boot-screen .line { font-size: 13px; opacity: 0; letter-spacing: 0.04em; }
#boot-screen .bar { width: 300px; height: 2px; background: #16233c; margin-top: 16px; overflow: hidden; }
#boot-screen .fill { height: 100%; width: 0; background: var(--cyan-400); box-shadow: 0 0 12px var(--cyan-400); }
@keyframes bootAway { to { opacity: 0; visibility: hidden; } }

/* AI targeting cursor (fine pointers, wide screens) */
#ai-cursor {
    position: fixed; top: 0; left: 0; width: 34px; height: 34px; display: none;
    border: 1px solid rgba(34, 211, 238, 0.75); border-radius: 6px;
    transform: translate(-50%, -50%); pointer-events: none; z-index: 5000;
    mix-blend-mode: difference;
}
#ai-cursor::after {
    content: ''; position: absolute; top: 50%; left: 50%; width: 4px; height: 4px;
    background: var(--cyan-400); border-radius: 50%; transform: translate(-50%, -50%);
}
#ai-cursor .coords {
    position: absolute; top: -19px; left: -1px; font-family: var(--font-mono);
    font-size: 10px; color: var(--cyan-400); white-space: nowrap; text-shadow: 0 0 6px rgba(34,211,238,0.8);
}
.cursor-x, .cursor-y { position: fixed; pointer-events: none; z-index: 4999; background: rgba(34, 211, 238, 0.12); display: none; }
.cursor-x { left: 0; right: 0; height: 1px; }
.cursor-y { top: 0; bottom: 0; width: 1px; }
@media (min-width: 1221px) {
    body.godmode, body.godmode a, body.godmode button, body.godmode .btn,
    body.godmode input, body.godmode select, body.godmode textarea, body.godmode summary { cursor: none; }
    body.godmode #ai-cursor, body.godmode .cursor-x, body.godmode .cursor-y { display: block; }
}

/* Floating telemetry HUD */
.hud-panel {
    position: fixed; right: 16px; bottom: 16px; z-index: 950;
    background: rgba(4, 9, 20, 0.9); border: 1px solid rgba(34, 211, 238, 0.28); border-radius: 10px;
    padding: 0.7rem 1rem 0.65rem; font-family: var(--font-mono); font-size: 11px; color: #5b708f;
    display: flex; flex-direction: column; gap: 4px; backdrop-filter: blur(8px);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.55);
}
.hud-panel .row { display: flex; justify-content: space-between; gap: 22px; }
.hud-panel b { color: var(--cyan-400); font-weight: 500; }
.hud-panel .ok { color: #34d399; }
.hud-panel .blink { animation: hudblink 1.3s step-start infinite; }
@keyframes hudblink { 50% { opacity: 0.25; } }
.hud-close {
    position: absolute; top: 1px; right: 5px; background: none; border: none;
    color: #3d4f6b; font-size: 12px; cursor: pointer; padding: 2px; font-family: var(--font-mono);
}
.hud-close:hover { color: #94a3b8; }
@media (max-width: 860px) { .hud-panel { display: none; } }

/* Bento cards with imagery (dark capability grid) */
.card.card-img { position: relative; overflow: hidden; }
.card.card-img .bg {
    position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center;
    opacity: 0.18; transition: opacity 0.4s ease, transform 0.7s ease;
}
.card.card-img:hover .bg { opacity: 0.34; transform: scale(1.06); }
.card.card-img > *:not(.bg) { position: relative; z-index: 1; }
.on-dark .card.card-img { border-color: rgba(255, 255, 255, 0.14); }
.on-dark .card.card-img:hover { border-color: rgba(34, 211, 238, 0.5); box-shadow: 0 0 40px rgba(6, 182, 212, 0.15); }
.on-dark .card.card-img h3 { color: #fff; }
.on-dark .card.card-img p { color: #b7c6dd; }

/* Interactive lab widgets */
.lab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
@media (max-width: 1000px) { .lab-grid { grid-template-columns: 1fr; } }
.widget {
    background: #050a16; border: 1px solid rgba(34, 211, 238, 0.22); border-radius: var(--radius);
    overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); display: flex; flex-direction: column;
}
.widget-head {
    display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 1rem;
    background: #0a1222; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-mono); font-size: 0.72rem; color: #7dd3fc; letter-spacing: 0.06em;
}
.widget-head .status { margin-left: auto; color: #34d399; display: inline-flex; align-items: center; gap: 0.35rem; }
.widget-head .status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; animation: livepulse 1.6s ease-in-out infinite; }
.widget-body { position: relative; flex: 1; }
.widget canvas.viz { display: block; width: 100%; background: #030710; }
.widget-metrics {
    display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; padding: 0.7rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07); font-family: var(--font-mono); font-size: 0.68rem; color: #5b708f;
}
.widget-metrics b { color: #22d3ee; display: block; font-size: 0.85rem; font-weight: 500; }
.widget-note { padding: 0.45rem 1rem 0.85rem; font-family: var(--font-mono); font-size: 0.66rem; color: #45566f; }

/* RAG console */
.rag-chat {
    padding: 1rem 1.2rem; font-family: var(--font-mono); font-size: 0.78rem;
    height: 320px; overflow: hidden; display: flex; flex-direction: column; gap: 0.75rem;
    color: #c9d8f0; justify-content: flex-end;
}
.rag-msg { max-width: 92%; padding: 0.6rem 0.85rem; border-radius: 9px; line-height: 1.55; white-space: pre-wrap; }
.rag-user { align-self: flex-end; background: rgba(37, 99, 235, 0.2); border: 1px solid rgba(59, 130, 246, 0.45); }
.rag-ai { align-self: flex-start; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.11); }
.rag-cite {
    display: inline-block; margin: 6px 5px 0 0; padding: 1px 8px;
    border: 1px solid rgba(52, 211, 153, 0.5); color: #6ee7b7; border-radius: 20px; font-size: 0.62rem;
}

/* DSS alerts ticker */
.dss-alerts { padding: 0.6rem 1rem 0.2rem; font-family: var(--font-mono); font-size: 0.72rem; min-height: 34px; }
.dss-alerts .warn { color: #fbbf24; }
.dss-alerts .good { color: #34d399; }
.dss-alerts .act { color: #7dd3fc; }

/* Blockchain audit chain */
.chain-track { display: flex; align-items: stretch; gap: 0.55rem; padding: 1.3rem 1rem; overflow: hidden; min-height: 128px; }
.chain-block {
    flex: none; width: 152px; background: #0a1428; border: 1px solid rgba(59, 130, 246, 0.45);
    border-radius: 9px; padding: 0.55rem 0.7rem; font-family: var(--font-mono); font-size: 0.62rem;
    color: #7d90ad; animation: blockin 0.5s ease;
}
.chain-block b { color: #7dd3fc; display: block; font-size: 0.68rem; margin-bottom: 2px; }
.chain-block .hash { color: #34d399; word-break: break-all; }
.chain-glyph { flex: none; align-self: center; color: #3b82f6; font-family: var(--font-mono); font-size: 1rem; }
@keyframes blockin { from { transform: translateX(36px); opacity: 0; } }

/* Real footage embeds */
.console-stage .real-feed { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #000; transition: opacity 0.35s ease; }
.video-card video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #000; }
.video-card img.real { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #0a1222; }
.media-credit { font-family: var(--font-mono); font-size: 0.64rem; color: #7b8aa5; margin-top: 0.5rem; }

/* Pilot card photos */
.pilot-photo { border-radius: 10px; overflow: hidden; margin-bottom: 0.5rem; border: 1px solid var(--line); }
.pilot-photo img { width: 100%; height: 150px; object-fit: cover; display: block; transition: transform 0.6s ease; }
.card:hover .pilot-photo img { transform: scale(1.05); }

/* Diagrams inside articles */
.article .diagram-card { margin: 1.5rem 0; box-shadow: none; background: var(--surface-2); }

/* Click particles */
.click-p { position: fixed; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan-400); pointer-events: none; z-index: 6500; }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.muted { color: var(--muted); }
.small { font-size: 0.87rem; }
.text-center { text-align: center; }
