:root {
  --ink: #17102e;
  --mint: #21d4b4;
  --orange: #ffb13b;
  --pink: #ff4d8d;
  --purple: #7c4dff;
  --bg: #07050f;
  --text: #f4f0ff;
  --muted: rgba(244, 240, 255, 0.68);
  --line: rgba(244, 240, 255, 0.12);
  --brand: linear-gradient(135deg, #ffb13b 0%, #ff4d8d 52%, #7c4dff 100%);
  --safe: 1.35rem;
}

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

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

body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: Outfit, "Segoe UI", sans-serif;
  isolation: isolate;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(124, 77, 255, 0.22), transparent 58%),
    radial-gradient(900px 520px at 100% 110%, rgba(255, 77, 141, 0.16), transparent 50%),
    #07050f;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}

.orb-a {
  top: -12%;
  left: 18%;
  width: 38vw;
  height: 38vw;
  background: rgba(255, 177, 59, 0.38);
  animation: drift-a 18s ease-in-out infinite;
}

.orb-b {
  top: 28%;
  right: -8%;
  width: 42vw;
  height: 42vw;
  background: rgba(255, 77, 141, 0.3);
  animation: drift-b 22s ease-in-out infinite;
}

.orb-c {
  bottom: -18%;
  left: -6%;
  width: 46vw;
  height: 46vw;
  background: rgba(124, 77, 255, 0.32);
  animation: drift-c 26s ease-in-out infinite;
}

.orb-d {
  top: 62%;
  left: 58%;
  width: 18vw;
  height: 18vw;
  background: rgba(33, 212, 180, 0.22);
  animation: drift-a 16s ease-in-out infinite reverse;
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 28%, transparent 78%);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--spot-x, 50%) var(--spot-y, 30%),
    rgba(255, 177, 59, 0.14),
    transparent 55%
  );
}

.top,
.hero,
.foot {
  width: min(1080px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 0 0;
}

.brand img {
  width: 176px;
  height: auto;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.45rem 0.85rem 0.45rem 0.7rem;
  border: 1px solid rgba(33, 212, 180, 0.28);
  border-radius: 999px;
  background: rgba(33, 212, 180, 0.08);
  color: #bff8ec;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(33, 212, 180, 0.7);
  animation: pulse 1.8s ease-out infinite;
}

.hero {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.2rem 0 4rem;
  text-align: center;
}

.emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: min(440px, 88vw);
  margin: 0 0 1.85rem;
  padding: var(--safe);
}

.emblem-halo {
  position: absolute;
  inset: 10% 4%;
  border-radius: 40px;
  background: var(--brand);
  filter: blur(36px);
  opacity: 0.42;
  animation: glow 4.5s ease-in-out infinite;
}

.emblem-mark {
  position: relative;
  z-index: 1;
  width: min(400px, 80vw);
  height: auto;
  animation: rise 1s ease both;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--mint);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  animation: rise 1s ease 0.08s both;
}

h1 {
  margin: 0 0 1rem;
  max-width: 16ch;
  font-size: clamp(2.4rem, 7vw, 5.1rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  animation: rise 1s ease 0.16s both;
}

.gradient-text {
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0 0 2.1rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  font-weight: 400;
  line-height: 1.6;
  animation: rise 1s ease 0.24s both;
}

.waitlist {
  width: min(520px, 100%);
  animation: rise 1s ease 0.32s both;
}

.waitlist-row {
  display: flex;
  gap: 0.65rem;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(23, 16, 46, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.waitlist input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1.1rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  outline: none;
}

.waitlist input::placeholder {
  color: rgba(244, 240, 255, 0.42);
}

.waitlist button {
  flex-shrink: 0;
  padding: 0.85rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.waitlist button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.waitlist button:focus-visible,
.waitlist input:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.waitlist button:focus-visible {
  outline-offset: 0;
}

.hint,
.status {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
}

.hint {
  color: rgba(244, 240, 255, 0.46);
}

.status {
  min-height: 1.2em;
  color: var(--mint);
  font-weight: 500;
}

.status[data-state="error"] {
  color: #ff8fb3;
}

.waitlist[data-state="success"] .waitlist-row,
.waitlist[data-state="success"] .hint {
  display: none;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  padding: 1.4rem 0 1.8rem;
  border-top: 1px solid var(--line);
}

.foot img {
  width: 108px;
}

.foot p {
  margin: 0;
  color: rgba(244, 240, 255, 0.42);
  font-size: 0.86rem;
}

@keyframes drift-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(4vw, 3vh, 0) scale(1.08);
  }
}

@keyframes drift-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-5vw, -2vh, 0);
  }
}

@keyframes drift-c {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(3vw, -4vh, 0) scale(1.12);
  }
}

@keyframes glow {
  0%,
  100% {
    opacity: 0.32;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.55;
    transform: scale(1.04);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(33, 212, 180, 0.65);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(33, 212, 180, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(33, 212, 180, 0);
  }
}

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

@media (max-width: 720px) {
  .top,
  .hero,
  .foot {
    width: min(1080px, calc(100% - 1.6rem));
  }

  .brand img {
    width: 132px;
  }

  .live {
    font-size: 0.68rem;
    letter-spacing: 0.03em;
  }

  .waitlist-row {
    flex-direction: column;
    padding: 0.7rem;
    border-radius: 28px;
  }

  .waitlist button {
    width: 100%;
  }

  .foot {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb,
  .emblem-halo,
  .live-dot,
  .emblem-mark,
  .eyebrow,
  h1,
  .lead,
  .waitlist {
    animation: none;
  }
}
