:root {
  color-scheme: light;
  --ink: #051936;
  --muted: #516078;
  --line: #d8e0e8;
  --paper: #f7f3ea;
  --band: #edf4ef;
  --surface: #ffffff;
  --soft: #eef4ff;
  --blue: #1f6feb;
  --green: #1f6feb;
  --rust: #516078;
  --gold: #8bbcff;
  --shadow: 0 18px 50px rgba(5, 25, 54, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 243, 234, 0.92);
  border-bottom: 1px solid rgba(216, 224, 232, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.site-menu-shell {
  position: relative;
}

.menu-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  place-items: center;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(5, 25, 54, 0.08);
}

.menu-button:hover,
.menu-button[aria-expanded="true"] {
  border-color: rgba(31, 111, 235, 0.35);
  color: var(--blue);
}

.menu-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  width: min(420px, calc(100vw - 36px));
  max-height: min(720px, calc(100vh - 96px));
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.site-menu[hidden] {
  display: none;
}

.site-menu nav,
.menu-docs {
  display: grid;
  gap: 4px;
}

.site-menu nav a,
.menu-docs a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 750;
  text-decoration: none;
}

.site-menu nav a:hover,
.menu-docs a:hover {
  background: var(--soft);
  color: var(--ink);
}

.menu-docs {
  display: grid;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.menu-docs h2 {
  margin: 0 0 8px;
  padding: 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.menu-docs h3 {
  margin: 12px 0 4px;
  padding: 0 12px;
  color: var(--ink);
  font-size: 0.82rem;
}

.menu-docs ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.menu-docs li ul {
  margin: 2px 0 4px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.menu-docs li li a {
  font-size: 0.86rem;
  font-weight: 650;
}

.menu-docs a[aria-current="page"] {
  background: var(--soft);
  color: var(--ink);
}

.docs-home-link {
  margin-bottom: 4px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(48px, 8vw, 96px) clamp(18px, 4vw, 56px) clamp(32px, 6vw, 72px);
  overflow: hidden;
}

.hero-copy {
  max-width: 730px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 5vw, 4.7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
}

.button.secondary {
  background: var(--surface);
  color: var(--ink);
}

.hero-media {
  position: relative;
  width: min(100%, 920px);
  justify-self: end;
}

.screenshot-link {
  display: block;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.screenshot-link:focus-visible {
  outline: 3px solid rgba(31, 111, 235, 0.48);
  outline-offset: 4px;
}

.hero-media img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.screenshot-link:hover img {
  border-color: rgba(31, 111, 235, 0.42);
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 4vw, 56px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 32px;
}

.section-heading p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading h2,
.agents-section h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 1;
  letter-spacing: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid article,
.install-panel,
.docs-grid a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(5, 25, 54, 0.08);
}

.feature-grid article {
  padding: 24px;
}

.feature-index {
  display: block;
  margin-bottom: 34px;
  color: var(--blue);
  font-weight: 850;
}

.feature-grid article:nth-child(2) .feature-index {
  color: var(--blue);
}

.feature-grid article:nth-child(3) .feature-index {
  color: var(--blue);
}

.feature-grid h3,
.install-panel h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  line-height: 1.18;
}

.feature-grid p,
.install-panel p,
.agents-section p {
  color: var(--muted);
}

.showcase {
  padding-top: 0;
}

.carousel {
  --carousel-gap: clamp(14px, 2vw, 24px);
  --carousel-index: 1;
  --carousel-slide-size: min(68vw, 1040px);
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
}

.carousel-viewport {
  overflow: hidden;
  padding-block: 8px 4px;
}

.carousel-track {
  display: flex;
  gap: var(--carousel-gap);
  transition: transform 240ms ease;
  transform: translateX(
    calc(
      50% - (var(--carousel-slide-size) / 2) -
        (var(--carousel-index) * (var(--carousel-slide-size) + var(--carousel-gap)))
    )
  );
}

.carousel-track.is-snapping {
  transition: none;
}

.carousel-slide {
  flex: 0 0 var(--carousel-slide-size);
  margin: 0;
  opacity: 0.56;
  transform: scale(0.94);
  transition:
    opacity 240ms ease,
    transform 240ms ease;
}

.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.carousel-slide:not(.is-active) .screenshot-link {
  cursor: pointer;
}

.carousel-slide img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: auto;
  background: transparent;
  box-shadow: 0 16px 40px rgba(5, 25, 54, 0.13);
}

.carousel-slide figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 750;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.carousel-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  place-items: center;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.carousel-button:hover {
  border-color: rgba(31, 111, 235, 0.35);
  color: var(--blue);
}

.carousel-button:focus-visible,
.carousel-dot:focus-visible {
  outline: 3px solid rgba(31, 111, 235, 0.48);
  outline-offset: 3px;
}

.carousel-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c9d6e3;
  cursor: pointer;
}

.carousel-dot[aria-current="true"] {
  width: 28px;
  background: var(--blue);
}

.start-section,
.agents-section {
  background: var(--band);
  border-block: 1px solid rgba(31, 111, 235, 0.12);
}

.start-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.install-panel {
  padding: 24px;
}

.install-panel.accent {
  border-color: rgba(31, 111, 235, 0.32);
}

.panel-heading {
  display: flex;
  gap: 16px;
  align-items: baseline;
  justify-content: space-between;
}

.panel-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.panel-heading a {
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.copy-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  place-items: center;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.copy-button:hover,
.copy-button.copied {
  border-color: rgba(18, 184, 173, 0.55);
  background: var(--soft);
  color: var(--green);
}

.copy-button.copy-failed {
  border-color: rgba(237, 138, 0, 0.55);
  color: var(--rust);
}

.copy-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.code-copy {
  position: relative;
  margin: 18px 0;
}

.code-copy pre {
  margin: 0;
  padding-right: 58px;
  white-space: pre-wrap;
}

.code-copy code {
  overflow-wrap: anywhere;
}

.copy-button-on-code {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #051936;
  border-color: #203756;
  color: #f6f8fb;
}

.copy-button-on-code:hover,
.copy-button-on-code.copied {
  background: #0b2a5a;
  border-color: #4c8dff;
  color: #ffffff;
}

pre {
  overflow-x: auto;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #203756;
  border-radius: 8px;
  background: #06162f;
  color: #f6f8fb;
  font-size: 0.92rem;
  line-height: 1.5;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.docs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.docs-card {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 850;
  text-decoration: none;
}

.docs-card:hover {
  border-color: rgba(31, 111, 235, 0.45);
  transform: translateY(-1px);
}

.docs-card span {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.agents-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 36px;
  align-items: start;
}

.url-list {
  display: grid;
  gap: 10px;
}

.url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(31, 111, 235, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.url-row a {
  overflow-wrap: anywhere;
  padding: 4px 6px;
  color: var(--blue);
  text-decoration: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(18px, 4vw, 56px);
  color: var(--muted);
}

.site-footer a {
  font-weight: 800;
  text-decoration: none;
}

.site-footer nav {
  display: flex;
  gap: 16px;
}

.reader-body {
  background: var(--paper);
}

.docs-home-shell {
  display: grid;
  gap: clamp(34px, 6vw, 72px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 72px) clamp(18px, 4vw, 56px) 80px;
}

.docs-hero {
  max-width: 860px;
}

.docs-hero h1 {
  margin-bottom: 18px;
}

.docs-hero p {
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.docs-orientation {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: 28px;
  align-items: start;
}

.docs-orientation-grid,
.docs-group-list {
  display: grid;
  gap: 16px;
}

.docs-orientation-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.docs-orientation article,
.docs-group-card,
.docs-link-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.docs-orientation article {
  min-height: 190px;
  padding: 20px;
}

.docs-orientation article span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
}

.docs-orientation article h3 {
  margin: 10px 0 8px;
}

.docs-orientation article p {
  margin: 0;
  color: var(--muted);
}

.docs-map {
  display: grid;
  gap: 22px;
}

.docs-group-card {
  padding: clamp(18px, 3vw, 26px);
}

.docs-group-card h3 {
  margin-bottom: 16px;
}

.docs-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.docs-link-card {
  display: grid;
  gap: 5px;
  min-height: 96px;
  padding: 14px 16px;
  color: var(--ink);
  text-decoration: none;
}

.docs-link-card:hover {
  border-color: rgba(31, 111, 235, 0.45);
  background: var(--soft);
}

.docs-link-card strong {
  line-height: 1.2;
}

.docs-link-card span {
  color: var(--muted);
  font-size: 0.94rem;
}

.reader-shell {
  display: grid;
  grid-template-columns: minmax(0, 900px);
  align-items: start;
  max-width: 1012px;
  margin: 0 auto;
  padding: 34px clamp(18px, 4vw, 56px) 70px;
}

.markdown-card {
  min-width: 0;
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.doc-meta {
  margin-bottom: 24px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.doc-pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  margin: 0 0 30px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8fb;
}

.markdown-content + .doc-pager {
  margin: 38px 0 0;
}

.doc-pager-link,
.doc-pager-toc {
  min-width: 0;
  border-radius: 8px;
  text-decoration: none;
}

.doc-pager-link {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  color: var(--ink);
}

.doc-pager-link:last-child {
  text-align: right;
}

.doc-pager-link span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.doc-pager-link strong {
  overflow: hidden;
  font-size: 0.94rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-pager-link:hover,
.doc-pager-toc:hover {
  background: var(--soft);
}

.doc-pager-link-disabled {
  color: var(--muted);
  opacity: 0.56;
}

.doc-pager-link-disabled:hover {
  background: transparent;
}

.doc-pager-toc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 850;
}

.markdown-content h1 {
  margin-bottom: 24px;
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  line-height: 0.98;
}

.markdown-content h2 {
  margin-top: 38px;
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.08;
}

.markdown-content h3,
.markdown-content h4 {
  margin-top: 28px;
  margin-bottom: 10px;
}

.markdown-content p,
.markdown-content li {
  color: var(--muted);
  font-size: 1.03rem;
}

.markdown-content a {
  color: var(--blue);
  font-weight: 750;
}

.markdown-content ul {
  padding-left: 1.25rem;
}

.markdown-content li + li {
  margin-top: 8px;
}

.markdown-content code {
  padding: 0.12em 0.32em;
  border-radius: 5px;
  background: #eef4ff;
  color: #0b2a5a;
  font-size: 0.92em;
}

.markdown-content pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

@media (max-width: 940px) {
  .site-header {
    position: sticky;
  }

  .hero,
  .agents-section,
  .docs-orientation,
  .reader-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media img {
    width: 100%;
  }

  .feature-grid,
  .start-layout,
  .docs-grid,
  .docs-orientation-grid,
  .docs-link-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .carousel {
    --carousel-slide-size: min(74vw, 420px);
  }

  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }

  h1 {
    font-size: 2.9rem;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .doc-pager {
    grid-template-columns: 1fr 1fr;
  }

  .doc-pager-toc {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .doc-pager-link {
    grid-row: 2;
  }

  .doc-pager-link strong {
    white-space: normal;
  }

  .docs-home-shell {
    padding-top: 28px;
  }

  .docs-orientation article,
  .docs-link-card {
    min-height: 0;
  }
}
