:root {
  --void: #070b12;
  --ink: #f3f3f3;
  --mute: rgba(243, 243, 243, 0.58);
  --blue: #0057ff;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --logo-path-length: 1200;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html,
body {
  height: 100%;
  background: var(--void);
  color: var(--ink);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body {
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
}

.atmosphere,
.ghost,
.mark,
.grid {
  position: absolute;
  pointer-events: none;
}

.atmosphere {
  inset: 0;
}

.void {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 70% at 12% 0%, #152036 0%, transparent 52%),
    linear-gradient(180deg, #101826 0%, var(--void) 46%, #04060a 100%);
}

.bloom {
  position: absolute;
  width: 70rem;
  height: 38rem;
  right: -16rem;
  bottom: -14rem;
  background:
    radial-gradient(closest-side at 38% 48%, color-mix(in srgb, var(--blue) 88%, white), transparent 64%),
    radial-gradient(closest-side at 58% 40%, rgba(90, 170, 255, 0.7), transparent 58%),
    radial-gradient(closest-side at 72% 58%, rgba(255, 150, 70, 0.38), transparent 55%);
  filter: blur(2.1rem);
  mix-blend-mode: screen;
  opacity: 0;
  transform: rotate(-14deg) scale(0.94);
}

.flare {
  position: absolute;
  width: 22rem;
  height: 22rem;
  left: 18%;
  top: 28%;
  background: radial-gradient(circle, color-mix(in srgb, var(--blue) 28%, transparent), transparent 70%);
  filter: blur(1.15rem);
  opacity: 0;
}

.ridge {
  position: absolute;
  right: -10%;
  bottom: -28%;
  width: 72%;
  height: 68%;
  background: radial-gradient(80% 70% at 72% 82%, #020307 0%, transparent 72%);
  filter: blur(0.65rem);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.09;
  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='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.grid {
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.grid-line {
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 0.6;
  vector-effect: non-scaling-stroke;
  opacity: 0;
}

html[data-phase="boot"] .grid-line {
  animation: grid-fade 0.9s ease 0.5s forwards;
}

html[data-phase="reveal"] .grid-line,
html[data-phase="idle"] .grid-line {
  opacity: 1;
}

@keyframes grid-fade {
  to {
    opacity: 1;
  }
}

.grid-sheen-line {
  stroke: rgba(235, 244, 255, 0.7);
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}

.ghost {
  right: -4%;
  bottom: -10%;
  width: 55%;
  height: auto;
  z-index: 0;
  filter: drop-shadow(0 0 1.1rem rgba(150, 195, 255, 0.28));
}

.ghost-path,
.mark-path {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--logo-path-length);
  stroke-dashoffset: var(--logo-path-length);
}

.ghost-path {
  stroke-width: 0.1;
  stroke: rgba(255, 255, 255, 0.8);
  opacity: 0.12;
}

.mark {
  top: 50%;
  left: 50%;
  width: 6.5rem;
  height: 6.5rem;
  color: #fff;
  transform: translate(-50%, -50%);
}

.mark-path {
  fill: currentColor;
  fill-opacity: 0;
  stroke: currentColor;
  stroke-width: 0.25;
}

.panel {
  position: absolute;
  z-index: 1;
  top: calc(24% + 1.5rem);
  left: calc(24% + 1.5rem);
}

.wordmark {
  display: block;
  width: min(8.5rem, 50vw);
  height: auto;
  margin-left: 0.5rem;
}

h1 {
  margin-top: 2.25rem;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.lede {
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 400;
  text-wrap: balance;
}

.waitlist {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 28rem;
  max-width: 100%;
}

.waitlist-input {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 0.375rem;
  background: #fff;
  color: #0a0e14;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: color 0.25s ease;
}

.waitlist-input::placeholder {
  color: rgba(0, 0, 0, 0.4);
  transition: color 0.25s ease;
}

.waitlist-input:read-only {
  cursor: default;
}

.waitlist-input.is-switching {
  color: transparent;
}

.waitlist-input.is-switching::placeholder {
  color: transparent;
}

.waitlist-btn {
  flex: 0 0 8.75rem;
  width: 8.75rem;
  padding: 0.5rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.375rem;
  background: #0a0e14;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 400;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-align: center;
  transition: border-color 0.2s, color 0.25s ease;
}

.waitlist-btn:hover {
  background: #121820;
  border-color: rgba(255, 255, 255, 0.28);
}

.turnstile-host {
  flex-basis: 100%;
  width: 100%;
}

.legal {
  position: absolute;
  z-index: 2;
  left: calc(24% + 1.5rem);
  bottom: 1.25rem;
  max-width: calc(76% - 3rem);
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.6875rem;
  line-height: 1.45;
}

.legal a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal a:hover {
  color: rgba(255, 255, 255, 0.75);
}

.wordmark,
h1,
.lede,
.waitlist-input,
.waitlist-btn,
.legal {
  opacity: 0;
  transform: translateY(0.7rem);
}

html[data-phase="boot"] .wordmark,
html[data-phase="boot"] h1,
html[data-phase="boot"] .lede,
html[data-phase="boot"] .waitlist-input,
html[data-phase="boot"] .waitlist-btn,
html[data-phase="boot"] .legal {
  visibility: hidden;
}

html[data-phase="boot"] .bloom,
html[data-phase="boot"] .flare {
  animation: bloom-in 1.3s var(--ease) forwards;
}

html[data-phase="boot"] .mark-path,
html[data-phase="boot"] .ghost-path {
  animation: nib-draw 1.4s ease-in-out forwards;
}

html[data-phase="reveal"] .mark,
html[data-phase="idle"] .mark {
  opacity: 0;
  transition: opacity 0.45s ease;
}

html[data-phase="reveal"] .mark-path,
html[data-phase="idle"] .mark-path {
  stroke-dashoffset: 0;
  fill-opacity: 1;
}

html[data-phase="reveal"] .ghost-path,
html[data-phase="idle"] .ghost-path {
  stroke-dashoffset: 0;
}

.ghost-sheen,
.grid-sheen {
  -webkit-mask-image: linear-gradient(105deg, transparent 42%, #000 50%, transparent 58%);
  mask-image: linear-gradient(105deg, transparent 42%, #000 50%, transparent 58%);
  -webkit-mask-size: 300% 100%;
  mask-size: 300% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
  opacity: 0;
}

.sheen-path {
  fill: none;
  stroke: rgba(235, 244, 255, 0.55);
  stroke-width: 0.14;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-phase="idle"] .ghost-sheen,
html[data-phase="idle"] .grid-sheen {
  opacity: 1;
  transition: opacity 0.6s ease;
  animation: sheen-sweep 7s ease-in-out infinite;
}

html[data-phase="idle"] .ghost-sheen {
  animation-delay: 0.4s;
}

@keyframes sheen-sweep {
  0% {
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
  }
  38% {
    -webkit-mask-position: 0% 0;
    mask-position: 0% 0;
  }
  100% {
    -webkit-mask-position: 0% 0;
    mask-position: 0% 0;
  }
}

html.copy-ready .wordmark,
html.copy-ready h1,
html.copy-ready .lede,
html.copy-ready .waitlist-input,
html.copy-ready .waitlist-btn,
html.copy-ready .legal {
  visibility: visible;
  animation: rise 0.6s var(--ease) forwards;
}

html[data-phase="reveal"] .bloom,
html[data-phase="idle"] .bloom,
html[data-phase="reveal"] .flare,
html[data-phase="idle"] .flare {
  opacity: 1;
  transform: rotate(-14deg) scale(1);
}

html[data-phase="idle"] .bloom {
  animation: drift 16s ease-in-out infinite;
}

@keyframes nib-draw {
  0% {
    stroke-dashoffset: var(--logo-path-length);
    fill-opacity: 0;
  }
  64% {
    stroke-dashoffset: 0;
    fill-opacity: 0;
  }
  100% {
    stroke-dashoffset: 0;
    fill-opacity: 1;
  }
}

@keyframes bloom-in {
  to {
    opacity: 1;
    transform: rotate(-14deg) scale(1);
  }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drift {
  0%,
  100% {
    transform: rotate(-14deg) translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: rotate(-11deg) translate3d(-2rem, -1rem, 0) scale(1.05);
  }
}

@media (max-width: 48rem) {
  .panel {
    top: auto;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 12%;
  }

  h1 {
    font-size: clamp(1.75rem, 7vw, 2.4rem);
  }

  .lede {
    font-size: 0.875rem;
  }

  .waitlist {
    width: 100%;
    flex-direction: column;
  }

  .waitlist-input {
    width: 100%;
  }

  .waitlist-btn {
    width: 100%;
    flex: none;
  }

  .ghost {
    width: 85%;
    right: -20%;
    bottom: -5%;
  }

  .wordmark {
    width: min(6.5rem, 40vw);
  }

  .legal {
    left: 1.25rem;
    right: 1.25rem;
    bottom: 0.75rem;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mark-path,
  .ghost-path,
  .wordmark,
  h1,
  .lede,
  .waitlist-input,
  .waitlist-btn,
  .legal,
  .bloom,
  .flare,
  .mark,
  .ghost {
    animation: none !important;
    transition: none !important;
  }

  .ghost-sheen,
  .grid-sheen {
    display: none;
  }

  .mark {
    opacity: 0;
  }

  .mark-path,
  .ghost-path {
    stroke-dashoffset: 0;
    fill-opacity: 1;
  }

  .wordmark,
  h1,
  .lede,
  .waitlist-input,
  .waitlist-btn,
  .legal,
  .bloom,
  .flare {
    opacity: 1;
    transform: none;
    visibility: visible;
  }

}
