:root {
  --bg: #04060c;
  --text: #f2f5ff;
  --wait: #dce6ff;
  --accent: #7ec8ff;
  --font-brand: "Unbounded", system-ui, sans-serif;
  --font-wait: "JetBrains Mono", ui-monospace, monospace;
}

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

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

body {
  min-height: 100dvh;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  touch-action: none;
  color: var(--text);
  background:
    radial-gradient(980px 560px at 50% 42%, rgba(70, 100, 220, 0.18), transparent 62%),
    radial-gradient(700px 420px at 80% 90%, rgba(40, 80, 180, 0.1), transparent 55%),
    var(--bg);
}

#net {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.stage {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.25rem 2rem;
  pointer-events: none;
  isolation: isolate;
}

.stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92vw, 920px);
  height: min(52vh, 380px);
  transform: translate(-50%, -52%);
  background: radial-gradient(
    ellipse at center,
    rgba(4, 6, 12, 0.88) 0%,
    rgba(4, 6, 12, 0.7) 38%,
    rgba(4, 6, 12, 0.25) 68%,
    rgba(4, 6, 12, 0) 100%
  );
  z-index: -1;
  pointer-events: none;
}

.wordmark {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(3.4rem, 12vw, 7.2rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: #f4f7ff;
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.55),
    0 0 32px rgba(126, 200, 255, 0.55),
    0 0 70px rgba(90, 140, 255, 0.35);
}

.wait {
  margin: 1.2rem 0 0;
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-wait);
  font-weight: 500;
  font-size: clamp(1.3rem, 3.6vw, 1.75rem);
  color: var(--wait);
  letter-spacing: 0.04em;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.28),
    0 0 18px rgba(126, 200, 255, 0.35),
    0 1px 10px rgba(0, 0, 0, 0.7);
}

.typed {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  max-width: 0;
  animation: type 2s steps(9, end) 0.55s forwards;
}

.cursor {
  display: inline-block;
  width: 0.52rem;
  height: 1.1em;
  margin-left: 0.2rem;
  background: linear-gradient(180deg, #fff 0%, #7ec8ff 55%, #6b8cff 100%);
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.55),
    0 0 18px rgba(126, 200, 255, 0.75);
  animation: blink 1.05s steps(1) infinite;
}

@keyframes type {
  from { max-width: 0; }
  to { max-width: 12ch; }
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.18; }
}

@media (max-width: 520px) {
  .stage {
    padding: 1.75rem 1.25rem;
  }

  .stage::before {
    width: 100vw;
    height: 42vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .typed { max-width: none; animation: none; }
  .cursor { animation: none; }
}
