:root {
  color-scheme: dark;
  --color-ink: #f7f9ff;
  --color-muted: #9ba7b7;
  --color-panel: rgba(10, 16, 25, 0.76);
  --color-line: rgba(255, 255, 255, 0.14);
  --color-blue: #0f7dff;
  --color-cyan: #5de1ff;
  --color-error: #ff6c82;
  --color-success: #7af0c4;
  --shadow-blue: 0 0 44px rgba(15, 125, 255, 0.34);
  --radius-tight: 8px;
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #020306;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--color-ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input {
  font: inherit;
}

.site-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(8, 20, 36, 0.9), rgba(2, 3, 6, 0.2) 40%),
    radial-gradient(circle at 78% 18%, rgba(48, 75, 112, 0.18), transparent 28%),
    #020306;
}

.site-shell::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 86%);
}

.ambient {
  position: absolute;
  z-index: -1;
  width: 44vw;
  min-width: 320px;
  max-width: 760px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(68px);
  opacity: 0.28;
  transform: translate3d(0, 0, 0);
  pointer-events: none;
}

.ambient--blue {
  top: 18%;
  left: -18%;
  background: rgba(12, 122, 255, 0.62);
}

.ambient--silver {
  right: -22%;
  bottom: -20%;
  background: rgba(183, 212, 246, 0.22);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0;
}

.nav__brand {
  display: inline-flex;
  width: 176px;
  text-decoration: none;
}

.nav__logo {
  display: block;
  width: 100%;
  height: auto;
}

.nav__status {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  color: #d6e4f8;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(18px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  align-items: center;
  gap: 56px;
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 112px);
  margin: 0 auto;
  padding: 42px 0 76px;
}

.hero__content {
  max-width: 850px;
}

.hero__eyebrow {
  margin: 0 0 14px;
  color: var(--color-cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__title {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2rem, 4.7vw, 4.45rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero__copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--color-muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.signup {
  width: min(100%, 660px);
  margin-top: 38px;
}

.signup__label {
  display: block;
  margin-bottom: 10px;
  color: #c9d5e7;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.signup__control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 66px;
  padding: 6px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-tight);
  background: var(--color-panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(22px);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms var(--ease-premium);
}

.signup__control:focus-within {
  border-color: rgba(93, 225, 255, 0.62);
  box-shadow: var(--shadow-blue);
}

.signup__control.is-error {
  border-color: rgba(255, 108, 130, 0.76);
  animation: shake 420ms var(--ease-premium);
}

.signup__control.is-success {
  border-color: rgba(122, 240, 196, 0.72);
  box-shadow: 0 0 48px rgba(122, 240, 196, 0.18);
}

.signup__input {
  min-width: 0;
  height: 52px;
  border: 0;
  outline: 0;
  padding: 0 18px;
  color: var(--color-ink);
  background: transparent;
  font-size: 1rem;
}

.signup__input::placeholder {
  color: rgba(199, 211, 226, 0.5);
}

.signup__button {
  position: relative;
  min-width: 164px;
  height: 52px;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  color: #001122;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
  transform: translate3d(0, 0, 0);
  transition:
    transform 180ms var(--ease-premium),
    filter 180ms ease;
}

.signup__button::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: translate3d(-120%, 0, 0);
  transition: transform 520ms var(--ease-premium);
}

.signup__button:hover {
  filter: brightness(1.08);
  transform: translate3d(0, -1px, 0);
}

.signup__button:hover::before,
.signup__button.is-confirmed::before {
  transform: translate3d(120%, 0, 0);
}

.signup__button-text {
  position: relative;
  z-index: 1;
}

.signup__status {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0;
  transform: translate3d(0, -4px, 0);
  transition:
    opacity 220ms ease,
    transform 220ms var(--ease-premium),
    color 220ms ease;
}

.signup__status.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.signup__status.is-error {
  color: var(--color-error);
}

.signup__status.is-success {
  color: var(--color-success);
}

.signal-panel {
  position: relative;
  align-self: stretch;
  min-height: 420px;
}

.signal-panel__rail {
  position: absolute;
  top: 7%;
  right: 46%;
  bottom: 9%;
  width: 1px;
  background: linear-gradient(transparent, rgba(93, 225, 255, 0.62), transparent);
  transform: translate3d(0, 0, 0);
}

.signal-panel__node {
  position: absolute;
  right: calc(46% - 9px);
  width: 18px;
  height: 18px;
  border: 1px solid rgba(93, 225, 255, 0.78);
  border-radius: 50%;
  background: #07111f;
  box-shadow: 0 0 28px rgba(93, 225, 255, 0.38);
  animation: pulse 2.8s ease-in-out infinite;
}

.signal-panel__node--one {
  top: 18%;
}

.signal-panel__node--two {
  top: 48%;
  animation-delay: 600ms;
}

.signal-panel__node--three {
  top: 76%;
  animation-delay: 1.1s;
}

@keyframes logo-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  20%,
  60% {
    transform: translate3d(-8px, 0, 0);
  }

  40%,
  80% {
    transform: translate3d(8px, 0, 0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.72;
  }

  50% {
    transform: translate3d(0, -8px, 0) scale(1.25);
    opacity: 1;
  }
}

@media (max-width: 820px) {
  .nav {
    width: min(100% - 28px, 680px);
    padding: 18px 0;
  }

  .nav__brand {
    width: 142px;
  }

  .nav__status {
    min-height: 32px;
    padding: 0 11px;
    font-size: 0.68rem;
  }

  .hero {
    display: block;
    width: min(100% - 28px, 680px);
    min-height: auto;
    padding: 42px 0 56px;
  }

  .hero__title {
    font-size: clamp(1.84rem, 9vw, 3.15rem);
  }

  .hero__copy {
    font-size: 0.98rem;
  }

  .signup__control {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
  }

  .signup__button {
    width: 100%;
  }

  .signal-panel {
    display: none;
  }
}

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

/* Lead capture update: backend response message outlet. */
#statusBox {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0;
  transform: translate3d(0, -4px, 0);
  transition:
    opacity 220ms ease,
    transform 220ms var(--ease-premium),
    color 220ms ease;
}

#statusBox.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

#statusBox.is-error {
  color: var(--color-error);
  animation: status-flash 360ms var(--ease-premium);
}

#statusBox.is-success {
  color: var(--color-success);
}

@media (max-width: 480px) {
  #statusBox {
    font-size: 0.86rem;
    overflow-wrap: anywhere;
  }
}

@keyframes status-flash {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.58;
  }
}
