/* ---------- Reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

:root {
  --bg: #07070C;
  --bg-elev: #0E0E16;
  --surface: #14141F;
  --surface-2: #1B1B29;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);

  --text: #F4F4F8;
  --text-muted: #A6A6B5;
  --text-dim: #6F6F80;

  --accent: #8B7DFF;
  --accent-2: #5BC0FF;
  --accent-3: #FF7DB3;
  --accent-grad: linear-gradient(135deg, #8B7DFF 0%, #5BC0FF 100%);
  --accent-grad-soft: linear-gradient(135deg, rgba(139,125,255,0.18) 0%, rgba(91,192,255,0.10) 100%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 30px rgba(0,0,0,0.35);
  --shadow-glow: 0 30px 80px -20px rgba(139,125,255,0.45);
}

html { color-scheme: dark; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-feature-settings: "cv11", "ss01";
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Brand mark ---------- */
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-grad);
  box-shadow: 0 4px 18px -2px rgba(139,125,255,0.55);
  position: relative;
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 4px;
  background: rgba(7,7,12,0.85);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7,7,12,0.65);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--text-muted);
}
.nav__links a:hover { color: var(--text); }
.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent-grad);
  color: #0B0B14 !important;
  font-weight: 600;
  font-size: 13.5px;
  box-shadow: 0 4px 18px -4px rgba(139,125,255,0.55);
  transition: transform .15s ease, box-shadow .2s ease;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -6px rgba(139,125,255,0.75); }

@media (max-width: 640px) {
  .nav__links { gap: 14px; font-size: 13px; }
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-grad-soft);
  border: 1px solid rgba(139,125,255,0.25);
  color: #C7BFFF;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eyebrow--center { display: block; width: max-content; margin: 0 auto 18px; }

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  text-align: center;
  line-height: 1.12;
}

.lede {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
  max-width: 620px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 12vw, 140px) 0 clamp(64px, 10vw, 120px);
}
.hero__glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 70%;
  background:
    radial-gradient(60% 60% at 30% 30%, rgba(139,125,255,0.35), transparent 60%),
    radial-gradient(60% 60% at 75% 50%, rgba(91,192,255,0.22), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero h1 {
  font-size: clamp(36px, 6.2vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 22px 0 18px;
  max-width: 900px;
  background: linear-gradient(180deg, #FFFFFF 0%, #C9C9D4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lede { margin: 0 auto 32px; text-align: center; }

/* ---------- CTA form ---------- */
.cta {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 460px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}
.cta--center { margin: 0 auto; }
.cta__input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 15px;
  padding: 12px 18px;
}
.cta__input::placeholder { color: var(--text-dim); }
.cta__button {
  border: 0;
  border-radius: 999px;
  background: var(--accent-grad);
  color: #0B0B14;
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 22px;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.cta__button:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -6px rgba(139,125,255,0.7); }
.cta__button:disabled { filter: saturate(0.4); cursor: default; transform: none; box-shadow: none; }
.cta__note {
  margin: 14px 0 0;
  color: var(--text-dim);
  font-size: 13px;
}

@media (max-width: 520px) {
  .cta { flex-direction: column; border-radius: var(--radius); padding: 10px; }
  .cta__input { padding: 12px 14px; }
  .cta__button { width: 100%; padding: 14px 22px; }
}

/* ---------- Features ---------- */
.features { padding: clamp(64px, 10vw, 120px) 0; }
.grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.card h3 {
  margin: 16px 0 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #0B0B14;
}
.card__icon svg { width: 22px; height: 22px; }
.card__icon--practice { background: linear-gradient(135deg, #8B7DFF, #5BC0FF); }
.card__icon--analyze { background: linear-gradient(135deg, #5BC0FF, #66E6C5); }
.card__icon--challenge { background: linear-gradient(135deg, #FF7DB3, #FFB36B); }
.card__icon--insights { background: linear-gradient(135deg, #B07DFF, #FF7DB3); }

/* ---------- How it works ---------- */
.how { padding: clamp(48px, 8vw, 96px) 0; }
.steps {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.step {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.step__num {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-feature-settings: "tnum";
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: transparent;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
}
.step h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  font-weight: 700;
}
.step p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* ---------- Pillars ---------- */
.pillars { padding: clamp(48px, 8vw, 96px) 0; }
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.pillar {
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(139,125,255,0.06), transparent 70%);
  border: 1px solid var(--border);
}
.pillar h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.pillar p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* ---------- Waitlist section ---------- */
.waitlist {
  position: relative;
  padding: clamp(72px, 10vw, 120px) 0;
}
.waitlist__inner {
  position: relative;
  text-align: center;
  padding: clamp(40px, 6vw, 64px);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-glow), var(--shadow-card);
  overflow: hidden;
}
.waitlist__glow {
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 70%;
  background: radial-gradient(50% 60% at 50% 30%, rgba(139,125,255,0.35), transparent 60%);
  filter: blur(50px);
  pointer-events: none;
}
.waitlist .lede { margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 56px;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  color: var(--text-muted);
  font-size: 14px;
}
.footer__links a:hover { color: var(--text); }
.footer__copy { margin: 0; color: var(--text-dim); font-size: 13px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
