:root {
  --bg: #ffffff;
  --soft: #fafafa;
  --softer: #f5f5f5;
  --line: #e5e5e5;
  --line-2: #d4d4d4;
  --ink: #0a0a0a;
  --ink-2: #171717;
  --muted: #737373;
  --muted-2: #a3a3a3;
  --muted-3: #525252;
  --accent: #652ae3;
  --accent-soft: #f1eafd;
  --green: #0e8345;
  --green-soft: #e8f6ee;
  --red: #d02b45;
  --red-soft: #fdeef1;
  --amber: #b07908;
  --amber-soft: #fdf4e3;
  --sans: "Geist", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }

/* ---------- framed column ---------- */
.frame {
  max-width: 1152px;
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.pad { padding-left: 56px; padding-right: 56px; }

/* ---------- primitives ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1.5px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.btn-dark { background: var(--ink-2); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-2); background: var(--soft); }
.btn .arrow { font-size: 15px; line-height: 1; opacity: .7; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.chip-green { background: var(--green-soft); color: var(--green); }
.chip-red { background: var(--red-soft); color: var(--red); }
.chip-amber { background: var(--amber-soft); color: var(--amber); }
.chip-purple { background: var(--accent-soft); color: var(--accent); }
.chip-gray { background: var(--softer); color: var(--muted); }

/* ---------- nav ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1152px;
  margin: 0 auto;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; color: var(--ink); }
.brand svg { display: block; height: 26px; width: auto; }
.sym { display: block; }
.nav-links { display: flex; gap: 26px; font-size: 14px; color: var(--muted); }
.nav-links a { transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { min-height: 36px; padding: 0 14px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 56px 56px;
  text-align: center;
  background:
    radial-gradient(ellipse 75% 50% at 50% -12%, rgba(228, 140, 96, .16), transparent 62%),
    radial-gradient(ellipse 55% 40% at 22% 4%, rgba(168, 60, 214, .07), transparent 65%),
    radial-gradient(ellipse 95% 75% at 50% 10%, rgba(101, 42, 227, .10), transparent 70%);
}
.hero-ascii {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 40%, transparent 96%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 96%);
}
.hero > :not(.hero-ascii) { position: relative; z-index: 1; }
.announce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 12.5px;
  color: var(--muted-3);
  transition: border-color .18s ease;
}
.announce:hover { border-color: var(--line-2); }
.announce .chip { padding: 3px 8px; }
.announce .arrow { color: var(--muted-2); }

h1 {
  max-width: 780px;
  margin: 28px auto 18px;
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -.04em;
  font-weight: 570;
  text-wrap: balance;
}
.hero-copy {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.6;
}
.hero-actions { margin-top: 30px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.hero-actions .btn { min-height: 44px; padding: 0 22px; }
.hero-note {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ---------- hero product cards ---------- */
.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 28px 40px 72px;
}
.pcard {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
  transition: box-shadow .2s ease, transform .2s ease;
}
.pcard:hover { box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.06); transform: translateY(-2px); }
.pcard-top { padding: 18px 18px 16px; }
.pcard-title { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; letter-spacing: -.02em; }
.pcard-title .glyph {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.pcard-title .glyph-green { background: var(--green-soft); color: var(--green); }
.pcard-title .glyph-red { background: var(--red-soft); color: var(--red); }
.mdot { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 8px; }
.pcard-top p { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.pcard-mock {
  flex: 1;
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--soft);
  padding: 4px 18px 8px;
  display: grid;
  gap: 0;
  align-content: start;
}
.pcard-mock .mrow {
  background: none;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.pcard-mock .mrow:last-child { border-bottom: none; }
.mstat { padding: 13px 0 12px; border-bottom: 1px solid var(--line); }
.mstat span { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); }
.mstat b { display: block; margin-top: 5px; font-size: 23px; font-weight: 600; letter-spacing: -.03em; }
.mstat i { font-style: normal; font-family: var(--mono); font-size: 10px; font-weight: 400; color: var(--green); margin-left: 7px; vertical-align: 3px; }
.sev-high { color: var(--red); }
.sev-med { color: var(--amber); }

.mrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 11.5px;
}
.mrow .l { color: var(--ink-2); font-weight: 500; }
.mrow .r { font-family: var(--mono); font-size: 10px; color: var(--muted-2); }
.mbar { height: 3px; border-radius: 99px; background: var(--softer); margin-top: 6px; overflow: hidden; }
.mbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #a83cd6); border-radius: inherit; }
.mrow .stack { flex: 1; }


/* ---------- trust strip ---------- */
.trust {
  border-top: 1px solid var(--line);
  padding: 26px 56px;
  text-align: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ---------- sections ---------- */
section { border-top: 1px solid var(--line); padding: 96px 56px; }
.sec-head { max-width: 640px; }
.sec-head.center { margin: 0 auto; text-align: center; }
.sec-head.center .kicker { justify-content: center; }
h2 {
  margin: 16px 0 14px;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -.035em;
  font-weight: 570;
  text-wrap: balance;
}
.sec-copy { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.65; }

/* ---------- developers ---------- */
.dev-grid { margin-top: 52px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.dev-steps { display: grid; }
.dev-step {
  text-align: left;
  background: none;
  border: none;
  border-top: 1px solid var(--line);
  padding: 18px 4px;
  cursor: pointer;
  transition: opacity .15s ease;
}
.dev-step:last-child { border-bottom: 1px solid var(--line); }
.dev-step h4 { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; letter-spacing: -.02em; color: var(--muted-3); }
.dev-step .num { font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); }
.dev-step p { margin: 8px 0 0 30px; color: var(--muted); font-size: 13.5px; line-height: 1.6; display: none; }
.dev-step.active h4 { color: var(--ink); }
.dev-step.active .num { color: var(--accent); }
.dev-step.active p { display: block; }
.dev-step:not(.active):hover h4 { color: var(--ink-2); }
.dev-links { margin-top: 24px; display: flex; gap: 20px; font-size: 14px; font-weight: 500; }
.dev-links a:first-child { color: var(--ink-2); }
.dev-links a:first-child:hover { text-decoration: underline; }
.dev-links a:last-child { color: var(--muted); }
.dev-links a:last-child:hover { color: var(--ink-2); }

.code-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.code-tabs { display: flex; gap: 2px; padding: 8px 10px 0; background: var(--soft); border-bottom: 1px solid var(--line); overflow-x: auto; }
.code-tab {
  border: 1px solid transparent;
  border-bottom: none;
  background: none;
  border-radius: 8px 8px 0 0;
  padding: 8px 13px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.code-tab.active { background: #fff; border-color: var(--line); color: var(--ink-2); margin-bottom: -1px; padding-bottom: 9px; }
.endpoint { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--muted-3); overflow-x: auto; }
.method { padding: 2px 7px; border-radius: 6px; background: var(--green-soft); color: var(--green); font-weight: 600; font-size: 10px; letter-spacing: .04em; }
.method.cli { background: var(--accent-soft); color: var(--accent); }
.code-panel { display: none; }
.code-panel.active { display: block; }
pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted-3);
}
.kw { color: var(--accent); }
.fn { color: #0550ae; }
.str { color: var(--green); }
.key { color: var(--ink-2); }
.comment { color: var(--muted-2); }

/* ---------- deep dives ---------- */
.dive { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.dive h2 { font-size: clamp(26px, 3vw, 34px); }
.dive-feats { margin-top: 28px; display: grid; }
.dive-feat { border-top: 1px solid var(--line); padding: 16px 2px; }
.dive-feat:last-of-type { border-bottom: 1px solid var(--line); }
.dive-feat b { font-size: 14.5px; font-weight: 600; letter-spacing: -.02em; }
.dive-feat p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.dive-links { margin-top: 22px; display: flex; gap: 20px; font-size: 14px; font-weight: 500; }
.dive-links a:first-child { color: var(--ink-2); }
.dive-links a:first-child:hover { text-decoration: underline; }
.dive-links a:last-child { color: var(--muted); }
.dive-links a:last-child:hover { color: var(--ink-2); }

.mock-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 16px 40px rgba(0,0,0,.05);
}
.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.mock-body { padding: 16px; display: grid; gap: 8px; }

.sec-event { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 12px; }
.sec-event-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sec-event-top time { font-family: var(--mono); font-size: 9.5px; color: var(--muted-2); }
.sec-event p { margin: 9px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted-3); }
.bubble { margin-top: 8px; max-width: 88%; padding: 8px 10px; border-radius: 9px; font-size: 11.5px; line-height: 1.5; background: var(--softer); color: var(--muted-3); }
.bubble.agent { margin-left: auto; background: var(--accent-soft); color: #4b2fa8; }
.evidence { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: var(--red-soft); border: 1px solid #f6d5db; color: #a63047; font-size: 11px; line-height: 1.5; }

/* ---------- bento ---------- */
.bento { margin-top: 52px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bento-card { border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.bento-mock { background: var(--soft); border-bottom: 1px solid var(--line); padding: 18px; min-height: 190px; display: grid; gap: 8px; align-content: center; }
.bento-text { padding: 18px 20px 20px; }
.bento-text .cap { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.bento-text p { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }

.trace-node { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; font-family: var(--mono); font-size: 10.5px; color: var(--muted-3); }
.trace-node::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); flex: none; }
.trace-node.tool::before { background: var(--green); }
.trace-node.error::before { background: var(--red); }
.trace-node em { margin-left: auto; font-style: normal; color: var(--muted-2); font-size: 9.5px; }
.indent-1 { margin-left: 20px; }
.indent-2 { margin-left: 40px; }

.sentiment-line { height: 8px; border-radius: 99px; background: linear-gradient(90deg, #26a566 0 56%, #ecbb45 56% 79%, #e35d75 79%); }
.sentiment-labels { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); }

.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.team-chip { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font-size: 11.5px; color: var(--muted); }
.team-chip b { display: block; color: var(--ink-2); font-size: 12px; margin-bottom: 2px; }

/* ---------- pricing ---------- */
.pricing-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.pricing-note { color: var(--muted); font-size: 13.5px; padding-bottom: 6px; }
.pricing-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.price-card { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 24px; position: relative; display: flex; flex-direction: column; }
.price-card .plan { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.price-card .price { margin-top: 16px; font-size: 38px; font-weight: 600; letter-spacing: -.04em; }
.price-card .price span { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted-2); }
.price-card .price-copy { margin-top: 6px; color: var(--muted); font-size: 12.5px; line-height: 1.5; min-height: 38px; }
.price-card .btn { width: 100%; margin-top: 20px; }
.features-list { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.features-list div { display: flex; gap: 9px; font-size: 12.5px; line-height: 1.45; color: var(--muted-3); }
.check { color: var(--accent); font-weight: 600; }
.price-card.featured { background: var(--ink); border-color: var(--ink); color: #fff; }
.price-card.featured .price-copy, .price-card.featured .features-list div { color: #a3a3a3; }
.price-card.featured .price span { color: #737373; }
.price-card.featured .features-list { border-top-color: rgba(255,255,255,.14); }
.price-card.featured .check { color: #b39dff; }
.price-card.featured .btn { background: #fff; color: var(--ink); }
.price-card.featured .btn:hover { background: var(--softer); }
.popular { position: absolute; top: 20px; right: 20px; }

/* ---------- cta ---------- */
.cta { text-align: center; }
.cta h2 { max-width: 640px; margin-left: auto; margin-right: auto; font-size: clamp(30px, 4vw, 44px); }
.cta p { max-width: 540px; margin: 0 auto; color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.cta .hero-actions { margin-top: 28px; }

.integration-strip {
  border-top: 1px solid var(--line);
  padding: 26px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--soft);
}
.integration-strip b { font-size: 14.5px; font-weight: 600; letter-spacing: -.02em; display: block; }
.integration-strip span { font-size: 13px; color: var(--muted); }
.integration-strip a { font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.integration-strip a:hover { text-decoration: underline; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); }
.footer-grid { padding: 56px 56px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 240px; }
.footer-col .cap { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.footer-col ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { font-size: 13.5px; color: var(--muted-3); transition: color .15s ease; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--muted-2);
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .hero { padding: 64px 28px 40px; }
  h1 br { display: none; }
  .hero-cards { padding: 20px 24px 56px; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78%, 320px); overflow-x: auto; scroll-snap-type: x mandatory; }
  .pcard { scroll-snap-align: start; }
  section { padding: 72px 28px; }
  .trust, .integration-strip { padding-left: 28px; padding-right: 28px; }
  .bento { grid-template-columns: 1fr; }
  .dev-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .dive { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; }
  .pricing-head { display: block; }
  .pricing-note { margin-top: 10px; padding-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; padding: 44px 28px 32px; }
  .footer-bottom { padding: 18px 28px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .nav-actions .btn-ghost { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .team-grid { grid-template-columns: 1fr; }
  .integration-strip { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
}
