:root {
  --bg-dark: #050811;
  --bg-card: rgba(13, 19, 36, 0.72);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-card-hover: rgba(56, 189, 248, 0.35);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-cyan: #38bdf8;
  --accent-blue: #6366f1;
  --accent-green: #34d399;
  --accent-gold: #fbbf24;
  --glow-cyan: rgba(56, 189, 248, 0.25);
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Grotesk', monospace, sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-heading);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 2;
  opacity: 0.55;
}

.glow-top {
  top: -15%;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent 70%);
}

.glow-bottom {
  bottom: -20%;
  right: 15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25), transparent 70%);
}

.page-container {
  position: relative;
  z-index: 10;
  padding: 24px;
  width: 100%;
  max-width: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-card);
  border-radius: 28px;
  padding: 56px 44px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(99, 102, 241, 0.12);
  text-align: center;
  width: 100%;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-panel:hover {
  border-color: var(--border-card-hover);
  box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.85), 0 0 50px rgba(56, 189, 248, 0.18);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 9999px;
  padding: 8px 18px;
  margin-bottom: 28px;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}

.pulse-beacon {
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-cyan);
  animation: beacon-pulse 2s infinite ease-in-out;
}

@keyframes beacon-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 10px var(--accent-cyan);
  }
  50% {
    transform: scale(1.4);
    opacity: 0.6;
    box-shadow: 0 0 20px var(--accent-cyan);
  }
}

.status-text {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.headline {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: #ffffff;
}

.gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.subtext {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 36px;
  font-weight: 300;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

.telemetry-item {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.telemetry-item:hover {
  background: rgba(30, 41, 59, 0.65);
  border-color: rgba(255, 255, 255, 0.15);
}

.telemetry-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #64748b;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.telemetry-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.val-green {
  color: var(--accent-green);
  text-shadow: 0 0 12px rgba(52, 211, 153, 0.35);
}

.val-cyan {
  color: var(--accent-cyan);
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.val-gold {
  color: var(--accent-gold);
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.35);
}

.progress-bar-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
}

.progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #38bdf8);
  background-size: 200% 100%;
  border-radius: 999px;
  animation: pulse-stream 2.8s infinite linear;
}

@keyframes pulse-stream {
  0% {
    left: -40%;
  }
  100% {
    left: 100%;
  }
}

.footer-notice {
  font-size: 0.85rem;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.broadcast-icon {
  color: var(--accent-gold);
  animation: icon-flicker 3s infinite ease-in-out;
}

@keyframes icon-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@media (max-width: 640px) {
  .glass-panel {
    padding: 38px 22px;
    border-radius: 20px;
  }

  .headline {
    font-size: 2.25rem;
  }

  .subtext {
    font-size: 0.98rem;
  }

  .telemetry-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
