:root {
  --font-main: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background: #000;
}

.stage {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  color: #eef3ff;

  /* Layer stack: image + mood tints + vignette */
  background:
    /* Vignette (dark edges) */
    radial-gradient(1200px 700px at 50% 45%, rgba(0,0,0,0) 35%, rgba(0,0,0,0.72) 100%),

    /* Subtle cool tint for “server room” feel */
    linear-gradient(180deg, rgba(6, 10, 16, 0.55) 0%, rgba(2, 3, 8, 0.70) 100%),

    /* Faint red alarm wash (will pulse via your existing .alarmGlow too) */
    radial-gradient(900px 600px at 18% 12%, rgba(255, 40, 40, 0.12), transparent 60%),

    /* Your background image */
    url("background.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  /* Image grading overlay */
  backdrop-filter: blur(0.8px) saturate(1.05) contrast(1.08);
  -webkit-backdrop-filter: blur(0.8px) saturate(1.05) contrast(1.08);

  /* tiny darkness lift so the card pops */
  background: rgba(0, 0, 0, 0.12);
}

/* --- ambience layers --- */
.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.035) 0px,
    rgba(255,255,255,0.035) 1px,
    transparent 2px,
    transparent 7px
  );
  opacity: 0.18;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

.noise {
  position: absolute;
  inset: -40px;
  background-image: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.05;
  transform: rotate(2deg);
  pointer-events: none;
  z-index: 1;
  animation: noiseShift 3.4s infinite;
}

@keyframes noiseShift {
  0%, 100% { transform: translate(0,0) rotate(2deg); }
  35% { transform: translate(-6px, 4px) rotate(2deg); }
  70% { transform: translate(5px, -3px) rotate(2deg); }
}

/* big, vague red alarm light in the room */
.alarmGlow {
  position: absolute;
  width: 900px;
  height: 900px;
  left: -400px;
  top: -420px;
  border-radius: 999px;
  background: radial-gradient(circle at 45% 45%, rgba(255, 40, 40, 0.55), rgba(255, 40, 40, 0) 60%);
  opacity: 0.18;
  filter: blur(1px);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  animation: alarmPulse 1.3s infinite;
}

@keyframes alarmPulse {
  0%, 100% { opacity: 0.12; transform: scale(0.98); }
  45%      { opacity: 0.32; transform: scale(1.02); }
}

/* subtle cyan LED ambience on the opposite side */
.ledGlow {
  position: absolute;
  width: 800px;
  height: 800px;
  right: -380px;
  bottom: -420px;
  border-radius: 999px;
  background: radial-gradient(circle at 40% 40%, rgba(0, 255, 200, 0.35), rgba(0, 255, 200, 0) 62%);
  opacity: 0.10;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  animation: ledBreath 2.8s infinite;
}

@keyframes ledBreath {
  0%, 100% { opacity: 0.08; }
  50%      { opacity: 0.14; }
}

/* --- silhouette scene --- */
.scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* --- centered glass card --- */
.center {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(720px, 92vw);
  border-radius: 22px;
  padding: 18px 18px 16px;
  background: rgba(20, 22, 34, 0.42);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 40px 140px rgba(0,0,0,0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

/* subtle animated light sweep across the card */
.card::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: linear-gradient(120deg,
    transparent 40%,
    rgba(255, 60, 60, 0.10) 52%,
    transparent 64%);
  transform: translateX(-40%);
  animation: sweep 3.2s infinite;
  pointer-events: none;
}

@keyframes sweep {
  0%   { transform: translateX(-55%); opacity: 0.3; }
  35%  { opacity: 0.15; }
  100% { transform: translateX(55%); opacity: 0.3; }
}

.cardTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.badge {
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 60, 60, 0.25);
  background: rgba(255, 60, 60, 0.10);
}

.pulseDot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 60, 60, 0.65);
  box-shadow: 0 0 22px rgba(255, 60, 60, 0.35);
  animation: dotPulse 1.1s infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.35; transform: scale(0.92); }
  45%      { opacity: 0.95; transform: scale(1.08); }
}

.title {
  margin: 6px 0 8px;
  font-size: 28px;
  line-height: 1.15;
}

.body {
  margin: 0 0 14px;
  opacity: 0.88;
  line-height: 1.55;
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 600;
  color: #0a0b10;
  background: rgba(255, 235, 235, 0.92);
  box-shadow: 0 20px 70px rgba(0,0,0,0.35);
}

.button:hover {
  filter: brightness(1.03);
}

.subHint {
  font-size: 13px;
  opacity: 0.72;
}

/* orbiting decorative dots around the card */
.orbit {
  position: absolute;
  inset: -40px;
  pointer-events: none;
}

.orb, .orb2, .orb3 {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  opacity: 0.55;
  filter: blur(0.1px);
  box-shadow: 0 0 24px rgba(255,255,255,0.12);
  animation: orbit 4.8s linear infinite;
}

.orb { left: 8%; top: 30%; background: rgba(255,60,60,0.55); }
.orb2 { right: 10%; top: 22%; background: rgba(0,255,200,0.45); animation-duration: 6.2s; }
.orb3 { left: 16%; bottom: 18%; background: rgba(255,200,0,0.35); animation-duration: 5.6s; }

@keyframes orbit {
  0%   { transform: translate(0,0); opacity: 0.35; }
  35%  { transform: translate(22px, -10px); opacity: 0.65; }
  70%  { transform: translate(-12px, 16px); opacity: 0.45; }
  100% { transform: translate(0,0); opacity: 0.35; }
}

/* accessibility */
@media (prefers-reduced-motion: reduce) {
  .noise, .alarmGlow, .ledGlow, .rackLeds::after, .rackLeds::before,
  .squirrel, .spark, .card::before, .pulseDot, .orb, .orb2, .orb3 {
    animation: none !important;
  }
}
