:root {
  --bg: #061018;
  --ink: #e8f4f2;
  --muted: #8aa8a3;
  --line: rgba(120, 220, 190, 0.18);
  --signal: #2fe0b2;
  --signal-deep: #0f8f74;
  --warn: #ffb454;
  --panel: rgba(8, 22, 28, 0.55);
  --radius: 14px;
  --font-display: "Syne", sans-serif;
  --font-body: "Instrument Sans", sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  min-height: 100dvh;
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
  animation: drift 14s ease-in-out infinite alternate;
}

.glow-a {
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  top: -12%;
  right: -8%;
  background: radial-gradient(circle, rgba(47, 224, 178, 0.35), transparent 70%);
}

.glow-b {
  width: min(48vw, 440px);
  height: min(48vw, 440px);
  bottom: -18%;
  left: -10%;
  background: radial-gradient(circle, rgba(15, 143, 116, 0.4), transparent 70%);
  animation-delay: -4s;
}

.stage {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
  max-width: 760px;
}

.brand {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  background: linear-gradient(120deg, #f4fffb 10%, var(--signal) 55%, #9ef0d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s forwards;
}

.headline {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s forwards;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.55;
  color: var(--muted);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s forwards;
}

.notify {
  display: flex;
  gap: 0.6rem;
  width: min(100%, 440px);
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: var(--panel);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.55s forwards;
}

.notify input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  padding: 0.85rem 0.9rem;
}

.notify input::placeholder {
  color: #6f8f89;
}

.notify button {
  border: 0;
  border-radius: var(--radius);
  padding: 0.85rem 1.15rem;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #04211a;
  background: linear-gradient(160deg, var(--signal), var(--signal-deep));
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}

.notify button:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

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

.form-note {
  margin: 0.7rem 0 0;
  font-size: 0.92rem;
  color: var(--signal);
  min-height: 1.2em;
}

.form-note.error {
  color: var(--warn);
}

.foot {
  position: fixed;
  z-index: 2;
  left: clamp(1.5rem, 5vw, 4rem);
  bottom: 1.25rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a8580;
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.7s forwards;
}

.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 rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(24px, -18px, 0) scale(1.08);
  }
}

@media (max-width: 640px) {
  .notify {
    flex-direction: column;
    width: 100%;
  }

  .notify button {
    width: 100%;
  }

  .foot {
    position: static;
    margin: -2rem 0 1.5rem;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .headline,
  .lede,
  .notify,
  .foot,
  .glow {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
