:root {
  --bg: #0b0d12;
  --bg-elev: #11141b;
  --bg-card: #161a23;
  --border: #232836;
  --text: #f3f4f6;
  --text-dim: #a1a7b3;
  --text-mute: #6b7280;
  --accent: #c4b5fd;
  --accent-strong: #8b5cf6;
  --accent-ink: #0b0d12;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 14px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(800px 500px at -10% 20%, rgba(196, 181, 253, 0.10), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 13, 18, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 8px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}
.brand-name { font-size: 17px; }
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  color: var(--text-dim);
}
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: #d8caff; transform: translateY(-1px); }
.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 14px 22px; font-size: 16px; }

/* Hero */
.hero {
  padding: 96px 0 72px;
  text-align: left;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 18ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.lede {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 58ch;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-meta {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-dim);
}
.hero-meta span {
  color: var(--accent);
  margin-right: 6px;
}

/* Sections */
section { padding: 80px 0; }

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  max-width: 22ch;
}
h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.section-lede {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 56ch;
  margin-bottom: 48px;
}

/* Features */
.feature-grid {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-grid li {
  background: var(--bg-card);
  padding: 28px;
}
.feature-grid p {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0;
}

/* How */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0; margin: 0;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.steps li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.step-num {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
  line-height: 1;
}
.steps p { color: var(--text-dim); margin: 0; font-size: 15px; }

/* Use cases */
.case-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.case-grid article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.case-grid p { color: var(--text-dim); margin: 0; font-size: 15px; }

/* Pricing */
.plan-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.plan {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.plan-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 24px 60px -30px rgba(139, 92, 246, 0.5);
}
.plan h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.plan-price { margin: 0 0 20px; }
.plan-price strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 44px;
  letter-spacing: -0.02em;
}
.plan-price span {
  color: var(--text-dim);
  font-size: 14px;
  margin-left: 4px;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  color: var(--text-dim);
}
.plan ul li {
  padding-left: 22px;
  position: relative;
}
.plan ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.plan .btn { width: 100%; }

/* CTA */
.cta { padding: 40px 0 96px; }
.cta-card {
  text-align: center;
  background:
    radial-gradient(600px 240px at 50% -20%, rgba(139, 92, 246, 0.35), transparent 60%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 64px 32px;
}
.cta-card h2 {
  margin: 0 auto 12px;
  text-align: center;
}
.cta-card p {
  color: var(--text-dim);
  margin: 0 auto 28px;
  max-width: 50ch;
}
.cta-form {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.cta-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 181, 253, 0.2);
}
.fineprint {
  font-size: 13px;
  color: var(--text-mute);
  margin: 0;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lead-status {
  font-size: 14px;
  margin: 0 auto 8px;
  min-height: 1.4em;
  color: var(--text-dim);
}
.lead-status[data-state="success"] { color: #86efac; }
.lead-status[data-state="error"]   { color: #fca5a5; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  background: var(--bg-elev);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-tagline {
  color: var(--text-dim);
  margin: 16px 0 0;
  font-size: 14px;
  max-width: 30ch;
}
.site-footer h4 {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 16px;
  font-weight: 600;
}
.site-footer ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  color: var(--text-dim);
}
.site-footer a:hover { color: var(--text); }
.footer-bottom {
  color: var(--text-mute);
  font-size: 13px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

/* Responsive */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .hero { padding: 64px 0 48px; }
  section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
