@charset "UTF-8";
:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --line: #e2e6ec;
  --muted: #657184;
  --ink: #19232f;
  --violet: #6f55ad;
  --cyan: #237d79;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans:
    "Inter", "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 6px;
}
::selection {
  background: #dceaf8;
  color: var(--ink);
}
img,
svg {
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -0.045em;
}
p {
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
html:not([data-lang="zh"]) .zh,
html[data-lang="zh"] .en {
  display: none !important;
}
html[data-lang="zh"] h1,
html[data-lang="zh"] h2 {
  letter-spacing: -0.025em;
}
html[data-lang="zh"] h1 {
  line-height: 1.25;
}
.js-only {
  display: none;
}
.js .js-only {
  display: inline-flex;
}
.wrap {
  width: min(1220px, calc(100% - 96px));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  background: var(--cyan);
  padding: 8px 16px;
  color: var(--bg);
}
.skip-link:focus {
  top: 12px;
}
/* Compact product chrome: Canvas controls and Bench's 48px single-row layout. */
.site-header,
.site-footer {
  --chrome-ink: #37352f;
  --chrome-muted: #787774;
  --chrome-line: #e9e9e7;
  --chrome-accent: #2383e2;
  --chrome-soft: #e7f3fc;
  color-scheme: light;
  color: var(--chrome-ink);
  background: #fff;
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--chrome-line);
}
.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  height: 48px;
  align-items: center;
  gap: 16px;
}
.brand,
.header-actions,
.header-nav {
  display: flex;
  align-items: center;
}
.brand {
  gap: 8px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand img {
  display: block;
  width: 24px;
  height: 24px;
}
.header-nav {
  justify-self: end;
  gap: 8px;
}
.header-actions {
  justify-self: end;
  gap: 12px;
}
.nav-guide {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 6px;
  background: transparent;
  color: var(--chrome-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-guide:hover {
  background: #f5f6f7;
  color: var(--chrome-ink);
}
.site-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 6px rgb(15 23 42 / 6%);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.15;
  white-space: nowrap;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.site-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgb(15 23 42 / 10%);
}
.site-link-logo {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  /* Assets have their own frames; leave room and never clip their corners. */
  overflow: visible;
}
.site-link-logo img,
.site-link-logo svg {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.report-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid var(--chrome-line);
  border-radius: 6px;
  color: var(--chrome-muted);
  font-size: 12px;
  white-space: nowrap;
}
.report-link svg {
  color: #d45a56;
}
.report-link:hover {
  color: var(--chrome-ink);
  background: #f7f7f5;
}
.nav-source {
  display: grid;
  place-items: center;
  width: 28px;
  height: 32px;
  color: var(--chrome-muted);
}
.nav-source:hover {
  color: var(--chrome-ink);
}
.lang-switch {
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #131c28;
  cursor: pointer;
  line-height: 1;
  box-shadow: none;
  text-decoration: none;
  transition:
    color 0.15s ease,
    transform 0.15s ease,
    opacity 0.15s ease;
}
.lang-switch:hover {
  color: #3d4756;
  transform: scale(1.06);
  text-decoration: none;
}
.lang-switch:active {
  transform: scale(0.96);
}
@media (max-width: 40rem) {
  .lang-switch {
    width: 2.35rem;
    height: 2.35rem;
  }
}
.site-header :focus-visible,
.site-footer :focus-visible {
  outline: 2px solid var(--chrome-accent);
  outline-offset: 3px;
}
@media (max-width: 1180px) {
  .site-link {
    gap: 0;
    padding: 4px;
  }
  .site-link-label {
    display: none;
  }
  .report-link {
    display: none;
  }
  .header-actions {
    gap: 8px;
  }
}
@media (max-width: 560px) {
  .site-header .header-inner {
    width: calc(100% - 16px);
    gap: 6px;
  }
  .brand > span {
    display: none;
  }
  .header-nav,
  .header-actions {
    gap: 4px;
  }
  .nav-guide {
    width: 30px;
    padding: 0;
    justify-content: center;
  }
  .nav-guide > span {
    display: none;
  }
}
.site-footer {
  border-top: 1px solid var(--chrome-line);
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 20px 0 14px;
}
.footer-copyright {
  color: var(--chrome-muted);
  font-size: 12px;
  white-space: nowrap;
}
.footer-copyright > span {
  padding: 0 6px;
}
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  color: var(--chrome-muted);
  font-size: 12px;
}
.footer-links a:hover {
  color: var(--chrome-ink);
}
.footer-analytics {
  font: 11px/1.5 var(--mono);
  font-variant-numeric: tabular-nums;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}
.footer-analytics strong {
  font-weight: 400;
}
.footer-notice {
  padding-bottom: 18px;
  color: var(--chrome-muted);
  font-size: 10px;
  line-height: 1.6;
}
@media (max-width: 880px) {
  .footer-row {
    flex-wrap: wrap;
  }
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background: #e9f5ef;
  color: #246448;
  border: 1px solid #b7d8d1;
  border-radius: 8px;
  font-size: 13px;
  z-index: 80;
  box-shadow: 0 8px 40px #2539561a;
}
.noscript {
  margin: 20px auto;
  color: #695983;
  font-size: 12px;
}
.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid #d9e1eb;
  border-radius: 4px;
  background: #f5f7fa;
  color: #5b6a7d;
  font: 11px/1.5 var(--mono);
}
.copy-button:hover {
  color: var(--ink);
  border-color: #a390c6;
}
.copy-button svg {
  width: 12px;
  height: 12px;
}
pre {
  font: 12px/1.85 var(--mono);
  tab-size: 4;
  overflow: auto;
  margin: 0;
  color: #304258;
  scrollbar-width: thin;
  scrollbar-color: #b6c3d3 transparent;
}
code {
  font-family: var(--mono);
}
pre .kw {
  color: #7744a5;
}
pre .str {
  color: #1a7563;
}
pre .num {
  color: #986224;
}
pre .comment {
  color: #63748a;
}
/* Single-column content: the landing page is a short front door to the repo. */
.page {
  width: min(760px, calc(100% - 40px));
  margin-inline: auto;
  padding: 72px 0 96px;
}
/* Landing hero: two-line headline beside the architecture illustration. */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 76px 0 0;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at 77% 28%, #8071c60c, transparent 46%),
    radial-gradient(ellipse at 95% 65%, #237d7908, transparent 45%);
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1.13fr;
  gap: 30px;
  align-items: center;
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding-bottom: 36px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cyan);
  font: 11px/1.5 var(--mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--cyan);
  box-shadow: 0 0 14px #72e7d370;
}
.hero h1 {
  margin: 24px 0;
  font-size: clamp(56px, 5.5vw, 78px);
  line-height: 1.06;
}
.gradient-text {
  display: block;
  background: linear-gradient(100deg, #52638e 2%, #516aac 47%, #237d79 95%);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}
.hero-description {
  max-width: 470px;
  font-size: 17px;
  line-height: 1.8;
}
.hero-description strong {
  color: #283748;
  font-weight: 500;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 12px 20px;
  border: 1px solid #d4dce6;
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 550;
  transition:
    background 0.2s,
    transform 0.2s,
    border-color 0.2s;
}
.button:hover {
  border-color: #a9b9ca;
  background: #eef2f7;
  transform: translateY(-2px);
}
.button.primary {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 26px #237d7910;
  color: #ffffff;
}
.button.primary:hover {
  background: #19655f;
}
.button:disabled {
  opacity: 0.6;
  cursor: default;
}
.hero-note {
  margin-top: 24px;
  color: #657184;
  font: 11px/1.7 var(--mono);
  letter-spacing: 0.025em;
}
.hero-note span + span::before {
  content: "/";
  padding: 0 10px;
  color: #9ba6b3;
}
.hero-visual {
  position: relative;
  min-width: 0;
  margin-top: -20px;
  margin-right: -35px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 6% 8%;
  border: 1px solid #6f55ad0c;
  border-radius: 50%;
  box-shadow: 0 0 100px #8474b508;
  transform: rotate(-20deg);
}
.hero-visual img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}
.diagram-label {
  margin-right: 34px;
  color: #627086;
  font: 10px/1.7 var(--mono);
  text-align: right;
}
.hero-baseline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 61px;
  padding: 25px 0;
  border-top: 1px solid var(--line);
  color: #627086;
  font: 10px/1.4 var(--mono);
  letter-spacing: 0.12em;
}
.hero-baseline .capabilities {
  display: flex;
  gap: 30px;
  color: #46556a;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.hero-baseline .capabilities span::before {
  content: "+";
  padding-right: 10px;
  color: var(--violet);
}
/* Content under the hero shares its left edge, in a readable column. */
.hero + .page {
  width: min(1220px, calc(100% - 96px));
  padding-top: 0;
}
.hero + .page > section {
  max-width: 860px;
}
.hero + .page > .block:first-child {
  margin-top: 40px;
  padding-top: 0;
  border-top: 0;
}
.lead {
  margin-top: 18px;
  max-width: 660px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.55;
}
.block {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.block h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
}
.block > p,
.note {
  margin-top: 10px;
}
.note {
  font-size: 14px;
}
.page a:not(.button) {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: #9fcbc7;
  text-underline-offset: 3px;
}
.page p code,
.page li code {
  padding: 1px 5px;
  border-radius: 4px;
  background: #eceff4;
  color: var(--ink);
  font-size: 0.9em;
}
.compare {
  width: 100%;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  font-size: 14px;
  line-height: 1.55;
}
.compare th,
.compare td {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.compare thead th,
.compare thead td {
  border-top: 0;
  background: #f1f3f6;
  font-size: 14px;
}
.compare tbody th {
  width: 24%;
  color: var(--ink);
  font-weight: 600;
}
.compare td {
  width: 38%;
  color: var(--muted);
}
.compare thead th:nth-child(2),
.compare tbody td:nth-of-type(1) {
  background: #f2f8f7;
  color: var(--ink);
}
.compare thead th:nth-child(2) {
  color: var(--cyan);
}
.compare code {
  padding: 1px 4px;
  border-radius: 4px;
  background: #eceff4;
  color: var(--ink);
  font-size: 0.88em;
  white-space: nowrap;
}
.code {
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px 7px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 12px/1.5 var(--mono);
}
.code pre {
  padding: 16px;
  font-size: 13px;
  line-height: 1.75;
}
.links {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.links li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.links li span:last-child {
  color: var(--muted);
  font-size: 14px;
}
/* Ecosystem: external projects, five columns so the section fits one screen. */
.hero + .page > .ecosystem {
  max-width: none;
  padding-top: 16px;
}
.ecosystem > p {
  margin-top: 4px;
}
.block.ecosystem h3 {
  margin-top: 20px;
  color: var(--muted);
  font: 600 11px/1.6 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.block.ecosystem h3 .count {
  margin-left: 6px;
  color: #9ba6b3;
}
.eco {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px 24px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.eco li {
  min-width: 0;
  padding-left: 10px;
  border-left: 2px solid var(--line);
}
.eco li:hover {
  border-left-color: var(--cyan);
}
.page .eco a,
.eco li > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page .eco a {
  color: var(--ink);
  font: 600 12.5px/1.4 var(--mono);
  text-decoration: none;
}
.page .eco a:hover {
  color: var(--cyan);
}
.eco li > span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
@media (max-width: 1100px) {
  .eco {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .eco {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .eco {
    grid-template-columns: 1fr;
  }
}
/* Guide: the full documentation page. */
.page.guide {
  width: min(860px, calc(100% - 40px));
}
.guide-head h1 {
  font-size: clamp(36px, 5vw, 48px);
}
.toc ol {
  columns: 2;
  column-gap: 32px;
  margin: 24px 0 0;
  padding: 16px 20px 16px 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 14px;
  line-height: 1.9;
}
.toc li {
  break-inside: avoid;
  color: var(--muted);
}
.block h3 {
  margin-top: 28px;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.block h3 + p {
  margin-top: 6px;
}
.block > p + p,
.block > .code + p,
.block > .doc-table + p,
.block > .bullets + p {
  margin-top: 12px;
}
.bullets {
  margin: 14px 0 0;
  padding-left: 20px;
}
.bullets li + li {
  margin-top: 6px;
}
.doc-table {
  width: 100%;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  font-size: 14px;
  line-height: 1.55;
}
.doc-table th,
.doc-table td {
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.doc-table thead th {
  border-top: 0;
  background: #f1f3f6;
}
.doc-table tr.group th {
  background: #f7f8fa;
  color: var(--muted);
  font: 600 11px/1.6 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.doc-table td:first-child code {
  white-space: nowrap;
}
.doc-table code,
.bullets code {
  padding: 1px 4px;
  border-radius: 4px;
  background: #eceff4;
  color: var(--ink);
  font-size: 0.88em;
}
.figure {
  margin: 18px 0 0;
}
.figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
/* Document pages (privacy). */
.doc h1 {
  font-size: clamp(32px, 5vw, 44px);
}
.doc h2 {
  margin-top: 44px;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.doc ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}
.doc li + li {
  margin-top: 8px;
}
.doc h2 + p,
.doc ul + p,
.doc p + p {
  margin-top: 12px;
}
.doc .button {
  margin-top: 16px;
}
@media (max-width: 1100px) {
  .wrap,
  .hero + .page {
    width: calc(100% - 64px);
  }
}
@media (max-width: 640px) {
  .wrap,
  .hero + .page {
    width: calc(100% - 40px);
  }
  .page {
    padding: 44px 0 72px;
  }
  .lead {
    font-size: 17px;
  }
  .block {
    margin-top: 48px;
  }
  /* Phones: each comparison row becomes a small card with labelled cells. */
  .toc ol {
    columns: 1;
  }
  .doc-table {
    display: block;
    overflow-x: auto;
  }
  .compare thead {
    display: none;
  }
  .compare,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td {
    display: block;
    width: auto;
  }
  .compare tr + tr {
    border-top: 1px solid var(--line);
  }
  .compare tbody th {
    width: auto;
    padding-bottom: 2px;
    border-top: 0;
  }
  .compare td {
    padding-top: 6px;
    padding-bottom: 8px;
    border-top: 0;
  }
  .compare td:last-child {
    padding-bottom: 14px;
  }
  .compare td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font: 600 11px/1.6 var(--mono);
  }
}
@media (min-width: 1500px) {
  .hero {
    padding-top: 124px;
    padding-bottom: 12px;
  }
  .hero-baseline {
    margin-top: 85px;
  }
}
@media (max-width: 1100px) {
  .hero {
    padding-top: 73px;
  }
  .hero h1 {
    font-size: 59px;
  }
  .hero-visual {
    margin-right: -20px;
  }
  .hero-content {
    gap: 15px;
    grid-template-columns: 1fr 1fr;
  }
  .hero-description {
    font-size: 15px;
  }
}
@media (max-width: 860px) {
  .hero {
    padding-top: 65px;
  }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-copy {
    max-width: 670px;
    padding-bottom: 0;
  }
  .hero h1 {
    font-size: 76px;
  }
  .hero-description {
    max-width: 580px;
    font-size: 17px;
  }
  .hero-visual {
    width: 100%;
    max-width: 620px;
    margin: 15px auto -15px;
  }
  .hero-baseline {
    margin-top: 30px;
  }
  .hero-baseline > span {
    display: none;
  }
  .hero-baseline .capabilities {
    justify-content: space-between;
    width: 100%;
  }
}
@media (max-width: 560px) {
  .hero {
    padding-top: 53px;
  }
  .hero h1 {
    margin: 23px 0;
    font-size: clamp(48px, 12.5vw, 68px);
  }
  .hero-description {
    font-size: 15px;
  }
  .hero-note {
    font-size: 10px;
  }
  .hero-note span + span::before {
    padding: 0 7px;
  }
  .hero-visual {
    width: 100%;
    margin: 22px 0 0;
  }
  .diagram-label {
    margin-right: 0;
    font-size: 9px;
  }
  .hero-baseline {
    margin-top: 26px;
    padding: 21px 0;
  }
  .hero-baseline .capabilities {
    gap: 12px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
