:root {
  --sky-top: #0a1230;
  --sky-mid: #16357e;
  --sky-bottom: #2f7fd6;
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.72);
  --ink-faint: rgba(255, 255, 255, 0.45);
  --glass: rgba(255, 255, 255, 0.07);
  --glass-line: rgba(255, 255, 255, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--sky-top);
  -webkit-font-smoothing: antialiased;
}

/* ---------- stage ---------- */

.stage {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 6vmin 5vw;
  overflow: hidden;
  background:
    radial-gradient(
      120% 90% at 50% 108%,
      rgba(120, 200, 255, 0.55) 0%,
      rgba(120, 200, 255, 0) 62%
    ),
    linear-gradient(
      170deg,
      var(--sky-top) 0%,
      var(--sky-mid) 52%,
      var(--sky-bottom) 100%
    );
}

/* vignette to focus the middle */
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    100% 75% at 50% 45%,
    rgba(0, 0, 0, 0) 45%,
    rgba(4, 8, 26, 0.45) 100%
  );
}

/* ---------- aurora glow ---------- */

.aurora {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.55;
}

.aurora__blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}

.aurora__blob--a {
  width: 48vmax;
  height: 48vmax;
  top: -8%;
  left: -6%;
  background: radial-gradient(circle, #4d7cff 0%, rgba(77, 124, 255, 0) 70%);
  animation: drift-a 26s var(--ease) infinite alternate;
}

.aurora__blob--b {
  width: 42vmax;
  height: 42vmax;
  right: -10%;
  top: 18%;
  background: radial-gradient(circle, #23c7ff 0%, rgba(35, 199, 255, 0) 70%);
  animation: drift-b 32s var(--ease) infinite alternate;
}

.aurora__blob--c {
  width: 55vmax;
  height: 55vmax;
  bottom: -22%;
  left: 22%;
  background: radial-gradient(circle, #7b5cff 0%, rgba(123, 92, 255, 0) 70%);
  animation: drift-c 38s var(--ease) infinite alternate;
}

@keyframes drift-a {
  to {
    transform: translate3d(9vmax, 6vmax, 0) scale(1.15);
  }
}
@keyframes drift-b {
  to {
    transform: translate3d(-11vmax, 8vmax, 0) scale(0.9);
  }
}
@keyframes drift-c {
  to {
    transform: translate3d(6vmax, -9vmax, 0) scale(1.1);
  }
}

/* ---------- canvas ---------- */

#mailfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- card ---------- */

.card {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(2rem, 5vmin, 3.25rem) clamp(1.75rem, 6vmin, 4rem);
  border-radius: 28px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.18) inset,
    0 30px 70px -30px rgba(2, 8, 30, 0.75);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  animation: rise 1s var(--ease) both;
}

@supports not (backdrop-filter: blur(4px)) {
  .card {
    background: rgba(10, 22, 60, 0.55);
  }
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: clamp(0.72rem, 1.6vmin, 0.85rem);
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-faint);
  animation: rise 1s var(--ease) 0.1s both;
}

.wordmark {
  margin: 0;
  font-size: clamp(2.6rem, 11vmin, 5.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 25%, #b9dcff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 26px rgba(120, 190, 255, 0.35));
  animation: rise 1s var(--ease) 0.18s both;
}

.tagline {
  margin: 0.9rem 0 0;
  font-size: clamp(0.9rem, 2vmin, 1.05rem);
  font-weight: 300;
  color: var(--ink-soft);
  animation: rise 1s var(--ease) 0.26s both;
}

/* ---------- call to action ---------- */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: clamp(1.5rem, 4vmin, 2.25rem);
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-size: clamp(0.92rem, 2vmin, 1rem);
  font-weight: 500;
  text-decoration: none;
  color: #0d1c44;
  background: linear-gradient(180deg, #ffffff 0%, #dbeaff 100%);
  box-shadow:
    0 10px 24px -10px rgba(0, 0, 0, 0.6),
    0 0 0 0 rgba(255, 255, 255, 0.35);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
  animation: rise 1s var(--ease) 0.34s both;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-3px);
  box-shadow:
    0 18px 34px -12px rgba(0, 0, 0, 0.65),
    0 0 0 6px rgba(255, 255, 255, 0.14);
}

.cta:active {
  transform: translateY(-1px);
}

.cta:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

.cta__icon,
.cta__arrow {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.cta__arrow {
  transition: transform 0.35s var(--ease);
}

.cta:hover .cta__arrow,
.cta:focus-visible .cta__arrow {
  transform: translateX(4px);
}

.host {
  margin: 1.35rem 0 0;
  font-size: clamp(0.68rem, 1.5vmin, 0.78rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  animation: rise 1s var(--ease) 0.42s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- motion preferences ---------- */

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