:root {
  --foreground: #fff;
  --background: #000;
  --edge-x: clamp(20px, 3vw, 44px);
  --edge-y: clamp(20px, 2.6vw, 32px);
  --display: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: "SF Mono", "Roboto Mono", ui-monospace, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --glow: 0 0 1px rgba(255, 255, 255, 0.98),
    0 0 7px rgba(255, 255, 255, 0.46),
    0 0 22px rgba(255, 255, 255, 0.2);
  --soft-glow: 0 0 1px rgba(255, 255, 255, 0.96),
    0 0 6px rgba(255, 255, 255, 0.34);
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--background);
  color: var(--foreground);
  overflow: hidden;
  position: fixed;
  inset: 0;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
input {
  font: inherit;
}

.stage {
  position: fixed;
  inset: 0;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background: #000;
}

.boot-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  gap: 18px;
  align-content: center;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.08) 0 1px,
      transparent 1px 6px
    ),
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.1), transparent 34%),
    #000;
  color: var(--foreground);
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  text-shadow: var(--glow);
  pointer-events: none;
  animation: boot-flicker 150ms steps(2, end) infinite;
  transition: opacity 520ms ease, visibility 520ms ease, transform 520ms ease;
}

.boot-loader::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.6);
  animation: boot-scan 900ms cubic-bezier(0.18, 0.72, 0.16, 1) both;
}

.boot-loader--done {
  visibility: hidden !important;
  opacity: 0 !important;
  transform: scaleY(0.015);
}

.boot-loader__mark {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 6vw, 68px);
  letter-spacing: 0;
  text-transform: none;
}

.boot-loader__line {
  width: min(320px, 62vw);
  height: 1px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--soft-glow);
  transform-origin: left;
  animation: boot-line 880ms cubic-bezier(0.18, 0.72, 0.16, 1) both;
}

.boot-loader__status {
  min-height: 1em;
  font-size: 12px;
  opacity: 0.78;
}

.background-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  filter: brightness(0.72) contrast(1.04);
}

.overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.overlay-dark {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 46%, rgba(0, 0, 0, 0.2) 0 22%, rgba(0, 0, 0, 0.64) 68%, rgba(0, 0, 0, 0.88) 100%),
    linear-gradient(rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.48));
}

.overlay-lines {
  z-index: 10;
  opacity: 0.46;
  mix-blend-mode: overlay;
  background: repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.22) 0 1px,
      transparent 1px 7px
    )
    0 0 / 7px 7px;
  animation: scan 150s linear infinite;
}

.overlay-vignette {
  z-index: 11;
  opacity: 0.74;
  mix-blend-mode: multiply;
  background: radial-gradient(
    circle at 50% 45%,
    transparent 35%,
    rgba(0, 0, 0, 0.42) 73%,
    rgba(0, 0, 0, 0.92) 100%
  );
}

.overlay-noise {
  z-index: 12;
  inset: -40px;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.32) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 15%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px),
    radial-gradient(circle at 45% 80%, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px);
  background-size: 88px 88px, 112px 112px, 74px 74px;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  height: calc(var(--edge-y) + 42px);
  pointer-events: none;
}

.wordmark,
.eyebrow,
.email-input,
.country-select,
.phone-input,
.submit-button,
.form-status,
.footer-note {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--foreground);
  text-shadow: var(--soft-glow);
}

.wordmark {
  position: absolute;
  top: var(--edge-y);
  left: 50%;
  display: inline-flex;
  align-items: center;
  height: 42px;
  pointer-events: auto;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  text-transform: none;
  transform: translateX(-50%);
}

.wordmark::after {
  content: " // waitlist";
  margin-left: 14px;
  font-family: var(--mono);
  font-weight: 600;
  opacity: 0.82;
  font-size: 15px;
  text-transform: uppercase;
}

.hero {
  position: absolute;
  z-index: 20;
  top: 50%;
  left: 50%;
  width: min(780px, calc(100% - (var(--edge-x) * 2)));
  text-align: center;
  transform: translate(-50%, -50%);
}

.eyebrow {
  margin: 0 0 16px;
  font-family: var(--sans);
  font-weight: 650;
  font-size: 14px;
  line-height: 1;
  opacity: 0.86;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 auto 34px;
  max-width: 760px;
  font-family: var(--display);
  font-size: clamp(42px, 5.7vw, 76px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
  color: var(--foreground);
  text-shadow: var(--glow);
}

.hero--form h1 {
  margin-bottom: 30px;
  font-size: clamp(38px, 5vw, 66px);
}

.hero-actions {
  display: flex;
  justify-content: center;
}

.waitlist-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 340px) max-content;
  align-items: center;
  gap: 12px;
  justify-content: center;
  width: min(100%, 880px);
  margin: 0 auto;
}

.email-input {
  appearance: none;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 0 15px;
  border: 1.5px solid rgba(255, 255, 255, 0.82);
  border-radius: 0;
  outline: 0;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: var(--soft-glow);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 520;
  line-height: 1;
  text-transform: none;
}

.phone-group {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-width: 0;
  min-height: 50px;
  border: 1.5px solid rgba(255, 255, 255, 0.82);
  background: rgba(0, 0, 0, 0.2);
  box-shadow: var(--soft-glow);
}

.country-select,
.phone-input {
  appearance: none;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 520;
  line-height: 1;
  text-transform: none;
}

.country-select {
  cursor: pointer;
  padding: 0 26px 0 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.38);
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 22px,
    calc(100% - 9px) 22px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.phone-input {
  padding: 0 15px;
}

.email-input::placeholder,
.phone-input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.submit-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 22px;
  border: 1.5px solid rgba(255, 255, 255, 0.94);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.34);
  box-shadow: var(--soft-glow);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease, text-shadow 160ms ease;
}

.cta-link {
  min-width: 240px;
  text-decoration: none;
}

.submit-button:hover {
  background: #fff;
  color: #000;
  text-shadow: none;
}

.submit-button svg {
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
}

.email-input:focus-visible,
.phone-group:focus-within,
.submit-button:focus-visible,
.wordmark:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 4px;
}

.submit-button:disabled,
.email-input:disabled,
.country-select:disabled,
.phone-input:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  min-height: 1em;
  margin: 0;
  font-size: 13px;
  line-height: 1;
}

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

.honeypot,
.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;
}

.footer-note {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: var(--edge-y);
  margin: 0;
  font-size: 13px;
  line-height: 1;
  opacity: 0.84;
  pointer-events: none;
  user-select: none;
  transform: translateX(-50%);
  white-space: nowrap;
}

.social-links {
  position: absolute;
  right: var(--edge-x);
  bottom: calc(var(--edge-y) - 8px);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-link {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--foreground);
  opacity: 0.88;
  text-decoration: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.social-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.social-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 3px;
}

.social-link svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.38));
}

@keyframes scan {
  to {
    background-position-y: 100%;
  }
}

@keyframes boot-line {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes boot-scan {
  0% {
    transform: translateY(-42vh) scaleX(0.2);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    transform: translateY(42vh) scaleX(1);
    opacity: 0;
  }
}

@keyframes boot-flicker {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(0.78);
  }
}

@media (max-width: 900px) {
  :root {
    --edge-x: 18px;
    --edge-y: 18px;
  }

  .eyebrow {
    font-size: 12px;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 54px);
  }

  .waitlist-form {
    grid-template-columns: minmax(0, 1fr);
    max-width: 390px;
  }

  .email-input,
  .country-select,
  .phone-input,
  .submit-button {
    min-height: 42px;
    font-size: 15px;
  }

  .phone-group {
    grid-template-columns: 106px minmax(0, 1fr);
    min-height: 42px;
  }

  .country-select {
    background-position:
      calc(100% - 14px) 18px,
      calc(100% - 9px) 18px;
  }

  .footer-note {
    font-size: 12px;
  }

  .social-links {
    right: var(--edge-x);
    bottom: calc(var(--edge-y) - 7px);
    gap: 4px;
  }

  .social-link {
    width: 32px;
    height: 32px;
  }

  .social-link svg {
    width: 21px;
    height: 21px;
  }
}

@media (max-width: 480px) {
  .wordmark {
    font-size: 21px;
  }

  .wordmark::after {
    font-size: 15px;
  }

  .hero {
    top: 51%;
    width: min(100% - 32px, 390px);
  }

  .hero h1 {
    margin-bottom: 26px;
    font-size: clamp(32px, 11vw, 46px);
    line-height: 1.04;
  }

  .email-input,
  .country-select,
  .phone-input,
  .submit-button {
    min-height: 40px;
    font-size: 14px;
  }

  .phone-group {
    grid-template-columns: 98px minmax(0, 1fr);
    min-height: 40px;
  }

  .country-select {
    background-position:
      calc(100% - 14px) 17px,
      calc(100% - 9px) 17px;
  }

  .form-status {
    font-size: 11px;
  }

  .footer-note {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .boot-loader,
  .boot-loader::before,
  .boot-loader__line,
  .overlay-lines {
    animation: none;
  }

  .boot-loader {
    transition: opacity 180ms ease, visibility 180ms ease;
  }
}
