:root {
  --bg-0: #05060c;
  --bg-1: #080a16;
  --ink: #eef2ff;
  --ink-dim: #9aa6c9;
  --ink-faint: #5b658a;
  --cyan: #38e1ff;
  --violet: #8b5cff;
  --line: rgba(150, 170, 255, 0.12);
  --maxw: 920px;
}

* {
  box-sizing: border-box;
}

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

body {
  position: relative;
  min-height: 100svh;
  background:
    radial-gradient(
      120% 120% at 50% -10%,
      #0d1130 0%,
      var(--bg-1) 42%,
      var(--bg-0) 100%
    );
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Generative QR canvas sits behind everything */
#qr-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* Soft vignette + grain to add depth over the canvas */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      90% 70% at 50% 45%,
      transparent 40%,
      rgba(5, 6, 12, 0.55) 100%
    );
}

.stage {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  pointer-events: none;
}

.content {
  max-width: var(--maxw);
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 clamp(1.4rem, 3vw, 2rem);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(0.7rem, 1.6vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0;
  animation: rise 1s ease 0.1s forwards;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px 2px rgba(56, 225, 255, 0.7);
  animation: pulse 2.6s ease-in-out infinite;
}

.headline {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 9vw, 6rem);
}

.headline .line {
  display: block;
}

.headline .brand {
  background: linear-gradient(100deg, var(--cyan), var(--violet) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(94, 132, 255, 0.35));
}

/* Per-character reveal — JS splits text into .char spans */
.headline .char {
  display: inline-block;
  white-space: pre;
  opacity: 0;
  transform: translateY(0.5em) rotateX(-40deg);
  filter: blur(6px);
  animation: charIn 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.subhead {
  margin: clamp(1.4rem, 3.5vw, 2.1rem) 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: clamp(1rem, 2.6vw, 1.4rem);
  letter-spacing: 0.04em;
  color: var(--ink);
  opacity: 0;
  animation: rise 1s ease 1.15s forwards;
}

.tagline {
  margin: clamp(0.8rem, 2vw, 1.1rem) auto 0;
  max-width: 36ch;
  font-size: clamp(0.92rem, 2.2vw, 1.08rem);
  line-height: 1.6;
  color: var(--ink-dim);
  opacity: 0;
  animation: rise 1s ease 1.35s forwards;
}

.footer {
  position: fixed;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: clamp(1rem, 3vw, 1.8rem);
  text-align: center;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  opacity: 0;
  animation: rise 1.2s ease 1.7s forwards;
}

.footer p {
  margin: 0;
}

@keyframes charIn {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    filter: blur(0);
  }
}

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

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 12px 2px rgba(56, 225, 255, 0.7);
  }
  50% {
    opacity: 0.4;
    box-shadow: 0 0 6px 1px rgba(56, 225, 255, 0.3);
  }
}

@media (max-width: 540px) {
  .eyebrow {
    letter-spacing: 0.3em;
  }
}

/* Calm static fallback — no motion, fully legible */
@media (prefers-reduced-motion: reduce) {
  .eyebrow,
  .subhead,
  .tagline,
  .footer {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .headline .char {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
  .eyebrow-dot {
    animation: none;
  }
}
