/* Colour Palette */
:root {
    --void: #050505;
    --surface: #0f0f0f;
    --surface-2: #0a0a0a;
    --border-subtle: #1f1f1f;
    --border-strong: #2a2a2a;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #5a5a5a;
    --signal-red: #ff3333;
    --signal-green: #10b981;
    --signal-amber: #f59e0b;
}

/* Global Box-Sizing Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Base Styles */
html, body {
    margin: 0;
    padding: 0;
    background: var(--void);
    color: var(--text-primary);
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    cursor: crosshair;
    min-height: 100vh;
}
::selection {
    background: var(--signal-red);
    color: #000;
}
a, button, [role="button"] {
    cursor: not-allowed;
    text-decoration: none;
    color: inherit;
}
img {
    display: block;
    max-width: 100%;
}
.tabular {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}
.muted {
    color: var(--text-muted);
}
.red {
    color: var(--signal-red);
}
.hide-sm {
    display: none;
}

/* Overlays: grain, scanlines, vignette */
.grain::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 60;
    opacity: 0.07;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.scanlines::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 59;
    background: repeating-linear-gradient(to bottom,rgba(255, 255, 255, 0.015) 0, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 3px);
}
.vignette {
    position: relative;
}
.vignette > .vignette-fx, body.vignette::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 58;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.65) 100%);
}

/* Chips */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.02);
    font-family: "JetBrains Mono", monospace;
    line-height: 1.4;
}
.chip.red {
    color: var(--signal-red);
    border-color: rgba(255, 51, 51, 0.4);
    background: rgba(255, 51, 51, 0.06);
}
.chip.green {
    color: var(--signal-green);
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.06);
}
.led {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
    flex-shrink: 0;
}
@keyframes pulse-soft {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.45;
    }
}
.pulse-soft {
    animation: pulse-soft 2s ease-in-out infinite;
}

/* ---- Header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-mark {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
}
.logo-diamond {
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transform: rotate(45deg);
}
.logo-title {
    font-family: "Cabinet Grotesk", sans-serif;
    font-weight: 900;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1;
}
.logo-sub {
    margin-top: 4px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #6b7280;
    line-height: 1;
}
.nav {
    display: none;
    align-items: center;
    gap: 24px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #9ca3af;
}
.nav a {
    text-decoration: line-through;
    text-decoration-color: #3f3f3f;
    transition: color 120ms linear;
}
.nav a:hover {
    color: #fff;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
@media (min-width: 768px) {
    .header-inner {
        padding: 12px 40px;
    }
    .nav {
        display: flex;
    }
    .hide-sm {
        display: inline-flex;
    }
}

/* ---- Marquee ---- */
.marquee {
    border-top: 1px solid #1f1f1f;
    border-bottom: 1px solid #1f1f1f;
    background: rgba(0, 0, 0, 0.6);
    overflow: hidden;
    user-select: none;
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
    padding: 12px 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #d4d4d4;
    white-space: nowrap;
}
.marquee-track > span {
    padding-right: 64px;
    flex-shrink: 0;
}
@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ---- Hero ---- */
.hero {
    position: relative;
    border-bottom: 1px solid #141414;
}
.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.4;
    pointer-events: none;
}
.hero-inner {
    position: relative;
    padding: 64px 24px 64px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
.chip-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.hero-title {
    font-family: "Cabinet Grotesk", sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 0.85;
    font-size: clamp(48px, 9vw, 120px);
    margin: 0;
}
.hero-lead {
    max-width: 560px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}
.hero-lead-strong {
    color: #e5e7eb;
}
.lead-underline {
    text-decoration: underline;
    text-decoration-color: var(--signal-red);
}
.cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.btn-brutal {
    font-family: "Cabinet Grotesk", sans-serif;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 1px solid var(--text-primary);
    background: transparent;
    color: var(--text-primary);
    padding: 14px 20px;
    font-size: 13px;
    transition: background-color 120ms linear, color 120ms linear, transform 120ms ease;
}
.btn-brutal:hover {
    background: var(--signal-red);
    color: #000;
    border-color: var(--signal-red);
}
.btn-brutal:active {
    transform: translate(1px, 1px);
}
.btn-brutal.btn-danger {
    border-color: var(--signal-red);
    color: var(--signal-red);
    align-self: flex-start;
    padding: 18px 32px;
    font-size: 16px;
}
.btn-brutal.btn-danger:hover {
    background: var(--signal-red);
    color: #000;
}
.btn-disabled {
    padding: 14px 20px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border: 1px solid #262626;
    background: transparent;
    color: #525252;
}
.hero-copy {
    display: flex; flex-direction: column; gap: 28px;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 12px;
}
.hero-stat {
    padding: 16px;
    border-right: 1px solid #141414;
}
.hero-stat:last-child {
    border-right: none;
}
.hero-stat-num {
    font-family: "Cabinet Grotesk", sans-serif;
    font-weight: 900;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1;
}
.hero-stat-lbl {
    margin-top: 8px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #6b7280;
}
.hero-monolith {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.monolith-wrap {
    position: relative;
    width: 78%;
    aspect-ratio: 3 / 4;
}
.monolith-bg {
    position: absolute;
    inset: 0;
    border: 1px solid #2a2a2a;
    background: linear-gradient(to bottom, #171717, #0a0a0a, #000);
    box-shadow: 0 0 120px rgba(255, 51, 51, 0.08);
}
.monolith-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: luminosity;
    opacity: 0.7;
}
.monolith-border {
    position: absolute;
    inset: 0;
    border: 1px solid #262626;
}
.corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 1px solid var(--signal-red);
}
.corner.tl { 
    top: 0; left: 0;
}
.corner.tr {
    top: 0; right: 0;
}
.corner.bl {
    bottom: 0; left: 0;
}
.corner.br {
    bottom: 0; right: 0;
}
.monolith-chip {
    position: absolute;
    left: 0;
    bottom: -32px;
}
.monolith-rev {
    position: absolute;
    right: -8px;
    top: 16px;
    transform-origin: top right;
    transform: rotate(90deg);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #6b7280;
}
@keyframes float-y {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-14px);
    }
}
.float-y {
    animation: float-y 6s ease-in-out infinite;
}
@media (min-width: 1024px) {
    .hero-inner {
        padding: 96px 40px 80px;
        grid-template-columns: 7fr 5fr;
    }
    .hero-monolith {
        min-height: 520px;
    }
}

/* ---- Section generic ---- */
.section {
    padding: 56px 24px;
    border-bottom: 1px solid #141414;
}
@media (min-width: 768px) {
    .section {
        padding: 80px 40px;
    }
}
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.section-eyebrow {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #6b7280;
}
.section-title {
    font-family: "Cabinet Grotesk", sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    font-size: clamp(28px, 4.2vw, 48px);
    line-height: 1;
    margin: 8px 0 0;
}
.section-meta {
    display: none;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #9ca3af;
}
@media (min-width: 768px) {
    .section-meta {
        display: flex;
    }
}
.frame {
    border: 1px solid #1f1f1f;
}
.frame-strong {
    border: 1px solid #2a2a2a;
}

/* ---- Telemetry ---- */
.telemetry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid #141414;
    border-left: 1px solid #141414;
}
@media (min-width: 768px) {
    .telemetry-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.t-cell {
    padding: 24px;
    border-right: 1px solid #141414;
    border-bottom: 1px solid #141414;
}
@media (min-width: 768px) {
    .t-cell {
        padding: 32px;
    }
}
.t-head {
    display: flex;
    align-items: center;
    gap: 8px;
}
.t-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #6b7280;
}
.t-label.red {
    color: var(--signal-red);
}
.t-value {
    margin-top: 16px;
    font-family: "Cabinet Grotesk", sans-serif;
    font-weight: 900;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1;
}
.t-suffix {
    color: #525252;
    font-size: 16px;
    margin-left: 4px;
}
.progress-bar {
    margin-top: 32px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.indet-bar {
    flex: 1;
    height: 6px;
    background: #141414;
    position: relative;
    overflow: hidden;
}
.indet-bar > span {
    position: absolute;
    inset: 0;
    width: 40%;
    background: var(--signal-red);
    animation: indet 2.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes indet {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ---- Control Room ---- */
.control-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 1024px) {
    .control-grid {
        grid-template-columns: 5fr 7fr;
    }
}
.control-copy {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.control-lead {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 480px;
    margin: 0;
}
.warnings-box {
    padding: 16px; max-width: 480px;
}
.warnings-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.warnings-count {
    margin-top: 12px;
    font-family: "Cabinet Grotesk", sans-serif;
    font-weight: 900;
    font-size: 48px;
    line-height: 1;
}
.presses-line {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #404040;
}
@keyframes red-alert {
    0%, 100% {
        background-color: #000;
    }
    50% {
        background-color: rgba(255, 51, 51, 0.15);
    }
}
.red-alert {
    animation: red-alert 0.4s linear 2;
}
.terminal {
    background: #000;
}
.terminal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid #141414;
    background: #0a0a0a;
}
.t-head-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #6b7280;
}
.t-head-dots {
    display: flex;
    gap: 6px;
}
.t-head-dots span {
    width: 10px;
    height: 10px;
    border: 1px solid #262626;
    background: #2a2a2a;
    display: inline-block;
}
.t-head-dots .red-dot {
    background: var(--signal-red);
}
.terminal-body {
    padding: 16px;
    height: 320px;
    overflow-y: auto;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    line-height: 1.6;
    color: #d4d4d4;
}
.terminal-body::-webkit-scrollbar {
    width: 8px;
}
.terminal-body::-webkit-scrollbar-track {
    background: #0a0a0a;
}
.terminal-body::-webkit-scrollbar-thumb {
    background: #262626;
}
.term-line {
    display: flex;
    gap: 10px;
    white-space: pre-wrap;
    word-break: break-word;
}
.term-line .idx {
    color: #404040;
    flex-shrink: 0;
}
.term-line .tag {
    flex-shrink: 0;
    font-weight: 700;
}
.tag-info {
    color: #9ca3af;
}
.tag-boot {
    color: var(--signal-green);
}
.tag-warn {
    color: var(--signal-amber);
}
.tag-err {
    color: var(--signal-red);
}
@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}
.cursor {
    color: var(--signal-green);
    animation: blink 1s steps(1) infinite;
}

/* ---- Seals ---- */
.seals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid #141414;
    border-left: 1px solid #141414;
}
@media (min-width: 768px) {
    .seals-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.seal {
    padding: 24px;
    border-right: 1px solid #141414;
    border-bottom: 1px solid #141414;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: background-color 120ms linear;
}
.seal:hover {
    background: #0a0a0a;
}
@media (min-width: 768px) {
    .seal {
        padding: 32px;
    }
}
.seal-icon {
    width: 48px;
    height: 48px;
    border: 1px solid #404040;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: slow-spin 60s linear infinite;
}
@keyframes slow-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
.seal-title {
    font-family: "Cabinet Grotesk", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    font-size: 15px;
    line-height: 1.2;
}
.seal-cert {
    margin-top: 8px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #6b7280;
}

/* ---- Footer ---- */
.site-footer {
    padding: 40px 24px;
    border-top: 1px solid #141414;
}
@media (min-width: 768px) {
    .site-footer {
        padding: 40px;
    }
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}
.footer-grid > div:first-child {
    grid-column: 1 / -1;
}
@media (min-width: 768px) {
    .footer-grid > div:first-child {
        grid-column: auto;
    }
}
.footer-title {
    font-family: "Cabinet Grotesk", sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 18px;
}
.footer-desc {
    margin-top: 12px;
    font-size: 12px;
    color: #6b7280;
    max-width: 440px;
    line-height: 1.6;
}
.footer-col {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-bottom {
    margin-top: 40px;
    text-align: center;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: #404040;
}