:root {
  --purple-900: #21085e;
  --purple-800: #3d1492;
  --purple-700: #5d22d9;
  --purple-500: #8c52ff;
  --gold-600: #f5a900;
  --gold-500: #ffc830;
  --gold-200: #fff1aa;
  --pink-500: #ff4fd8;
  --white: #ffffff;
  --ink: #1f1240;
  --muted: #6d5d88;
  --shadow: 0 28px 80px rgba(45, 10, 112, .25);
  --radius-xl: 30px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 200, 48, .25), transparent 32rem),
    radial-gradient(circle at 80% 10%, rgba(140, 82, 255, .22), transparent 30rem),
    linear-gradient(135deg, #fff7d6 0%, #ffffff 43%, #f5eeff 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(93, 34, 217, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 34, 217, .04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 75%);
}

.site-header,
.site-footer,
.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(320px, 62vw);
  text-decoration: none;
}
.brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 18px rgba(61, 20, 146, .22));
  mix-blend-mode: multiply;
}

.age-badge {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(145deg, var(--purple-700), var(--purple-900));
  border: 4px solid #fff;
  box-shadow: 0 14px 28px rgba(33, 8, 94, .25);
  font-weight: 900;
}

.page-shell { padding-bottom: 40px; }

.hero {
  min-height: calc(100vh - 140px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .8fr);
  gap: 32px;
  align-items: center;
  padding: 42px 0 30px;
}

.hero-copy,
.signup-card,
.feature-card,
.mini-note {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  border: 1px solid rgba(93, 34, 217, .12);
  box-shadow: 0 12px 30px rgba(93, 34, 217, .09);
  color: var(--purple-800);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
}

h1,
h2,
h3 {
  font-family: 'Baloo 2', 'Inter', sans-serif;
  line-height: .96;
  margin: 0;
}

h1 {
  margin-top: 22px;
  max-width: 780px;
  font-size: clamp(3rem, 7vw, 6.6rem);
  letter-spacing: -.06em;
  color: var(--purple-900);
  text-shadow: 0 6px 0 rgba(255, 200, 48, .55);
}

.lead {
  max-width: 690px;
  margin: 24px 0 0;
  font-size: clamp(1.04rem, 1.6vw, 1.25rem);
  line-height: 1.75;
  color: #493368;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.01); }
.btn:active { transform: translateY(1px) scale(.99); }
.primary,
.submit {
  color: #321000;
  background: linear-gradient(180deg, #ffe97a 0%, var(--gold-500) 48%, var(--gold-600) 100%);
  box-shadow: 0 16px 28px rgba(245, 169, 0, .32), inset 0 2px 0 rgba(255,255,255,.7);
}
.secondary {
  color: #fff;
  background: linear-gradient(145deg, var(--purple-500), var(--purple-900));
  box-shadow: 0 16px 28px rgba(61, 20, 146, .28), inset 0 2px 0 rgba(255,255,255,.18);
}

.signup-card {
  overflow: hidden;
  padding: clamp(24px, 4vw, 34px);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255,255,255,.93), rgba(255,255,255,.78)),
    radial-gradient(circle at top right, rgba(255, 200, 48, .5), transparent 16rem);
  border: 2px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.signup-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px dashed rgba(140, 82, 255, .24);
  border-radius: 24px;
  pointer-events: none;
}
.card-spark {
  position: absolute;
  top: 18px;
  right: 26px;
  color: var(--gold-600);
  font-size: 2rem;
  animation: sparkle 1.8s ease-in-out infinite;
}
.signup-card h2 {
  color: var(--purple-900);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: -.04em;
}
.signup-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 8px 0 22px;
}

form {
  display: grid;
  gap: 14px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
label {
  display: grid;
  gap: 7px;
  color: var(--purple-900);
  font-weight: 800;
  font-size: .92rem;
}
input {
  width: 100%;
  height: 52px;
  border: 2px solid rgba(93, 34, 217, .14);
  outline: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  padding: 0 15px;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
input:focus {
  border-color: rgba(140, 82, 255, .72);
  box-shadow: 0 0 0 5px rgba(140, 82, 255, .14);
}
.checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 10px;
  color: #5b4b76;
  font-weight: 600;
  font-size: .82rem;
  line-height: 1.42;
}
.checkbox-row input {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: var(--purple-700);
}
.submit {
  width: 100%;
  margin-top: 2px;
}
.form-message {
  min-height: 22px;
  margin: 0;
  font-weight: 800;
  color: var(--purple-800);
}
.form-message.error { color: #b42318; }
.form-message.success { color: #147a3d; }
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 28px 0 18px;
}
.feature-card {
  padding: 26px;
  border-radius: 26px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .88);
  box-shadow: 0 18px 48px rgba(61, 20, 146, .13);
}
.icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff6b8, #ffc830);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.8), 0 12px 24px rgba(245, 169, 0, .22);
  font-size: 1.7rem;
}
.feature-card h3 {
  margin-top: 18px;
  font-size: 1.8rem;
  color: var(--purple-900);
}
.feature-card p {
  margin: 10px 0 0;
  line-height: 1.65;
  color: var(--muted);
}

.mini-note {
  margin-top: 12px;
  padding: 18px 22px;
  border-radius: 22px;
  color: #4f3b6d;
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(93, 34, 217, .12);
}
.mini-note p { margin: 0; line-height: 1.6; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 0 30px;
  color: #654b86;
  font-size: .92rem;
}

.confetti span {
  position: fixed;
  z-index: 0;
  width: 14px;
  height: 22px;
  border-radius: 4px;
  background: var(--gold-500);
  opacity: .65;
  animation: float 9s ease-in-out infinite;
}
.confetti span:nth-child(1) { left: 8%; top: 20%; background: var(--gold-500); transform: rotate(16deg); }
.confetti span:nth-child(2) { left: 21%; top: 73%; background: var(--purple-500); animation-delay: -2s; }
.confetti span:nth-child(3) { left: 54%; top: 9%; background: var(--pink-500); animation-delay: -5s; }
.confetti span:nth-child(4) { right: 11%; top: 24%; background: var(--gold-600); animation-delay: -3s; }
.confetti span:nth-child(5) { right: 18%; bottom: 14%; background: var(--purple-700); animation-delay: -6s; }
.confetti span:nth-child(6) { left: 73%; bottom: 20%; background: var(--gold-500); animation-delay: -1s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-24px) rotate(18deg); }
}
@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: .86; }
  50% { transform: scale(1.22) rotate(10deg); opacity: 1; }
}

@media (max-width: 940px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 20px;
  }
  .signup-card { max-width: 620px; }
  .features { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .site-header,
  .site-footer,
  .page-shell { width: min(100% - 22px, 1180px); }
  .site-header { padding-top: 18px; }
  .brand { width: min(260px, 70vw); }
  .age-badge { width: 48px; height: 48px; font-size: .92rem; }
  .hero { gap: 22px; }
  h1 { font-size: clamp(2.55rem, 15vw, 4rem); }
  .hero-actions { width: 100%; }
  .btn { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .signup-card { border-radius: 24px; padding: 22px; }
  .site-footer { flex-direction: column; }
}
