/* Dark + yellow — depth, glass, one screen (100vh) */

:root {
  --bg: #0a0a0a;
  --yellow: #ffd600;
  --yellow-mid: #ffea70;
  --yellow-soft: rgba(255, 214, 0, 0.45);
  --text: #fafafa;
  --text-muted: #e5e5e5;
  --border: rgba(255, 255, 255, 0.1);
  --glass: rgba(18, 18, 18, 0.55);
  --radius: 14px;
  --radius-sm: 10px;
  --max: min(34rem, 92vw);
  --pad-x: clamp(1rem, 4vw, 1.5rem);
}

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

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Background layers */
.page {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 100% 80% at 50% 0%, #141414 0%, var(--bg) 55%);
}

.page__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.page__glow--1 {
  width: min(90vw, 480px);
  height: min(90vw, 480px);
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 214, 0, 0.35) 0%, transparent 68%);
}

.page__glow--2 {
  width: min(70vw, 320px);
  height: min(70vw, 320px);
  bottom: 10%;
  right: -5%;
  background: radial-gradient(circle, rgba(255, 200, 0, 0.12) 0%, transparent 70%);
  filter: blur(70px);
  opacity: 0.7;
}

.page__noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Center shell */
.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vmin, 1.25rem) var(--pad-x);
}

/* Glass card */
.card {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vmin, 2.25rem) clamp(1.25rem, 4vw, 2rem);
  text-align: center;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(255, 214, 0, 0.08),
    0 24px 60px -12px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.headline {
  margin: 0 0 clamp(0.75rem, 2.5vmin, 1rem);
  font-size: clamp(1.5rem, 5vmin, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-wrap: balance;
}

.headline__hl {
  color: var(--yellow);
  text-shadow: 0 0 40px var(--yellow-soft);
}

.subhead {
  margin: 0 0 clamp(1.25rem, 4vmin, 1.75rem);
  max-width: 40ch;
  margin-inline: auto;
  font-size: clamp(0.8125rem, 2.4vmin, 0.9375rem);
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Signup */
.signup {
  width: 100%;
  max-width: 28rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(0.6rem, 2vmin, 0.85rem);
}

.signup__row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (min-width: 520px) {
  .signup__row {
    flex-direction: row;
    align-items: stretch;
    gap: 0.65rem;
  }

  .signup__input {
    flex: 1;
    min-width: 0;
  }

  .signup__btn {
    flex-shrink: 0;
  }
}

.signup__input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  font: inherit;
  font-size: clamp(0.875rem, 2.3vmin, 1rem);
  font-weight: 500;
  color: var(--text);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.signup__input::placeholder {
  color: #6b7280;
}

.signup__input:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.signup__input:focus {
  outline: none;
  border-color: rgba(255, 214, 0, 0.55);
  box-shadow:
    0 0 0 3px rgba(255, 214, 0, 0.18),
    inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.signup__btn {
  padding: 0.9rem 1.35rem;
  font: inherit;
  font-size: clamp(0.875rem, 2.3vmin, 1rem);
  font-weight: 700;
  color: #0a0a0a;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: linear-gradient(145deg, var(--yellow-mid) 0%, var(--yellow) 45%, #e6bc00 100%);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.signup__btn:hover {
  transform: scale(1.03);
  filter: brightness(1.06);
  box-shadow:
    0 4px 24px rgba(255, 214, 0, 0.45),
    0 0 40px -8px rgba(255, 214, 0, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.signup__btn:active {
  transform: scale(0.98);
}

.signup__trust {
  margin: 0;
  font-size: clamp(0.6875rem, 1.9vmin, 0.75rem);
  font-weight: 500;
  color: #6b7280;
  letter-spacing: 0.02em;
}

.signup__message {
  margin: 0;
  min-height: 1.2em;
  font-size: clamp(0.8125rem, 2.1vmin, 0.9rem);
  font-weight: 600;
}

.signup__message.is-success {
  color: var(--yellow);
  text-shadow: 0 0 24px var(--yellow-soft);
}

.signup__message.is-error {
  color: #fca5a5;
}

/* Unsubscribe headline variant */
.headline__unsub {
  color: var(--text-muted);
}

/* Unsubscribe button – muted/destructive style */
.signup__btn--unsub {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.signup__btn--unsub:hover {
  background: rgba(252, 165, 165, 0.15);
  border-color: rgba(252, 165, 165, 0.35);
  color: #fca5a5;
  filter: none;
  box-shadow:
    0 4px 20px rgba(252, 165, 165, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Back link */
.unsub__back {
  margin: clamp(1rem, 3vmin, 1.5rem) 0 0;
}

.unsub__back-link {
  font-size: clamp(0.75rem, 2vmin, 0.875rem);
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
}

.unsub__back-link:hover {
  color: var(--text-muted);
}

/* Load animation */
@keyframes load-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.load-in {
  animation: load-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .load-in {
    animation: none;
  }

  .signup__btn {
    transition: none;
  }

  .signup__btn:hover {
    transform: none;
  }

  .signup__btn:active {
    transform: none;
  }
}

@media (max-height: 520px) {
  .card {
    padding: 1rem 1.15rem;
  }

  .headline {
    font-size: clamp(1.5rem, 5vmin, 2rem);
    margin-bottom: 0.5rem;
  }

  .subhead {
    margin-bottom: 1rem;
    font-size: 0.78rem;
  }

  .signup__input,
  .signup__btn {
    padding: 0.75rem 1rem;
  }
}
