:root {
  color: #172033;
  background: #f7f8ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

* { box-sizing: border-box; }

body { margin: 0; }
body.vexa-workbench-expanded { overflow: hidden; }

a { color: #5b45ff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: rgba(247, 248, 255, 0.8);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(26, 34, 64, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #172033;
  text-decoration: none;
  font-size: 1.35rem;
}

.brand-icon {
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 auto;
}

.brand span {
  display: inline-block;
}
.nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.nav a {
  color: #4f5872;
  text-decoration: none;
  font-weight: 650;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.nav a:hover { color: #5b45ff; }
.nav a[aria-current="page"] {
  color: #5b45ff;
  background: rgba(91, 69, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(91, 69, 255, 0.18);
}

main { overflow: hidden; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(4rem, 10vw, 8rem) clamp(1rem, 4vw, 4rem) 3rem;
}

.eyebrow { color: #6657ff; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; }

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.04em; color: #11182a; }
h1 { font-size: clamp(3.2rem, 8vw, 6.8rem); margin: 0.4rem 0 1.25rem; }
h2 { font-size: clamp(2rem, 5vw, 3.75rem); margin: 1rem 0; }
h3 { font-size: 1.35rem; margin: 0.6rem 0; }

.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); color: #4f5872; max-width: 62ch; }

.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.82rem 1.2rem;
  background: #5b45ff;
  color: white;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(91, 69, 255, 0.28);
}
.button.secondary { background: white; color: #172033; box-shadow: inset 0 0 0 1px rgba(26, 34, 64, 0.12); }

.section { padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 4rem); }
.section.alt { background: white; }
.section-heading { margin-bottom: 2rem; }
.section > h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-top: 0;
}
.section > h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}
.page-hero {
  padding: clamp(3.5rem, 6vw, 6rem) clamp(1rem, 4vw, 4rem) 2rem;
}
.page-hero p { max-width: 72ch; }

.command_switch {
  color: grey;
}

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.samples-group-heading { font-size: clamp(1.1rem, 2vw, 1.4rem); color: #6657ff; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 800; margin: 2.5rem 0 0.75rem; }
.getting-started-grid { align-items: stretch; }
.getting-started-card {
  display: grid;
  gap: 0.85rem;
}
.step-heading {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}
.step-heading h3 {
  margin: 0;
}
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #5b45ff;
  color: white;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(91, 69, 255, 0.24);
}
.getting-started-card .syntax-block {
  margin-top: 0;
}
.getting-started-card .actions {
  margin-top: 0.25rem;
}
.cli-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.card {
  padding: 1.35rem;
  border-radius: 1.3rem;
  background: white;
  border: 1px solid rgba(26, 34, 64, 0.08);
  box-shadow: 0 18px 55px rgba(28, 36, 71, 0.08);
}
.alt .card { background: #f7f8ff; }
.cli-command-list,
.cli-flag-grid {
  display: grid;
  gap: 1rem;
}
.cli-command-list p,
.cli-flag-grid p {
  margin: 0.45rem 0 0;
  color: #4f5872;
}
.cli-overview code,
.cli-flags code {
  font-size: 0.95rem;
  font-weight: 700;
}

.code-panel, .editor-shell {
  border-radius: 1.5rem;
  background: #15192b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 70px rgba(21, 25, 43, 0.24);
}
.code-panel { overflow: hidden; }
.editor-shell { overflow: visible; }
.panel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  color: #c8d1ff;
  font-size: 0.86rem;
  font-weight: 750;
}
.panel-title::before {
  content: "";
  width: 3.1rem;
  height: 0.95rem;
  flex: 0 0 auto;
  background:
    radial-gradient(circle at 0.47rem 50%, #ff5f57 0 0.37rem, transparent 0.39rem),
    radial-gradient(circle at 1.57rem 50%, #febc2e 0 0.37rem, transparent 0.39rem),
    radial-gradient(circle at 2.67rem 50%, #28c840 0 0.37rem, transparent 0.39rem);
}
.code-panel pre { margin: 0; padding: 1.2rem; overflow: auto; color: #e7ebff; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 0.94em; }
.syntax-block {
  margin: 1rem 0 0;
  padding: 1rem 1.15rem;
  overflow: auto;
  border-radius: 1rem;
  background: #101426;
  color: #e7ebff;
}
.code-panel .syntax-block {
  margin: 0;
  padding: 1.2rem;
  border-radius: 0;
  background: transparent;
}
.syntax-block code {
  display: block;
  color: inherit;
  white-space: pre;
}
.token-comment,
.token-comment-doc {
  color: #7d8cb3;
}
.token-comment-doc {
  color: #8ea8ff;
}
.token-keyword-declaration {
  color: #ff7fbe;
}
.token-keyword-control {
  color: #7fc4ff;
}
.token-string {
  color: #f9b66d;
}
.token-number {
  color: #ffd966;
}
.token-operator {
  color: #c4d0ff;
}
.token-delimiter {
  color: #d9e0ff;
}
.token-tag,
.token-attribute {
  color: #7be0b1;
}
.token-identifier {
  color: #f4f7ff;
}

.editor-demo, .workspace-demo, .workbench-demo {
  display: grid;
  width: 100%;
  min-width: 0;
  height: 420px;
  min-height: 320px;
}
.workspace-demo { height: 560px; }
.workbench-demo { height: 760px; }
.playground-frame-shell {
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(26, 34, 64, 0.12);
  box-shadow: 0 18px 55px rgba(28, 36, 71, 0.08);
  background: #1e1e1e;
}
.playground-frame {
  display: block;
  width: 100%;
  height: min(78vh, 980px);
  min-height: 680px;
  border: 0;
  background: #1e1e1e;
}
.vexa-embed-workspace { display: grid; grid-template-rows: auto 1fr; border-radius: 1.5rem; overflow: visible; }
.vexa-embed-tabs { display: flex; gap: 0.2rem; padding: 0.4rem; background: #101426; border-bottom: 1px solid rgba(255,255,255,0.1); }
.vexa-embed-tab { border: 0; border-radius: 0.7rem; padding: 0.55rem 0.8rem; color: #c8d1ff; background: transparent; cursor: pointer; font-weight: 750; }
.vexa-embed-tab.is-active { background: #242a47; color: white; }
.vexa-embed-editor { min-width: 0; min-height: 0; overflow: visible; }
.vexa-embed-workbench { width: 100%; min-width: 0; }
.vexa-embed-workbench.is-expanded {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  min-height: 100vh;
  z-index: 1000;
  margin: 0;
  padding: 0;
}
.vexa-embed-workbench-shell {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: 100%;
  border-radius: 1.5rem;
  overflow: visible;
  background: #1e1e1e;
}
.vexa-embed-workbench-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0.8rem;
  background: #2d2d2d;
  border-bottom: 1px solid #3e3e3e;
  color: #d4d4d4;
}
.vexa-embed-workbench-title-group { display: flex; gap: 1rem; align-items: baseline; min-width: 0; }
.vexa-embed-workbench-title { font-size: 0.82rem; font-weight: 800; color: #f3f3f3; }
.vexa-embed-workbench-file-name { font-size: 0.75rem; color: #9097ad; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.vexa-embed-workbench-toolbar { display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; position: relative; }
.vexa-embed-toolbar-button,
.vexa-embed-toolbar-icon {
  border: 1px solid #555;
  background: #3c3c3c;
  color: #ccc;
  border-radius: 0.45rem;
  cursor: pointer;
}
.vexa-embed-toolbar-button { padding: 0.25rem 0.55rem; font-size: 0.72rem; }
.vexa-embed-toolbar-button-icon-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.7rem;
  padding: 0;
  font-size: 0.78rem;
}
.vexa-embed-toolbar-button-icon-only i {
  pointer-events: none;
}
.vexa-embed-toolbar-icon { width: 1.8rem; height: 1.7rem; font-size: 0.9rem; }
.vexa-embed-toolbar-button:disabled,
.vexa-embed-toolbar-icon:disabled { opacity: 0.45; cursor: default; }
.vexa-embed-workbench-toolbar-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  display: grid;
  gap: 0.2rem;
  min-width: 11rem;
  padding: 0.35rem;
  border: 1px solid #3f3f46;
  border-radius: 0.6rem;
  background: #1f1f23;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  z-index: 100;
}
.vexa-embed-workbench-toolbar-menu[hidden] {
  display: none;
}
.vexa-embed-workbench-toolbar-menu button {
  width: 100%;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: #d4d4d4;
  text-align: left;
  font-size: 0.78rem;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}
.vexa-embed-workbench-toolbar-menu button:hover {
  background: #094771;
}
.vexa-embed-workbench-toolbar-menu button:disabled {
  color: #777;
  cursor: default;
}
.vexa-embed-workbench-toolbar-menu button:disabled:hover {
  background: transparent;
}
.vexa-embed-workbench-tabs { display: flex; gap: 0.2rem; padding: 0.4rem; background: #252526; border-bottom: 1px solid #323232; overflow-x: auto; }
.vexa-embed-workbench-body { display: grid; grid-template-columns: 260px minmax(0, 1fr) minmax(280px, 360px); min-height: 0; height: 100%; overflow: visible; }
.vexa-embed-workbench-sidebar { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; background: #252526; border-right: 1px solid #323232; }
.vexa-embed-workbench-editor-pane {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
}
.vexa-embed-workbench-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid #323232;
}
.vexa-embed-workbench-sidebar-title { color: #8f8f8f; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.vexa-embed-workbench-sidebar-actions { display: flex; gap: 0.35rem; }
.vexa-embed-workbench-tree { overflow: auto; padding: 0.5rem 0; }
.vexa-embed-tree-row {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
}
.vexa-embed-tree-row:hover { background: #2f2f2f; }
.vexa-embed-tree-row.is-selected,
.vexa-embed-tree-row.is-active { background: #30353a; }
.vexa-embed-tree-disclosure,
.vexa-embed-tree-spacer {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
}
.vexa-embed-tree-disclosure {
  border: 0;
  padding: 0;
  background: transparent;
  color: #bdbdbd;
  cursor: pointer;
}
.vexa-embed-tree-spacer {
  display: inline-block;
}
.vexa-embed-tree-item {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #cccccc;
  text-align: left;
  padding: 0.4rem 0.75rem 0.4rem 0.2rem;
  font-size: 0.82rem;
  cursor: pointer;
}
.vexa-embed-tree-row.is-active .vexa-embed-tree-item { color: #ffffff; }
.vexa-embed-tree-context-menu {
  position: fixed;
  display: grid;
  gap: 0.2rem;
  min-width: 10rem;
  padding: 0.35rem;
  border: 1px solid #3f3f46;
  border-radius: 0.6rem;
  background: #1f1f23;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  z-index: 1200;
}
.vexa-embed-tree-context-menu[hidden] {
  display: none;
}
.vexa-embed-tree-context-menu button {
  width: 100%;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: #d4d4d4;
  text-align: left;
  font-size: 0.78rem;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}
.vexa-embed-tree-context-menu button:hover {
  background: #094771;
}
.vexa-embed-tree-context-menu button:disabled,
.vexa-embed-tree-context-menu button[hidden] {
  display: none;
}
.vexa-embed-workbench-sidebar-toggle {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding-inline: 0.9rem;
  background: rgba(37, 37, 38, 0.96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}
.vexa-embed-workbench-sidebar-toggle[hidden] {
  display: none;
}
.vexa-embed-workbench-sidebar-backdrop {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.22);
}
.vexa-embed-workbench-sidebar-backdrop[hidden] {
  display: none;
}
.vexa-embed-workbench-editor {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.vexa-embed-workbench-runner {
  display: grid;
  grid-template-rows: auto minmax(180px, 1fr);
  min-height: 0;
  background: #181818;
  border-left: 1px solid #323232;
}
.vexa-embed-workbench-runner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid #323232;
}
.vexa-embed-workbench-runner-title {
  color: #d4d4d4;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.vexa-embed-workbench-preview {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #101113;
}

.embed-docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }

.blog-list {
  display: grid;
  gap: 1.5rem;
}

.blog-list .card {
  max-width: 860px;
}

.blog-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  color: #5c6787;
  font-size: 0.95rem;
  font-weight: 700;
}

.blog-meta time {
  color: #6657ff;
}

.blog-summary {
  color: #4f5872;
  max-width: 68ch;
}

.blog-article {
  max-width: 860px;
}

.blog-article p {
  color: #32405f;
}

.site-footer { padding: 2rem clamp(1rem, 4vw, 4rem); color: #6b7287; border-top: 1px solid rgba(26, 34, 64, 0.08); }

.doc-shell {
  padding: 0 clamp(1rem, 4vw, 4rem) clamp(4rem, 8vw, 6rem);
}

.agents-example {
  margin-top: 1.5rem;
}
.agents-example-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.agents-example-title {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
}
.agents-example-intro p {
  margin: 0;
  color: #4f5872;
  max-width: 64ch;
}
.agents-copy-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  margin-top: 0.25rem;
}

.doc-content {
  max-width: 1020px;
  margin: 16px auto;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 1.5rem;
  background: white;
  border: 1px solid rgba(26, 34, 64, 0.08);
  box-shadow: 0 18px 55px rgba(28, 36, 71, 0.08);
}

.doc-content > :first-child { margin-top: 0; }
.doc-content h1,
.doc-content h2,
.doc-content h3 { scroll-margin-top: 6rem; }
.doc-content p,
.doc-content li { color: #32405f; }
table {
  width: 100%;
  margin: 1.6rem 0;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid rgba(26, 34, 64, 0.12);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.98));
  box-shadow: 0 14px 36px rgba(28, 36, 71, 0.08);
}
thead th {
  padding: 0.95rem 1.1rem;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #172033;
  background: linear-gradient(180deg, #f4f6ff, #e9eeff);
  border-bottom: 1px solid rgba(91, 69, 255, 0.18);
}
tbody td {
  padding: 0.95rem 1.1rem;
  vertical-align: top;
  color: #32405f;
  background: rgba(255, 255, 255, 0.9);
}
tbody tr:nth-child(even) td {
  background: rgba(244, 247, 255, 0.9);
}
th + th,
td + td {
  border-left: 1px solid rgba(26, 34, 64, 0.08);
}
tbody tr + tr td {
  border-top: 1px solid rgba(26, 34, 64, 0.08);
}
td code,
th code {
  font-size: 0.92em;
}
@media (max-width: 1100px) {
  .hero, .grid, .embed-docs, .cli-layout { grid-template-columns: 1fr; }
  .site-header { align-items: flex-start; flex-direction: column; }
  .vexa-embed-workbench-body { grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); }
  .vexa-embed-workbench-body.is-compact { position: relative; }
  .vexa-embed-workbench-body.is-compact .vexa-embed-workbench-sidebar {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
    width: min(320px, calc(100% - 1.5rem));
    min-height: 0;
    border-right: 1px solid #323232;
    border-bottom: 0;
    border-radius: 0.9rem;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
    z-index: 40;
    display: none;
    overflow: hidden;
  }
  .vexa-embed-workbench-body.is-compact.is-sidebar-open .vexa-embed-workbench-sidebar {
    display: grid;
  }
  .vexa-embed-workbench-runner {
    min-height: 360px;
    border-left: 0;
    border-top: 1px solid #323232;
  }
}
@media (max-width: 800px) {
  .doc-content table {
    display: block;
    overflow-x: auto;
  }
  .vexa-embed-workbench-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
  }
  .vexa-embed-workbench-shell {
    height: auto;
  }
  .vexa-embed-workbench-editor-pane,
  .vexa-embed-workbench-editor {
    height: min(52dvh, 420px);
    min-height: 320px;
  }
  .vexa-embed-workbench-runner {
    min-height: 320px;
  }
}
