/* ═══════════════════════════════════════════════════════
   Core Defense — Full-Bleed Architectural Telemetry HUD
   Fonts: Space Grotesk (Architectural Sans) + IBM Plex Mono (Defense Terminal)
   Zero Boxes, Edge-to-Edge Grid, High-Status Cyber Engineering
   ═══════════════════════════════════════════════════════ */

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

:root {
    --bg-base: #050608;
    --bg-surface: #090A0E;
    --bg-panel: #0C0D12;
    --bg-highlight: #12141C;

    --border-hairline: rgba(255, 255, 255, 0.08);
    --border-bright: rgba(255, 255, 255, 0.16);
    --border-accent: rgba(52, 211, 153, 0.35);

    --text-pure: #FFFFFF;
    --text-primary: #E4E6ED;
    --text-muted: #8E92A0;
    --text-dim: #505360;

    --accent-emerald: #34d399;
    --accent-blue: #60a5fa;
    --accent-warn: #fbbf24;
    --accent-crit: #f87171;

    --font-display: 'Space Grotesk', -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --transition: 0.15s ease;
}

html, body {
    min-height: 100%;
    background-color: #06070a;
    color: var(--text-primary);
    font-family: var(--font-mono);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Background Atmosphere & Technical Grid (Option 4) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.09) 1.2px, transparent 1.2px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 80% 65% at 50% 25%, black 25%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 25%, black 25%, transparent 85%);
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: 
        radial-gradient(ellipse 60% 40% at 30% 25%, rgba(52, 211, 153, 0.11) 0%, transparent 65%),
        radial-gradient(ellipse 50% 35% at 75% 25%, rgba(96, 165, 250, 0.08) 0%, transparent 65%),
        radial-gradient(circle at 50% 85%, rgba(52, 211, 153, 0.03) 0%, transparent 60%);
    z-index: 0;
}

.hud-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 48px;
    position: relative;
    z-index: 1;
}

/* ── Corner Crosshairs (Hidden when borderless) ── */
.corner-cross {
    display: none;
}

/* ═══════════════════════════════════════════════════════
   Top HUD Bar (Edge-to-Edge)
   ═══════════════════════════════════════════════════════ */

.hud-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    border-bottom: none;
    padding: 0 4px;
    background: transparent;
    position: relative;
}

.hud-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text-pure);
}

.brand-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--accent-blue);
    background: rgba(96, 165, 250, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.25);
    padding: 2px 6px;
    border-radius: 2px;
}

.brand-desc {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.06em;
}

.hud-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hud-btn-primary {
    background: #0E1119;
    border: 1px solid var(--border-bright);
    color: var(--text-pure);
    font-size: 11px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 2px;
    text-decoration: none;
    transition: all var(--transition);
}

.hud-btn-primary:hover {
    background: #151A26;
    border-color: var(--accent-emerald);
    color: var(--accent-emerald);
}

/* ═══════════════════════════════════════════════════════
   Main Grid Stage (Split Panes)
   ═══════════════════════════════════════════════════════ */

.hud-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 36px 4px 56px;
    border-bottom: none;
    flex: 1.1;
}

.hud-pane {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 22px;
    position: relative;
}

.hud-pane.left-pane {
    border-right: none;
}

.pane-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tag-status {
    font-size: 10px;
    color: var(--text-dim);
    background: #090A0E;
    border: 1px solid var(--border-hairline);
    padding: 2px 8px;
    border-radius: 2px;
}

.pane-headline {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-pure);
}

.text-accent {
    color: var(--accent-emerald);
    font-weight: 700;
}

.pane-lead {
    font-family: var(--font-display);
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-muted);
}

.hero-actions-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.btn-action-main {
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.32);
    color: var(--accent-emerald);
    font-size: 12px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: 0 0 24px rgba(52, 211, 153, 0.08);
}

.btn-action-main:hover {
    background: rgba(52, 211, 153, 0.18);
    border-color: var(--accent-emerald);
    color: #FFFFFF;
    box-shadow: 0 0 32px rgba(52, 211, 153, 0.22);
    transform: translateY(-1px);
}

.hero-specs-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.hero-spec-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.05em;
}

.spec-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.spec-dot.blue {
    background: var(--accent-blue);
    box-shadow: 0 0 5px var(--accent-blue);
}

.spec-dot.emerald {
    background: var(--accent-emerald);
    box-shadow: 0 0 5px var(--accent-emerald);
}

.spec-dot.dim {
    background: #475569;
}

/* ═══════════════════════════════════════════════════════
   Right Pane: Telemetry Monitor Box (Sleek & Quiet)
   ═══════════════════════════════════════════════════════ */

.telemetry-monitor-box {
    background: rgba(11, 13, 19, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.monitor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.025);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dot-live {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 6px var(--accent-emerald);
    animation: pulseDot 2.5s infinite;
}

.monitor-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-pure);
    letter-spacing: 0.06em;
    margin-right: auto;
    margin-left: 8px;
}

.monitor-code {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent-blue);
    background: rgba(96, 165, 250, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.2);
    padding: 2px 6px;
    border-radius: 2px;
}

.monitor-rows {
    display: flex;
    flex-direction: column;
}

.monitor-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 12px;
    gap: 12px;
}

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

.monitor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 18px;
    background: rgba(255, 255, 255, 0.015);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.mfoot-label {
    color: var(--text-dim);
}

.mfoot-val {
    color: var(--accent-emerald);
    font-weight: 600;
}

.row-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.row-val {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
}

.row-val.emerald {
    color: var(--accent-emerald);
}

.row-val.blue code {
    color: var(--accent-blue);
    background: rgba(96, 165, 250, 0.08);
    border-color: rgba(96, 165, 250, 0.25);
}

.row-val code {
    font-family: var(--font-mono);
    font-size: 11px;
    background: #0D0F16;
    padding: 2px 7px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-pure);
}

/* ═══════════════════════════════════════════════════════
   Dual-Engine Architecture Strip (NEO-COPILOT vs NEO-AUTOPILOT)
   ═══════════════════════════════════════════════════════ */

.hud-engines-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 0 4px 64px;
    border-bottom: none;
    position: relative;
    background: transparent;
    flex: 1;
}

.engine-col {
    padding: 32px 36px;
    background: rgba(11, 13, 19, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 18px;
    position: relative;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.engine-col:first-child:hover {
    border-color: rgba(96, 165, 250, 0.35);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5), 0 0 24px rgba(96, 165, 250, 0.08);
    transform: translateY(-2px);
}

.engine-col:last-child:hover {
    border-color: rgba(52, 211, 153, 0.35);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5), 0 0 24px rgba(52, 211, 153, 0.08);
    transform: translateY(-2px);
}

.engine-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.engine-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.engine-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: 0.08em;
}

.engine-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 2px;
    letter-spacing: 0.06em;
}

.engine-badge.copilot {
    color: var(--accent-blue);
    background: rgba(96, 165, 250, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.25);
}

.engine-badge.autopilot {
    color: var(--accent-emerald);
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.engine-name {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: var(--text-pure);
    letter-spacing: -0.01em;
}

.engine-desc {
    font-family: var(--font-display);
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

.engine-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.feat-item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: 12px;
    color: #CBD5E1;
    line-height: 1.55;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 3px;
    transition: background var(--transition), border-color var(--transition);
}

.feat-item:hover {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.09);
}

.feat-item strong {
    color: var(--text-pure);
    font-weight: 600;
}

.feat-item code {
    font-family: var(--font-mono);
    font-size: 11px;
    background: #0A0C13;
    padding: 1px 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    color: var(--text-pure);
}

.feat-bullet {
    font-size: 9px;
    flex-shrink: 0;
}

.feat-bullet.blue {
    color: var(--accent-blue);
}

.feat-bullet.emerald {
    color: var(--accent-emerald);
}

/* ═══════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════ */

.hud-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 4px 40px;
    font-size: 11px;
    color: var(--text-dim);
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.footer-right {
    max-width: 700px;
    text-align: right;
    line-height: 1.4;
}

.sep {
    color: #333;
}

/* ═══════════════════════════════════════════════════════
   Responsive Breakpoints
   ═══════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .hud-layout {
        padding: 0 24px;
    }
    .hud-main-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hud-pane.left-pane {
        border-right: none;
        border-bottom: none;
    }
    .hud-engines-strip {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .engine-col {
        border-right: none;
        border-bottom: none;
    }
    .engine-col:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .footer-right {
        text-align: left;
    }
}
