/* ═══════════════════════════════════════
   DEVOPS ARG v7 — CRO-optimized
   Direct, business-focused, dark aesthetic
   ═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@300;400;500;600&family=Syne:wght@400;500;600;700;800&family=Silkscreen:wght@400;700&display=swap');

:root {
    --void:       #030712;
    --void-up:    #0a0f1e;
    --cell:       #0e1629;
    --membrane:   #162040;

    --bio-cyan:   #06b6d4;
    --bio-purple: #a855f7;
    --bio-rose:   #f43f5e;
    --bio-green:  #22c55e;
    --bio-amber:  #f59e0b;
    --bio-blue:   #3b82f6;

    --text:       #e2e8f0;
    --text-dim:   #64748b;
    --text-faint: #334155;
    --border:     #1e293b;

    --font-h:     'Syne', sans-serif;
    --font-b:     'Space Grotesk', sans-serif;
    --font-m:     'IBM Plex Mono', monospace;
    --font-label: 'Silkscreen', monospace;

    --z-bg:       0;
    --z-content:  5;
    --z-overlay:  10;
    --z-ui:       20;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-b);
    background: var(--void);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

::selection {
    background: var(--bio-purple);
    color: #000;
}

/* ═══════ FOCUS VISIBLE (accessibility) ═══════ */

:focus-visible {
    outline: 2px solid var(--bio-cyan);
    outline-offset: 2px;
    border-radius: 4px;
}

a, button, input, textarea, details summary, .organ, .process-step, .result-card {
    cursor: pointer;
}

input, textarea { cursor: text; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--bio-cyan); }

/* ═══════ BOOT SEQUENCE ═══════ */

.boot {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    transition: opacity 0.8s, visibility 0.8s;
}

.boot.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.boot__log {
    font-family: var(--font-m);
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    color: var(--bio-cyan);
    max-width: 550px;
    width: 100%;
    line-height: 1.8;
    white-space: pre-wrap;
    text-shadow: 0 0 8px var(--bio-cyan);
    min-height: 180px;
}

.boot__bar {
    max-width: 550px;
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin-top: 2rem;
    overflow: hidden;
}

.boot__fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--bio-cyan), var(--bio-purple));
    border-radius: 2px;
    transition: width 0.2s;
    box-shadow: 0 0 10px var(--bio-cyan);
}

.boot__skip {
    margin-top: 1.2rem;
    font-family: var(--font-label);
    font-size: 0.55rem;
    color: var(--text-dim);
    cursor: pointer;
    letter-spacing: 0.1em;
    transition: color 0.2s;
}

.boot__skip:hover { color: var(--bio-cyan); }

/* ═══════ SCANLINES ═══════ */

.scanlines {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        rgba(0, 0, 0, 0.08) 1px,
        transparent 2px,
        transparent 4px
    );
    opacity: 0.4;
}

/* ═══════ GLITCH TEXT ═══════ */

.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
}

.glitch-text::before {
    color: var(--bio-rose);
    -webkit-text-fill-color: var(--bio-rose);
    clip-path: inset(0 0 75% 0);
    animation: glitchTop 4s steps(2) infinite;
    opacity: 0.6;
}

.glitch-text::after {
    color: var(--bio-cyan);
    -webkit-text-fill-color: var(--bio-cyan);
    clip-path: inset(75% 0 0 0);
    animation: glitchBot 3.5s steps(3) infinite;
    opacity: 0.6;
}

@keyframes glitchTop {
    0%, 92% { transform: translate(0); }
    93% { transform: translate(-2px, -1px); }
    95% { transform: translate(2px, 1px); }
    97% { transform: translate(-1px, 0px); }
    100% { transform: translate(0); }
}

@keyframes glitchBot {
    0%, 90% { transform: translate(0); }
    91% { transform: translate(3px, 1px); }
    94% { transform: translate(-2px, -1px); }
    97% { transform: translate(1px, 0px); }
    100% { transform: translate(0); }
}

/* ═══════ NAV ═══════ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 2rem;
    background: rgba(3, 7, 18, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s;
}

.nav.scrolled {
    background: rgba(3, 7, 18, 0.92);
    border-bottom-color: var(--border);
}

.nav__brand {
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--bio-cyan);
    text-decoration: none;
    letter-spacing: 0.02em;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav__link {
    font-family: var(--font-m);
    font-size: 0.7rem;
    color: var(--text-dim);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.2s;
    padding: 0.3rem 0;
}

.nav__link:hover {
    color: var(--bio-cyan);
}

.nav__cta {
    font-family: var(--font-h);
    font-weight: 600;
    font-size: 0.7rem;
    color: var(--void);
    background: var(--bio-cyan);
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
}

.nav__cta:hover {
    background: #0ed7f5;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

/* Burger — hidden on desktop */
.nav__burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 36px;
    height: 36px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.nav__burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Burger active state */
.nav__burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__burger.active span:nth-child(2) {
    opacity: 0;
}

.nav__burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
@media (max-width: 768px) {
    .nav { padding: 0.7rem 1.2rem; }

    .nav__burger { display: flex; }

    .nav__links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: rgba(3, 7, 18, 0.97);
        backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0;
        border-left: 1px solid var(--border);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav__links.open {
        right: 0;
    }

    .nav__link {
        font-size: 0.85rem;
        padding: 1rem 0;
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav__cta {
        margin-top: 1.5rem;
        text-align: center;
        width: 100%;
        display: block;
        padding: 0.8rem 1.2rem;
    }
}

/* ═══════ SCREEN TEAR (JS-spawned) ═══════ */

.screen-tear {
    position: fixed;
    left: 0;
    width: 100%;
    height: 2px;
    z-index: 100;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--bio-cyan), var(--bio-purple), var(--bio-rose), transparent);
    opacity: 0;
    animation: tearFlash 0.12s linear forwards;
}

@keyframes tearFlash {
    0% { opacity: 0.7; }
    100% { opacity: 0; }
}

/* ═══════ BIO-SCANNER GRID ═══════ */

.bio-grid {
    position: fixed;
    inset: 0;
    z-index: var(--z-bg);
    pointer-events: none;
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

#neuralCanvas {
    position: fixed;
    inset: 0;
    z-index: var(--z-bg);
    pointer-events: none;
    opacity: 0.4;
}

.pulse-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-bg);
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(3, 7, 18, 0.8) 100%);
}

/* ═══════ HEARTBEAT CANVAS ═══════ */

.heartbeat-canvas {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    z-index: var(--z-ui);
    pointer-events: none;
    opacity: 0.6;
}

/* ═══════ SPECIMEN LABEL (top-left) ═══════ */

.specimen-label {
    position: fixed;
    top: 3.5rem;
    left: 1.5rem;
    z-index: var(--z-ui);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    pointer-events: none;
}

.specimen-id {
    font-family: var(--font-m);
    font-size: 0.7rem;
    color: var(--bio-cyan);
    letter-spacing: 0.15em;
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

.specimen-status {
    font-family: var(--font-m);
    font-size: 0.6rem;
    color: var(--bio-green);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.bio-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bio-green);
    box-shadow: 0 0 8px var(--bio-green);
    animation: bioPulse 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes bioPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.7); }
}

/* ═══════ SCANNER READOUT (top-right) ═══════ */

.scanner-readout {
    position: fixed;
    top: 3.5rem;
    right: 1.5rem;
    z-index: var(--z-ui);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    pointer-events: none;
}

.readout-line {
    font-family: var(--font-m);
    font-size: 0.6rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
}

/* ═══════ MAIN ORGANISM ═══════ */

.organism {
    position: relative;
    z-index: var(--z-content);
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ═══════ SECTION HEADERS ═══════ */

.section-head {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-label);
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: var(--bio-cyan);
    background: rgba(6, 182, 212, 0.06);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 4px;
    padding: 0.35rem 1rem;
    margin-bottom: 1.2rem;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.section-title {
    font-family: var(--font-h);
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--bio-cyan) 50%, var(--bio-purple) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShift 8s ease-in-out infinite;
}

@keyframes titleShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.section-sub {
    font-size: 1rem;
    color: var(--text-dim);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ═══════ NUCLEUS (Hero) ═══════ */

.nucleus {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 7rem 1rem 4rem;
    position: relative;
}

.nucleus__membrane {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

/* Concentric rings */
.nucleus__ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    opacity: 0.15;
    animation: ringPulse 6s ease-in-out infinite;
}

.nucleus__ring--1 {
    width: 350px; height: 350px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-color: var(--bio-cyan);
    animation-delay: 0s;
}

.nucleus__ring--2 {
    width: 500px; height: 500px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-color: var(--bio-purple);
    animation-delay: 1s;
}

.nucleus__ring--3 {
    width: 650px; height: 650px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-color: var(--bio-rose);
    animation-delay: 2s;
}

@keyframes ringPulse {
    0%, 100% { opacity: 0.08; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.2; transform: translate(-50%, -50%) scale(1.05); }
}

.nucleus__logo {
    width: clamp(120px, 22vw, 200px);
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 30px rgba(6, 182, 212, 0.4)) drop-shadow(0 0 60px rgba(168, 85, 247, 0.2));
    animation: logoBreath 4s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes logoBreath {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 30px rgba(6, 182, 212, 0.4)) drop-shadow(0 0 60px rgba(168, 85, 247, 0.2)); }
    50% { transform: scale(1.03); filter: drop-shadow(0 0 40px rgba(6, 182, 212, 0.6)) drop-shadow(0 0 80px rgba(168, 85, 247, 0.3)); }
}

.nucleus__name {
    font-family: var(--font-h);
    font-weight: 800;
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.nucleus__d {
    background: linear-gradient(135deg, var(--bio-cyan), var(--bio-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nucleus__sep {
    display: inline-block;
    width: 0.15em;
    height: 0.8em;
    background: var(--bio-purple);
    margin: 0 0.15em;
    vertical-align: middle;
    border-radius: 2px;
    animation: sepPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px var(--bio-purple);
}

@keyframes sepPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.nucleus__a {
    background: linear-gradient(135deg, var(--bio-rose), var(--bio-amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nucleus__tagline {
    font-family: var(--font-m);
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: var(--bio-cyan);
    letter-spacing: 0.2em;
    text-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
    min-height: 1.5em;
    position: relative;
    z-index: 2;
}

.nucleus__helix {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.1;
}

.nucleus__scroll {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-m);
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 0.15em;
    animation: scrollBob 3s ease-in-out infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    color: var(--bio-cyan);
}

@keyframes scrollBob {
    0%, 100% { opacity: 0.5; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(8px); }
}

/* ═══════ MEMBRANE (Ticker) ═══════ */

.membrane {
    overflow: hidden;
    padding: 1.2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(14, 22, 41, 0.6);
    margin: 0 -1.5rem;
    position: relative;
}

.membrane::before,
.membrane::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.membrane::before { left: 0; background: linear-gradient(90deg, var(--void), transparent); }
.membrane::after { right: 0; background: linear-gradient(-90deg, var(--void), transparent); }

.membrane__track {
    display: flex;
    gap: 2rem;
    white-space: nowrap;
    animation: membraneFlow 25s linear infinite;
    font-family: var(--font-m);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text-faint);
}

.membrane__dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--bio-cyan);
    vertical-align: middle;
    box-shadow: 0 0 6px var(--bio-cyan);
}

@keyframes membraneFlow {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ═══════ ORGAN SYSTEMS (Services) ═══════ */

.organs, .services {
    padding: 8rem 0;
}

.organ-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 1.8rem;
}

.organ {
    position: relative;
    background: var(--cell);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.2rem;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.organ__pulse {
    position: absolute;
    top: -1px; right: -1px;
    width: 80px;
    height: 80px;
    border-radius: 0 16px 0 80px;
    opacity: 0;
    transition: opacity 0.4s;
}

.organ[data-system="circulatory"] .organ__pulse { background: radial-gradient(ellipse at 100% 0%, rgba(6, 182, 212, 0.15), transparent 70%); }
.organ[data-system="skeletal"] .organ__pulse { background: radial-gradient(ellipse at 100% 0%, rgba(59, 130, 246, 0.15), transparent 70%); }
.organ[data-system="nervous"] .organ__pulse { background: radial-gradient(ellipse at 100% 0%, rgba(168, 85, 247, 0.15), transparent 70%); }
.organ[data-system="immune"] .organ__pulse { background: radial-gradient(ellipse at 100% 0%, rgba(244, 63, 94, 0.15), transparent 70%); }
.organ[data-system="brain"] .organ__pulse { background: radial-gradient(ellipse at 100% 0%, rgba(245, 158, 11, 0.15), transparent 70%); }
.organ[data-system="metabolic"] .organ__pulse { background: radial-gradient(ellipse at 100% 0%, rgba(34, 197, 94, 0.15), transparent 70%); }

.organ:hover .organ__pulse { opacity: 1; }

.organ:hover {
    border-color: var(--bio-cyan);
    transform: translateY(-4px);
    box-shadow:
        0 8px 30px rgba(6, 182, 212, 0.08),
        inset 0 1px 0 rgba(6, 182, 212, 0.1);
}

.organ[data-system="circulatory"]:hover { border-color: var(--bio-cyan); box-shadow: 0 8px 30px rgba(6,182,212,0.1), inset 0 1px 0 rgba(6,182,212,0.1); }
.organ[data-system="skeletal"]:hover { border-color: var(--bio-blue); box-shadow: 0 8px 30px rgba(59,130,246,0.1), inset 0 1px 0 rgba(59,130,246,0.1); }
.organ[data-system="nervous"]:hover { border-color: var(--bio-purple); box-shadow: 0 8px 30px rgba(168,85,247,0.1), inset 0 1px 0 rgba(168,85,247,0.1); }
.organ[data-system="immune"]:hover { border-color: var(--bio-rose); box-shadow: 0 8px 30px rgba(244,63,94,0.1), inset 0 1px 0 rgba(244,63,94,0.1); }
.organ[data-system="brain"]:hover { border-color: var(--bio-amber); box-shadow: 0 8px 30px rgba(245,158,11,0.1), inset 0 1px 0 rgba(245,158,11,0.1); }
.organ[data-system="metabolic"]:hover { border-color: var(--bio-green); box-shadow: 0 8px 30px rgba(34,197,94,0.1), inset 0 1px 0 rgba(34,197,94,0.1); }

.organ__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.organ__id {
    font-family: var(--font-m);
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 0.15em;
}

.organ__icon {
    width: 28px;
    height: 28px;
    stroke: var(--bio-cyan);
    opacity: 0.6;
    transition: opacity 0.3s, stroke 0.3s;
}

.organ:hover .organ__icon { opacity: 1; }
.organ[data-system="circulatory"] .organ__icon { stroke: var(--bio-cyan); }
.organ[data-system="skeletal"] .organ__icon { stroke: var(--bio-blue); }
.organ[data-system="nervous"] .organ__icon { stroke: var(--bio-purple); }
.organ[data-system="immune"] .organ__icon { stroke: var(--bio-rose); }
.organ[data-system="brain"] .organ__icon { stroke: var(--bio-amber); }
.organ[data-system="metabolic"] .organ__icon { stroke: var(--bio-green); }

.organ__name {
    font-family: var(--font-h);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.6rem;
}

.organ__desc {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.organ__vitals {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.vital {
    font-family: var(--font-m);
    font-size: 0.6rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    transition: all 0.2s;
}

.organ:hover .vital {
    border-color: var(--text-faint);
    color: var(--text);
}

.organ__health {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.health-label {
    font-family: var(--font-m);
    font-size: 0.55rem;
    color: var(--text-faint);
    letter-spacing: 0.15em;
    flex-shrink: 0;
}

.health-bar {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.health-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--bio-green), var(--bio-cyan));
    transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

/* ═══════ NEURAL CLUSTER (AI Agents) ═══════ */

.neural {
    padding: 8rem 0;
}

.neural-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 1.5rem;
}

.neuron {
    position: relative;
    background: var(--cell);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.8rem;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.neuron__synapse {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.neuron[data-type="incident"] .neuron__synapse { background: radial-gradient(ellipse at 30% 30%, rgba(244, 63, 94, 0.06), transparent 70%); }
.neuron[data-type="cost"] .neuron__synapse { background: radial-gradient(ellipse at 30% 30%, rgba(245, 158, 11, 0.06), transparent 70%); }
.neuron[data-type="security"] .neuron__synapse { background: radial-gradient(ellipse at 30% 30%, rgba(34, 197, 94, 0.06), transparent 70%); }
.neuron[data-type="deploy"] .neuron__synapse { background: radial-gradient(ellipse at 30% 30%, rgba(168, 85, 247, 0.06), transparent 70%); }
.neuron[data-type="observe"] .neuron__synapse { background: radial-gradient(ellipse at 30% 30%, rgba(6, 182, 212, 0.06), transparent 70%); }
.neuron[data-type="chat"] .neuron__synapse { background: radial-gradient(ellipse at 30% 30%, rgba(59, 130, 246, 0.06), transparent 70%); }

.neuron:hover .neuron__synapse { opacity: 1; }

.neuron:hover {
    transform: translateY(-3px);
    border-color: var(--bio-purple);
    box-shadow: 0 6px 25px rgba(168, 85, 247, 0.08);
}

.neuron[data-type="incident"]:hover { border-color: var(--bio-rose); }
.neuron[data-type="cost"]:hover { border-color: var(--bio-amber); }
.neuron[data-type="security"]:hover { border-color: var(--bio-green); }
.neuron[data-type="deploy"]:hover { border-color: var(--bio-purple); }
.neuron[data-type="observe"]:hover { border-color: var(--bio-cyan); }
.neuron[data-type="chat"]:hover { border-color: var(--bio-blue); }

.neuron__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.neuron__icon {
    width: 28px;
    height: 28px;
    stroke: var(--bio-cyan);
}

.neuron[data-type="incident"] .neuron__icon { stroke: var(--bio-rose); }
.neuron[data-type="cost"] .neuron__icon { stroke: var(--bio-amber); }
.neuron[data-type="security"] .neuron__icon { stroke: var(--bio-green); }
.neuron[data-type="deploy"] .neuron__icon { stroke: var(--bio-purple); }
.neuron[data-type="observe"] .neuron__icon { stroke: var(--bio-cyan); }
.neuron[data-type="chat"] .neuron__icon { stroke: var(--bio-blue); }

.neuron__signal {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-m);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    color: var(--bio-green);
}

.signal-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--bio-green);
    box-shadow: 0 0 6px var(--bio-green);
    animation: bioPulse 2s ease-in-out infinite;
    display: inline-block;
}

.neuron__name {
    font-family: var(--font-h);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.neuron__desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.neuron__stats {
    display: flex;
    gap: 1.5rem;
}

.nstat {
    display: flex;
    flex-direction: column;
}

.nstat-val {
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.nstat-label {
    font-family: var(--font-m);
    font-size: 0.6rem;
    color: var(--text-faint);
    letter-spacing: 0.1em;
}

/* ═══════ DNA SEQUENCE (About) ═══════ */

.dna {
    padding: 8rem 0;
}

.dna__container {
    max-width: 700px;
    margin: 0 auto;
}

.dna__helix {
    display: none; /* Shown via JS as decorative */
}

.dna__sequence {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 3rem;
}

.gene {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gene.visible {
    opacity: 1;
    transform: translateX(0);
}

.gene:last-child { border-bottom: none; }

.gene__marker {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-m);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 8px;
    border: 1px solid;
}

.gene[data-base="A"] .gene__marker { color: var(--bio-cyan); border-color: var(--bio-cyan); background: rgba(6, 182, 212, 0.08); }
.gene[data-base="T"] .gene__marker { color: var(--bio-rose); border-color: var(--bio-rose); background: rgba(244, 63, 94, 0.08); }
.gene[data-base="C"] .gene__marker { color: var(--bio-green); border-color: var(--bio-green); background: rgba(34, 197, 94, 0.08); }
.gene[data-base="G"] .gene__marker { color: var(--bio-amber); border-color: var(--bio-amber); background: rgba(245, 158, 11, 0.08); }

.gene__text {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.8;
}

.gene__text strong {
    color: var(--bio-cyan);
}

.dna__certs {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cert-badge {
    font-family: var(--font-m);
    font-size: 0.65rem;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    transition: all 0.3s;
    cursor: default;
}

.cert-badge:hover {
    border-color: var(--bio-cyan);
    color: var(--bio-cyan);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
}

/* ═══════ VITAL SIGNS (Stats) ═══════ */

.vitals {
    padding: 8rem 0;
}

.vitals__monitor {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.vital-sign {
    background: var(--cell);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.vital-sign.visible {
    opacity: 1;
    transform: translateY(0);
}

.vital-wave {
    width: 100%;
    height: 50px;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.vital-sign__data {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.15rem;
    margin-bottom: 0.5rem;
}

.vital-sign__num {
    font-family: var(--font-h);
    font-weight: 800;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--bio-cyan), var(--bio-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.vital-sign__unit {
    font-family: var(--font-m);
    font-size: 1rem;
    color: var(--text-dim);
}

.vital-sign__label {
    font-family: var(--font-m);
    font-size: 0.6rem;
    color: var(--text-faint);
    letter-spacing: 0.15em;
}

/* ═══════ SYNAPSE (Contact) ═══════ */

.synapse {
    padding: 8rem 0;
}

.synapse__form {
    max-width: 550px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    padding: 2.5rem;
    background: var(--cell);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.syn-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.syn-label {
    font-family: var(--font-m);
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.15em;
}

.syn-input {
    font-family: var(--font-b);
    font-size: 1rem;
    padding: 0.9rem 1.2rem;
    background: var(--cell);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.syn-input:focus {
    border-color: var(--bio-cyan);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.1);
}

.syn-textarea {
    resize: vertical;
    min-height: 120px;
}

.syn-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-family: var(--font-h);
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid var(--bio-cyan);
    border-radius: 10px;
    color: var(--bio-cyan);
    cursor: pointer;
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
}

.syn-btn:hover {
    background: var(--bio-cyan);
    color: var(--void);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
}

.syn-btn__icon {
    width: 18px;
    height: 18px;
}

/* ═══════ STATUS BAR (Footer) ═══════ */

.status-bar {
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

.status-bar__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.status-bar__brand {
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--bio-cyan);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.status-bar__links {
    display: flex;
    gap: 1.5rem;
}

.status-bar__links a {
    font-family: var(--font-m);
    font-size: 0.65rem;
    color: var(--text-dim);
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: color 0.2s;
    cursor: pointer;
}

.status-bar__links a:hover {
    color: var(--bio-cyan);
}

.status-bar__clock {
    font-family: var(--font-m);
    font-size: 0.75rem;
    color: var(--text-faint);
}

.status-bar__bottom {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
}

.status-bar__quote {
    margin-top: 0.5rem;
    font-style: italic;
    color: var(--text-faint);
    font-size: 0.75rem;
}

/* ═══════ SCROLL REVEAL (generic) ═══════ */

.organs .organ,
.neural .neuron {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.organs .organ.visible,
.neural .neuron.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════ HERO VALUE PROP + CTAs ═══════ */

.hero__value {
    font-family: var(--font-h);
    font-weight: 800;
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero__sub {
    font-family: var(--font-b);
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: var(--text-dim);
    max-width: 580px;
    margin: 0 auto 3rem;
    line-height: 1.9;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero__ctas {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.btn {
    font-family: var(--font-h);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.9rem 2rem;
    min-height: 44px;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.btn:active {
    transform: scale(0.97);
}

.btn--primary {
    background: var(--bio-cyan);
    color: var(--void);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.btn--primary:hover {
    background: #0ed7f5;
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.4);
    transform: translateY(-2px);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn--ghost:hover {
    border-color: var(--bio-cyan);
    color: var(--bio-cyan);
}

.btn--full {
    width: 100%;
    text-align: center;
}

.hero__proof {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    padding: 2rem 1.5rem;
    background: rgba(14, 22, 41, 0.5);
    border: 1px solid var(--border);
    border-radius: 12px;
    backdrop-filter: blur(4px);
    max-width: 650px;
    margin: 0 auto;
}

.proof-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.proof-num {
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--bio-cyan);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.proof-label {
    font-family: var(--font-label);
    font-size: 0.5rem;
    color: var(--text-dim);
    letter-spacing: 0.12em;
}

/* ═══════ TRUST BAR ═══════ */

.trust-bar {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
    margin: 4rem -1.5rem;
    background: rgba(14, 22, 41, 0.4);
}

.trust-bar__label {
    font-family: var(--font-label);
    font-size: 0.5rem;
    color: var(--text-faint);
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 0.8rem;
}

.trust-bar__logos {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 0 auto;
}

.trust-bar__logos span {
    font-family: var(--font-m);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    padding: 0.45rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.25s ease;
    cursor: default;
}

.trust-bar__logos span:hover {
    color: var(--bio-cyan);
    border-color: rgba(6, 182, 212, 0.3);
    background: rgba(6, 182, 212, 0.05);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.1);
}

/* ═══════ SECTION CTA ═══════ */

.section-cta {
    text-align: center;
    margin-top: 4rem;
}

/* ═══════ SERVICE RESULT LINE ═══════ */

.organ__result {
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
    padding: 0.8rem 1rem;
    background: rgba(6, 182, 212, 0.04);
    border-left: 2px solid var(--bio-cyan);
    border-radius: 0 6px 6px 0;
}

.organ__result strong {
    color: var(--bio-cyan);
}

.organ__result strong { color: #fff; }

/* ═══════ PROCESS SECTION ═══════ */

.process {
    padding: 8rem 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.8rem;
    margin-top: 1rem;
}

.process-step {
    background: var(--cell);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    position: relative;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.process-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.process-step:hover {
    border-color: var(--bio-cyan);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.06);
    transform: translateY(-2px);
}

.process-step__num {
    font-family: var(--font-h);
    font-weight: 800;
    font-size: 2rem;
    color: var(--bio-cyan);
    opacity: 0.15;
    position: absolute;
    top: 1rem;
    right: 1.2rem;
}

.process-step__title {
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.8rem;
}

.process-step__desc {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.process-step__time {
    font-family: var(--font-label);
    font-size: 0.5rem;
    color: var(--bio-cyan);
    letter-spacing: 0.12em;
    background: rgba(6, 182, 212, 0.08);
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
}

/* ═══════ RESULTS SECTION ═══════ */

.results {
    padding: 8rem 0;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.8rem;
    margin-top: 1rem;
}

.result-card {
    background: var(--cell);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s, border-color 0.3s;
}

.result-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.result-card:hover {
    border-color: var(--bio-cyan);
}

.result-card__num {
    font-family: var(--font-h);
    font-weight: 800;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--bio-cyan), var(--bio-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.result-card__unit {
    font-family: var(--font-m);
    font-size: 1.2rem;
    color: var(--text-dim);
    -webkit-text-fill-color: var(--text-dim);
}

.result-card__label {
    display: block;
    font-family: var(--font-label);
    font-size: 0.5rem;
    color: var(--text-faint);
    letter-spacing: 0.15em;
    margin: 0.6rem 0;
}

.result-card__detail {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ═══════ ABOUT SECTION ═══════ */

.about {
    padding: 8rem 0;
}

.about__container {
    max-width: 700px;
    margin: 0 auto;
}

.about__text {
    margin-bottom: 3rem;
}

.about__text p {
    font-size: 1.05rem;
    color: var(--text-dim);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    max-width: 65ch;
}

.about__text strong {
    color: var(--bio-cyan);
}

.about__certs {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ═══════ FAQ SECTION ═══════ */

.faq {
    padding: 8rem 0;
}

.faq-grid {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item__q {
    font-family: var(--font-h);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    padding: 1.5rem 0;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
}

.faq-item__q::-webkit-details-marker { display: none; }

.faq-item__q::after {
    content: '+';
    font-family: var(--font-m);
    font-size: 1.2rem;
    color: var(--text-dim);
    transition: transform 0.3s;
}

.faq-item[open] .faq-item__q::after {
    content: '-';
    color: var(--bio-cyan);
}

.faq-item__q:hover { color: var(--bio-cyan); }

.faq-item__a {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.8;
    padding: 0 0 1.5rem;
    max-width: 60ch;
}

/* ═══════ CONTACT NOTE ═══════ */

.syn-note {
    font-family: var(--font-m);
    font-size: 0.7rem;
    color: var(--text-faint);
    text-align: center;
    margin-top: 0.8rem;
}

/* ═══════ CHAT WIDGET ═══════ */

.chat-bubble {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bio-cyan);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
    transition: transform 0.25s, box-shadow 0.25s;
    animation: bubblePulse 3s ease-in-out infinite;
}

.chat-bubble svg {
    width: 24px;
    height: 24px;
    stroke: var(--void);
}

.chat-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(6, 182, 212, 0.5);
}

.chat-bubble.hidden { display: none; }

@keyframes bubblePulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(6, 182, 212, 0.15); }
}

/* Chat Panel */
.chat-panel {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 10000;
    width: 380px;
    height: 520px;
    background: var(--void-up);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.chat-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Header */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    background: var(--cell);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.chat-header__title {
    font-family: var(--font-label);
    font-size: 0.55rem;
    color: var(--bio-cyan);
    letter-spacing: 0.12em;
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.3);
}

.chat-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    line-height: 1;
    transition: color 0.2s;
    border-radius: 4px;
}

.chat-close:hover { color: var(--bio-rose); }

/* Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.chat-msg {
    max-width: 85%;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.6;
}

.chat-msg p { margin: 0; }

.chat-msg--bot {
    background: var(--cell);
    border: 1px solid var(--border);
    color: var(--text);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-msg--user {
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--text);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* Typing indicator */
.chat-typing {
    display: flex;
    gap: 4px;
    padding: 0.7rem 1rem;
    align-self: flex-start;
}

.chat-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bio-cyan);
    opacity: 0.4;
    animation: typingDot 1.4s ease-in-out infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1); }
}

/* Input row */
.chat-input-row {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    border-top: 1px solid var(--border);
    background: var(--cell);
    flex-shrink: 0;
}

.chat-input {
    flex: 1;
    font-family: var(--font-b);
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
    background: var(--void-up);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    outline: none;
    resize: none;
    max-height: 80px;
    transition: border-color 0.2s;
}

.chat-input:focus { border-color: var(--bio-cyan); }

.chat-input::placeholder { color: var(--text-faint); }

.chat-send {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bio-cyan);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.chat-send svg {
    width: 16px;
    height: 16px;
    stroke: var(--void);
}

.chat-send:hover { background: #0ed7f5; }
.chat-send:active { transform: scale(0.93); }
.chat-send:disabled { opacity: 0.4; cursor: not-allowed; }

/* Mobile */
@media (max-width: 480px) {
    .chat-panel {
        width: calc(100vw - 1.5rem);
        height: 70vh;
        bottom: 1rem;
        right: 0.75rem;
    }

    .chat-bubble {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }

    .chat-bubble svg { width: 20px; height: 20px; }
}

/* ═══════ PREFERS REDUCED MOTION ═══════ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .bio-grid { display: none; }
    .scanlines { display: none; }
    .heartbeat-canvas { display: none; }
    .nucleus__ring { display: none; }
    .nucleus__logo { animation: none; }
    .membrane__track { animation: none; }
    .vital-wave { display: none; }
    .screen-tear { display: none; }
    .glitch-text::before, .glitch-text::after { display: none; }
}

/* ═══════ RESPONSIVE ═══════ */

@media (max-width: 768px) {
    .organism { padding: 0 1rem; }

    .specimen-label { top: 0.8rem; left: 1rem; }
    .scanner-readout { top: 0.8rem; right: 1rem; }
    .specimen-id { font-size: 0.6rem; }
    .readout-line { font-size: 0.5rem; }

    .nucleus { min-height: auto; padding: 8rem 1rem 4rem; }
    .nucleus__logo { width: clamp(90px, 30vw, 140px); }
    .nucleus__name { font-size: clamp(2rem, 10vw, 3.5rem); }
    .nucleus__tagline { font-size: 0.8rem; letter-spacing: 0.12em; }
    .nucleus__ring { display: none; }

    .membrane__track { font-size: 0.7rem; }

    .section-head { margin-bottom: 2.5rem; }
    .section-title { font-size: clamp(1.8rem, 6vw, 2.8rem); }
    .section-sub { font-size: 0.9rem; }

    .organs, .neural, .dna, .vitals, .synapse { padding: 5rem 0; }

    .organ-grid, .neural-grid { grid-template-columns: 1fr; gap: 1rem; }
    .organ, .neuron { padding: 1.5rem; }
    .organ:hover, .neuron:hover { transform: none; }

    .gene { gap: 1rem; }
    .gene__text { font-size: 0.9rem; }

    .vitals__monitor { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .vital-sign__num { font-size: 2rem; }
    .vital-sign__label { font-size: 0.55rem; }

    .syn-input { font-size: 16px; }

    .hero__value { font-size: clamp(1.2rem, 5vw, 1.8rem); }
    .hero__sub { font-size: 0.9rem; }
    .hero__proof { gap: 1.5rem; }
    .proof-num { font-size: 1.1rem; }
    .hero__ctas { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 300px; text-align: center; }

    .trust-bar__logos { gap: 1rem; }
    .trust-bar__logos span { font-size: 0.65rem; }

    .process-grid { grid-template-columns: 1fr; }
    .process-step { padding: 1.5rem; }
    .process, .results, .about, .faq { padding: 5rem 0; }

    .results-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .result-card { padding: 1.5rem 1rem; }
    .result-card__num { font-size: 2rem; }

    .faq-item__q { font-size: 0.9rem; }
    .faq-item__a { font-size: 0.85rem; }

    .status-bar__row { flex-direction: column; text-align: center; gap: 0.8rem; }

    .heartbeat-canvas { height: 30px; }
}

@media (max-width: 480px) {
    .organism { padding: 0 0.6rem; }
    .nucleus__name { font-size: clamp(1.6rem, 12vw, 2.5rem); }
    .nucleus__tagline { font-size: 0.7rem; }
    .hero__value { font-size: 1.1rem; }
    .hero__sub { font-size: 0.82rem; }
    .hero__proof { gap: 1rem; }
    .proof-num { font-size: 0.95rem; }
    .proof-label { font-size: 0.45rem; }

    .organ__name { font-size: 1.1rem; }
    .organ__desc, .organ__result { font-size: 0.82rem; }

    .neuron__name { font-size: 1rem; }
    .neuron__desc { font-size: 0.8rem; }

    .results-grid { grid-template-columns: 1fr; }
    .result-card__num { font-size: 2rem; }

    .process-step__title { font-size: 1rem; }
    .process-step__desc { font-size: 0.82rem; }

    .about__text p { font-size: 0.9rem; }

    .vitals__monitor { grid-template-columns: 1fr 1fr; }
    .vital-sign { padding: 1rem; }
    .vital-sign__num { font-size: 1.6rem; }
}

@media (max-width: 360px) {
    .nucleus__name { font-size: 1.5rem; }
    .hero__value { font-size: 1rem; }
    .vital-sign__num { font-size: 1.4rem; }
    .result-card__num { font-size: 1.6rem; }
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
    .organ:hover, .neuron:hover, .process-step:hover, .result-card:hover { transform: none; box-shadow: none; }
    .organ:hover .organ__pulse, .neuron:hover .neuron__synapse { opacity: 0; }
}

/* ═══════ CHAT WIDGET ═══════ */
.chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 9999; font-family: 'IBM Plex Mono', monospace; }

.chat-toggle {
    width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--accent);
    background: var(--bg-card); color: var(--accent); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3); transition: all 0.3s;
}
.chat-toggle:hover { box-shadow: 0 0 30px rgba(0, 255, 136, 0.5); transform: scale(1.1); }
.chat-toggle__icon, .chat-toggle__close { width: 24px; height: 24px; }

.chat-box {
    position: absolute; bottom: 70px; right: 0;
    width: 360px; max-height: 480px;
    background: var(--bg-card); border: 1px solid var(--accent);
    border-radius: 12px; overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.15);
    animation: chatSlideUp 0.3s ease;
}
@keyframes chatSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.chat-box__header {
    padding: 14px 16px; background: rgba(0, 255, 136, 0.05);
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}
.chat-box__title { color: var(--accent); font-weight: 600; font-size: 0.85rem; display: flex; align-items: center; gap: 8px; }
.chat-box__sub { color: var(--text-dim); font-size: 0.7rem; display: block; margin-top: 2px; }

.chat-box__messages {
    flex: 1; overflow-y: auto; padding: 16px;
    max-height: 320px; display: flex; flex-direction: column; gap: 10px;
}
.chat-box__messages::-webkit-scrollbar { width: 4px; }
.chat-box__messages::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

.chat-msg {
    padding: 10px 14px; border-radius: 10px;
    font-size: 0.8rem; line-height: 1.5; max-width: 85%;
    word-wrap: break-word;
}
.chat-msg--bot {
    background: rgba(0, 255, 136, 0.08); border: 1px solid rgba(0, 255, 136, 0.15);
    color: var(--text-main); align-self: flex-start;
}
.chat-msg--user {
    background: rgba(0, 255, 136, 0.15); border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--accent); align-self: flex-end; text-align: right;
}
.chat-msg--typing { color: var(--text-dim); font-style: italic; }

.chat-box__input {
    display: flex; border-top: 1px solid rgba(0, 255, 136, 0.2);
}
.chat-box__input input {
    flex: 1; padding: 12px 14px; background: transparent;
    border: none; color: var(--text-main); font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem; outline: none;
}
.chat-box__input input::placeholder { color: var(--text-dim); }
.chat-send {
    padding: 12px 16px; background: transparent; border: none;
    color: var(--accent); cursor: pointer; font-size: 1rem;
    transition: color 0.2s;
}
.chat-send:hover { color: #fff; }

@media (max-width: 480px) {
    .chat-box { width: calc(100vw - 32px); right: -8px; bottom: 64px; }
    .chat-widget { bottom: 16px; right: 16px; }
}
