:root {
  --void: #06080e;
  --text: #e8edf5;
  --text-soft: #c5ccd8;
  --text-dim: #8b95a8;
  --amber: #f0a31a;
  --amber-bright: #ffc14d;
  --amber-deep: #c47d0c;
  --danger: #f0a31a;
  --ink: #1a1306;
  --line: rgba(150, 170, 200, 0.22);
}

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

html,
body {
  min-height: 100%;
  height: 100%;
  background: var(--void);
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  overflow: hidden;
}

.texture,
#net,
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.texture {
  z-index: 0;
  overflow: hidden;
}

.texture img {
  width: 130%;
  height: 130%;
  object-fit: cover;
  object-position: center 40%;
  filter: blur(40px) saturate(0.75) brightness(0.9);
  opacity: 0.22;
  transform: translate(-12%, -10%);
}

#net {
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

.vignette {
  z-index: 2;
  background:
    radial-gradient(ellipse 70% 60% at 50% 48%, transparent 0%, rgba(6, 8, 14, 0.28) 55%, rgba(6, 8, 14, 0.78) 100%),
    linear-gradient(180deg, rgba(6, 8, 14, 0.35) 0%, transparent 22%, transparent 78%, rgba(6, 8, 14, 0.55) 100%);
}

main {
  position: relative;
  z-index: 3;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px 48px;
}

main::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(920px, 140vw);
  height: min(560px, 90vh);
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(6, 8, 14, 0.72) 0%, rgba(6, 8, 14, 0.42) 46%, transparent 74%);
  pointer-events: none;
  z-index: -1;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(3.4rem, 12.5vw, 8.25rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.9;
  background: linear-gradient(180deg, #f7f9fc 10%, #d5deea 55%, #9eb4c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 40px rgba(78, 200, 232, 0.12));
}

.subhead {
  margin-top: 18px;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 400;
  color: var(--text-soft);
  letter-spacing: 0.01em;
}

#signup {
  width: min(100%, 540px);
  margin-top: 40px;
}

.signup {
  display: flex;
  gap: 8px;
  align-items: stretch;
  padding: 6px;
  background: rgba(12, 16, 26, 0.78);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.signup:focus-within {
  border-color: rgba(78, 200, 232, 0.45);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 0 3px rgba(78, 200, 232, 0.14);
}

input[type="email"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font: 400 16px/1.3 "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  padding: 12px 16px;
}

input[type="email"]::placeholder {
  color: #6a7386;
}

button[type="submit"] {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 12px 20px;
  background: linear-gradient(180deg, var(--amber-bright) 0%, var(--amber) 100%);
  color: var(--ink);
  font: 600 0.95rem/1.2 "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 6px 16px rgba(240, 163, 26, 0.22);
  transition: transform 0.12s ease, filter 0.12s ease;
}

button[type="submit"]:hover {
  filter: brightness(1.06);
}

button[type="submit"]:active {
  transform: translateY(1px);
}

button[type="submit"]:focus-visible,
input[type="email"]:focus-visible {
  outline: 2px solid var(--amber-bright);
  outline-offset: 2px;
}

.status {
  min-height: 1.4em;
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.status.is-ok {
  color: #8fd4e8;
}

.status.is-error {
  color: #ffc14d;
}

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

@media (max-width: 600px) {
  main {
    padding: 28px 18px 40px;
  }

  .eyebrow {
    margin-bottom: 14px;
  }

  .subhead {
    margin-top: 14px;
  }

  #signup {
    margin-top: 32px;
  }

  .signup {
    flex-direction: column;
    padding: 10px;
    border-radius: 16px;
  }

  button[type="submit"] {
    width: 100%;
    padding: 14px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  button[type="submit"] {
    transition: none;
  }
}
