:root {
  --bg-base: #090d16;
  --surface: rgba(17, 24, 39, 0.68);
  --surface-border: rgba(255, 255, 255, 0.12);
  --text-primary: #f3f6fc;
  --text-secondary: #a8b3c7;
  --text-muted: #728099;
  --accent-cyan: #38bdf8;
  --accent-indigo: #818cf8;
  --accent-emerald: #34d399;
}

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

html,
body {
  min-height: 100%;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Animierte Farbflächen im Hintergrund */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  filter: blur(80px);
}

.orb {
  position: absolute;
  border-radius: 999px;
  opacity: 0.45;
  animation: floatOrb 16s ease-in-out infinite alternate;
}

.orb-1 {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, var(--accent-indigo), transparent 70%);
}

.orb-2 {
  width: 380px;
  height: 380px;
  bottom: -100px;
  right: -60px;
  background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
  animation-delay: -5s;
}

.orb-3 {
  width: 280px;
  height: 280px;
  top: 45%;
  left: 55%;
  background: radial-gradient(circle, var(--accent-emerald), transparent 70%);
  opacity: 0.22;
  animation-delay: -10s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(28px, -24px) scale(1.06);
  }
  100% {
    transform: translate(-20px, 22px) scale(0.96);
  }
}

/* Subtiles Raster für technischen Look */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
}

/* Zentrierte Bühne */
.stage {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 580px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-emerald);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  margin-bottom: 18px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.65);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

.domain-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin-bottom: 16px;
}

.lead {
  font-size: 1.02rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* Status-Box & K.I.T.T. Scanner-Lauflicht */
.progress-block {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 24px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.kitt-scanner {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
  height: 10px;
  padding: 2px;
  border-radius: 6px;
  background: rgba(15, 5, 5, 0.85);
  border: 1px solid rgba(255, 42, 42, 0.22);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.85);
}

.kitt-led {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: #2b0707;
  box-shadow: 0 0 0 rgba(255, 30, 30, 0);
  animation: kittScan 1.6s ease-in-out infinite;
}

.led-1 { animation-delay: 0.00s; }
.led-2 { animation-delay: 0.10s; }
.led-3 { animation-delay: 0.20s; }
.led-4 { animation-delay: 0.30s; }
.led-5 { animation-delay: 0.40s; }
.led-6 { animation-delay: 0.50s; }
.led-7 { animation-delay: 0.60s; }
.led-8 { animation-delay: 0.70s; }

@keyframes kittScan {
  0%, 100% {
    background: #2b0707;
    box-shadow: 0 0 0 rgba(255, 30, 30, 0);
  }
  12% {
    background: #ff2a2a;
    box-shadow:
      0 0 10px rgba(255, 34, 34, 0.95),
      0 0 22px rgba(255, 20, 20, 0.65);
  }
  26% {
    background: #991111;
    box-shadow: 0 0 6px rgba(220, 20, 20, 0.45);
  }
  42% {
    background: #2b0707;
    box-shadow: 0 0 0 rgba(255, 30, 30, 0);
  }
  58% {
    background: #2b0707;
    box-shadow: 0 0 0 rgba(255, 30, 30, 0);
  }
  72% {
    background: #ff2a2a;
    box-shadow:
      0 0 10px rgba(255, 34, 34, 0.95),
      0 0 22px rgba(255, 20, 20, 0.65);
  }
  86% {
    background: #991111;
    box-shadow: 0 0 6px rgba(220, 20, 20, 0.45);
  }
}

.card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.sep {
  opacity: 0.5;
}

@media (prefers-reduced-motion: reduce) {
  .orb,
  .pulse-dot,
  .kitt-led {
    animation: none;
  }
}
