:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f4f6fa;
  --card: #ffffff;
  --indigo: #4f46e5;
  --indigo-ink: #4338ca;
  --lime: #bef264;
  --lime-2: #d9f970;
  --lime-ink: #1a2e05;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  letter-spacing: -0.012em;
  line-height: 1.6;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(216, 224, 255, 0.55) 0%, transparent 55%),
    radial-gradient(100% 50% at 100% 30%, rgba(245, 230, 255, 0.5) 0%, transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--lime-2); color: var(--ink); }
a { color: var(--indigo-ink); }
img { display: block; }
em { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; color: var(--indigo-ink); letter-spacing: -0.01em; }
.mono { font-family: 'JetBrains Mono', monospace; font-size: 0.88em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

.pact-card {
  background: var(--card);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02), 0 10px 24px -8px rgba(15, 23, 42, 0.06);
}
.lime-badge {
  background: linear-gradient(135deg, var(--lime-2) 0%, var(--lime) 100%);
  color: var(--lime-ink);
  box-shadow: 0 2px 8px -2px rgba(163, 230, 53, 0.45);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s cubic-bezier(.16,1,.3,1), box-shadow .15s, background .15s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 8px 20px -8px rgba(15,23,42,.45); }
.btn-dark:hover { background: #1e293b; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #cbd5e1; }
.btn-lime { background: linear-gradient(135deg, var(--lime-2), var(--lime)); color: var(--lime-ink); box-shadow: 0 6px 16px -6px rgba(132, 204, 22, .6); }
.full { width: 100%; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); background: rgba(244, 246, 250, .78); border-bottom: 1px solid rgba(226,232,240,.7); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; }
.brand.small { font-size: 15px; gap: 8px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px; }
.nav-links a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.85); border: 1px solid #fff; font-size: 13px; font-weight: 600; color: var(--ink-2); box-shadow: 0 1px 3px rgba(15,23,42,.05); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #84cc16; box-shadow: 0 0 0 3px rgba(132,204,22,.2); }
h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; margin: 20px 0 18px; }
h1 em { font-size: 1.08em; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 540px; margin: 0 0 28px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* Demo */
.demo { overflow: hidden; }
.demo-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px;
  background:
    radial-gradient(85% 120% at 15% 10%, rgba(129,140,248,.30) 0%, transparent 60%),
    radial-gradient(75% 110% at 88% 20%, rgba(192,132,252,.28) 0%, transparent 65%),
    linear-gradient(135deg, #eef2ff 0%, #f5f3ff 52%, #fce7f3 100%);
  border-bottom: 1px solid var(--line);
}
.demo-tabs { display: flex; gap: 4px; background: rgba(255,255,255,.6); padding: 3px; border-radius: 10px; }
.demo-tabs button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font: 600 12.5px 'Plus Jakarta Sans', sans-serif; color: var(--ink-2); cursor: pointer; }
.demo-tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15,23,42,.08); }
.demo-count { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.demo-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 520px; }
.demo-table th { text-align: left; font-weight: 700; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #f8fafc; white-space: nowrap; }
.demo-table td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; white-space: nowrap; }
.demo-table tr { animation: rowIn .35s cubic-bezier(.16,1,.3,1) both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.thumb { width: 38px; height: 28px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: #fff; }
.chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #f1f5f9; color: var(--ink-2); }
.chip.hot { background: #ecfccb; color: #3f6212; }
.csv-cell { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--ink-2); }
.demo-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #fbfcfe; }
.demo-foot .mono { color: var(--muted); font-size: 11.5px; }

/* Strip */
.strip { padding: 8px 0 24px; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.strip-grid div { padding: 18px 20px; border-left: 2px solid var(--lime); }
.strip-grid b { display: block; font-size: 26px; letter-spacing: -0.03em; }
.strip-grid span { color: var(--muted); font-size: 14px; }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: rgba(255,255,255,.55); border-top: 1px solid rgba(226,232,240,.7); border-bottom: 1px solid rgba(226,232,240,.7); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--indigo); margin: 0 0 10px; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 18px; font-weight: 800; }
.sub { color: var(--ink-2); font-size: 17px; max-width: 680px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.step { padding: 26px; }
.step h3 { margin: 14px 0 8px; font-size: 18px; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }
.num { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 10px; background: #eef2ff; color: var(--indigo-ink); font-weight: 800; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split p { color: var(--ink-2); font-size: 16.5px; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { padding: 7px 0 7px 30px; position: relative; font-weight: 500; }
.checks li::before { content: ''; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 6px; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231a2e05'%3E%3Cpath d='M8.1 13.6 4.5 10l1.1-1.1 2.5 2.5 6.3-6.3 1.1 1.1z'/%3E%3C/svg%3E") center/14px no-repeat; }
.gallery { padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.g-item b { display: block; font-size: 14px; margin-top: 8px; }
.g-item small { color: var(--muted); font-size: 12.5px; }
.g-thumb { aspect-ratio: 4/3; border-radius: 12px; position: relative; overflow: hidden; }
.g-thumb span { position: absolute; left: 8px; bottom: 8px; background: rgba(15,23,42,.72); color: #fff; font: 600 10.5px 'JetBrains Mono', monospace; padding: 3px 7px; border-radius: 6px; }
.t1 { background: linear-gradient(160deg, #fb923c, #be123c); }
.t2 { background: linear-gradient(160deg, #a3e635, #15803d); }
.t3 { background: linear-gradient(160deg, #818cf8, #1e1b4b); }
.t4 { background: linear-gradient(160deg, #fde68a, #b45309); }

.col-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.cg { padding: 22px; }
.cg h4 { margin: 0 0 8px; font-size: 15px; }
.cg p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.7; }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; align-items: stretch; }
.plan { padding: 28px; display: flex; flex-direction: column; position: relative; }
.plan h3 { margin: 0; font-size: 17px; }
.price { margin: 10px 0 18px; display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: 44px; letter-spacing: -0.04em; }
.price span { color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 6px 0 6px 22px; position: relative; color: var(--ink-2); font-size: 14.5px; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: #65a30d; font-weight: 800; }
.plan.featured { border: 2px solid var(--ink); box-shadow: 0 24px 48px -20px rgba(15,23,42,.35); }
.tag { position: absolute; top: -12px; left: 24px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; }
.tag-ink { background: var(--ink); color: #fff; }

details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 0; top: 10px; font-size: 22px; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: '–'; }
details p { margin: 0 0 16px; color: var(--ink-2); }

.final { padding: 96px 0; }
.final h2 { margin-bottom: 28px; }

.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; background: rgba(255,255,255,.6); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.footer nav { display: flex; gap: 22px; }
.footer nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px; }
.footer .fine { width: 100%; margin: 0; }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal .pact-card { padding: 40px 44px; }
.legal h1 { font-size: 40px; margin: 0 0 6px; }
.legal h2 { font-size: 21px; margin: 34px 0 10px; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--ink-2); font-size: 15.5px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: #f8fafc; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .steps, .pricing, .col-groups { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hero { padding-top: 44px; }
  .section { padding: 64px 0; }
  .legal .pact-card { padding: 28px 22px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .strip-grid div { padding: 12px 14px; }
  .strip-grid b { font-size: 22px; }
  .demo-count { display: none; }
}
