* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #a855f7;
  --pink: #ec4899;
  --orange: #fb923c;
  --emerald: #10b981;
  --blue: #3b82f6;
  --red: #ef4444;
  --text: #0f172a;
  --text-muted: #475569;
  --text-soft: #94a3b8;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-dark: #0b0f1a;
  --border: #e2e8f0;
  --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, 0.18);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a.link {
  font-weight: 500;
  font-size: 14px;
  color: var(--text-muted);
  transition: color .15s;
  white-space: nowrap;
}
.nav-links a.link:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.45);
}
.btn-large {
  padding: 16px 28px;
  font-size: 16px;
  border-radius: 14px;
}
.btn-ghost {
  background: white;
  color: var(--text);
  box-shadow: 0 1px 0 var(--border), 0 4px 12px rgba(15, 23, 42, 0.05);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
  background: var(--bg-soft);
}
.btn-on-dark {
  background: white;
  color: var(--primary-dark);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}
.btn-on-dark:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

/* ---------- Breadcrumbs ---------- */
.breadcrumb {
  padding: 18px 0 0;
  font-size: 13px;
  color: var(--text-soft);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 6px; color: var(--text-soft); }

/* ---------- Hero (page header) ---------- */
.hero {
  position: relative;
  padding: 72px 0 90px;
  overflow: hidden;
}
.hero-plain { padding: 56px 0 64px; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}
.blob-1 {
  top: -160px;
  right: -160px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.45), transparent 70%);
}
.blob-2 {
  bottom: -200px;
  left: -160px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent 70%);
}
.blob-3 {
  top: 30%;
  left: 40%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.18), transparent 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}
.hero h1 {
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.grad {
  background: linear-gradient(135deg, var(--primary), var(--secondary) 60%, var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 560px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--emerald);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Hero illustration ---------- */
.hero-art { position: relative; perspective: 1200px; }
.hero-art svg {
  width: 100%;
  height: auto;
  display: block;
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Stats strip ---------- */
.stats { padding: 40px 0 20px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 32px;
  background: var(--bg-soft);
  border-radius: 24px;
  border: 1px solid var(--border);
}
.stat { text-align: center; }
.stat-num {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.stat-label { color: var(--text-muted); font-size: 14px; font-weight: 500; }

/* ---------- Section base ---------- */
section { padding: 100px 0; }
.section-tight { padding: 64px 0; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section-head.left { text-align: left; margin: 0 0 40px; }
.section-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-head p { font-size: 18px; line-height: 1.6; color: var(--text-muted); }

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.features-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.feature {
  padding: 32px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: white;
}
.icon-indigo { background: linear-gradient(135deg, #6366f1, #818cf8); }
.icon-purple { background: linear-gradient(135deg, #a855f7, #c084fc); }
.icon-pink { background: linear-gradient(135deg, #ec4899, #f472b6); }
.icon-orange { background: linear-gradient(135deg, #fb923c, #fbbf24); }
.icon-emerald { background: linear-gradient(135deg, #10b981, #34d399); }
.icon-blue { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.feature h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 10px; }
.feature p { color: var(--text-muted); font-size: 16px; line-height: 1.6; }

/* ---------- Showcase (2-col image+copy) ---------- */
.showcase { background: var(--bg-soft); }
.showcase-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.showcase-grid.reverse { grid-template-columns: 1.1fr 1fr; }
.showcase-grid.reverse .showcase-art { order: 2; }
.showcase-art svg { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(15, 23, 42, 0.18)); }
.showcase h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 20px; }
.showcase p { font-size: 18px; line-height: 1.6; color: var(--text-muted); margin-bottom: 28px; }
.feature-list { list-style: none; display: grid; gap: 14px; }
.feature-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; color: var(--text); }
.feature-list li .check { margin-top: 3px; }

/* ---------- How it works / steps ---------- */
.how { background: white; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.step {
  padding: 36px 28px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.step-num {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}
.step h3 { font-size: 20px; font-weight: 600; line-height: 1.3; margin-bottom: 10px; letter-spacing: -0.01em; }
.step p { color: var(--text-muted); font-size: 16px; line-height: 1.6; }
.step-art { margin: 0 auto 24px; width: 120px; height: 120px; }
.step-art svg { width: 100%; height: 100%; }

/* ---------- Comparison table (alternatives pages) ---------- */
.compare-wrap { overflow-x: auto; border-radius: 20px; border: 1px solid var(--border); }
table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: white;
}
table.compare th, table.compare td {
  padding: 16px 20px;
  text-align: left;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}
table.compare thead th {
  background: var(--bg-soft);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
table.compare th:first-child, table.compare td:first-child { font-weight: 600; }
table.compare td.yes { color: var(--emerald); font-weight: 600; }
table.compare td.no { color: var(--text-soft); }
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare thead th.highlight, table.compare tbody td.highlight { background: rgba(99, 102, 241, 0.06); }

/* ---------- Use case / listicle cards ---------- */
.usecase-card {
  padding: 28px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
}
.usecase-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.usecase-card p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}

/* ---------- Blog list ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.blog-card {
  display: block;
  padding: 28px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: transform .2s, box-shadow .2s;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.blog-card h2, .blog-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; line-height: 1.35; }
.blog-card p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* ---------- Article prose ---------- */
.prose { max-width: 720px; margin: 0 auto; }
.prose h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 18px; }
.prose .lede-p { font-size: 18px; color: var(--text-muted); margin-bottom: 36px; }
.prose h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; margin: 40px 0 16px; }
.prose h3 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; }
.prose p { font-size: 16px; line-height: 1.75; color: var(--text-muted); margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; color: var(--text-muted); font-size: 16px; line-height: 1.75; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--primary); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(99,102,241,0.3); }
.prose strong { color: var(--text); }
.byline { display: flex; align-items: center; gap: 10px; color: var(--text-soft); font-size: 14px; margin-bottom: 32px; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-soft); }
.faq-grid { max-width: 800px; margin: 0 auto; display: grid; gap: 16px; }
details.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  transition: box-shadow .2s, border-color .2s;
}
details.faq-item[open] { border-color: var(--primary); box-shadow: var(--shadow-md); }
details.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--primary);
  transition: transform .2s;
}
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item p { color: var(--text-muted); margin-top: 12px; font-size: 16px; line-height: 1.6; }

/* ---------- Final CTA ---------- */
.cta { position: relative; padding: 100px 24px; overflow: hidden; }
.cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 60px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
  border-radius: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(99, 102, 241, 0.5);
}
.cta-inner::before, .cta-inner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}
.cta-inner::before { top: -80px; left: -80px; width: 300px; height: 300px; background: #fbbf24; }
.cta-inner::after { bottom: -80px; right: -80px; width: 300px; height: 300px; background: #06b6d4; }
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner h2 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: white; margin-bottom: 20px; }
.cta-inner p { font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, 0.85); margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
footer { padding: 48px 0; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 32px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 14px; padding: 5px 0; }
.footer-col a:hover { color: var(--primary); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .stats-grid { grid-template-columns: 1fr; }
  .features-grid, .features-grid.cols-2 { grid-template-columns: 1fr; }
  .showcase-grid, .showcase-grid.reverse { grid-template-columns: 1fr; gap: 48px; }
  .showcase-grid.reverse .showcase-art { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  section { padding: 64px 0; }
  .cta-inner { padding: 56px 28px; }
  .nav-links a.link { display: none; }
}
