:root {
  --bg: #0b1220;
  --bg-2: #0f172a;
  --ink: #e2e8f0;
  --muted: #94a3b8;
  --brand: #3b82f6;
  --brand-2: #8b5cf6;
  --line: rgba(148, 163, 184, 0.18);
  --card: rgba(148, 163, 184, 0.06);
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(59, 130, 246, 0.18), transparent 60%),
    radial-gradient(900px 500px at 10% 0%, rgba(139, 92, 246, 0.12), transparent 55%), var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p { color: var(--muted); margin: 0 0 16px; }

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

/* Nav ---------------------------------------------------------------------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 0 auto; padding: 20px 24px;
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, 0.72); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.logo span { color: var(--brand); }
.nav-links { display: flex; gap: 26px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 14px;
  border: 1px solid var(--line); cursor: pointer; transition: transform .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border: 0; color: #fff; }
.btn.ghost { background: rgba(148, 163, 184, 0.08); }
.btn.lg { padding: 14px 24px; font-size: 15px; }

/* Hero --------------------------------------------------------------------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px;
  max-width: 1120px; margin: 0 auto; padding: 72px 24px 56px; align-items: center;
}
.pill {
  display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: #c7d2fe; background: rgba(99, 102, 241, 0.16); border: 1px solid rgba(99, 102, 241, 0.3);
  margin-bottom: 18px;
}
.lead { font-size: 18px; max-width: 540px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 26px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.ticks li::before { content: "✓"; color: #34d399; margin-right: 9px; font-weight: 700; }

.hero-demo { position: relative; }
.chat-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); overflow: hidden; transform: rotate(-1.5deg);
}
.chat-head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; font-weight: 600; border-bottom: 1px solid var(--line); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 12px #34d399; }
.chat-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 86%; padding: 10px 13px; border-radius: 12px; font-size: 14px; color: var(--ink); }
.bubble.user { align-self: flex-end; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.bubble.bot { align-self: flex-start; background: rgba(148, 163, 184, 0.1); border: 1px solid var(--line); }
.cites { margin-top: 7px; font-size: 12px; color: #93c5fd; }
.chat-input { margin: 0 18px 18px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* Logos -------------------------------------------------------------------- */
.logos {
  max-width: 1120px; margin: 0 auto; padding: 8px 24px 48px;
  display: flex; gap: 34px; flex-wrap: wrap; justify-content: center;
  color: #64748b; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}

/* Sections ----------------------------------------------------------------- */
.section { max-width: 1120px; margin: 0 auto; padding: 72px 24px; }
.section.alt { background: linear-gradient(180deg, transparent, rgba(148, 163, 184, 0.04), transparent); max-width: none; }
.section.alt > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.section-sub { font-size: 17px; max-width: 620px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 30px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; font-size: 14.5px; }
.icon { font-size: 24px; margin-bottom: 10px; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 14px; max-width: 760px; }
.steps li {
  counter-increment: step; position: relative; padding: 18px 20px 18px 62px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--muted);
}
.steps li strong { color: var(--ink); }
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 18px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 800; font-size: 14px;
}

/* Pricing ------------------------------------------------------------------ */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 30px; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.plan.featured { border-color: rgba(99, 102, 241, 0.55); box-shadow: 0 20px 60px rgba(59, 130, 246, 0.18); }
.tag { position: absolute; top: -12px; right: 18px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.price { font-size: 38px; font-weight: 800; color: var(--ink); margin: 6px 0 14px; }
.price span { font-size: 14px; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.plan ul li::before { content: "✓"; color: #34d399; margin-right: 8px; }

/* FAQ ---------------------------------------------------------------------- */
.faq { display: grid; gap: 10px; margin-top: 26px; max-width: 820px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; }

/* CTA ---------------------------------------------------------------------- */
.cta-band {
  text-align: center; padding: 80px 24px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(139, 92, 246, 0.12));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.cta-band h2 { max-width: 720px; margin: 0 auto 22px; }

/* Footer ------------------------------------------------------------------- */
.footer { max-width: 1120px; margin: 0 auto; padding: 40px 24px; display: grid; gap: 8px; }
.foot-links { display: flex; gap: 18px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.muted { color: var(--muted); font-size: 13px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .nav-links { display: none; }
  .hero-demo { transform: none; }
}

/* Docs / legal pages ------------------------------------------------------- */
.doc { max-width: 820px; margin: 0 auto; padding: 56px 24px 96px; }
.doc h1 { font-size: 40px; }
.doc h2 { font-size: 24px; margin-top: 36px; }
.doc h3 { margin-top: 24px; color: var(--ink); }
.doc p, .doc li { color: #cbd5e1; font-size: 15.5px; }
.doc ul { padding-left: 22px; }
.doc code { background: rgba(148, 163, 184, 0.14); padding: 2px 6px; border-radius: 6px; font-size: 13.5px; }
.doc pre { background: #050b16; border: 1px solid var(--line); border-radius: 12px; padding: 16px; overflow: auto; font-size: 13px; }
