/* ========== Reset & Base ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Courier New", monospace; /* keep your console vibe */
  background: #0a0a0a;
  color: #d1d1d1;
  min-height: 100vh;
}

/* ========== Header Status ========== */
.site-header { padding: 1rem; font-size: 0.9rem; color: #8faac0; }
.status .dot {
  display: inline-block; width: 8px; height: 8px; margin: 0 4px;
  background: #8faac0; border-radius: 50%;
  animation: pulse 2.5s infinite ease-in-out;
}
@keyframes pulse { 0%,100%{opacity:.3;transform:scale(.9)} 50%{opacity:1;transform:scale(1.1)} }
.status-word { display:inline-block; min-width:3ch; color:#8faac0; }

/* ========== Deck Grid ========== */
.deck {
  --gap: clamp(10px, 2vw, 18px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--gap);
}

/* Panels */
.panel {
  position: relative;
  background: #0e0e0e;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
  overflow: hidden;
  border-radius: 10px;
}

/* Layout spans + shapes (fixed shapes stop merging/shifting) */
.panel--title { grid-column: span 5; min-height: 260px; display:grid; place-content:center; text-align:center; }
.panel--scope { grid-column: span 7; aspect-ratio: 21 / 9; }
.panel--cam   { grid-column: span 4; aspect-ratio: 4 / 3; }
.panel--clock { grid-column: span 4; aspect-ratio: 4 / 3; display:grid; place-content:center; }
.panel--log   { grid-column: span 8; min-height: 220px; }

@media (max-width: 900px) {
  .panel--title { grid-column: span 12; }
  .panel--scope { grid-column: span 12; }
  .panel--cam, .panel--clock { grid-column: span 6; }
  .panel--log { grid-column: span 12; }
}
@media (max-width: 520px) {
  .panel--cam, .panel--clock { grid-column: span 12; }
}

/* Title panel */
.panel--title h1 {
  font-family: 'Space Grotesk','Inter',ui-sans-serif,system-ui,sans-serif;
  font-weight: 300; letter-spacing: .02em;
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: #eaeaea;
  margin-bottom: .35rem;
}
.panel--title .subtitle { color:#8faac0; opacity:.9; font-size:.9rem; margin-bottom:1rem; }
.panel--title .fineprint { color:#666; font-size:.75rem; margin-top:.6rem; }

/* Cams (static) */
.panel--cam img {
  width: 100%; height: 100%; display:block;
  object-fit: cover; filter:none; opacity:1;
}
.panel--cam .cam-label {
  position: absolute; bottom: 6px; left: 6px;
  font-size: .75rem; letter-spacing: 1px;
  color: #ff0000; background: rgba(0,0,0,.45);
  padding: 2px 6px; border-radius: 4px;
  border: 1px solid rgba(143,170,192,.25);
}

/* Clock */
.clock-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1.4rem, 5.5vw, 2.4rem);
  color: #eaeaea; letter-spacing: .06em; text-align: center;
}
.clock-sub { color: #8faac0; font-size: .85rem; text-align:center; margin-top:.35rem; opacity:.9; }

/* Boot log */
.log {
  list-style: none; padding: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .85rem; color: #9aa3ab; line-height: 1.35;
  height: 100%; overflow: hidden;
}
.log li { opacity: .82; }
.log li + li { margin-top: .25rem; }

/* Oscilloscope (pure CSS) */
.panel--scope::before {
  content:""; position:absolute; inset:0;
  background:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0/100% 12px, /* scanlines */
    radial-gradient(transparent 50%, rgba(0,0,0,.6) 85%) center/180% 180% no-repeat; /* vignette */
}
.scope-lines {
  position:absolute; inset:0;
  background:
    repeating-linear-gradient(90deg, rgba(143,170,192,.0) 0 2px, rgba(143,170,192,.15) 2px 3px, rgba(143,170,192,.0) 3px 6px),
    linear-gradient(90deg, transparent, rgba(143,170,192,.5), transparent);
  mix-blend-mode: screen;
  animation: sweep 3.6s linear infinite;
}
@keyframes sweep { from { transform: translateX(-100%);} to { transform: translateX(100%);} }

/* CTA (your pill button) */
.transmit-button {
  display:inline-block; padding:.2rem 1rem; border-radius:999px;
  border:1px solid rgba(255,255,255,.25);
  background: rgba(10,10,10,.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color:#ffffff; letter-spacing:.2em; text-decoration:none;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 0 0 1px rgba(255,255,255,.04);
}
.transmit-button:hover { background: rgba(234,234,234,.9); color:#0b0b0b; border-color: rgba(255,255,255,.4); transform: translateY(-1px); }
.transmit-button:active { transform: translateY(0); }

/* Footer */
footer { text-align:center; font-size:.75rem; padding: .75rem; color:#444; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) { .status .dot { animation: none; } }