:root {
  --ink: #140c08;
  --ink-2: #21140d;
  --ink-3: #2e1c12;
  --ember: #ff9a5a;
  --ember-deep: #e2733a;
  --wheat: #f2d39b;
  --paper: #fbf8f3;
  --cream: #f6efe4;
  --cream-2: #efe4d4;
  --text: #fdf8f1;
  --text-dim: #cdbfb2;
  --dark: #22170f;
  --dark-dim: #6d5b4d;
  --line: rgba(253, 248, 241, 0.12);
  --line-dark: rgba(34, 23, 15, 0.12);
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--ink); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
code { font-family: var(--mono); font-size: 0.9em; padding: 0.05em 0.35em; border-radius: 4px; background: rgba(255, 154, 90, 0.12); }
.wrap { width: min(1200px, 100% - 48px); margin: 0 auto; }
.center { text-align: center; }

.nav { position: sticky; top: 0; z-index: 10; background: rgba(20, 12, 8, 0.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 28px; font-weight: 400; text-decoration: none; letter-spacing: -0.01em; }
.mark { display: inline-grid; grid-template-columns: repeat(3, 5px); gap: 3px; align-items: end; height: 20px; }
.mark i { display: block; width: 5px; border-radius: 3px; background: var(--ember); }
.mark i:nth-child(1) { height: 8px; opacity: 0.55; }
.mark i:nth-child(2) { height: 20px; }
.mark i:nth-child(3) { height: 13px; opacity: 0.75; }
.links { display: flex; gap: 32px; }
.links a { text-decoration: none; color: var(--text-dim); font-size: 15px; }
.links a:hover { color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 8px; font-size: 16px; font-weight: 500; text-decoration: none; transition: transform 0.15s, background 0.15s; }
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--ember); color: var(--ink); }
.btn-solid:hover { background: var(--wheat); }
.btn-ghost { border: 1px solid var(--ember); color: var(--ember); }

.eyebrow { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--ember); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 20px; }

.hero { background: radial-gradient(1200px 600px at 15% 0%, var(--ink-3), transparent 70%), linear-gradient(180deg, var(--ink-2), var(--ink)); padding: 96px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
h1 { font-family: var(--display); font-weight: 300; font-size: clamp(42px, 5.2vw, 66px); line-height: 1.02; letter-spacing: -0.015em; }
h1 em, h2 em { font-style: italic; color: var(--ember); }
.lede { margin-top: 28px; font-size: 19px; line-height: 1.6; color: var(--text-dim); max-width: 600px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.center-row { justify-content: center; }
.install { display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.35); color: var(--text); font-family: var(--mono); font-size: 13.5px; cursor: pointer; max-width: 100%; overflow: hidden; white-space: nowrap; }
.install .prompt { color: var(--ember); }
.install .copy { margin-left: 6px; padding: 3px 8px; border-radius: 5px; background: rgba(255, 154, 90, 0.15); color: var(--ember); font-size: 12px; }

.demo video { display: block; width: 100%; height: auto; border-radius: 10px; background: var(--ink); }
.demo figcaption { margin-top: 14px; font-size: 14px; color: var(--text-dim); }
pre s { text-decoration: none; color: #8f7f72; }
pre b { font-weight: 500; color: var(--wheat); }
pre i { font-style: normal; color: var(--ember); }
pre .bad { color: #ff7b6b; }
pre .ok { color: #9fd99a; }

.runs-on { display: flex; align-items: center; gap: 48px; padding: 56px 0; margin-top: 88px; border-top: 1px solid var(--line); }
.runs-on p { font-size: 15px; color: var(--text-dim); min-width: 180px; }
.runs-on ul { display: flex; flex-wrap: wrap; gap: 14px 40px; list-style: none; font-family: var(--mono); font-size: 15px; color: var(--text); opacity: 0.85; }

.intro { background: var(--ink); padding: 112px 0 120px; border-top: 1px solid var(--line); }
.big { font-size: 24px; line-height: 1.5; max-width: 980px; }
.big + .big { margin-top: 28px; }
.muted { color: var(--text-dim); }

.light { background: var(--cream); color: var(--dark); padding: 120px 0; }
.light.alt { background: var(--paper); }
.light .eyebrow { color: var(--ember-deep); }
.light code { background: rgba(226, 115, 58, 0.12); }
h2 { font-family: var(--display); font-weight: 300; font-size: clamp(38px, 4.6vw, 58px); line-height: 1.05; letter-spacing: -0.01em; }
.sub { margin: 18px auto 0; max-width: 620px; font-size: 18px; color: var(--dark-dim); }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; margin-top: 64px; }
.cols > * { display: flex; flex-direction: column; gap: 12px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.cols p { color: var(--dark-dim); font-size: 15.5px; }
.cols strong { color: var(--dark); font-weight: 600; }
.cols a { margin-top: auto; font-family: var(--mono); font-size: 13px; color: var(--ember-deep); text-decoration: none; }
.cols a:hover { text-decoration: underline; }
.cols .col-k { font-weight: 600; font-size: 17px; color: var(--dark); }
.tiles { row-gap: 56px; margin-top: 72px; }
.tiles h4 { font-family: var(--display); font-weight: 400; font-size: 25px; line-height: 1.15; }
.steps .code { font-size: 12.5px; }
.cols .kicker { font-family: var(--mono); font-size: 12.5px; color: var(--ember-deep); }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 64px; }
.feature h3 { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.1; margin-bottom: 18px; }
.feature p { color: var(--dark-dim); font-size: 16px; }
.code { font-family: var(--mono); font-size: 13px; line-height: 1.7; padding: 20px 22px; border-radius: 6px; background: var(--ink); color: var(--text); overflow-x: auto; }

.dark { background: linear-gradient(180deg, var(--ink), var(--ink-2)); padding: 120px 0; }
.cases { margin-top: 56px; }
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 56px; padding: 48px 0; border-top: 1px solid var(--line); }
.case:last-child { border-bottom: 1px solid var(--line); }
.case-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.case > pre { align-self: start; }
.case-k { font-family: var(--mono); font-size: 13px; color: var(--ember); }
.case h3 { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.1; }
.case p { color: var(--text-dim); font-size: 16px; }
.dark-code { background: rgba(0, 0, 0, 0.35); }

.table-scroll { margin-top: 56px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line-dark); vertical-align: top; }
th { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--dark-dim); border-bottom-color: var(--dark); }
th:nth-child(2), td:nth-child(2) { background: rgba(255, 154, 90, 0.1); }
th:nth-child(2) { color: var(--ember-deep); }
td:first-child { font-weight: 500; }
td.y { color: #2f6b34; }
td.n { color: #a2412f; }
td.m { color: #8a6a1f; }
.note { margin-top: 18px; font-size: 13.5px; color: var(--dark-dim); }

.final { padding: 140px 0; background: radial-gradient(700px 380px at 50% 100%, rgba(255, 154, 90, 0.18), transparent 70%), var(--ink); border-top: 1px solid var(--line); }
.final h2 { font-size: clamp(42px, 5.4vw, 68px); margin-bottom: 40px; }
.foot { border-top: 1px solid var(--line); padding: 36px 0; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot p { color: var(--text-dim); font-size: 14px; }

@media (max-width: 980px) {
  .hero-grid, .feature, .case { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; row-gap: 40px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .links { display: none; }
  .runs-on { flex-direction: column; align-items: flex-start; gap: 18px; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
  .install { font-size: 11.5px; }
  .big { font-size: 20px; }
}

.hero-grid > *, .cols > *, .feature > *, .case > * { min-width: 0; }
.textlink { display: inline-block; margin-top: 18px; font-size: 15px; color: var(--ember); text-decoration: none; }
.textlink:hover { text-decoration: underline; }
.install .cmd { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.install .copy, .install .prompt { flex-shrink: 0; }
.gh { display: inline-flex; color: var(--text-dim); transition: color 0.15s; }
.gh:hover { color: var(--text); }
.gh svg { width: 26px; height: 26px; }
.btn .icon { width: 18px; height: 18px; margin-right: 10px; }
.sprite { position: absolute; }

.links a, .foot a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.25s ease, color 0.2s; }
.links a:hover, .foot a:hover { background-size: 100% 1px; }
.textlink { transition: transform 0.2s ease; }
.textlink:hover { transform: translateX(4px); text-decoration: none; }
tbody tr { transition: background 0.2s; }
tbody tr:hover { background: rgba(255, 154, 90, 0.06); }
.install { transition: border-color 0.2s, transform 0.15s; }
.install:hover { border-color: rgba(255, 154, 90, 0.5); }
.install:active { transform: scale(0.98); }
.install.copied .copy { background: var(--ember); color: var(--ink); }
.gh svg { transition: transform 0.2s ease; }
.gh:hover svg { transform: rotate(-8deg) scale(1.08); }
.mark i { transform-origin: bottom; animation: grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.mark i:nth-child(2) { animation-delay: 0.08s; }
.mark i:nth-child(3) { animation-delay: 0.16s; }
@keyframes grow { from { transform: scaleY(0.15); } }
.brand:hover .mark i { animation: bounce 0.6s ease; }
.brand:hover .mark i:nth-child(2) { animation-delay: 0.06s; }
.brand:hover .mark i:nth-child(3) { animation-delay: 0.12s; }
@keyframes bounce { 40% { transform: scaleY(0.55); } }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: var(--delay, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.sub.dim, .note.dim { color: var(--text-dim); }
.sub.left { margin: 18px 0 0; text-align: left; }
#agents h2 { font-size: clamp(34px, 4vw, 50px); }
.dark-link { color: var(--ember-deep); margin-top: 24px; }
.ledger-wrap { margin-top: 56px; overflow-x: auto; }
.ledger { margin-top: 18px; color: var(--text); }
.ledger td { border-bottom-color: var(--line); padding: 14px 18px 14px 0; }
.ledger td:nth-child(2) { background: none; color: var(--text-dim); }
.ledger td.ok { color: #9fd99a; font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.ledger td.bad { color: #ff9b8b; font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.ledger td a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.ledger td a:hover { color: var(--text); }
.ledger tbody tr:hover { background: rgba(255, 154, 90, 0.05); }
.sub.dim { margin: 18px 0 0; max-width: 720px; }
.logo { width: 18px; height: 18px; flex-shrink: 0; vertical-align: -3px; margin-right: 10px; opacity: 0.9; transition: transform 0.2s ease, opacity 0.2s; }
.logos li { display: inline-flex; align-items: center; }
.logos li:hover .logo { transform: translateY(-2px); opacity: 1; }
.works-with { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 28px; list-style: none; font-size: 15px; color: var(--dark); }
.works-with .logo { color: var(--dark); }
.case-k .logo { width: 15px; height: 15px; margin-right: 8px; }
.feature + .feature { margin-top: 72px; }

.more { width: 100%; margin-top: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.more summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; font-family: var(--mono); font-size: 13.5px; color: var(--text); cursor: pointer; list-style: none; transition: color 0.2s; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font-size: 18px; line-height: 1; color: var(--ember); transition: transform 0.25s ease; }
.more[open] summary::after { transform: rotate(45deg); }
.more summary:hover { color: var(--ember); }
.more summary:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; border-radius: 2px; }
.facts { display: grid; grid-template-columns: 9.5em 1fr; gap: 14px 20px; padding: 6px 0 22px; font-size: 15px; animation: unfold 0.35s ease; }
.facts dt { font-family: var(--mono); font-size: 12.5px; color: var(--ember); padding-top: 3px; }
.facts dd { color: var(--text-dim); }
.facts code { overflow-wrap: anywhere; }
@keyframes unfold { from { opacity: 0; transform: translateY(-4px); } }
.case-body .textlink { margin-top: 6px; }
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; gap: 4px; }
  .facts dd + dt { margin-top: 12px; }
}

.doc { background: var(--paper); color: var(--dark); padding: 72px 0 120px; }
.doc-wrap { max-width: 820px; }
.doc .eyebrow { color: var(--ember-deep); margin-top: 36px; }
.doc h1 { font-size: clamp(34px, 4.4vw, 50px); line-height: 1.08; }
.doc h1 code { font-size: 0.8em; }
.crumb { font-family: var(--mono); font-size: 13.5px; color: var(--dark-dim); text-decoration: none; }
.crumb:hover { color: var(--ember-deep); }
.prose { margin-top: 40px; font-size: 17px; line-height: 1.7; color: #3d2d22; }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: 34px; margin-top: 56px; color: var(--dark); }
.prose h3 { font-family: var(--display); font-weight: 400; font-size: 26px; margin-top: 40px; color: var(--dark); }
.prose strong { color: var(--dark); font-weight: 600; }
.prose a { color: var(--ember-deep); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 8px; }
.prose code { background: rgba(226, 115, 58, 0.12); overflow-wrap: anywhere; }
.prose pre { font-family: var(--mono); font-size: 13.5px; line-height: 1.7; padding: 20px 22px; border-radius: 6px; background: var(--ink); color: var(--text); overflow-x: auto; }
.prose pre code { padding: 0; background: none; font-size: inherit; overflow-wrap: normal; }
.prose .table-scroll { margin-top: 24px; }
.prose table { font-size: 14.5px; }
.prose th:nth-child(2), .prose td:nth-child(2) { background: none; }
.prose th { color: var(--dark); }
.prose td:first-child { white-space: nowrap; }
.prose td { min-width: 12em; }
.setup { margin-top: 32px; }
.setup-step { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dark-dim); margin: 0 0 10px; }
.setup .install { display: flex; width: 100%; background: var(--ink); border-color: transparent; margin-bottom: 24px; }
.setup .install .cmd { flex: 1; text-align: left; }
.tabs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.tabs [role="tab"] { display: inline-flex; align-items: center; height: 34px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-dark); background: transparent; color: var(--dark); font: inherit; font-size: 13.5px; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.tabs [role="tab"] .logo { width: 15px; height: 15px; margin-right: 8px; color: var(--dark); }
.tabs [role="tab"]:hover { border-color: var(--ember-deep); }
.tabs [role="tab"][aria-selected="true"] { background: var(--dark); border-color: var(--dark); color: var(--cream); }
.tabs [role="tab"][aria-selected="true"] .logo { color: var(--cream); }
.panel .install { margin-bottom: 0; }
.add-btn { display: inline-flex; align-items: center; height: 48px; padding: 0 20px; border-radius: 8px; background: var(--ember-deep); color: var(--paper); font-weight: 500; text-decoration: none; transition: transform 0.15s, background 0.2s; }
.add-btn .logo { color: var(--paper); }
.add-btn:hover { background: var(--ember); color: var(--ink); }
.add-btn:hover .logo { color: var(--ink); }
.add-btn:active { transform: scale(0.98); }
.setup-note { margin-top: 10px; font-size: 14px; color: var(--dark-dim); }
