@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tokens ── */
:root {
  --ink:    #111827;
  --ink2:   #374260;
  --ink3:   #6b7a99;
  --bg:     #faf9f6;
  --bg2:    #f2f0eb;
  --bg3:    #e8e4dc;
  --line:   #d8d3c8;
  --brand:  #141f4a;
  --brand2: #1e2d6b;
  --blue:   #1a52d4;
  --blue-l: #e8f0fd;
  --teal:   #0d7f6a;
  --teal-l: #e0f4ef;
  --amber:  #c47a12;
  --amber-l:#fdf0d8;
  --red:    #c1321e;
  --red-l:  #fde8e5;
}

/* ── Base ── */
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: 'DM Serif Display', Georgia, serif; line-height: 1.15; color: var(--brand); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.logo { height: 72px; width: auto; display: block; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 500;
  transition: all 0.15s; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap; font-family: inherit;
}
.btn-dark { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-dark:hover { background: var(--brand2); border-color: var(--brand2); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink3); background: var(--bg2); }
.btn-blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-blue:hover { background: #1645b8; border-color: #1645b8; }
.btn-teal { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-teal:hover { background: #0a6858; border-color: #0a6858; }
.btn-white { background: #fff; color: var(--ink); border-color: #fff; }
.btn-white:hover { background: var(--bg2); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ── Nav ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,249,246,0.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 12px rgba(0,0,0,0.06); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 88px; padding: 8px 0; position: relative;
}
.nav-brand { display: flex; align-items: center; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a, .nav-drop-btn {
  padding: 6px 12px; border-radius: 6px; font-size: 14px; font-weight: 500;
  color: var(--ink2); transition: background 0.15s, color 0.15s;
  background: none; border: none; display: inline-flex; align-items: center; gap: 3px;
}
.nav-links a:hover, .nav-drop-btn:hover { background: var(--bg2); color: var(--brand); }
.nav-links a.active { color: var(--brand); font-weight: 600; }
.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute; top: 100%; left: 0;
  background: transparent; border: none; padding: 8px 0 0 0;
  min-width: 200px; display: none; z-index: 200;
}
.nav-drop-menu-inner {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 6px; box-shadow: 0 4px 24px rgba(0,0,0,0.09);
}
.nav-drop:hover .nav-drop-menu { display: block; }
.nav-drop-menu a {
  display: block; padding: 8px 12px; border-radius: 6px;
  font-size: 14px; color: var(--ink2); transition: background 0.15s, color 0.15s;
}
.nav-drop-menu a:hover { background: var(--bg2); color: var(--ink); }
.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line);
  border-radius: 6px; padding: 6px 10px; font-size: 18px; color: var(--ink);
}

/* ── Footer ── */
footer { background: var(--bg2); border-top: 1px solid var(--line); padding: 36px 0 28px; }
.foot-r1 {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 14px;
}
.foot-brand { font-family: 'DM Serif Display', serif; font-size: 20px; color: var(--brand); }
.foot-links { display: flex; gap: 4px; flex-wrap: wrap; }
.foot-links a { padding: 5px 10px; font-size: 13.5px; color: var(--ink2); border-radius: 6px; transition: background 0.15s, color 0.15s; }
.foot-links a:hover { background: var(--bg3); color: var(--ink); }
.foot-domain { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ink3); }
.foot-r2 { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--ink3); }
.foot-r2 a { color: var(--ink3); } .foot-r2 a:hover { color: var(--ink); }

/* ── Sections ── */
section { padding: 88px 0; }
.bg-white { background: #fff; }
.bg-stone { background: var(--bg2); }
.bg-dark   { background: var(--brand); color: #fff; }
.section-eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink3); margin-bottom: 8px;
}
.section-hd { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-hd h2 { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 12px; }
.section-hd p { color: var(--ink2); font-size: 16px; line-height: 1.7; }

/* ── Pulse ── */
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.5);opacity:.5} }
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue);
  animation: pulse 1.8s ease-in-out infinite; display: inline-block; flex-shrink: 0;
}

/* ── Badges / Pills ── */
.bdg {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500;
  padding: 2px 8px; border-radius: 999px; flex-shrink: 0; display: inline-block;
}
.bdg-amber { background: var(--amber-l); color: var(--amber); border: 1px solid rgba(196,122,18,0.25); }
.bdg-teal  { background: var(--teal-l);  color: var(--teal);  border: 1px solid rgba(13,127,106,0.25); }
.bdg-blue  { background: var(--blue-l);  color: var(--blue);  border: 1px solid rgba(26,95,212,0.25); }
.bdg-red   { background: var(--red-l);   color: var(--red);   border: 1px solid rgba(193,50,30,0.25); }
.bdg-gray  { background: var(--bg3);     color: var(--ink2);  border: 1px solid var(--line); }

/* ── Cards ── */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px;
}
.card-top-blue  { border-top: 3px solid var(--blue); }
.card-top-teal  { border-top: 3px solid var(--teal); }
.card-top-amber { border-top: 3px solid var(--amber); }

/* ── Code ── */
.code-snip {
  border-radius: 8px; overflow: hidden; border: 1px solid var(--line);
  background: #1a1917; padding: 16px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; line-height: 1.75;
  color: #c8c0b4; overflow-x: auto; white-space: pre;
}
.code-snip-hd { padding: 7px 12px; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink3); background: var(--bg3); white-space: normal; }
.code-snip pre {
  background: #1a1917; padding: 0; margin: 0;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; line-height: 1.75; color: #c8c0b4; overflow-x: auto;
}
pre .ck { color: #93b8f5; }
pre .cs { color: #7ed4c0; }
pre .cf { color: #f5c47a; }
pre .cc { color: #5a5548; font-style: italic; }
pre .ct { color: #c5a8f5; }

/* ── Grid utils ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-2-wide { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }

/* ── Flow nodes (AGR) ── */
.flow-nodes { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; margin-bottom: 32px; }
.fnode {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; text-align: center; min-width: 125px; transition: all 0.15s; flex: 1;
}
.fnode:hover { transform: translateY(-2px); border-color: var(--blue); background: var(--blue-l); }
.fnode.hi { border-color: var(--blue); background: var(--blue-l); }
.fnode-ico { font-size: 20px; margin-bottom: 5px; }
.fnode-t { font-size: 12px; font-weight: 600; color: var(--brand); font-family: 'DM Sans', sans-serif; }
.fnode-s { font-size: 10px; color: var(--ink3); font-family: 'JetBrains Mono', monospace; margin-top: 3px; }
.farrow { color: var(--ink3); font-size: 16px; padding: 0 6px; flex-shrink: 0; }

/* ── Outcomes ── */
.outcomes { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 32px; }
.outcome { border-radius: 10px; padding: 16px 18px; border: 1px solid; }
.outcome-t { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; margin-bottom: 5px; }
.outcome p { font-size: 13px; line-height: 1.55; }
.oc-teal  { background: var(--teal-l); border-color: rgba(13,127,106,0.2); }
.oc-teal .outcome-t, .oc-teal p { color: var(--teal); }
.oc-red   { background: var(--red-l);  border-color: rgba(193,50,30,0.2); }
.oc-red .outcome-t, .oc-red p { color: var(--red); }
.oc-amber { background: var(--amber-l);border-color: rgba(196,122,18,0.2); }
.oc-amber .outcome-t, .oc-amber p { color: var(--amber); }

/* ── Pipeline ── */
.pipeline { display: flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg2); }
.pipe-stage { flex: 1; min-width: 140px; background: #fff; padding: 18px 14px; border-right: 1px solid var(--line); }
.pipe-stage:last-child { border-right: none; }
.pipe-stage.hi { background: var(--amber-l); }
.pipe-emo  { font-size: 20px; margin-bottom: 7px; }
.pipe-name { font-size: 13px; font-weight: 600; color: var(--brand); margin-bottom: 2px; font-family: 'DM Sans', sans-serif; }
.pipe-model{ font-size: 10px; color: var(--ink3); font-family: 'JetBrains Mono', monospace; margin-bottom: 7px; }
.pipe-desc { font-size: 12px; color: var(--ink2); line-height: 1.5; margin-bottom: 8px; }

/* ── Code window ── */
.code-win { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 2px 24px rgba(0,0,0,0.06); }
.code-win-hd { background: #2a2825; padding: 11px 14px; display: flex; align-items: center; gap: 7px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.d-red { background: #ff5f57; } .d-yel { background: #ffbd2e; } .d-grn { background: #28c840; }
.code-win pre { background: #1a1917; padding: 22px; margin: 0; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; line-height: 1.8; color: #c8c0b4; overflow-x: auto; }

/* ── CTA section ── */
.cta-sec { text-align: center; }
.cta-sec h2 { font-size: clamp(26px, 3.5vw, 42px); color: #fff; margin-bottom: 14px; }
.cta-sec p  { color: rgba(255,255,255,.62); font-size: 16px; max-width: 50ch; margin: 0 auto 32px; line-height: 1.7; }
.cta-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.cta-installs { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: rgba(255,255,255,.3); }

/* ── Pricing ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 28px 24px; display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--blue); background: var(--blue-l); }
.price-tier { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; color: var(--ink3); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.08em; }
.price-amt { font-family: 'DM Serif Display', serif; font-size: 36px; color: var(--brand); line-height: 1; margin-bottom: 4px; }
.price-amt span { font-size: 14px; font-family: 'DM Sans', sans-serif; color: var(--ink3); }
.price-desc { font-size: 13px; color: var(--ink2); margin-bottom: 20px; line-height: 1.5; }
.price-feats { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-bottom: 24px; flex: 1; }
.price-feats li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ink2); }
.price-feats li::before { content: '✓'; color: var(--teal); font-weight: 600; flex-shrink: 0; margin-top: 1px; }

/* ── FAQ ── */
.faq { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
details { border-bottom: 1px solid var(--line); }
details:last-child { border-bottom: none; }
summary {
  padding: 18px 22px; font-size: 15px; font-weight: 600; color: var(--brand);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  list-style: none; background: #fff; transition: background 0.15s;
  font-family: 'DM Sans', sans-serif;
}
summary:hover { background: var(--bg2); }
summary::after { content: '+'; font-size: 18px; color: var(--ink3); font-weight: 300; flex-shrink: 0; }
details[open] summary::after { content: '−'; }
details[open] summary { background: var(--bg2); }
.faq-body { padding: 0 22px 18px; font-size: 14px; color: var(--ink2); line-height: 1.7; background: #fff; }

/* ── Feature list ── */
.feat-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.feat-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--ink2); line-height: 1.5; }
.fdot { width: 6px; height: 6px; border-radius: 50%; margin-top: 7px; flex-shrink: 0; }
.fdot-blue  { background: var(--blue); }
.fdot-teal  { background: var(--teal); }
.fdot-brand { background: var(--brand); }

/* ── Hero page ── */
.page-hero { padding: 72px 0 64px; background: var(--bg); }
.page-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-l); border: 1px solid rgba(26,95,212,0.2);
  border-radius: 999px; padding: 5px 14px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--blue); margin-bottom: 20px;
}
.hero-badge-teal {
  background: var(--teal-l); border-color: rgba(13,127,106,0.2); color: var(--teal);
}
.page-hero h1 { font-size: clamp(32px, 4.5vw, 52px); line-height: 1.08; margin-bottom: 18px; }
.page-hero h1 em { font-style: italic; color: var(--teal); }
.page-hero-sub { font-size: 17px; color: var(--ink2); line-height: 1.7; max-width: 46ch; margin-bottom: 28px; }
.page-hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Install strip ── */
.install-strip { background: var(--brand); padding: 18px 0; }
.install-strip-inner { display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; }
.install-item { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 8px; }
.install-item strong { color: #fff; }

/* ── Stat row ── */
.stat-row { display: flex; gap: 0; justify-content: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.stat-item { flex: 1; padding: 24px; text-align: center; border-right: 1px solid var(--line); }
.stat-item:last-child { border-right: none; }
.stat-val { font-family: 'DM Serif Display', serif; font-size: 32px; color: var(--brand); line-height: 1; margin-bottom: 4px; }
.stat-lbl { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink3); }

/* ── Form ── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--brand); }
.form-group input, .form-group textarea {
  border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 14px;
  font-size: 14px; font-family: 'DM Sans', sans-serif; color: var(--ink);
  background: #fff; transition: border-color 0.15s; width: 100%;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 12px; color: var(--ink3); line-height: 1.5; margin-top: 10px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .page-hero { padding: 52px 0 48px; }
  .page-hero-grid, .grid-2, .grid-2-wide { grid-template-columns: 1fr; gap: 28px; }
  .grid-3, .pricing-grid { grid-template-columns: 1fr; }
  .outcomes { grid-template-columns: 1fr; }
  .flow-nodes { gap: 6px; }
  .farrow { display: none; }
  .pipeline { flex-direction: column; }
  .pipe-stage { border-right: none; border-bottom: 1px solid var(--line); }
  .pipe-stage:last-child { border-bottom: none; }
  .stat-row { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--line); }
  .stat-item:last-child { border-bottom: none; }
  .install-strip-inner { gap: 16px; }
  .nav-links {
    display: none; flex-direction: column; position: absolute; top: 88px;
    left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px; box-shadow: 0 4px 16px rgba(0,0,0,0.07); z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-drop-menu { position: static; box-shadow: none; border: none; border-radius: 0; background: none; display: block; padding: 0 0 0 10px; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
}
