:root {
  color-scheme: dark;
  --bg: #070b19;
  --bg-soft: #10162d;
  --panel: rgba(9, 14, 30, 0.64);
  --panel-strong: rgba(7, 12, 25, 0.84);
  --text: #f5f8ff;
  --muted: #a9b7db;
  --accent: #7ba1ff;
  --accent-strong: #4d78ff;
  --accent-soft: rgba(123, 161, 255, 0.18);
  --border: rgba(123, 161, 255, 0.24);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(34, 56, 119, 0.34), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(70, 102, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #04070f 0%, var(--bg) 55%, #03050c 100%);
  color: var(--text);
  font-family: "IBM Plex Sans", sans-serif;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 56px);
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 0%, rgba(3, 5, 12, 0.08) 50%, rgba(3, 5, 12, 0.68) 100%);
  pointer-events: none;
  z-index: -1;
}

.stars,
.glow {
  pointer-events: none;
  position: absolute;
  inset: -10%;
}

.stars {
  opacity: 0.9;
  background-repeat: repeat;
}

.stars-one {
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.5px),
    radial-gradient(circle at 30% 70%, rgba(170, 196, 255, 0.8) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 70% 30%, rgba(115, 145, 255, 0.82) 0 1px, transparent 1.7px),
    radial-gradient(circle at 88% 82%, rgba(255, 255, 255, 0.75) 0 1px, transparent 1.6px);
  background-size: 240px 240px, 340px 340px, 280px 280px, 420px 420px;
  animation: drift 34s linear infinite;
}

.stars-two {
  opacity: 0.45;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.78) 0 1px, transparent 1.5px),
    radial-gradient(circle at 40% 58%, rgba(130, 169, 255, 0.66) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 76% 28%, rgba(183, 208, 255, 0.64) 0 1px, transparent 1.7px);
  background-size: 190px 190px, 290px 290px, 360px 360px;
  filter: blur(0.2px);
  animation: drift-reverse 48s linear infinite;
}

.glow {
  filter: blur(80px);
  opacity: 0.5;
}

.glow-left {
  background: radial-gradient(circle at 20% 50%, rgba(77, 120, 255, 0.22), transparent 34%);
}

.glow-right {
  background: radial-gradient(circle at 80% 40%, rgba(139, 173, 255, 0.18), transparent 32%);
}

.hero {
  position: relative;
  width: min(100%, 880px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2.5vw, 24px);
  text-align: center;
  padding: clamp(28px, 4vw, 48px) clamp(6px, 2vw, 16px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -16% -8%;
  z-index: -1;
  background: radial-gradient(circle at center, rgba(11, 18, 38, 0.82), transparent 62%);
  filter: blur(10px);
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: none;
  color: rgba(210, 223, 255, 0.74);
}

.brand-frame {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-right: clamp(100px, 14vw, 158px);
}

.brand {
  margin: 0;
  position: relative;
  z-index: 1;
  font-family: "Manrope", sans-serif;
  font-size: clamp(3rem, 10vw, 6.75rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.08em;
  text-wrap: balance;
}

.brand-signal {
  font-weight: 600;
}

.brand-atom {
  font-weight: 800;
}

.brand-orbit {
  position: absolute;
  top: 52%;
  right: clamp(2px, 1.2vw, 18px);
  width: clamp(128px, 22vw, 210px);
  aspect-ratio: 1;
  transform: translateY(-54%);
  opacity: 0.92;
  filter: drop-shadow(0 0 28px rgba(100, 136, 255, 0.28));
}

.brand-orbit svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.orbit-spin {
  transform-origin: center;
  animation: spin 22s linear infinite;
}

.orbit-arc {
  fill: none;
  stroke: url(#orbitGradient);
  stroke-width: 11;
  stroke-linecap: round;
  opacity: 0.95;
}

.orbit-node {
  fill: #7f9eff;
  filter: drop-shadow(0 0 14px rgba(114, 149, 255, 0.54));
  transform-box: fill-box;
  transform-origin: center;
}

.orbit-node-small {
  --pulse-x: -2.2px;
  --pulse-y: -3.6px;
  animation: orbit-node-shift 3.2s ease-in-out infinite;
}

.orbit-node-medium {
  --pulse-x: -1.6px;
  --pulse-y: 4px;
  animation: orbit-node-shift 4.1s ease-in-out infinite 0.4s;
}

.orbit-node-large {
  --pulse-x: 4.4px;
  --pulse-y: 0.8px;
  animation: orbit-node-shift 4.8s ease-in-out infinite 0.2s;
}

.hero-copy {
  width: min(100%, 620px);
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.3vw, 1.2rem);
  line-height: 1.7;
  text-wrap: balance;
}

.signup-form {
  width: min(100%, 620px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(140, 172, 255, 0.22);
  border-radius: 999px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.email-input,
.submit-button {
  border: 0;
  outline: 0;
  font: inherit;
}

.field-group {
  min-width: 0;
}

.field-group-email {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.field-group-submit {
  display: flex;
}

.field-group-submit .submit-button {
  width: 100%;
}

.email-input {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 0 12px 0 16px;
  border-radius: 999px;
  color: var(--text);
  background: transparent;
  font-size: 1rem;
}

.email-input::placeholder {
  color: rgba(185, 197, 226, 0.58);
}

.email-input:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(147, 179, 255, 0.34);
}

.field-group-email.has-error .email-input {
  box-shadow: inset 0 0 0 1px rgba(255, 196, 207, 0.72);
}

.field-group-email .help-block {
  margin: 0;
  padding-left: 16px;
  text-align: left;
  color: #ffc4cf;
  font-size: 0.82rem;
  line-height: 1.4;
}

.submit-button {
  min-height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(131, 164, 255, 1), rgba(77, 120, 255, 1));
  color: #f7f9ff;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
  box-shadow:
    0 14px 28px rgba(56, 90, 194, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.submit-button:hover,
.submit-button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow:
    0 18px 32px rgba(56, 90, 194, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button[disabled] {
  cursor: wait;
  opacity: 0.82;
  transform: none;
}

.form-status {
  margin: 0;
  min-height: 1.5em;
  font-size: 0.96rem;
  color: rgba(212, 222, 248, 0.76);
}

.form-status[data-tone="success"] {
  color: #d9e9ff;
}

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

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

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-80px, -60px, 0);
  }
}

@keyframes drift-reverse {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(70px, 40px, 0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit-node-shift {
  0%,
  100% {
    transform: translate(calc(var(--pulse-x) * -1), calc(var(--pulse-y) * -1));
    opacity: 1;
  }

  50% {
    transform: translate(var(--pulse-x), var(--pulse-y));
    opacity: 0.88;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 28px 12px 24px;
  }

  .brand-frame {
    padding-right: 92px;
    padding-bottom: 0;
  }

  .brand-orbit {
    top: 53%;
    right: 2px;
    bottom: auto;
    width: 126px;
    transform: translateY(-56%);
    opacity: 0.62;
  }

  .signup-form {
    grid-template-columns: 1fr;
    border-radius: 24px;
    padding: 14px;
  }

  .field-group-submit {
    width: 100%;
  }

  .email-input {
    min-height: 52px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.02);
  }
}

@media (max-width: 460px) {
  .page-shell {
    padding: 16px;
  }

  .hero-copy,
  .form-status {
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stars-one,
  .stars-two,
  .orbit-spin,
  .orbit-node-small,
  .orbit-node-medium,
  .orbit-node-large {
    animation: none;
  }

  .submit-button {
    transition: none;
  }
}
