@font-face {
  font-family: "Inter";
  src: url("./assets/Inter-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./assets/Inter-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --midnight: #030817;
  --midnight-deep: #01040e;
  --surface: rgba(12, 18, 38, 0.74);
  --surface-strong: rgba(15, 23, 48, 0.94);
  --white: #f7f8ff;
  --muted: #aeb7cd;
  --quiet: #707b96;
  --cyan: #21d9ee;
  --blue: #4f8cff;
  --violet: #833cff;
  --line: rgba(184, 199, 235, 0.2);
  --focus: rgba(83, 164, 255, 0.9);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--midnight-deep);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(86, 45, 185, 0.16), transparent 35rem),
    radial-gradient(circle at 28% 58%, rgba(20, 129, 182, 0.08), transparent 31rem),
    linear-gradient(145deg, var(--midnight-deep), var(--midnight) 55%, #07091d);
  color: var(--white);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.28) 100%);
  content: "";
  pointer-events: none;
}

button,
input {
  font: inherit;
}

.page-shell {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(100%, 1120px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 5vw, 4rem) 1.5rem;
}

.hero {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: clamp(3rem, 8vh, 6rem) 0 clamp(2rem, 5vh, 4rem);
  text-align: center;
  transform: translateY(clamp(-5.125rem, -8.5vh, -4rem));
}

.brand-lockup {
  width: 100%;
}

h1 {
  margin: 0;
  font-size: clamp(3.25rem, 8vw, 6.75rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.signal-mark {
  position: relative;
  width: min(720px, 82vw);
  height: clamp(4rem, 7vw, 5.25rem);
  margin: clamp(0.85rem, 2vw, 1.45rem) auto 0;
}

.beam-core,
.beam-sweep {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: clamp(0.55rem, 1.05vw, 0.72rem);
  border-radius: 999px;
  transform: translateY(-50%);
}

.beam-core {
  background: linear-gradient(90deg, var(--cyan) 0%, var(--blue) 49%, var(--violet) 100%);
  box-shadow:
    0 0 6px rgba(39, 214, 238, 0.5),
    0 0 16px rgba(76, 136, 255, 0.32),
    0 0 22px rgba(129, 59, 255, 0.24);
}

.beam-sweep {
  overflow: hidden;
  opacity: 1;
}

.beam-sweep::after {
  position: absolute;
  top: 0;
  left: -18%;
  width: 18%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  content: "";
  filter: blur(1px);
  animation: signal-sweep 1.45s 0.35s cubic-bezier(0.22, 1, 0.36, 1) 1 both;
}

.beam-node {
  position: absolute;
  top: 50%;
  left: 77%;
  display: grid;
  width: clamp(2.85rem, 5.2vw, 3.65rem);
  height: clamp(2.85rem, 5.2vw, 3.65rem);
  place-items: center;
  border: 3px solid rgba(128, 66, 255, 0.92);
  border-radius: 50%;
  background: rgba(57, 34, 132, 0.34);
  box-shadow:
    0 0 0 6px rgba(120, 62, 255, 0.15),
    0 0 24px rgba(124, 61, 255, 0.5);
  transform: translate(-50%, -50%);
}

.beam-node::before {
  position: absolute;
  inset: 6px;
  border: 2px solid rgba(117, 63, 255, 0.9);
  border-radius: 50%;
  content: "";
}

.node-center {
  position: relative;
  width: 42%;
  height: 42%;
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    0 0 7px rgba(255, 255, 255, 0.95),
    0 0 16px rgba(141, 97, 255, 0.72);
}

.description {
  max-width: 42rem;
  margin: clamp(1.45rem, 3vw, 2.25rem) auto 0;
  color: #dce2f2;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  letter-spacing: -0.02em;
  line-height: 1.5;
}

.waitlist {
  width: min(100%, 560px);
  margin-top: clamp(2.25rem, 5vw, 3.75rem);
}

.invitation {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
}

input,
button {
  min-height: 3.5rem;
  border-radius: 0.75rem;
}

input {
  min-width: 0;
  border: 1px solid var(--line);
  outline: none;
  background: var(--surface);
  color: var(--white);
  padding: 0 1rem;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

input::placeholder {
  color: #77839f;
  opacity: 1;
}

input:hover {
  border-color: rgba(184, 199, 235, 0.34);
  background: var(--surface-strong);
}

input:focus-visible {
  border-color: var(--focus);
  background: var(--surface-strong);
  box-shadow: 0 0 0 3px rgba(63, 145, 255, 0.18);
}

input[aria-invalid="true"] {
  border-color: #ff819d;
  box-shadow: 0 0 0 3px rgba(255, 94, 130, 0.14);
}

button {
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: var(--white);
  color: #080d1e;
  padding: 0 1.35rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    transform 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease;
}

button:hover {
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(93, 112, 178, 0.22);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

button:focus-visible {
  outline: 3px solid rgba(73, 156, 255, 0.55);
  outline-offset: 3px;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.form-status {
  min-height: 1.45rem;
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

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

.form-status[data-state="success"] {
  color: #79e8d3;
}

footer {
  padding-top: 1rem;
  color: var(--quiet);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  line-height: 1.5;
  text-align: center;
}

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

@keyframes signal-sweep {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  12% {
    opacity: 0.8;
  }
  78% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateX(650%);
  }
}

@media (max-width: 600px) {
  .page-shell {
    padding-right: 1.15rem;
    padding-left: 1.15rem;
  }

  .hero {
    padding-top: 2.5rem;
    transform: translateY(clamp(-3.1rem, -5.8vh, -2.2rem));
  }

  h1 {
    font-size: clamp(3.15rem, 16vw, 4.4rem);
  }

  .signal-mark {
    width: min(92vw, 31rem);
    height: 4.25rem;
  }

  .description {
    max-width: 22rem;
    font-size: 1.1rem;
  }

  .waitlist {
    max-width: 25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }
}

@media (max-height: 720px) and (min-width: 601px) {
  .hero {
    padding-top: 2rem;
    padding-bottom: 1.5rem;
    transform: translateY(-2.25rem);
  }

  .waitlist {
    margin-top: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
