:root {
  --indigo: #4338ca;
  --indigo-light: #6366f1;
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-dark: #0f1120;
  --a-crit: #dc2626;
  --a-high: #ea580c;
  --a-med: #ca8a04;
  --a-low: #94a3b8;
  --radius: 14px;
  --wrap: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--indigo); margin-bottom: .8rem; }
.lead { font-size: 1.2rem; color: var(--body); max-width: 620px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 800; font-size: 1.35rem; color: var(--ink); letter-spacing: -.02em; }
.brand span { color: var(--indigo); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--body); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--indigo); text-decoration: none; }

/* buttons */
.btn { display: inline-block; font-weight: 600; font-size: .98rem; padding: 12px 22px; border-radius: 999px; cursor: pointer; border: 1px solid transparent; transition: transform .05s ease, background .15s ease; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: #3730a3; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--indigo); color: var(--indigo); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.center .btn-row { justify-content: center; }

/* hero */
.hero { padding: 84px 0 64px; background: radial-gradient(1200px 500px at 50% -10%, #eef2ff 0%, #ffffff 60%); }

/* cards + grids */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-bottom: .4rem; }
.card .num { width: 34px; height: 34px; border-radius: 9px; background: #eef2ff; color: var(--indigo); font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }

/* pricing */
.price-card { text-align: center; border: 2px solid var(--indigo); border-radius: var(--radius); padding: 34px; max-width: 380px; margin: 0 auto; background: #fff; }
.price { font-size: 3rem; font-weight: 800; color: var(--ink); }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.check { list-style: none; padding: 0; margin: 20px 0; text-align: left; }
.check li { padding: 7px 0 7px 28px; position: relative; }
.check li:before { content: "✓"; color: var(--indigo); font-weight: 800; position: absolute; left: 0; }

/* footer */
.footer { background: var(--bg-dark); color: #cbd5e1; padding: 46px 0; }
.footer a { color: #cbd5e1; }
.footer .brand { color: #fff; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }

/* demo dashboard */
.demo-shell { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px -30px rgba(15,17,32,.4); background: #fff; }
.demo-top { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 14px 18px; display: flex; align-items: center; gap: 10px; }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.demo-body { padding: 22px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.pill { border: 1px solid var(--line); background: #fff; color: var(--body); border-radius: 999px; padding: 7px 14px; font-size: .85rem; font-weight: 600; cursor: pointer; }
.pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.conv { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.conv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.conv-title { font-weight: 600; color: var(--ink); flex: 1; min-width: 200px; }
.tag { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tag-crit { background: var(--a-crit); color: #fff; }
.tag-high { background: var(--a-high); color: #fff; }
.tag-med { background: var(--a-med); color: #fff; }
.tag-low { background: var(--a-low); color: #fff; }
.tag-sub { background: #ffedd5; color: #9a3412; }
.conv-meta { font-size: .82rem; color: var(--muted); }
.conv-toggle { background: var(--indigo); color: #fff; border: none; border-radius: 999px; padding: 7px 14px; font-size: .82rem; font-weight: 600; cursor: pointer; }
.conv-detail { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: none; }
.conv-detail.open { display: block; }
.conv-detail p { font-size: .92rem; }
.asset { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-top: 10px; }
.asset h4 { margin: 0 0 6px; font-size: .95rem; }
.asset .kind { font-size: .72rem; font-weight: 700; color: var(--indigo); text-transform: uppercase; letter-spacing: .06em; }

/* forms */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
.field .hint { font-size: .82rem; color: var(--muted); margin: -2px 0 6px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--indigo); }

/* prose (blog/faq) */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 22px; }
.prose li { margin: .4em 0; }
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item h3 { margin-bottom: .4rem; }
.post-list { display: grid; gap: 18px; }
.post-list a { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: inherit; }
.post-list a:hover { border-color: var(--indigo); text-decoration: none; }
.post-list h3 { color: var(--ink); }
.tagline { display: inline-block; background: #eef2ff; color: var(--indigo); font-weight: 600; font-size: .82rem; padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }

@media (max-width: 820px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .section { padding: 52px 0; }
}
