/* Warpzone Arena — „Hier entsteht"-Seite. Selbes Grundgeruest wie Warpzone
   (Space Grotesk/Inter, Deep-Space-Blau), Kampf-Akzente in Amber/Signalrot.
   CSP: style-src 'self' — keine Inline-Styles, alles in dieser Datei. */

:root {
  --bg: #070b12;
  --text: #e8f1f8;
  --muted: #8fa3b8;
  --cyan: #57d9ff;
  --amber: #ffb454;
  --signal: #ff5470;
  --panel: rgba(13, 20, 32, 0.72);
  --line: rgba(87, 217, 255, 0.18);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body { min-height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  padding: 48px 20px 28px;
}

/* === Hintergrund: Sternenfelder + Nebel === */

.stars {
  position: fixed;
  inset: -50%;
  pointer-events: none;
  background-repeat: repeat;
  z-index: 0;
}

.stars-near {
  background-image:
    radial-gradient(1.6px 1.6px at 22px 34px, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(1.4px 1.4px at 130px 88px, rgba(87, 217, 255, 0.85), transparent 60%),
    radial-gradient(1.8px 1.8px at 78px 160px, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1.2px 1.2px at 188px 196px, rgba(255, 180, 84, 0.8), transparent 60%);
  background-size: 240px 240px;
  animation: star-drift 90s linear infinite;
}

.stars-far {
  background-image:
    radial-gradient(1px 1px at 40px 60px, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1px 1px at 150px 20px, rgba(255, 255, 255, 0.4), transparent 60%),
    radial-gradient(1px 1px at 90px 130px, rgba(160, 200, 255, 0.45), transparent 60%),
    radial-gradient(1px 1px at 210px 100px, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(1px 1px at 20px 210px, rgba(255, 255, 255, 0.45), transparent 60%);
  background-size: 340px 340px;
  opacity: 0.8;
  animation: star-drift 160s linear infinite reverse;
}

@keyframes star-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-240px, 240px, 0); }
}

.nebula {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 45% at 18% 82%, rgba(87, 217, 255, 0.10), transparent 65%),
    radial-gradient(ellipse 55% 40% at 84% 14%, rgba(255, 84, 112, 0.09), transparent 65%),
    radial-gradient(ellipse 45% 35% at 55% 55%, rgba(255, 180, 84, 0.05), transparent 70%);
}

/* === Buehne === */

.stage {
  position: relative;
  z-index: 1;
  max-width: 760px;
  width: 100%;
  text-align: center;
}

.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}

/* === Logo mit Fadenkreuz + Glitch === */

.logo-wrap {
  position: relative;
  display: inline-block;
  padding: 30px 60px;
  margin-bottom: 4px;
}

.reticle {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(72vw, 420px);
  height: min(72vw, 420px);
  transform: translate(-50%, -50%);
  opacity: 0.5;
  animation: reticle-spin 46s linear infinite;
}

@keyframes reticle-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.reticle-ring {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.4;
  stroke-dasharray: 10 14;
}

.reticle-inner {
  stroke: var(--amber);
  stroke-width: 1;
  stroke-dasharray: 4 10;
  opacity: 0.8;
}

.reticle-dot { fill: var(--signal); }

.reticle-ticks {
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-linecap: round;
}

.logo {
  position: relative;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: 0 0 34px rgba(87, 217, 255, 0.35);
}

.logo em {
  font-style: normal;
  color: var(--cyan);
}

/* Glitch: zwei versetzte Kopien blitzen kurz auf (cyan/signalrot) */
.glitch { position: relative; display: inline-block; }

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.glitch::before {
  color: var(--signal);
  animation: glitch-a 3.4s infinite steps(1);
}

.glitch::after {
  color: var(--cyan);
  animation: glitch-b 3.4s infinite steps(1);
}

@keyframes glitch-a {
  0%, 91%, 100% { opacity: 0; }
  92% { opacity: 0.85; transform: translate(-3px, -2px); clip-path: inset(12% 0 58% 0); }
  94% { opacity: 0.85; transform: translate(3px, 1px); clip-path: inset(62% 0 8% 0); }
  96% { opacity: 0; }
}

@keyframes glitch-b {
  0%, 90%, 100% { opacity: 0; }
  91% { opacity: 0.8; transform: translate(3px, 2px); clip-path: inset(48% 0 30% 0); }
  93% { opacity: 0.8; transform: translate(-3px, -1px); clip-path: inset(4% 0 78% 0); }
  95% { opacity: 0; }
}

/* === Texte === */

.tagline {
  color: var(--muted);
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  max-width: 56ch;
  margin: 0 auto 26px;
}

.tagline strong { color: var(--text); }

/* === Statuszeile + Scanbalken === */

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--panel);
  border: 1px solid rgba(255, 180, 84, 0.25);
  border-radius: 999px;
  padding: 10px 22px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.scanbar {
  width: min(420px, 80%);
  height: 3px;
  margin: 16px auto 34px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  overflow: hidden;
}

.scanbar-beam {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--amber), transparent);
  animation: scan 2.4s var(--ease-out-expo) infinite;
}

@keyframes scan {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(380%); }
}

/* === Feature-Karten === */

.features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(6px);
  transition: transform 0.25s var(--ease-out-expo), border-color 0.25s, box-shadow 0.25s;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(87, 217, 255, 0.45);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4), 0 0 22px rgba(87, 217, 255, 0.12);
}

.feature .ic {
  width: 34px;
  height: 34px;
  color: var(--cyan);
}

.feature:nth-child(2) .ic { color: var(--signal); }
.feature:nth-child(3) .ic { color: var(--amber); }

.feature-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.feature strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.feature span {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
}

/* === CTA + Footer === */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--bg);
  background: linear-gradient(120deg, var(--cyan), #8be9ff);
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(87, 217, 255, 0.28);
  transition: transform 0.2s var(--ease-out-expo), box-shadow 0.2s;
}

.btn .ic { width: 20px; height: 20px; }

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(87, 217, 255, 0.42);
}

.btn:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.foot {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  font-size: 13px;
  color: var(--muted);
}

.foot a { color: var(--cyan); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* === Entrance: gestaffeltes Einblenden === */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  animation: rise 0.85s var(--ease-out-expo) forwards;
}

.r1 { animation-delay: 0.1s; }
.r2 { animation-delay: 0.25s; }
.r3 { animation-delay: 0.45s; }
.r4 { animation-delay: 0.65s; }
.r5 { animation-delay: 0.85s; }
.r6 { animation-delay: 1.05s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* === Responsive === */

@media (max-width: 640px) {
  body { padding-top: 36px; }

  .logo-wrap { padding: 26px 12px; }

  .features { grid-template-columns: 1fr; }

  .feature {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
  }

  .feature .ic { flex-shrink: 0; margin-top: 2px; }

  .feature-text {
    align-items: flex-start;
    gap: 3px;
  }
}

/* === Reduced Motion === */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal { opacity: 1; transform: none; }
}
