:root {
  --ink: #15152b;
  --muted: #5b5b78;
  --accent: #6c4cf1;
  --accent-2: #b14cf1;
  --bg: #f7f6fd;
  --card: #ffffff;
  --line: #ece8fb;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(circle, rgba(108,76,241,.20), rgba(177,76,241,.06) 50%, transparent 70%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}

main, .nav, footer { position: relative; z-index: 1; }

.grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 980px; margin: 0 auto; padding: 22px 24px;
}
.brand { font-family: "Sora", sans-serif; font-weight: 800; font-size: 19px; }
.nav-cta {
  text-decoration: none; color: var(--accent); font-weight: 600; font-size: 15px;
  border: 1.5px solid var(--accent); padding: 8px 16px; border-radius: 999px;
  transition: all .2s;
}
.nav-cta:hover { background: var(--accent); color: #fff; }

/* hero */
.hero {
  max-width: 760px; margin: 0 auto; padding: 56px 24px 32px; text-align: center;
}
.pill {
  display: inline-block; background: #efeaff; color: var(--accent);
  font-weight: 600; font-size: 14px; padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 {
  font-family: "Sora", sans-serif; font-weight: 800; font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08; margin: 0 0 18px;
}
.lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); max-width: 600px; margin: 0 auto 30px; }

/* signup form */
.signup {
  display: flex; gap: 10px; max-width: 480px; margin: 0 auto; flex-wrap: wrap;
}
.signup input {
  flex: 1 1 220px; min-width: 0; padding: 15px 18px; font-size: 16px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.signup input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(108,76,241,.12); }
.signup button {
  flex: 0 0 auto; padding: 15px 24px; font-size: 16px; font-weight: 700;
  color: #fff; background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border: none; border-radius: 12px; cursor: pointer; transition: transform .12s, opacity .2s;
  font-family: "Sora", sans-serif;
}
.signup button:hover { transform: translateY(-1px); }
.signup button:disabled { opacity: .6; cursor: progress; transform: none; }

.microcopy { font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.microcopy.ok { color: #1f9d55; font-weight: 600; }
.microcopy.err { color: #d6336c; font-weight: 600; }

/* features */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  max-width: 920px; margin: 40px auto; padding: 0 24px;
}
.feat {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 22px; text-align: left; box-shadow: 0 8px 30px rgba(80,60,160,.05);
}
.feat .ico { font-size: 30px; margin-bottom: 10px; }
.feat h3 { font-family: "Sora", sans-serif; font-size: 18px; margin: 0 0 8px; }
.feat p { font-size: 15px; color: var(--muted); margin: 0; }

/* cta strip */
.cta-strip {
  max-width: 760px; margin: 56px auto; padding: 48px 24px; text-align: center;
  background: linear-gradient(135deg, #f0ebff, #faf3ff);
  border: 1px solid var(--line); border-radius: 24px;
}
.cta-strip h2 { font-family: "Sora", sans-serif; font-size: clamp(24px, 4vw, 34px); margin: 0 0 8px; }
.cta-strip p { color: var(--muted); margin: 0 0 26px; }

footer { text-align: center; padding: 32px 24px 48px; color: var(--muted); font-size: 13.5px; }

/* simple pages (unsubscribe / confirmation) */
body.simple { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 40px 36px; max-width: 480px; text-align: center; box-shadow: 0 14px 50px rgba(80,60,160,.10);
}
.card h1 { font-family: "Sora", sans-serif; font-size: 26px; margin: 0 0 12px; }
.card p { color: var(--muted); }
.card a { color: var(--accent); font-weight: 600; }

@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; }
}
