:root {
  --bg: #05040b;
  --ink: #eef0ff;
  --muted: rgba(226, 228, 255, 0.62);
  --faint: rgba(226, 228, 255, 0.38);
  --violet: #3b1d6e;
  --magenta: #d14a8b;
  --teal: #7fe3ee;
  --font: "SF Pro Display", "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* Fallback backdrop if WebGL is unavailable */
body {
  background:
    radial-gradient(ellipse 60% 45% at 55% 50%, rgba(209, 74, 139, 0.28), transparent 70%),
    radial-gradient(ellipse 50% 40% at 40% 55%, rgba(59, 29, 110, 0.55), transparent 75%),
    radial-gradient(ellipse 35% 30% at 62% 40%, rgba(127, 227, 238, 0.14), transparent 70%),
    var(--bg);
}

#nebula {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: block;
  touch-action: none;
  cursor: crosshair;
}

.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: max(28px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(28px, env(safe-area-inset-left));
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mark { width: 34px; height: 34px; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.42em;
  color: var(--faint);
  font-weight: 500;
}

.hero {
  align-self: center;
  justify-self: center;
  text-align: center;
  max-width: 900px;
}

.wordmark {
  margin: 0;
  font-weight: 200;
  font-size: clamp(42px, 9vw, 112px);
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 0 40px rgba(209, 74, 139, 0.35), 0 0 90px rgba(59, 29, 110, 0.6);
  /* optical centering for trailing letter-spacing */
  margin-right: -0.16em;
}

.wordmark span {
  font-weight: 500;
  background: linear-gradient(90deg, #ffd8c2 0%, var(--magenta) 45%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline,
.sub {
  text-shadow: 0 0 10px rgba(5, 4, 11, 0.95), 0 0 24px rgba(5, 4, 11, 0.85), 0 0 48px rgba(5, 4, 11, 0.6);
}

.tagline {
  margin: 28px 0 0;
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.sub {
  margin: 10px 0 0;
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--faint);
}

.foot p { margin: 0; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(127, 227, 238, 0.6);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(127, 227, 238, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(127, 227, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(127, 227, 238, 0); }
}

.hint {
  text-align: center;
  transition: opacity 1.2s ease;
}

.hint.hidden { opacity: 0; }

.copy { text-align: right; }

.noscript {
  position: fixed;
  bottom: 70px;
  width: 100%;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 640px) {
  .foot {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }
  .copy { text-align: center; }
  .wordmark { letter-spacing: 0.1em; margin-right: -0.1em; }
}

@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
  .hint { transition: none; }
}
