:root {
  --text: #f5f7fb;
  --muted: #d2d9e6;
  --panel: rgba(7, 17, 32, 0.62);
  --panel-border: rgba(255, 255, 255, 0.18);
  --accent: #f3b24f;
  --accent-hover: #ffcb78;
  --ok: #9ef3b3;
  --error: #ff9f9f;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Poppins", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2.4vw, 24px);
  overflow-x: hidden;
  position: relative;
}

.background {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(135deg, rgba(3, 14, 29, 0.85), rgba(12, 30, 58, 0.55)),
    radial-gradient(circle at 70% 20%, rgba(243, 178, 79, 0.28), transparent 45%),
    url("../img/background.jpg") center / cover no-repeat;
  transform: scale(1.04);
}

.page {
  width: min(100%, 980px);
  min-height: calc(100dvh - (2 * clamp(12px, 2.4vw, 24px)));
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  backdrop-filter: blur(8px);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  width: min(100%, 640px);
  padding: clamp(24px, 4vw, 44px);
  animation: reveal 700ms ease-out both;
  text-align: center;
}

.logo {
  width: min(280px, 70%);
  height: auto;
  display: block;
  margin: 0 auto 14px;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.74rem;
}

h1 {
  margin: 14px 0 10px;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.14;
}

.subtitle {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 1rem;
}

.thank-you-card .subtitle {
  margin-bottom: 22px;
}

.cta-link {
  display: inline-block;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.cta-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.28);
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;
  align-items: stretch;
  width: min(100%, 560px);
  margin: 0 auto;
}

.signup-form input[type="email"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  padding: 0 14px;
  font-size: 1rem;
  outline: none;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.signup-form input[type="email"]::placeholder {
  color: #d9dfec;
}

.signup-form input[type="email"]:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.16);
}

.checkbox-row {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
  cursor: pointer;
  text-align: left;
}

.checkbox-row input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--accent);
  margin-top: 3px;
}

.checkbox-row span {
  flex: 1;
  min-width: 0;
}

.signup-form button {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #11203a;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0 20px;
  cursor: pointer;
  transition: transform 140ms ease, background-color 140ms ease;
  align-self: center;
  width: min(100%, 220px);
}

.signup-form button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.signup-form button:active {
  transform: translateY(0);
}

.form-message {
  min-height: 1.4em;
  margin: 14px 0 0;
  font-size: 0.92rem;
  text-align: center;
}

.form-message.success {
  color: var(--ok);
}

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

.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.honey-field {
  display: none;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .card {
    border-radius: 18px;
    padding: 20px 16px;
  }

  .signup-form input[type="email"],
  .signup-form button {
    width: 100%;
    flex-basis: 100%;
  }

  .checkbox-row {
    justify-content: flex-start;
    align-items: flex-start;
    gap: 9px;
  }

  .checkbox-row span {
    font-size: 0.92rem;
  }

  .signup-form button {
    width: 100%;
    max-width: none;
  }

  h1 {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .subtitle {
    font-size: 0.96rem;
  }
}
