: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.88);
  backdrop-filter: blur(16px);
  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; }
.nav a:hover { color: #5b45ff; }

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; }
.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.8rem 1rem;
  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.95rem; font-weight: 800; color: #f3f3f3; }
.vexa-embed-workbench-file-name { font-size: 0.85rem; color: #9097ad; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.vexa-embed-workbench-toolbar { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.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.35rem 0.7rem; font-size: 0.78rem; }
.vexa-embed-toolbar-button-icon-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2rem;
  padding: 0;
  font-size: 0.9rem;
}
.vexa-embed-toolbar-button-icon-only i {
  pointer-events: none;
}
.vexa-embed-toolbar-icon { width: 2rem; height: 2rem; font-size: 1rem; }
.vexa-embed-toolbar-button:disabled,
.vexa-embed-toolbar-icon:disabled { opacity: 0.45; cursor: default; }
.vexa-embed-workbench-status { margin-left: 0.5rem; color: #9fdab9; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.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-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-editor { min-width: 0; min-height: 0; overflow: visible; }
.vexa-embed-workbench-runner {
  display: grid;
  grid-template-rows: auto minmax(180px, 1fr) minmax(140px, 220px);
  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%;
  min-height: 0;
  border: 0;
  background: #101113;
}
.vexa-embed-workbench-output {
  margin: 0;
  min-height: 0;
  overflow: auto;
  padding: 0.9rem;
  border-top: 1px solid #323232;
  background: #111214;
  color: #d4d4d4;
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.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);
}

.doc-content {
  max-width: 960px;
  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; }
@media (max-width: 900px) {
  .hero, .grid, .embed-docs, .cli-layout, .vexa-embed-workbench-body { grid-template-columns: 1fr; }
  .site-header { align-items: flex-start; flex-direction: column; }
  .vexa-embed-workbench-sidebar {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid #323232;
  }
  .vexa-embed-workbench-runner {
    min-height: 360px;
    border-left: 0;
    border-top: 1px solid #323232;
  }
}
