* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #fefefe;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;

  background: radial-gradient(circle at top, #ff7bff 0%, #3b1c59 30%, #090016 70%, #020008 100%);
  background-attachment: fixed;
  background-size: 130% 130%;
  animation: pulseBg 40s linear infinite alternate;
}

/* smoother synthwave background cycle */
@keyframes pulseBg {
  0% {
    background: radial-gradient(circle at top, #ff7bff 0%, #3b1c59 30%, #090016 70%, #020008 100%);
  }
  20% {
    background: radial-gradient(circle at top, #ff9d00 0%, #7b2f83 30%, #140020 70%, #020008 100%);
  }
  40% {
    background: radial-gradient(circle at top, #ff00a8 0%, #5c1b5c 30%, #13001d 70%, #020008 100%);
  }
  60% {
    background: radial-gradient(circle at top, #00f6ff 0%, #243b6b 30%, #050016 70%, #000008 100%);
  }
  80% {
    background: radial-gradient(circle at top, #ff00ff 0%, #3b1c59 30%, #090016 70%, #020008 100%);
  }
  100% {
    background: radial-gradient(circle at top, #ff7bff 0%, #3b1c59 30%, #090016 70%, #020008 100%);
  }
}

.scene {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 2rem;
}

.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(255, 190, 255, 0.25), transparent 55%),
    radial-gradient(circle at bottom, rgba(0, 255, 255, 0.13), transparent 60%);
  pointer-events: none;
  mix-blend-mode: screen;
}

/* NEW: wave canvas horizon */
.wave {
  position: absolute;
  left: 50%;
  bottom: 34%;
  transform: translateX(-50%);
  width: 100%;
  height: 220px;
  pointer-events: none;
  z-index: 1;
  filter: blur(0.5px) drop-shadow(0 0 18px rgba(0, 255, 255, 0.7));
}

.content {
  position: relative;
  z-index: 3;
  text-align: center;
  top: 5%;
  max-width: 900px;
  margin: 0 auto;
}

.title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
  text-shadow:
    0 0 8px #ff00ff,
    0 0 16px #ff00ff,
    0 0 32px #00ffff;
}

.subtitle {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e0faff;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* Status cards */
.status-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 1rem;
}

.status-card {
  min-width: 180px;
  padding: 1rem 1.4rem;
  border-radius: 14px;
  background: rgba(3, 3, 18, 0.75);
  border: 1px solid rgba(0, 255, 255, 0.3);
  box-shadow:
    0 0 12px rgba(0, 255, 255, 0.25),
    0 0 32px rgba(255, 0, 255, 0.15);
  backdrop-filter: blur(6px);
  text-align: left;
}

.status-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d7f9ff;
  opacity: 0.9;
}

.status-icon {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #888;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.0);
  animation: idleGlow 2s ease-in-out infinite;
}

@keyframes idleGlow {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.0); }
  50%  { box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.25); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.0); }
}

/* OK state */
.status-ok .status-icon {
  background: #00ffaa;
  box-shadow: 0 0 8px 2px rgba(0, 255, 170, 0.8);
  animation: okPulse 1.7s ease-in-out infinite;
}

.status-ok .status-value {
  color: #00ffaa;
  text-shadow: 0 0 8px rgba(0, 255, 170, 0.9);
}

@keyframes okPulse {
  0%   { box-shadow: 0 0 4px 1px rgba(0, 255, 170, 0.5); }
  50%  { box-shadow: 0 0 16px 4px rgba(0, 255, 170, 1); }
  100% { box-shadow: 0 0 4px 1px rgba(0, 255, 170, 0.5); }
}

/* Fail state */
.status-fail .status-icon {
  background: #ff4b6e;
  box-shadow: 0 0 8px 2px rgba(255, 75, 110, 0.9);
  animation: failPulse 1s ease-in-out infinite;
}

.status-fail .status-value {
  color: #ff4b6e;
  text-shadow: 0 0 8px rgba(255, 75, 110, 1);
}

@keyframes failPulse {
  0%   { box-shadow: 0 0 3px 1px rgba(255, 75, 110, 0.7); }
  50%  { box-shadow: 0 0 14px 3px rgba(255, 75, 110, 1); }
  100% { box-shadow: 0 0 3px 1px rgba(255, 75, 110, 0.7); }
}

.status-value {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 0.15rem;
}

.status-meta {
  font-size: 0.75rem;
  margin-top: 0.4rem;
  opacity: 0.8;
  color: #c4f4ff;
}

/* Grid */

.grid {
  position: absolute;
  left: 50%;
  bottom: -10%;
  transform: translateX(-50%) perspective(800px) rotateX(70deg);
  width: 200%;
  height: 70%;
  background-image:
    linear-gradient(rgba(0, 255, 255, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.4) 1px, transparent 1px);
  background-size: 60px 60px;
  background-repeat: repeat;
  opacity: 0.85;
  filter: drop-shadow(0 -10px 25px rgba(0, 255, 255, 0.5));
  animation: moveGrid 30s linear infinite;
  z-index: 2;
}

@keyframes moveGrid {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 0 120px, 120px 0; }
}

/* Stars */

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 30% 80%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 70% 30%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 90% 60%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 50% 10%, rgba(255, 255, 255, 0.7), transparent);
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 600px) {
  .content {
    top: 2%;
    padding-inline: 1rem;
  }

  .status-card {
    min-width: 150px;
  }
}
