:root {
  --bg: #02070b;
  --panel: #031118;
  --panel-deep: #020a0f;
  --cyan: #00dcf5;
  --green: #00f56a;
  --amber: #ffb526;
  --red: #ff4765;
  --line: #084655;
  --line-soft: #0a333d;
  --text: #dcf9fc;
  --muted: #6d8b93;
  --display: "Orbitron", "Bank Gothic", "Eurostile", "Arial Narrow", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(0, 220, 245, 0.12), transparent 38rem),
    var(--bg);
  font-family: var(--mono);
}

a { color: inherit; }

.site-shell {
  width: min(1920px, calc(100% - 28px));
  min-height: calc(100vh - 28px);
  margin: 14px auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(2, 10, 15, 0.92);
  box-shadow: 0 0 40px rgba(0, 220, 245, 0.06);
}

.system-header {
  min-height: 96px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 330px;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
}

.system-state { display: flex; align-items: center; gap: 14px; }
.status-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); }
.micro-label { display: block; color: var(--cyan); font-size: 0.62rem; letter-spacing: 0.2em; }
.system-state strong { display: block; margin-top: 5px; color: var(--green); font: 700 0.95rem var(--display); }

.brand { text-align: center; text-decoration: none; }
.brand > span { display: block; color: var(--cyan); font: 500 clamp(1.65rem, 3vw, 3rem) var(--display); letter-spacing: 0.055em; text-shadow: 0 0 17px rgba(0, 220, 245, 0.32); }
.brand small { display: block; margin-top: 8px; color: #087e93; font-size: 0.48rem; letter-spacing: 0.58em; }

.system-signals { display: flex; justify-content: flex-end; gap: clamp(18px, 2vw, 32px); }
.system-signals span { min-width: 60px; }
.system-signals small { display: block; color: var(--muted); font-size: 0.52rem; letter-spacing: 0.15em; }
.system-signals b { display: block; margin-top: 4px; color: var(--green); font-size: 0.67rem; }

.hero {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 245px;
  grid-template-areas: "intel film health";
  gap: 14px;
  min-height: 630px;
  padding: 14px;
}

.panel, .film-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid #063f4c;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(3, 17, 24, 0.98), rgba(2, 9, 14, 0.98));
}

.panel { padding: 28px 22px; }
.intelligence-panel { grid-area: intel; }
.health-panel { grid-area: health; }
.film-panel { grid-area: film; min-width: 0; background: #06151a; }

.section-label { margin: 0 0 22px; color: var(--cyan); font-size: 0.64rem; letter-spacing: 0.2em; }
.amber { color: var(--amber) !important; }
.panel h2 { margin: 0 0 30px; color: var(--amber); font: 500 1.15rem/1.45 var(--display); text-shadow: 0 0 12px rgba(255, 181, 38, 0.25); }

.signal-card { padding: 18px 0; border-top: 1px solid var(--line-soft); }
.signal-card span, .signal-card small { display: block; color: var(--muted); font-size: 0.56rem; letter-spacing: 0.14em; }
.signal-card strong { display: block; margin: 8px 0 5px; color: var(--green); font: 600 1.02rem var(--display); }

.film-panel video { width: 100%; height: 100%; min-height: 600px; display: block; object-fit: cover; background: #02070b; }
.film-panel::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(2, 7, 11, 0.02) 45%, rgba(2, 7, 11, 0.82) 82%, #02070b 100%); }
.hud-corners::before, .hud-corners::after { content: ""; position: absolute; z-index: 4; width: 32px; height: 32px; pointer-events: none; }
.hud-corners::before { top: 14px; left: 14px; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.hud-corners::after { right: 14px; bottom: 14px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); }

.film-status { position: absolute; z-index: 3; top: 24px; right: 30px; left: 30px; display: flex; justify-content: space-between; gap: 20px; color: var(--cyan); font-size: 0.56rem; letter-spacing: 0.15em; pointer-events: none; }
.film-status .recording { color: var(--red); }
.film-copy { position: absolute; z-index: 3; right: 34px; bottom: 50px; left: 34px; max-width: 750px; pointer-events: none; }
.film-copy h1 { margin: 9px 0 12px; color: var(--cyan); font: 500 clamp(2.5rem, 5.3vw, 5.6rem)/0.94 var(--display); letter-spacing: -0.035em; text-shadow: 0 0 20px rgba(0, 220, 245, 0.2); }
.film-copy h1 span { display: block; color: white; }
.film-copy > p:last-child { max-width: 620px; margin: 0; color: #b5ccd1; font-size: 0.76rem; line-height: 1.7; }

.health-state { display: flex; align-items: center; gap: 12px; color: var(--green); }
.health-state strong { font: 500 1.35rem var(--display); text-shadow: 0 0 12px rgba(0, 245, 106, 0.6); }
.health-icon { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--green); border-radius: 14px; font-size: 1.4rem; transform: rotate(45deg); }
.health-icon::first-letter { transform: rotate(-45deg); }
.health-meter { height: 9px; margin: 22px 0 28px; padding: 1px; border: 1px solid #146070; border-radius: 7px; }
.health-meter span { display: block; width: 78%; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--green), var(--cyan)); box-shadow: 0 0 10px rgba(0, 245, 106, 0.6); }
.capability-list { margin: 0; border-top: 1px solid var(--line-soft); }
.capability-list div { display: flex; justify-content: space-between; gap: 10px; padding: 17px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.6rem; }
.capability-list dt { color: #a8bdc2; font-weight: 700; }
.capability-list dd { margin: 0; color: var(--green); }
.capability-list i { display: inline-block; width: 6px; height: 6px; margin-left: 3px; border-radius: 50%; background: var(--green); box-shadow: 0 0 7px var(--green); }
.contact-link { display: flex; justify-content: space-between; margin-top: 24px; padding: 13px 12px; border: 1px solid var(--cyan); color: var(--cyan); font-size: 0.58rem; letter-spacing: 0.08em; text-decoration: none; transition: background-color 160ms ease, color 160ms ease; }
.contact-link:hover { color: #001014; background: var(--cyan); }

.system-footer { display: flex; justify-content: space-between; gap: 20px; margin: 0 14px 14px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 0.58rem; letter-spacing: 0.12em; }
.system-footer p { margin: 0; }
.system-footer span { color: var(--cyan); }
.footer-mark { color: #27606d; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }

@media (max-width: 960px) {
  .system-header { grid-template-columns: 1fr; min-height: 82px; }
  .system-state, .system-signals { display: none; }
  .hero { grid-template-columns: 1fr 1fr; grid-template-areas: "film film" "intel health"; min-height: auto; }
  .film-panel video { min-height: min(68vw, 620px); }
  .panel { min-height: 420px; }
}

@media (max-width: 620px) {
  .site-shell { width: calc(100% - 12px); min-height: calc(100vh - 12px); margin: 6px auto; border-radius: 10px; }
  .system-header { padding: 15px 12px; }
  .brand > span { font-size: clamp(1.25rem, 7vw, 1.8rem); }
  .brand small { margin-top: 6px; font-size: 0.4rem; letter-spacing: 0.3em; }
  .hero { grid-template-columns: 1fr; grid-template-areas: "film" "health" "intel"; gap: 8px; padding: 8px; }
  .film-panel video { min-height: 68vh; }
  .film-status { top: 18px; right: 20px; left: 20px; font-size: 0.46rem; }
  .film-status span:first-child { display: none; }
  .film-status { justify-content: flex-end; }
  .film-copy { right: 20px; bottom: 68px; left: 20px; }
  .film-copy h1 { font-size: clamp(2.25rem, 13vw, 4rem); }
  .film-copy > p:last-child { font-size: 0.68rem; }
  .panel { min-height: auto; padding: 24px 20px; }
  .system-footer { display: block; margin: 0 8px 8px; line-height: 1.7; }
  .footer-mark { margin-top: 8px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
