/* ═══════════════════════════════════════════════════════════════════════
   GHOST HARDWARE DESIGN SYSTEM — V3
   FoldOps Command Center | Stealth/Carbon/Cobalt Palette
   Zero generic SaaS. Zero neon green. Pure infrastructure.
   ═══════════════════════════════════════════════════════════════════════ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

:root {
    /* ── VOID PALETTE ── */
    --void: #0A0A0C;
    --carbon: #121214;
    --carbon-2: #18181C;
    --carbon-3: #1E1E24;
    --carbon-4: #26262E;

    /* ── INK PALETTE ── */
    --ink: #F4F8FF;
    --ink-soft: #D0D8E8;
    --ink-dim: #8A95A8;
    --ink-ghost: #5A6478;
    --ink-dead: #3A4050;

    /* ── COBALT ACCENT ── */
    --cobalt: #0EA5E9;
    --cobalt-bright: #38BDF8;
    --cobalt-pale: #7DD3FC;
    --cobalt-deep: #0369A1;
    --cobalt-glow: rgba(14, 165, 233, 0.15);
    --cobalt-faint: rgba(14, 165, 233, 0.06);

    /* ── SIGNAL COLORS ── */
    --signal-red: #FF5A66;
    --signal-amber: #FF8A00;
    --signal-green: #34D399;

    /* ── MATERIALITY ── */
    --glass-heavy: rgba(10, 10, 12, 0.88);
    --glass-mid: rgba(14, 14, 18, 0.72);
    --glass-light: rgba(20, 20, 24, 0.55);
    --edge-top: rgba(255, 255, 255, 0.08);
    --edge-specular: rgba(14, 165, 233, 0.35);
    --edge-bottom: rgba(0, 0, 0, 0.9);
    --grain-opacity: 0.03;

    /* ── DEPTH SHADOWS ── */
    --shadow-plate: 0 24px 80px -16px rgba(0, 0, 0, 0.95), inset 0 1px 0 var(--edge-top), inset 0 0 80px rgba(0, 0, 0, 0.6);
    --shadow-module: 0 12px 40px -8px rgba(0, 0, 0, 0.85), inset 0 1px 0 var(--edge-top);
    --shadow-conduit: 0 0 40px var(--cobalt-glow), 0 0 120px rgba(14, 165, 233, 0.06);

    /* ── TYPOGRAPHY ── */
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;

    /* ── SPACING ── */
    --shell-max: 1200px;
    --shell-pad: clamp(16px, 3vw, 24px);

    /* ── MOTION ── */
    --ease-hardware: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-snap: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-micro: cubic-bezier(0.4, 0, 0.2, 1);
    /* Material Design standard for micro-interactions */
    --dur-fast: 150ms;
    --dur-mid: 250ms;
    --dur-slow: 600ms;

    /* ── RADII ── */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
}

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

/* ── NOISE GRAIN OVERLAY ── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: var(--grain-opacity);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-size: 128px 128px;
}

/* ── SHELL ── */
.ghost-shell {
    max-width: var(--shell-max);
    margin: 0 auto;
    padding: 0 var(--shell-pad);
    position: relative;
}

/* ═══════════════════════════════════════════════════════════════════════
   CENTRAL VERTICAL CONDUIT
   The spine that links every section — a 1px glowing track
   ═══════════════════════════════════════════════════════════════════════ */
.ghost-conduit {
    position: fixed;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(14, 165, 233, 0.08) 10%,
            rgba(14, 165, 233, 0.2) 30%,
            rgba(14, 165, 233, 0.3) 50%,
            rgba(14, 165, 233, 0.2) 70%,
            rgba(14, 165, 233, 0.08) 90%,
            transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.ghost-conduit::before {
    content: '';
    position: absolute;
    left: -20px;
    right: -20px;
    top: 0;
    bottom: 0;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(14, 165, 233, 0.03) 30%,
            rgba(14, 165, 233, 0.05) 50%,
            rgba(14, 165, 233, 0.03) 70%,
            transparent 100%);
    filter: blur(12px);
}

/* Conduit pulse traveling dot */
.ghost-conduit::after {
    content: '';
    position: absolute;
    left: -3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cobalt-bright);
    box-shadow: 0 0 16px var(--cobalt), 0 0 40px var(--cobalt-glow);
    animation: conduit-pulse 4s ease-in-out infinite;
}

@keyframes conduit-pulse {
    0% {
        top: -10px;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   RADIAL TRANSITION BLOOMS
   Ultra-low opacity gradients between sections
   ═══════════════════════════════════════════════════════════════════════ */
.ghost-bloom {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 120vw;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.ghost-bloom--cobalt {
    background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.04) 0%, transparent 70%);
}

.ghost-bloom--amber {
    background: radial-gradient(ellipse at center, rgba(255, 138, 0, 0.03) 0%, transparent 70%);
}

.ghost-bloom--red {
    background: radial-gradient(ellipse at center, rgba(255, 90, 102, 0.03) 0%, transparent 70%);
}

/* ═══════════════════════════════════════════════════════════════════════
   HEADER — Canonical Ghost Hardware Nav
   ═══════════════════════════════════════════════════════════════════════ */
.ghost-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 var(--shell-pad);
    transition: background var(--dur-mid) ease, backdrop-filter var(--dur-mid) ease;
}

.ghost-header.is-scrolled {
    background: var(--glass-heavy);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ghost-header-inner {
    max-width: var(--shell-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

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

.ghost-brand-mark {
    width: 32px;
    height: 32px;
}

.ghost-brand-word {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--ink);
}

.ghost-nav {
    display: flex;
    gap: 32px;
}

.ghost-nav a {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--ink-dim);
    text-decoration: none;
    transition: color var(--dur-fast) ease;
    text-transform: uppercase;
}

.ghost-nav a:hover {
    color: var(--ink);
}

.ghost-nav a.is-active {
    color: var(--cobalt-bright);
}

.ghost-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--r-sm);
    border: 1px solid rgba(14, 165, 233, 0.3);
    background: rgba(14, 165, 233, 0.08);
    color: var(--cobalt-bright);
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all var(--dur-fast) var(--ease-hardware);
}

.ghost-header-cta:hover {
    background: rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 0 24px var(--cobalt-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.ghost-header-cta:active {
    transform: scale(0.96);
    box-shadow: 0 0 12px var(--cobalt-glow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ═══════════════════════════════════════════════════════════════════════
   TYPOGRAPHY — Extreme Weight Contrast System
   ═══════════════════════════════════════════════════════════════════════ */
.ghost-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--cobalt-pale);
    text-transform: uppercase;
    margin-bottom: 24px;
}

.ghost-eyebrow::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cobalt);
    box-shadow: 0 0 8px var(--cobalt-glow);
    animation: eyebrow-pulse 2s ease-in-out infinite;
}

@keyframes eyebrow-pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.ghost-h1 {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 7.5vw, 6rem);
    font-weight: 900;
    line-height: 0.88;
    letter-spacing: -0.05em;
    color: var(--ink);
    margin-bottom: 24px;
}

.ghost-h1 span {
    display: block;
}

.ghost-h1 .ghost-h1-accent {
    background: linear-gradient(135deg, var(--cobalt-bright), var(--cobalt-pale));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ghost-h2 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.04em;
    color: var(--ink);
    margin-bottom: 16px;
}

.ghost-h3 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 12px;
}

.ghost-sub {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink-dim);
    max-width: 600px;
}

.ghost-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-ghost);
}

/* ── WEIGHT CONTRAST: thin vs heavy ── */
.ghost-thin {
    font-weight: 100;
    letter-spacing: 0.04em;
    color: var(--ink-dim);
}

.ghost-heavy {
    font-weight: 900;
    letter-spacing: -0.05em;
    color: var(--ink);
}

/* ═══════════════════════════════════════════════════════════════════════
   GHOST HARDWARE PLATE — The core card component
   Specular top edge, void interior, carbon floor
   ═══════════════════════════════════════════════════════════════════════ */
.ghost-plate {
    position: relative;
    background: linear-gradient(135deg, rgba(20, 20, 22, 0.95) 0%, rgba(10, 10, 12, 0.98) 100%);
    border-radius: var(--r-lg);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    /* Specular top edge */
    box-shadow: var(--shadow-plate), inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 2px 20px rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    overflow: hidden;
    transition: transform var(--dur-fast) var(--ease-hardware), box-shadow var(--dur-fast) var(--ease-hardware);
}

.ghost-plate::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(14, 165, 233, 0.04) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.6;
    transition: opacity var(--dur-fast) var(--ease-hardware);
}

.ghost-plate:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-plate), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 60px rgba(14, 165, 233, 0.06);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.ghost-plate:hover::before {
    opacity: 1;
}

.ghost-plate:active {
    transform: translateY(0) scale(0.99);
    box-shadow: 0 12px 40px -16px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ── Plate interior content padding ── */
.ghost-plate-inner {
    position: relative;
    z-index: 2;
    padding: clamp(20px, 2.5vw, 32px);
}

.ghost-plate .ghost-stat-val {
    color: #fff;
    text-shadow: 0 0 40px rgba(14, 165, 233, 0.4), 0 0 80px rgba(14, 165, 233, 0.15);
}

/* ── Plate Internal Typography — Ghost Hardware ── */
.ghost-plate .ghost-h3 {
    text-shadow: 0 0 32px rgba(255, 255, 255, 0.12);
    letter-spacing: -0.04em;
}

.ghost-plate .ghost-sub {
    color: var(--ink-soft);
    font-size: clamp(0.88rem, 1.4vw, 1rem);
    line-height: 1.65;
}

/* ── Component Grid Layout ── */
.ghost-components-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .ghost-components-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ── Terminal Info Block — inside plates ── */
.ghost-spec-block {
    margin-top: 16px;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--r-sm);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 2px solid rgba(14, 165, 233, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), inset 0 0 20px rgba(0, 0, 0, 0.3);
    transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease;
}

.ghost-plate:hover .ghost-spec-block {
    border-left-color: rgba(14, 165, 233, 0.5);
    background: rgba(0, 0, 0, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════════
   HERO SECTION — Ghost Hardware Cinematic Opening
   Deep atmospheric void + machined stat plates + specular edges
   ═══════════════════════════════════════════════════════════════════════ */
.ghost-hero {
    position: relative;
    height: 100svh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px var(--shell-pad) 80px;
    overflow: hidden;
}

/* ── 4-Layer Atmospheric Background ── */
.ghost-hero-bg {
    position: absolute;
    inset: 0;
    background:
        /* Layer 1: Primary cobalt bloom — centered, overhead light source */
        radial-gradient(ellipse 90% 50% at 50% 15%, rgba(14, 165, 233, 0.08) 0%, transparent 65%),
        /* Layer 2: Secondary side bloom — asymmetric depth cue */
        radial-gradient(ellipse 50% 40% at 25% 70%, rgba(14, 165, 233, 0.04) 0%, transparent 55%),
        /* Layer 3: Warm counter-bloom — subtle temperature contrast */
        radial-gradient(ellipse 40% 30% at 75% 85%, rgba(255, 138, 0, 0.015) 0%, transparent 50%),
        /* Layer 4: Deep void floor */
        var(--void);
    z-index: 0;
}

/* Horizon scanline — subtle depth marker between hero and content below */
.ghost-hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(14, 165, 233, 0.12) 20%,
            rgba(14, 165, 233, 0.25) 50%,
            rgba(14, 165, 233, 0.12) 80%,
            transparent 100%);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.08), 0 0 60px rgba(14, 165, 233, 0.03);
}

/* ── Hero Content Container ── */
.ghost-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

/* ── Ghost Hardware H1 Glow ── */
.ghost-hero .ghost-h1 {
    text-shadow: 0 0 80px rgba(255, 255, 255, 0.06);
}

.ghost-hero .ghost-h1-accent {
    filter: drop-shadow(0 0 40px rgba(14, 165, 233, 0.2));
}

/* ── Ghost Hardware Subtitle Polish ── */
.ghost-hero .ghost-sub {
    max-width: 640px;
    margin: 0 auto;
    color: var(--ink-dim);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.03);
}

/* ── OMEGA MAX GOD-MODE MATRIX ── */
.ghost-omega-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
    margin: 32px auto 0;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.omega-cell {
    background: rgba(10, 10, 12, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(0, 0, 0, 0.9);
    border-radius: var(--r-sm);
    padding: 18px 20px 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(40px) saturate(2);
    -webkit-backdrop-filter: blur(40px) saturate(2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 15px rgba(0, 0, 0, 0.9),
        0 20px 40px -10px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(0, 0, 0, 1);
    transition: all 0.3s var(--ease-hardware);
}

.omega-cell.active-yield {
    background: linear-gradient(180deg, rgba(20, 24, 28, 0.95) 0%, rgba(10, 10, 12, 0.95) 100%);
    box-shadow:
        inset 0 1px 0 rgba(14, 165, 233, 0.2),
        inset 0 0 20px rgba(0, 0, 0, 0.8),
        inset 0 0 0 1px rgba(14, 165, 233, 0.15),
        0 20px 40px -10px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(14, 165, 233, 0.15);
}

.omega-cell::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 12px 12px, 12px 12px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.omega-cell:hover {
    transform: translateY(-4px) scale(1.02);
    border-top-color: rgba(255, 255, 255, 0.3);
    box-shadow:
        inset 0 0 20px rgba(0, 0, 0, 0.8),
        0 50px 100px -20px rgba(0, 0, 0, 1),
        0 0 0 1px rgba(0, 0, 0, 1),
        0 0 40px rgba(255, 255, 255, 0.05);
}

.omega-cell>* {
    position: relative;
    z-index: 1;
}

/* Badges */
.omega-badge {
    position: absolute;
    top: -1px;
    right: 16px;
    padding: 2px 6px;
    font-family: var(--font-mono);
    font-size: 0.45rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    border: 1px solid transparent;
    border-top: none;
    background: #0A0A0C;
    z-index: 10;
}

.badge-blue {
    color: var(--cobalt-bright);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.2);
}

.badge-green {
    color: #10B981;
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2);
}

.badge-orange {
    color: #F59E0B;
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2);
}

/* Micro Typography Rows */
.omega-micro-row {
    display: flex;
    font-family: var(--font-mono);
    font-size: 0.45rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 6px;
}

.omega-micro-row.split {
    justify-content: space-between;
    align-items: flex-start;
}

.omega-micro-row.center {
    justify-content: center;
    text-align: center;
}

.omega-micro-row .text-blue {
    color: var(--cobalt-bright);
}

.omega-micro-row .text-green {
    color: #10B981;
}

.omega-micro-row .text-white {
    color: #FFFFFF;
}

.omega-micro-row .text-right {
    text-align: right;
}

/* Core Value Layout */
.omega-core-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin: 1rem 0 1.25rem;
    position: relative;
}

.omega-core-value .omega-glitch {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: -0.05em;
    line-height: 0.8;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    position: relative;
    display: inline-block;
}

.omega-cell:hover .omega-glitch::before,
.omega-cell:hover .omega-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.omega-cell:hover .omega-glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

.omega-cell:hover .omega-glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(10px, 9999px, 83px, 0);
    }

    20% {
        clip: rect(69px, 9999px, 48px, 0);
    }

    40% {
        clip: rect(11px, 9999px, 67px, 0);
    }

    60% {
        clip: rect(18px, 9999px, 12px, 0);
    }

    80% {
        clip: rect(87px, 9999px, 87px, 0);
    }

    100% {
        clip: rect(21px, 9999px, 5px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
    }

    20% {
        clip: rect(44px, 9999px, 86px, 0);
    }

    40% {
        clip: rect(87px, 9999px, 12px, 0);
    }

    60% {
        clip: rect(5px, 9999px, 49px, 0);
    }

    80% {
        clip: rect(87px, 9999px, 8px, 0);
    }

    100% {
        clip: rect(11px, 9999px, 83px, 0);
    }
}

.omega-core-value .omega-unit {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--cobalt-pale);
    letter-spacing: 0.05em;
    margin-left: 2px;
}

/* Scanner Line Automation */
.omega-scanline {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(14, 165, 233, 0.05) 50%, transparent 100%);
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
    z-index: 20;
}

.omega-cell:hover .omega-scanline {
    animation: scan-drop 2s ease-in-out infinite;
    opacity: 1;
}

@keyframes scan-drop {
    0% {
        transform: translateY(-100%);
    }

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

/* Footer Stamp */
.omega-footer-stamp {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-mono);
    font-size: 0.4rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════════════
   HARDWARE MODULE — The step/feature card system
   Each module is a physical "plate" with atmospheric layers
   ═══════════════════════════════════════════════════════════════════════ */
.ghost-modules-section {
    position: relative;
    padding: clamp(64px, 8vw, 112px) 0;
    /* Unified Macro Vertical Gap */
}

.ghost-modules-head {
    text-align: center;
    margin-bottom: clamp(32px, 5vw, 56px);
    position: relative;
    z-index: 2;
}

/* ── Ghost Hardware Section Header Typography ── */
.ghost-modules-head .ghost-h2 {
    text-shadow:
        0 0 40px rgba(255, 255, 255, 0.15),
        0 0 80px rgba(255, 255, 255, 0.05);
}

.ghost-modules-head .ghost-h1-accent {
    filter: drop-shadow(0 0 60px rgba(14, 165, 233, 0.4));
}

.ghost-modules-head .ghost-sub {
    max-width: 580px;
    margin: 0 auto;
    color: var(--ink-soft);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.06);
}

/* ── Eyebrow indicator boost ── */
.ghost-modules-head .ghost-eyebrow {
    justify-content: center;
}

/* ── Cobalt scanline divider between header and modules track ── */
.ghost-modules-head::after {
    content: '';
    display: block;
    width: 200px;
    height: 1px;
    margin: clamp(32px, 5vw, 56px) auto 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(14, 165, 233, 0.3) 30%,
            rgba(14, 165, 233, 0.5) 50%,
            rgba(14, 165, 233, 0.3) 70%,
            transparent 100%);
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.15), 0 0 40px rgba(14, 165, 233, 0.06);
}

/* ── Asymmetric module layout — NOT a grid ── */
.ghost-modules-track {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 3vw, 40px);
    /* Increased gap for isolation */
}

/* ── Individual hardware module ── */
.ghost-module {
    position: relative;
    display: grid;
    /* Asymmetrical base: 40% content, 60% visual */
    grid-template-columns: 1.2fr 1.8fr;
    gap: 0;
    min-height: 400px;
    /* Fluid expansion: no more rigid 480px guillotine */
    border-radius: var(--r-xl);
    /* Parent retains overflow hidden for the glass chassis, but children can stretch it */
    overflow: hidden;
    background: linear-gradient(135deg, rgba(20, 20, 22, 0.95) 0%, rgba(10, 10, 12, 0.98) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    /* Specular top edge highlight */
    box-shadow: var(--shadow-plate), inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 2px 20px rgba(255, 255, 255, 0.015);
    transition: transform var(--dur-fast) var(--ease-hardware), box-shadow var(--dur-fast) var(--ease-hardware);
}

.ghost-module:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-plate), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 80px rgba(14, 165, 233, 0.06);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.ghost-module:active {
    transform: translateY(0) scale(0.99);
    box-shadow: 0 12px 40px -16px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Alternate layout direction — Reverse the asymmetry */
.ghost-module:nth-child(even) {
    grid-template-columns: 1.8fr 1.2fr;
}

/* Ensure content stays in logical DOM order while visually flipping */
.ghost-module:nth-child(even) .ghost-module-content {
    grid-column: 2;
    grid-row: 1;
}

.ghost-module:nth-child(even) .ghost-module-visual {
    grid-column: 1;
    grid-row: 1;
}

/* ── Module content side ── */
.ghost-module-content {
    padding: clamp(24px, 3vw, 36px) clamp(32px, 5vw, 56px);
    /* Terminal-density: compressed vertical chassis */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.ghost-module-step {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--cobalt);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.ghost-module-step::before {
    content: '';
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--cobalt) 0%, transparent 100%);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.4);
    opacity: 0.8;
}

/* ── Module visual/demo side ── */
.ghost-module-visual {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: clamp(32px, 4vw, 56px);
    /* Terminal-density: expansive visual chassis */
    background: var(--void);
    border-left: 1px solid rgba(255, 255, 255, 0.02);
    box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.5), inset 0 0 60px rgba(0, 0, 0, 0.8);
    min-height: 100%;
    /* No visual clipping: allow complex overlapping children to render */
    overflow: visible;
}

.ghost-module:nth-child(even) .ghost-module-visual {
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.02);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.5), inset 0 0 60px rgba(0, 0, 0, 0.8);
}

/* Inner glow on visual pane */
.ghost-module-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% 30%, rgba(14, 165, 233, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Module Typography Overrides ── */
.ghost-module-content .ghost-h3 {
    text-shadow: 0 0 32px rgba(255, 255, 255, 0.15);
    letter-spacing: -0.04em;
}

/* ═══════════════════════════════════════════════════════════════════════
   INLINE DEMO COMPONENTS
   These simulate the actual FoldOps UI inside the modules
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Phone mockup (incoming call) ── */
.demo-phone {
    width: 260px;
    border-radius: 24px;
    background: var(--carbon);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    /* Specular inner */
    box-shadow: var(--shadow-module), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    /* Hardware bezel */
    overflow: hidden;
    padding: 16px;
}

.demo-phone-status {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--ink-ghost);
    margin-bottom: 20px;
    padding: 0 4px;
}

.demo-phone-caller {
    text-align: center;
    padding: 20px 0;
}

.demo-phone-caller-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

.demo-phone-caller-type {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--ink-ghost);
    letter-spacing: 0.1em;
}

.demo-phone-badge {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 20px;
    border-radius: 6px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.demo-phone-badge--missed {
    background: rgba(255, 90, 102, 0.12);
    border: 1px solid rgba(255, 90, 102, 0.25);
    color: var(--signal-red);
}

/* ── SMS conversation mockup ── */
.demo-sms {
    width: 280px;
    border-radius: 20px;
    background: var(--carbon);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-module);
    padding: 18px;
}

.demo-sms-header {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--ink-ghost);
    letter-spacing: 0.18em;
    text-align: center;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 16px;
}

.demo-sms-thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-sms-bubble {
    max-width: 82%;
    padding: 12px 16px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--ink);
    border-radius: 16px;
}

.demo-sms-bubble--out {
    align-self: flex-end;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 16px 16px 4px 16px;
}

.demo-sms-bubble--in {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px 16px 16px 4px;
}

.demo-sms-typing {
    align-self: flex-start;
    display: flex;
    gap: 4px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
}

.demo-sms-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ink-ghost);
    animation: typing-dot 1.4s ease-in-out infinite;
}

.demo-sms-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.demo-sms-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-dot {

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

    30% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

/* ── Qualification terminal ── */
.demo-terminal {
    width: 300px;
    border-radius: 16px;
    background: var(--carbon);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-module);
    overflow: hidden;
}

.demo-terminal-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.demo-terminal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.demo-terminal-dot--red {
    background: var(--signal-red);
}

.demo-terminal-dot--amber {
    background: var(--signal-amber);
}

.demo-terminal-dot--green {
    background: var(--signal-green);
}

.demo-terminal-title {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--ink-ghost);
    margin-left: 8px;
    letter-spacing: 0.08em;
}

.demo-terminal-body {
    padding: 18px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 2;
}

.demo-terminal-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
    margin-bottom: 10px;
}

.demo-terminal-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.demo-terminal-key {
    color: var(--ink-ghost);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.58rem;
}

.demo-terminal-val {
    color: var(--ink);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.demo-terminal-val--cobalt {
    color: var(--cobalt-bright);
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
    font-weight: 800;
}

.demo-terminal-val--green {
    color: var(--signal-green);
}

.demo-terminal-val--red {
    color: var(--signal-red);
}

/* ── Separator conduit (horizontal) ── */
.demo-conduit-h {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cobalt), transparent);
    opacity: 0.4;
    box-shadow: 0 0 12px var(--cobalt-glow);
    margin: 16px 0;
}

/* ── Booking ticket ── */
.demo-ticket {
    width: 300px;
    border-radius: 16px;
    background: var(--carbon);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-module);
    overflow: hidden;
}

.demo-ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.demo-ticket-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    font-family: var(--font-display);
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.25);
    color: var(--cobalt-bright);
}

.demo-ticket-time {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--ink-ghost);
}

.demo-ticket-body {
    padding: 20px;
}

.demo-ticket-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.demo-ticket-row:last-child {
    margin-bottom: 0;
}

.demo-ticket-key {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-ghost);
    padding-top: 2px;
}

.demo-ticket-val {
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.demo-ticket-cta {
    display: block;
    margin: 16px 20px 20px;
    padding: 14px;
    border-radius: var(--r-sm);
    text-align: center;
    background: linear-gradient(135deg, var(--cobalt), var(--cobalt-deep));
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-decoration: none;
    box-shadow: 0 0 24px var(--cobalt-glow);
    transition: transform var(--dur-fast) var(--ease-hardware), box-shadow var(--dur-fast) var(--ease-hardware);
}

.demo-ticket-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.demo-ticket-cta:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ═══════════════════════════════════════════════════════════════════════
   ROI SECTION — The loud statement
   ═══════════════════════════════════════════════════════════════════════ */
.ghost-roi-section {
    position: relative;
    padding: clamp(64px, 8vw, 112px) 0;
    /* Unified Macro Vertical Gap */
    text-align: center;
}

.ghost-roi-number {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.9;
    color: #fff;
    /* Push to stark white for intense contrast */
    text-shadow: 0 0 80px rgba(14, 165, 233, 0.4), 0 0 120px rgba(14, 165, 233, 0.15);
    /* Controlled atmospheric cobalt glow */
    margin-bottom: 20px;
}

.ghost-roi-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-ghost);
    margin-bottom: 40px;
}

.ghost-roi-context {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: var(--ink-dim);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════════════
   HUD VISUAL PAYLOAD SYSTEM — OMEGA TIER
   Evangelion Cockpit × Bloomberg Terminal × Ghost Hardware
   Z-Stack: Circuit Grid → Scanning Line → Glass Panes → Data Layer
   ═══════════════════════════════════════════════════════════════════════ */

/* ── OMEGA Keyframes ── */
@keyframes hud-scan {
    0% {
        top: -2px;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: calc(100% + 2px);
        opacity: 0;
    }
}

@keyframes hud-pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

@keyframes hud-blink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

@keyframes hud-sweep {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes hud-breathe {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(14, 165, 233, 0.05);
    }

    50% {
        box-shadow: 0 0 40px rgba(14, 165, 233, 0.12);
    }
}

/* ── HUD Container — OMEGA Tier ── */
.hud {
    width: 100%;
    height: auto;
    min-height: 100%;
    /* Fluid: stretch parent container natively */
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: var(--font-mono);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    position: relative;
    /* Removed overflow: hidden to allow Z-axis bleed architectures */
    overflow: visible;
    padding: 0;
    animation: hud-breathe 4s ease-in-out infinite;
}

/* ── Radical Geometry Overlap Classes ── */
.hud-glass-plate {
    position: relative;
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--carbon-2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--r-md);
    padding: clamp(12px, 2vw, 20px);
    box-shadow: var(--shadow-plate);
    z-index: 1;
    transition: transform var(--dur-mid) var(--ease-hardware), box-shadow var(--dur-mid) var(--ease-hardware);
    will-change: transform;
}

.ghost-module-visual:hover .hud-glass-plate {
    transform: translateY(2px) translateX(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.hud-data-slab {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 60%;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--r-sm);
    padding: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 10;
    transition: transform var(--dur-mid) var(--ease-hardware), border-color var(--dur-mid) var(--ease-hardware), box-shadow var(--dur-mid) var(--ease-hardware);
    will-change: transform;
}

.ghost-module-visual:hover .hud-data-slab {
    transform: translateY(-8px) translateX(8px);
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: -20px 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ── HYPNOTIC COMPLEXITY LAYER ── */
.hud-micro-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}

.hud-micro-readout {
    position: absolute;
    font-size: 0.45rem;
    font-family: var(--font-mono);
    color: var(--ink-ghost);
    letter-spacing: 0.1em;
    pointer-events: none;
    z-index: 20;
    opacity: 0;
    transition: opacity var(--dur-mid) var(--ease-hardware);
}

.ghost-module-visual:hover .hud-micro-readout {
    opacity: 1;
}

.hud-vertical-ledger {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -20px;
    width: 32px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    gap: 12px;
    z-index: 5;
}

.ledger-tick {
    width: 12px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.ledger-tick--active {
    background: var(--cobalt);
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.5);
}

/* Z-0: Circuit grid background */
.hud::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(14, 165, 233, 0.03) 39px, rgba(14, 165, 233, 0.03) 40px),
        repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(14, 165, 233, 0.03) 39px, rgba(14, 165, 233, 0.03) 40px);
    pointer-events: none;
    z-index: 0;
}

/* Z-1: Scanning line */
.hud::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(14, 165, 233, 0.4) 30%, rgba(14, 165, 233, 0.6) 50%, rgba(14, 165, 233, 0.4) 70%, transparent 100%);
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.3), 0 0 30px rgba(14, 165, 233, 0.1);
    z-index: 10;
    pointer-events: none;
    animation: hud-scan 6s linear infinite;
}

/* ── REC Indicator ── */
.hud-rec {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.4rem;
    letter-spacing: 0.2em;
    color: var(--signal-red);
    font-weight: 800;
    animation: hud-blink 1s step-end infinite;
}

.hud-rec::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--signal-red);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 90, 102, 0.6);
}

/* ── Corner Registration Marks ── */
.hud-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    z-index: 5;
    pointer-events: none;
}

.hud-corner--tl {
    top: 0;
    left: 0;
    border-top: 1px solid rgba(14, 165, 233, 0.2);
    border-left: 1px solid rgba(14, 165, 233, 0.2);
}

.hud-corner--tr {
    top: 0;
    right: 0;
    border-top: 1px solid rgba(14, 165, 233, 0.2);
    border-right: 1px solid rgba(14, 165, 233, 0.2);
}

.hud-corner--bl {
    bottom: 0;
    left: 0;
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
    border-left: 1px solid rgba(14, 165, 233, 0.2);
}

.hud-corner--br {
    bottom: 0;
    right: 0;
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
    border-right: 1px solid rgba(14, 165, 233, 0.2);
}

/* ── Sparkline Micro-Viz ── */
.hud-sparkline {
    display: flex;
    align-items: flex-end;
    gap: 1px;
    height: 16px;
    margin-top: 4px;
}

.hud-spark {
    width: 3px;
    border-radius: 1px 1px 0 0;
    background: rgba(14, 165, 233, 0.3);
    transition: height 0.3s var(--ease-hardware);
}

.hud-spark--active {
    background: var(--cobalt-bright);
    box-shadow: 0 0 4px rgba(14, 165, 233, 0.4);
}

.hud-spark--red {
    background: rgba(255, 90, 102, 0.5);
}

.hud-spark--green {
    background: rgba(52, 211, 153, 0.5);
}

/* ── Conic Radar Sweep ── */
.hud-radar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(14, 165, 233, 0.15);
    position: relative;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.05) 0%, transparent 70%);
}

.hud-radar::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(14, 165, 233, 0.2) 10%, transparent 30%);
    animation: hud-sweep 3s linear infinite;
}

.hud-radar-dot {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--cobalt-bright);
    box-shadow: 0 0 4px rgba(14, 165, 233, 0.6);
}

/* ── Sub-Grid Layout (2-col inside panes) ── */
.hud-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    flex-shrink: 1;
    min-height: 0;
    overflow: hidden;
    /* Fluid: sub-grid compresses with siblings */
}

/* ── Mini progress ring ── */
.hud-ring {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.04);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hud-ring-fill {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid transparent;
}

.hud-ring-fill--cobalt {
    border-top-color: var(--cobalt-bright);
    border-right-color: var(--cobalt-bright);
    box-shadow: 0 0 6px rgba(14, 165, 233, 0.3);
}

.hud-ring-val {
    font-size: 0.45rem;
    font-weight: 900;
    color: #fff;
}

/* ── Waveform visualization ── */
.hud-waveform {
    display: flex;
    align-items: center;
    gap: 1px;
    height: 20px;
    overflow: hidden;
}

.hud-wave-bar {
    width: 2px;
    border-radius: 1px;
    background: rgba(14, 165, 233, 0.25);
    animation: hud-pulse 2s ease-in-out infinite;
}

/* ── Timestamp ── */
.hud-ts {
    font-size: 0.38rem;
    letter-spacing: 0.15em;
    color: var(--ink-dead);
    font-weight: 600;
}

/* ── System Status Bar ── */
.hud-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    /* Status bar: fixed height, never compresses */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    transition: border-color var(--dur-fast) var(--ease-micro);
}

.hud-status-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.5rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-ghost);
    font-weight: 700;
}

.hud-status-val {
    color: var(--ink-dim);
    font-weight: 800;
}

.hud-status-val--live {
    color: var(--signal-green);
    text-shadow: 0 0 8px rgba(52, 211, 153, 0.3);
}

.hud-status-val--warn {
    color: var(--signal-red);
    text-shadow: 0 0 8px rgba(255, 90, 102, 0.3);
}

.hud-status-val--cobalt {
    color: var(--cobalt-bright);
    text-shadow: 0 0 8px rgba(14, 165, 233, 0.3);
}

/* ── Glass Pane ── */
.hud-pane {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 12px;
    position: relative;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-shrink: 1;
    min-height: 0;
    overflow: hidden;
    /* Fluid: proportionally compresses to fit chassis */
    transition: border-color var(--dur-fast) var(--ease-micro), box-shadow var(--dur-fast) var(--ease-micro);
}

.hud-pane:hover {
    border-color: rgba(14, 165, 233, 0.12);
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.04), inset 0 0 20px rgba(14, 165, 233, 0.02);
}

.hud-pane--highlight {
    border-left: 2px solid rgba(14, 165, 233, 0.4);
}

.hud-pane--highlight:hover {
    border-left-color: rgba(14, 165, 233, 0.6);
}

.hud-pane--danger {
    border-left: 2px solid rgba(255, 90, 102, 0.4);
}

.hud-pane--success {
    border-left: 2px solid rgba(52, 211, 153, 0.4);
}

.hud-pane-title {
    font-size: 0.48rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-ghost);
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--dur-fast) var(--ease-micro);
}

.hud-pane:hover .hud-pane-title {
    color: var(--ink-dim);
}

/* ── Micro Metrics Grid ── */
.hud-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.hud-metrics--three {
    grid-template-columns: 1fr 1fr 1fr;
}

.hud-metric {
    text-align: center;
    padding: 8px 4px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.hud-metric-val {
    font-size: 1.1rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1;
}

.hud-metric-val--red {
    color: var(--signal-red);
    text-shadow: 0 0 16px rgba(255, 90, 102, 0.25);
}

.hud-metric-val--green {
    color: var(--signal-green);
    text-shadow: 0 0 16px rgba(52, 211, 153, 0.25);
}

.hud-metric-val--cobalt {
    color: var(--cobalt-bright);
    text-shadow: 0 0 16px rgba(14, 165, 233, 0.25);
}

.hud-metric-lbl {
    font-size: 0.42rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-ghost);
    font-weight: 700;
    margin-top: 4px;
}

/* ── Progress Gauge ── */
.hud-gauge {
    height: 3px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px;
}

.hud-gauge-fill {
    height: 100%;
    border-radius: 2px;
}

.hud-gauge-fill--red {
    background: linear-gradient(90deg, var(--signal-red), rgba(255, 90, 102, 0.5));
    box-shadow: 0 0 8px rgba(255, 90, 102, 0.3);
}

.hud-gauge-fill--green {
    background: linear-gradient(90deg, var(--signal-green), rgba(52, 211, 153, 0.5));
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.3);
}

.hud-gauge-fill--cobalt {
    background: linear-gradient(90deg, var(--cobalt), rgba(14, 165, 233, 0.5));
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.3);
}

/* ── Pulse Dot ── */
.hud-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    display: inline-block;
}

.hud-dot--live {
    background: var(--signal-green);
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.5), 0 0 12px rgba(52, 211, 153, 0.2);
    animation: hud-dot-pulse 2s ease-in-out infinite;
}

.hud-dot--warn {
    background: var(--signal-red);
    box-shadow: 0 0 6px rgba(255, 90, 102, 0.5), 0 0 12px rgba(255, 90, 102, 0.2);
    animation: hud-dot-pulse 1s ease-in-out infinite;
}

.hud-dot--cobalt {
    background: var(--cobalt-bright);
    box-shadow: 0 0 6px rgba(14, 165, 233, 0.5), 0 0 12px rgba(14, 165, 233, 0.2);
    animation: hud-dot-pulse 2s ease-in-out infinite;
}

@keyframes hud-dot-pulse {

    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

@keyframes hud-pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* ── HUD Divider ── */
.hud-div {
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, rgba(255, 255, 255, 0.06) 30%, rgba(255, 255, 255, 0.06) 70%, transparent 95%);
    margin: 4px 0;
}

.hud-div--cobalt {
    background: linear-gradient(90deg, transparent 5%, rgba(14, 165, 233, 0.25) 30%, rgba(14, 165, 233, 0.25) 70%, transparent 95%);
    box-shadow: 0 0 6px rgba(14, 165, 233, 0.1);
}

.hud-div--green {
    background: linear-gradient(90deg, transparent 5%, rgba(52, 211, 153, 0.2) 30%, rgba(52, 211, 153, 0.2) 70%, transparent 95%);
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.1);
}

/* ── HUD Row ── */
.hud-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.015);
    transition: background var(--dur-fast) var(--ease-micro);
}

.hud-row:last-child {
    border-bottom: none;
}

.hud-row:hover {
    background: rgba(14, 165, 233, 0.03);
}

.hud-row-key {
    color: var(--ink-ghost);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.48rem;
}

.hud-row-val {
    color: var(--ink);
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 0.65rem;
}

/* ── Pipeline Flow ── */
.hud-pipeline {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    flex-wrap: wrap;
}

.hud-pipe-node {
    padding: 4px 8px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 3px;
    font-size: 0.42rem;
    letter-spacing: 0.12em;
    color: var(--cobalt-pale);
    font-weight: 700;
    white-space: nowrap;
}

.hud-pipe-node--active {
    background: rgba(14, 165, 233, 0.2);
    border-color: rgba(14, 165, 233, 0.4);
    color: var(--cobalt-bright);
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.15);
    animation: pipe-pulse 2s ease-in-out infinite;
}

@keyframes pipe-pulse {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(14, 165, 233, 0.15);
    }

    50% {
        box-shadow: 0 0 14px rgba(14, 165, 233, 0.3);
    }
}

.hud-pipe-arrow {
    color: var(--ink-dead);
    font-size: 0.5rem;
    animation: pipe-flow 1.5s ease-in-out infinite;
}

@keyframes pipe-flow {

    0%,
    100% {
        opacity: 0.4;
        transform: translateX(0);
    }

    50% {
        opacity: 1;
        transform: translateX(2px);
    }
}

/* ── Confidence Bar ── */
.hud-confidence-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 3px;
    overflow: hidden;
}

.hud-confidence-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--cobalt-deep), var(--cobalt-bright));
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.3);
    position: relative;
    overflow: hidden;
}

.hud-confidence-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: confidence-shimmer 3s ease-in-out infinite;
}

@keyframes confidence-shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

/* ── Tags ── */
.hud-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.42rem;
    letter-spacing: 0.1em;
    font-weight: 800;
}

.hud-tag--green {
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.25);
    color: var(--signal-green);
    text-shadow: 0 0 6px rgba(52, 211, 153, 0.2);
    transition: all var(--dur-fast) var(--ease-micro);
}

.hud-tag--green:hover {
    background: rgba(52, 211, 153, 0.18);
    border-color: rgba(52, 211, 153, 0.4);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.15);
}

.hud-tag--red {
    background: rgba(255, 90, 102, 0.12);
    border: 1px solid rgba(255, 90, 102, 0.25);
    color: var(--signal-red);
    text-shadow: 0 0 6px rgba(255, 90, 102, 0.2);
    transition: all var(--dur-fast) var(--ease-micro);
}

.hud-tag--cobalt {
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.25);
    color: var(--cobalt-bright);
    text-shadow: 0 0 6px rgba(14, 165, 233, 0.2);
    transition: all var(--dur-fast) var(--ease-micro);
}

/* ═══════════════════════════════════════════════════════════════════════
   FINAL DEPLOY — Ghost Hardware Bottom CTA
   Conversion anchor — machined trigger + atmospheric depth
   ═══════════════════════════════════════════════════════════════════════ */
.ghost-deploy {
    position: relative;
    padding: clamp(80px, 10vw, 140px) 0;
    text-align: center;
    overflow: hidden;
}

/* Atmospheric background — centered cobalt bloom */
.ghost-deploy::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(14, 165, 233, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 30% 20%, rgba(14, 165, 233, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Top scanline separator — anchors section against content above */
.ghost-deploy::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(14, 165, 233, 0.2) 20%,
            rgba(14, 165, 233, 0.4) 50%,
            rgba(14, 165, 233, 0.2) 80%,
            transparent 100%);
    box-shadow: 0 0 16px rgba(14, 165, 233, 0.1), 0 0 50px rgba(14, 165, 233, 0.04);
}

/* ── Deploy section typography overrides ── */
.ghost-deploy .ghost-h2 {
    text-shadow:
        0 0 40px rgba(255, 255, 255, 0.12),
        0 0 100px rgba(255, 255, 255, 0.04);
}

.ghost-deploy .ghost-h1-accent {
    filter: drop-shadow(0 0 60px rgba(14, 165, 233, 0.35));
}

.ghost-deploy .ghost-sub {
    max-width: 540px;
    color: var(--ink-soft);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
}

.ghost-deploy .ghost-eyebrow {
    justify-content: center;
}

.ghost-deploy .ghost-reveal {
    position: relative;
    z-index: 2;
}

/* ── Machined Hardware CTA Trigger ── */
.ghost-deploy-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 48px;
    border-radius: var(--r-sm);
    /* Machined rectangle, NOT pill */
    background: linear-gradient(135deg, var(--cobalt), var(--cobalt-deep));
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    /* Specular top edge */
    box-shadow:
        0 0 50px rgba(14, 165, 233, 0.25),
        0 20px 60px -12px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.5);
    transition:
        transform var(--dur-fast) var(--ease-hardware),
        box-shadow var(--dur-fast) var(--ease-hardware),
        border-color var(--dur-fast) var(--ease-hardware);
}

/* Glass sheen — inner surface reflectivity */
.ghost-deploy-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20%;
    width: 60%;
    height: 100%;
    background: linear-gradient(105deg,
            transparent 20%,
            rgba(255, 255, 255, 0.08) 40%,
            rgba(255, 255, 255, 0.12) 50%,
            rgba(255, 255, 255, 0.08) 60%,
            transparent 80%);
    pointer-events: none;
    transition: left var(--dur-slow) var(--ease-hardware);
}

.ghost-deploy-cta:hover {
    transform: translateY(-4px);
    border-top-color: rgba(255, 255, 255, 0.35);
    box-shadow:
        0 0 80px rgba(14, 165, 233, 0.35),
        0 28px 80px -16px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.5);
}

.ghost-deploy-cta:hover::before {
    left: 100%;
}

.ghost-deploy-cta:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow:
        0 0 30px rgba(14, 165, 233, 0.2),
        0 10px 30px -8px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER — Minimal Ghost Hardware
   ═══════════════════════════════════════════════════════════════════════ */
.ghost-footer {
    position: relative;
    padding: 60px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    background: var(--carbon);
}

.ghost-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.ghost-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.ghost-footer-brandname {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--ink-ghost);
}

.ghost-footer-tagline {
    font-size: 0.82rem;
    color: var(--ink-dead);
    line-height: 1.6;
    max-width: 320px;
}

.ghost-footer-title {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-ghost);
    margin-bottom: 16px;
}

.ghost-footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ghost-footer-links a {
    font-size: 0.82rem;
    color: var(--ink-dead);
    text-decoration: none;
    transition: color var(--dur-fast) ease;
}

.ghost-footer-links a:hover {
    color: var(--ink-dim);
}

.ghost-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.ghost-footer-copy {
    font-size: 0.72rem;
    color: var(--ink-dead);
}

.ghost-footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--ink-ghost);
}

.ghost-footer-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cobalt);
    box-shadow: 0 0 8px var(--cobalt-glow);
}

/* ═══════════════════════════════════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════════════════════════════════ */
.ghost-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--ease-hardware), transform 0.8s var(--ease-hardware);
}

.ghost-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ghost-reveal-delay-1 {
    transition-delay: 0.1s;
}

.ghost-reveal-delay-2 {
    transition-delay: 0.2s;
}

.ghost-reveal-delay-3 {
    transition-delay: 0.3s;
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile stack
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .ghost-module {
        grid-template-columns: 1fr;
    }

    .ghost-module:nth-child(even) {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .ghost-module:nth-child(even) .ghost-module-content,
    .ghost-module:nth-child(even) .ghost-module-visual {
        grid-column: 1;
        grid-row: auto;
    }

    .ghost-module-content {
        padding: 22px 18px;
    }

    .ghost-module-visual {
        border-left: none !important;
        border-right: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.03);
        min-height: 0;
        padding: 20px 14px 16px;
    }

    .ghost-hero-stats-hud {
        grid-template-columns: 1fr;
        margin: 2rem 1rem 0;
    }

    .ghost-hero-stats-hud .hud-cell {
        padding: 1.5rem;
    }

    .ghost-hero-stats-hud .hud-value {
        font-size: 2.8rem;
    }

    .ghost-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ghost-nav {
        display: none;
    }

    .ghost-header-cta {
        display: none;
    }

    /* ── Hide conduit line on mobile — interferes with text ── */
    .ghost-conduit {
        display: none;
    }

    .ghost-bloom {
        width: 100vw;
        max-width: 100vw;
    }

    .ghost-hero {
        height: auto;
        min-height: 0;
        justify-content: flex-start;
        padding: 108px var(--shell-pad) 56px;
    }

    .ghost-hero-content {
        width: 100%;
    }

    /* ── Omega stats grid — stack 1-col on mobile ── */
    .ghost-omega-matrix {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 24px 0 0;
    }

    .omega-core-value .omega-glitch {
        font-size: 2.4rem;
    }

    /* ── Headings — prevent overflow and clipping ── */
    .ghost-h1 {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
        line-height: 0.95;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .ghost-h2 {
        font-size: clamp(1.8rem, 6vw, 2.8rem);
        line-height: 1;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* ── Deploy CTA section — contain heading width ── */
    .ghost-deploy {
        padding: 60px 16px;
    }

    .ghost-deploy .ghost-h2 {
        font-size: clamp(1.45rem, 5vw, 2rem);
        line-height: 1.04;
        letter-spacing: -0.03em;
        max-width: 12ch;
        margin-left: auto;
        margin-right: auto;
        text-wrap: balance;
        overflow-wrap: anywhere;
    }

    /* ── Stats row (75%/Custom/Days) — force 1-col, overrides inline style ── */
    .ghost-stats-row {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* ── HUD data slab — stop bleeding off left edge on mobile ── */
    .hud-data-slab {
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        top: 12px !important;
        margin: 12px 0 0 !important;
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box;
        align-self: stretch;
        transform: none !important;
        will-change: auto;
    }

    .hud-data-slab .hud-row {
        gap: 10px;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .hud-data-slab .hud-row-val {
        text-align: right;
        margin-left: auto;
    }

    .hud-data-slab .hud-pane-title {
        flex-wrap: wrap;
    }

    .hud-data-slab a {
        font-size: 0.6rem !important;
        letter-spacing: 0.1em !important;
        padding: 10px 12px !important;
        white-space: normal;
    }

    /* ── Ghost module visual — contain overflow ── */
    .ghost-module-visual {
        overflow: hidden;
    }

    /* ── HUD vertical ledger — hide on mobile, causes bleed ── */
    .hud-vertical-ledger {
        display: none;
    }

    /* ── Ghost module step label — wrap long text ── */
    .ghost-module-step {
        font-size: 0.55rem !important;
        word-break: break-word;
    }

    /* ── Ghost ROI section ── */
    .ghost-roi-number {
        font-size: clamp(3rem, 12vw, 5rem) !important;
    }
}
