:root {
  --bg: #030812;
  --panel: rgba(8, 18, 30, 0.94);
  --panel-soft: rgba(15, 31, 48, 0.82);
  --line: rgba(35, 210, 255, 0.32);
  --text: #e8f4ff;
  --muted: #8ea6b8;
  --cyan: #22d3ee;
  --rose: #ff4778;
  --green: #34d399;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 20%, rgba(34, 211, 238, 0.12), transparent 35%),
    linear-gradient(180deg, #06111e 0%, var(--bg) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.035), rgba(255,255,255,0.035) 1px, transparent 1px, transparent 4px);
  mix-blend-mode: overlay;
  opacity: 0.25;
  z-index: 4;
}

#topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  background: rgba(2, 8, 15, 0.96);
  border-bottom: 1px solid var(--line);
}

#logo {
  color: var(--cyan);
  text-decoration: none;
  font-family: "Courier New", monospace;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
  white-space: nowrap;
}

#logo span { color: var(--rose); }

.page-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--muted);
  font-family: "Courier New", monospace;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 2px;
  flex: 1;
}

.page-title strong { color: var(--text); font-size: 18px; }

.nav-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hud-button,
.command-row button {
  border: 1px solid rgba(34, 211, 238, 0.78);
  background: rgba(9, 27, 41, 0.86);
  color: var(--text);
  border-radius: 8px;
  padding: 11px 14px;
  text-decoration: none;
  font: 700 13px "Courier New", monospace;
  text-transform: uppercase;
  cursor: pointer;
}

.hud-button.primary {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.34), rgba(13, 89, 112, 0.92));
}

.globe-shell {
  width: min(1420px, calc(100vw - 28px));
  margin: 22px auto 40px;
}

.hero-panel,
.panel,
.frame-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: center;
  padding: 28px;
}

.eyebrow {
  display: block;
  color: var(--cyan);
  font: 700 12px "Courier New", monospace;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

h1,
h2,
p { margin-top: 0; }

h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 5vw, 70px);
  line-height: 0.95;
}

h2 {
  margin-bottom: 12px;
  font-size: 22px;
}

p {
  color: var(--muted);
  line-height: 1.6;
  max-width: 820px;
}

.launch-card {
  min-height: 180px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  background: var(--panel-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 18px;
}

.status-pill {
  align-self: flex-start;
  border: 1px solid rgba(52, 211, 153, 0.55);
  color: var(--green);
  background: rgba(2, 57, 40, 0.45);
  border-radius: 999px;
  padding: 8px 12px;
  font: 700 12px "Courier New", monospace;
  text-transform: uppercase;
}

.status-pill.warn {
  border-color: rgba(245, 158, 11, 0.6);
  color: #fbbf24;
  background: rgba(91, 61, 6, 0.35);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.panel,
.frame-panel {
  padding: 18px;
}

.panel.wide {
  grid-column: 1 / -1;
}

.command-row,
.status-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  padding: 12px;
  margin-top: 10px;
}

code {
  color: #b9f4ff;
  overflow-wrap: anywhere;
}

.status-list span,
.feature-grid span { color: var(--muted); }

.status-list strong { color: var(--text); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.feature-grid div {
  min-height: 118px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.feature-grid strong,
.feature-grid span {
  display: block;
}

.feature-grid strong { margin-bottom: 8px; }

.frame-panel {
  margin-top: 14px;
}

.frame-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

iframe {
  width: 100%;
  height: min(72vh, 760px);
  border: 1px solid rgba(34, 211, 238, 0.25);
  background: #02070d;
}

#toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  color: var(--text);
  background: rgba(3, 12, 22, 0.95);
  border: 1px solid var(--line);
  padding: 12px 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
}

#toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  #topbar,
  .hero-panel,
  .grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  #topbar {
    display: grid;
  }
}
