* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --purple: #6D4AC8;
  --purple-dark: #4C2FA0;
  --purple-soft: #8A6BE0;
  --accent: #F08A5D;
  --ink: #1E1B2E;
  --muted: #6B6680;
  --card: rgba(255, 255, 255, 0.72);
  --line: rgba(109, 74, 200, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 12% -8%, #E7EDFF 0%, transparent 55%),
    radial-gradient(900px 600px at 112% 4%, #F4E8FF 0%, transparent 52%),
    radial-gradient(700px 700px at 50% 120%, #FDEEE6 0%, transparent 55%),
    linear-gradient(165deg, #FBFAFF 0%, #F3F0FB 100%);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 22px 40px;
  overflow-x: hidden;
}

.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-weight: 800; font-size: 19px; letter-spacing: -0.02em;
  align-self: center;
}
.brand .mark {
  width: 40px; height: 40px; border-radius: 13px;
  background: linear-gradient(145deg, var(--purple-soft), var(--purple-dark));
  display: grid; place-items: center; font-size: 21px;
  box-shadow: 0 10px 24px rgba(109, 74, 200, 0.4);
}

.hero { width: 100%; max-width: 600px; text-align: center; margin-top: 18px; }

.planet { width: min(300px, 78vw); height: auto; display: block; margin: 0 auto 6px; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.planet .stars circle { animation: twinkle 3s ease-in-out infinite; }
.planet .stars circle:nth-child(2n) { animation-delay: 1s; }
.planet .stars circle:nth-child(3n) { animation-delay: 1.8s; }
@keyframes twinkle { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
.planet .ring { animation: spin 26s linear infinite; transform-origin: 130px 112px; }
@keyframes spin { to { transform: rotate(360deg); } }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 8px 0 16px; padding: 8px 16px;
  background: rgba(109, 74, 200, 0.10); color: var(--purple-dark);
  border-radius: 999px; font-weight: 700; font-size: 13px; letter-spacing: 0.01em;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(34,197,94,0.18); } 50% { box-shadow: 0 0 0 7px rgba(34,197,94,0.05); } }

h1 { font-size: clamp(31px, 7.2vw, 50px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
h1 .grad { background: linear-gradient(115deg, var(--purple) 10%, var(--accent) 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { margin: 16px auto 0; max-width: 450px; font-size: 16.5px; line-height: 1.6; color: var(--muted); }

.features { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 32px 0; }
.feat {
  flex: 1 1 158px; max-width: 184px;
  background: var(--card); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.7); border-radius: 18px;
  padding: 18px 14px; text-align: center;
  box-shadow: 0 8px 24px rgba(30, 27, 46, 0.05);
  transition: transform .18s ease, box-shadow .18s ease;
}
.feat:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(109, 74, 200, 0.14); }
.feat .ic { width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: rgba(109, 74, 200, 0.10); }
.feat b { display: block; font-size: 14.5px; font-weight: 800; }
.feat span { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }

.signup { max-width: 440px; margin: 0 auto; padding: 20px; border-radius: 22px; background: var(--card); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.7); box-shadow: 0 12px 34px rgba(30, 27, 46, 0.07); }
.signup h2 { font-size: 17px; font-weight: 800; }
.signup p.hint { margin-top: 4px; font-size: 13px; color: var(--muted); }
form { display: flex; gap: 8px; margin-top: 14px; }
input[type=email] {
  flex: 1; height: 50px; padding: 0 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff; font-size: 15px; font-family: inherit; color: var(--ink);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
input[type=email]:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(109, 74, 200, 0.12); }
button {
  height: 50px; padding: 0 22px; border: 0; border-radius: 14px; cursor: pointer;
  background: linear-gradient(145deg, var(--purple-soft), var(--purple-dark)); color: #fff;
  font-family: inherit; font-weight: 700; font-size: 15px;
  box-shadow: 0 10px 24px rgba(109, 74, 200, 0.32); transition: transform .12s, box-shadow .12s;
}
button:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(109, 74, 200, 0.42); }
button:active { transform: translateY(0); }
.ok { margin-top: 12px; font-size: 14px; font-weight: 700; color: #16A34A; min-height: 20px; }
.ok.err { color: #DC2626; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

footer { margin-top: 40px; font-size: 12.5px; color: #9D98AE; text-align: center; }

@media (max-width: 430px) { form { flex-direction: column; } button { width: 100%; } .feat { max-width: none; } }
@media (prefers-reduced-motion: reduce) { .planet, .planet *, .dot { animation: none !important; } }
