:root {
  --purple-deep: #1e0f45;
  --purple-mid: #4b2ba2;
  --purple-bright: #6b3ec9;
  --purple-input-bg: rgba(40, 22, 88, 0.65);
  --purple-input-border: rgba(255, 255, 255, 0.22);
  --placeholder: rgba(232, 224, 255, 0.45);
  --btn-text: #2d1a5c;
  --white: #ffffff;
  --radius: 10px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* Full-viewport violet gradient — lighter center, darker edges (no bitmap required) */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 85% 70% at 50% 42%,
      var(--purple-bright) 0%,
      var(--purple-mid) 42%,
      var(--purple-deep) 100%
    );
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Figma frame shadow on the main content block */
.waitlist {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 3rem;
}

.waitlist-inner {
  width: 100%;
  max-width: 720px;
  text-align: center;
  filter: drop-shadow(0 32px 64px rgba(0, 0, 0, 0.1));
}

.headline {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--white);
}

.subheadline {
  margin: 0 auto 2.25rem;
  max-width: 52ch;
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--white);
  opacity: 0.95;
}

.subheadline strong {
  font-weight: 600;
  color: var(--white);
  opacity: 1;
}

.signup {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 auto;
  max-width: 520px;
}

.signup input[type="email"] {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.875rem 1.125rem;
  font: inherit;
  font-size: 1rem;
  color: var(--white);
  background: var(--purple-input-bg);
  border: 1px solid var(--purple-input-border);
  border-radius: var(--radius);
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.signup input[type="email"]::placeholder {
  color: var(--placeholder);
}

.signup input[type="email"]:focus {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.signup button {
  align-self: center;
  width: 100%;
  max-width: 280px;
  padding: 0.875rem 1.75rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--btn-text);
  background: var(--white);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

.signup button:hover {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
}

.signup button:active {
  transform: scale(0.98);
}

.signup button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.signup button:disabled:hover {
  box-shadow: none;
}

.form-status {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
}

.form-status.is-error {
  color: #ffc9c9;
}

.site-footer {
  padding: 1.5rem 1rem 2.5rem;
  display: flex;
  justify-content: center;
  text-align: center;
}

.footer-copy {
  margin: 0;
  max-width: 40rem;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.65);
}

.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 (min-width: 480px) {
  .signup button {
    white-space: nowrap;
  }
}
