:root {
  --color-bg: #0B0E14;
  --color-ink: #EDEFF3;
  --color-cyan: #00D4FF;
  --color-spark: #FFC53D;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: var(--color-bg); color: var(--color-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#fx {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none;
}

.stage {
  position: relative; height: 100vh; width: 100vw;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}

/* Bühne für Raster + versteckte Easter Eggs. Eine Maske gilt für beide zusammen:
   Ebene 1 = die feste Kreis-Ausfaung in der Mitte (wie vorher), Ebene 2 = ein
   kleiner Kreis an der Mausposition, der wie eine Taschenlampe alles darunter
   aufdeckt, egal wie weit außen. Browser addieren die Masken standardmäßig
   (mask-composite: add), das ergibt genau den "Taschenlampen"-Union-Effekt. */
.reveal-field {
  position: absolute; inset: 0; z-index: 0;
  --mx: -9999px; --my: -9999px;
  mask-image:
    radial-gradient(circle at center, #000 0%, transparent 75%),
    radial-gradient(circle 160px at var(--mx) var(--my), #000 0%, transparent 100%);
  -webkit-mask-image:
    radial-gradient(circle at center, #000 0%, transparent 75%),
    radial-gradient(circle 160px at var(--mx) var(--my), #000 0%, transparent 100%);
}

.grid-bg {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(0,212,255,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.09) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: grid-drift 16s linear infinite;
}
@keyframes grid-drift {
  to { background-position: 48px 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .grid-bg { animation: none; }
}

/* Versteckte Easter Eggs – nur sichtbar, wo die Maske gerade offen ist */
.hidden-text { position: absolute; inset: 0; }
.egg {
  position: absolute; white-space: nowrap;
  color: rgba(0, 212, 255, 0.55); font-weight: 700;
  text-shadow: 0 0 12px rgba(0,212,255,0.4);
}
.egg-corner {
  bottom: 8%; right: 6%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(0.85rem, 2vw, 1.1rem); color: rgba(255,197,61,0.6);
}
.egg-side {
  top: 22%; left: 6%;
  font-size: clamp(1rem, 2.4vw, 1.4rem);
}

.content { position: relative; z-index: 3; padding: 24px; max-width: 720px; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.25em; font-size: clamp(1.6rem, 5vw, 2.6rem);
  color: var(--color-cyan); font-weight: 800; margin: 0 0 20px;
  text-shadow: 0 0 20px rgba(0,212,255,0.5);
}

h1.glitch {
  font-size: clamp(2.2rem, 8vw, 4.6rem);
  font-weight: 900; letter-spacing: -0.01em; line-height: 1.05;
  margin: 0 0 20px; position: relative; color: #fff;
  text-shadow: 0 0 24px rgba(0,212,255,0.35);
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0; background: var(--color-bg);
  overflow: hidden;
}
.glitch::before {
  left: 2px; text-shadow: -2px 0 var(--color-cyan);
  animation: glitch-1 6s infinite linear alternate-reverse;
}
.glitch::after {
  left: -2px; text-shadow: 2px 0 var(--color-spark);
  animation: glitch-2 7s infinite linear alternate-reverse;
}
@keyframes glitch-1 {
  0%, 92%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
  93% { clip-path: inset(10% 0 60% 0); transform: translate(-3px, 1px); }
  94% { clip-path: inset(70% 0 5% 0); transform: translate(3px, -1px); }
  95% { clip-path: inset(40% 0 40% 0); transform: translate(-2px, 0); }
  96% { clip-path: inset(0 0 0 0); transform: translate(0); }
}
@keyframes glitch-2 {
  0%, 90%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
  91% { clip-path: inset(60% 0 10% 0); transform: translate(3px, 0); }
  92% { clip-path: inset(15% 0 70% 0); transform: translate(-3px, 1px); }
  93% { clip-path: inset(0 0 0 0); transform: translate(0); }
}
@media (prefers-reduced-motion: reduce) {
  .glitch::before, .glitch::after { animation: none; content: none; }
}

.tagline {
  font-size: clamp(1rem, 2.4vw, 1.2rem); color: rgba(237,239,243,0.75);
  max-width: 46ch; margin: 0 auto 40px;
}

.meter { max-width: 360px; margin: 0 auto; }
.meter-track {
  height: 10px; border-radius: 999px; background: rgba(237,239,243,0.1);
  overflow: hidden; border: 1px solid rgba(0,212,255,0.25);
}
.meter-fill {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-spark));
  box-shadow: 0 0 14px rgba(0,212,255,0.6);
  transition: width 0.4s ease;
}
.meter-labels {
  display: flex; justify-content: space-between; font-size: 0.8rem;
  letter-spacing: 0.05em; text-transform: uppercase; color: rgba(237,239,243,0.55);
  margin-top: 10px;
}

.contact {
  margin: 36px 0 0; font-size: 0.9rem; color: rgba(237,239,243,0.6);
}
.contact a {
  color: var(--color-cyan); text-decoration: none; font-weight: 600;
  border-bottom: 1px solid rgba(0,212,255,0.35);
}
.contact a:hover { border-bottom-color: var(--color-cyan); }
