@font-face {
  font-family: Inter;
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url("fonts/montserrat-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --blue: #3a00d9;
  --ink: #09031c;
  --white: #f8f5ff;
  --gutter: clamp(22px, 6vw, 105px);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0a0713;
  color: var(--white);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding: 12px; }
a { color: inherit; }
a:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }

.stage {
  --masthead-height: 78px;
  min-height: calc(100svh - 24px);
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
  position: relative;
  border: 1px solid #c2aaff31;
  border-radius: 15px;
  background:
    radial-gradient(ellipse 75% 27% at 50% 56%, #3917a45c, transparent 95%),
    linear-gradient(to bottom, #09031c 0%, #100428 21%, #1d0851 43%, #251066 58%, #130d40 74%, #070b22 88%, #030817 100%);
}
.stage::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background: #1006244d;
  backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .36s ease, visibility 0s linear .36s;
}
.stage:has(.waitlist-shell.is-open)::after {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.wrap { padding-inline: var(--gutter); }
.masthead {
  min-height: var(--masthead-height);
  display: flex;
  align-items: center;
}
.brand { position: relative; z-index: 3; display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: clamp(132px, 13.1vw, 192px); height: auto; }

.hero {
  --hero-top-space: clamp(60px, 8.5vh, 106px);
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding-top: var(--hero-top-space);
}
.hero-copy { position: relative; margin-inline: auto; max-width: 850px; padding-inline: 22px; }
.hero-message {
  position: relative;
  z-index: 1;
  transition: opacity .18s ease;
}
.hero-copy:has(.waitlist-shell.is-open) .hero-message { opacity: 0; }
.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 24px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid #c5b2ff29;
  background: #b49aff10;
  color: #e6dbff;
  font-size: 10px;
  font-weight: 640;
  letter-spacing: .15em;
  line-height: 1.3;
}
.eyebrow span { width: 6px; height: 6px; border-radius: 50%; background: #d2bbff; box-shadow: 0 0 10px #9f74ff; }
h1 {
  margin: 0;
  color: var(--white);
  font-family: Montserrat, Inter, sans-serif;
  font-size: clamp(2.52rem, 5.6vw, 6.35rem);
  font-weight: 550;
  letter-spacing: -.065em;
  line-height: 1.04;
  text-wrap: balance;
}
.lede {
  max-width: 535px;
  margin: 24px auto 0;
  color: #e9e0ff;
  font-size: clamp(15px, 1.55vw, 18px);
  line-height: 1.57;
  text-wrap: pretty;
}
.hero-action { height: 56px; margin-top: 26px; scroll-margin-top: 25px; overflow-anchor: none; }
.button,
.waitlist-shell {
  position: relative;
  isolation: isolate;
  border: 1px solid #e0cfff80;
  border-radius: 15px;
  background: linear-gradient(180deg, #12082b, #241044 61%, #5734a0);
  box-shadow: inset 0 1px 0 #f1eaff24, inset 0 -1px 0 #f1eaff48, 0 5px 24px #09031c80;
  transition: border-color .35s, box-shadow .45s;
}
.button {
  display: inline-flex;
  min-height: 56px;
  padding: 0 21px 0 23px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  text-shadow: 0 1px 3px #100624b3;
  overflow: hidden;
}
.button::before,
.waitlist-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(ellipse 52% 95% at 30% 109%, #bf9dff, transparent 85%),
    radial-gradient(ellipse 62% 115% at 82% 109%, #7847f5, transparent 83%);
  background-size: 155% 100%;
  background-position: 5% 100%;
  opacity: .55;
  transition: opacity .45s, background-position .7s cubic-bezier(.2, .7, .3, 1);
}
.button svg {
  flex: none;
  transition: transform .35s cubic-bezier(.2, .7, .3, 1);
}
.button:is(:hover, :focus-visible),
.waitlist-shell:has(> .waitlist-trigger:is(:hover, :focus-visible)) {
  border-color: #eadbffb3;
  box-shadow: inset 0 1px 0 #f1eaff38, inset 0 -1px 0 #f1eaff80, 0 6px 29px #a474ff59;
}
.button:is(:hover, :focus-visible)::before,
.waitlist-shell:has(> .waitlist-trigger:is(:hover, :focus-visible))::before {
  background-position: 90% 100%;
  opacity: .92;
}
.button:is(:hover, :focus-visible) svg { transform: translateX(3px); }
.button:active { box-shadow: inset 0 2px 7px #12082b99, 0 2px 13px #a474ff38; }
.button:disabled { cursor: wait; opacity: .7; }
.waitlist-shell {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 0;
  width: fit-content;
  max-width: calc(100% - 44px);
  max-height: calc(100% + var(--hero-top-space));
  transform: translateX(-50%);
}
.waitlist-shell.is-open { width: 500px; overflow-y: auto; }
.waitlist-shell.is-morphing { overflow: clip; }
.waitlist-shell::before { transition: opacity .4s, background-position .7s cubic-bezier(.2, .7, .3, 1); }
.waitlist-shell.is-open::before { opacity: .28; }
.waitlist-shell .waitlist-trigger {
  min-height: 54px;
  border: 0;
  background: transparent;
  box-shadow: none;
  white-space: nowrap;
}
.waitlist-trigger::before { content: none; }
.waitlist-trigger[hidden] { display: none; }
.waitlist {
  position: relative;
  padding: clamp(22px, 4vw, 30px);
  color: var(--white);
  text-align: left;
}
.waitlist-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #e9e0ff;
  cursor: pointer;
}
.waitlist-close:hover { background: #e0cfff1c; }
.waitlist :is(button, input):focus-visible, .hero-action button:focus-visible {
  outline: 2px solid #ebdfff;
  outline-offset: 3px;
}
.waitlist h2 {
  margin: 0 22px 10px 0;
  font: 600 clamp(23px, 6vw, 29px)/1.15 Montserrat, Inter, sans-serif;
  letter-spacing: -.045em;
}
.waitlist h2:focus { outline: none; }
.waitlist p { margin: 0 0 23px; color: #e9e0ff; font-size: 14px; line-height: 1.55; }
.waitlist #waitlist-success p { margin-bottom: 0; }
.waitlist label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; }
.waitlist input {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-bottom: 16px;
  padding: 9px 12px;
  border: 1px solid #c1a2ff66;
  border-radius: 9px;
  background: #09031c;
  color: inherit;
  font: inherit;
}
.waitlist .button { width: 100%; margin-top: 4px; }
.waitlist .waitlist-error { margin-bottom: 12px; color: #ffc5df; }
.horizon {
  position: relative;
  pointer-events: none;
  flex: 1 0 clamp(205px, 29vh, 335px);
  margin-top: 17px;
  background-image: url("stars.svg");
  background-size: cover;
}
.horizon canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.footer {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  background: linear-gradient(transparent, #05081a63);
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 46px;
  gap: 12px;
  color: #d7d8ec;
  font-size: 12px;
}
.footer a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #aba9d489; }
.footer a:hover { text-decoration-color: currentColor; }
.footer a:focus-visible { outline-color: white; }

@media (max-width: 640px) {
  body { padding: 7px; }
  .stage { --masthead-height: 66px; border-radius: 12px; min-height: calc(100svh - 14px); }
  .hero { --hero-top-space: clamp(65px, 9vh, 85px); }
  h1 { font-size: clamp(1.75rem, 8.45vw, 2.85rem); }
  .horizon { flex-basis: clamp(190px, 25svh, 260px); margin-top: 15px; }
  .footer { font-size: 11px; min-height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .button, .button::before, .button svg, .waitlist-shell, .waitlist-shell::before, .stage::after, .hero-message { transition: none; }
  .button:is(:hover, :focus-visible) svg { transform: none; }
}
