:root {
  --paper: #fff; --ink: #161719; --muted: #62646a; --line: #e1e2e6; --blue: #245bc7;
  --sans: Geist, Inter, "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
code, pre { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.wrap { width: min(1184px, calc(100% - 96px)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: absolute; z-index: 3; top: 8px; left: 8px; background: white; padding: 8px 15px; }
.site-head { border-bottom: 1px solid var(--line); background: #fff; }
.topbar, .brand, .nav-explore, .nav-account, .footer-row, .footer-row > div { display: flex; align-items: center; }
.topbar { height: 68px; gap: 38px; }
.brand { width: max-content; gap: 9px; font: 650 23px/1 var(--sans); letter-spacing: -.065em; color: #111315; white-space: nowrap; }
.brand img { display: block; }
.nav-explore, .nav-account, .footer-row > div { gap: 26px; font-size: 13px; font-weight: 500; }
.nav-explore { color: #4e5055; }
.nav-account { margin-left: auto; gap: 20px; }
.nav-explore a:hover, .nav-login:hover, .footer-row > div a:hover { color: var(--blue); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 0 19px; min-height: 44px; border: 1px solid #171819; border-radius: 7px; background: #191a1c; color: #fff; font-size: 14px; line-height: 1.35; font-weight: 570; white-space: nowrap; transition: background .16s, border-color .16s; }
.button:hover { background: #343639; }
.button.secondary { background: #fff; border-color: #d5d7da; color: #26282a; }
.button.secondary:hover { background: #f5f6f7; border-color: #a9adb3; }
.button.compact { min-height: 33px; padding: 0 14px; font-size: 13px; gap: 6px; }
.button:disabled { cursor: default; opacity: .55; }
.hero { border-bottom: 1px solid var(--line); background: #fafbfc; }
.hero-inner { position: relative; display: grid; grid-template-columns: .97fr 1.03fr; align-items: center; gap: 12px; min-height: 427px; }
.hero-inner::before, .hero-inner::after { content: ''; position: absolute; top: 0; bottom: 0; border-left: 1px solid #e4e7eb; pointer-events: none; }
.hero-inner::before { left: -28px; } .hero-inner::after { right: -28px; }
.hero-copy { padding: 47px 0 52px; position: relative; z-index: 1; }
.hero h1 { font-weight: 680; font-size: clamp(48px, 4.75vw, 70px); letter-spacing: -.067em; line-height: 1.17; color: #151618; }
.hero-period { color: #255bce; }
.hero-copy p { color: #53565d; max-width: 33em; line-height: 1.86; margin-top: 19px; font-size: 15px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin-top: 25px; }
.routing-figure { position: relative; width: 100%; aspect-ratio: 560/327; background-image: radial-gradient(circle, #d1d7df 1px, transparent 1px); background-size: 16px 16px; }
.routing-figure::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, transparent 37%, #fafbfc 78%); pointer-events: none; }
.routing-figure canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.route-tag { visibility: hidden; position: absolute; z-index: 2; transform: translateY(-50%); padding: 1px 5px; border: 1px solid #d4d9e0; background: #fafbfd; color: #44536b; font: 11px/1.4 var(--mono); border-radius: 3px; }
.drawn .route-tag { visibility: visible; }
.route-in { right: 90.6%; top: 59.02%; } .route-model, .route-search, .route-tools { left: 88.9%; }
.route-model { top: 16.51%; } .route-search { top: 50.46%; } .route-tools { top: 79.2%; }
.catalog { padding-block: 43px 62px; }
.catalog-header { display: flex; gap: 24px; justify-content: space-between; align-items: center; }
.catalog-header h2 { font-size: 29px; line-height: 1.35; font-weight: 650; letter-spacing: -.045em; }
.catalog-header p { color: var(--muted); font-size: 14px; margin-top: 5px; }
.catalog-search { display: flex; align-items: center; gap: 10px; width: 230px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.catalog-search:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.catalog-search input { min-width: 0; height: 36px; width: 100%; border: 0; background: transparent; font-size: 13px; outline: none; }
.catalog-search input::placeholder { color: #777b82; }
.lens, .symbol-search::before { height: 12px; width: 12px; border: 1.6px solid currentColor; border-radius: 50%; position: relative; color: #626975; flex: none; }
.lens::after, .symbol-search::after { content: ''; position: absolute; width: 5px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.lens::after { left: 8px; top: 9px; }
.catalog-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin: 20px 0 14px; }
.catalog-filters button { padding: 4px 15px; background: transparent; border: 1px solid transparent; border-radius: 5px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.catalog-filters button[aria-pressed=true] { background: #f0f1f3; color: #181a1d; font-weight: 600; }
.catalog-filters button:hover { color: #141517; background: #f5f6f7; }
.catalog-list { border: 1px solid var(--line); border-radius: 8px; overflow: clip; }
.catalog-labels, .catalog-item { display: grid; align-items: center; grid-template-columns: 1.1fr 1fr .34fr 18px; column-gap: 20px; padding-inline: 20px; }
.catalog-labels { min-height: 36px; background: #f9fafb; font-size: 12px; color: #686b73; }
.catalog-item { position: relative; min-height: 64px; border-top: 1px solid #eceef0; transition: background .15s; }
.catalog-item:hover { background: #f7f9fc; }
.catalog-item:focus-visible { outline-offset: -3px; }
.item-name, .item-endpoint, .route-state { display: flex; align-items: center; }
.item-name { gap: 12px; min-width: 0; }
.item-name strong, .item-name code { display: block; }
.item-name strong { font-size: 14px; font-weight: 620; }
.item-name code { color: #666b73; font-size: 11.5px; line-height: 1.6; }
.tool-symbol { position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid #dfe3e8; background: #f6f7f9; border-radius: 7px; color: #444b55; font: 20px/1 var(--mono); }
.symbol-llm { color: #2759c2; background: #edf3ff; border-color: #dce7fa; }
.symbol-search::before { content: ''; color: inherit; }
.symbol-search::after { transform: translate(6px,6px) rotate(45deg); }
.symbol-fetch { font-size: 13px; font-weight: 600; }
.item-endpoint { gap: 10px; color: #505762; font-size: 12px; }
.verb { color: #59616e; font: 10px/1.5 var(--mono); background: #f6f7f8; border: 1px solid #e0e4e8; border-radius: 3px; padding-inline: 5px; }
.route-state { gap: 7px; font-size: 12px; color: #666d76; white-space: nowrap; }
.route-state i { width: 6px; height: 6px; flex: none; background: #a5aab1; border-radius: 50%; }
.route-state.configured { color: #32614c; } .route-state.configured i { background: #42845d; }
.row-link { color: #6b717b; font-size: 16px; }
.empty-results { text-align: center; padding: 30px 15px; font-size: 14px; color: var(--muted); }
.site-foot { border-top: 1px solid var(--line); }
.footer-row { justify-content: space-between; min-height: 78px; color: var(--muted); }
.foot-brand { font-size: 17px; gap: 7px; }
.simple-page { min-height: 65vh; padding-block: 48px 68px; }
.simple-page h1 { font-size: clamp(32px,4.3vw,50px); letter-spacing: -.055em; font-weight: 640; line-height: 1.2; }
.simple-page > p { color: var(--muted); margin: 14px 0 34px; }
.simple-page p a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.docs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,6vw,85px); }
.docs-grid section { min-width: 0; }
.docs-grid section + section { margin-top: 28px; }
.docs-grid h2 { font-size: 21px; letter-spacing: -.03em; margin-bottom: 12px; }
.docs-grid dl { margin: 0; }
.docs-grid dt { border-top: 1px solid var(--line); padding-top: 12px; scroll-margin-top: 30px; font-size: 14px; }
.docs-grid dt:target { color: var(--blue); }
.docs-grid dd { margin: 5px 0 12px; }
.docs-grid p, .docs-grid dd { color: var(--muted); font-size: 14px; line-height: 1.72; }
.docs-grid p + p { margin-top: 8px; }
.docs-grid pre { background: #f6f7f9; color: #2d3f5a; border: 1px solid var(--line); padding: 15px; border-radius: 6px; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 820px) {
  .wrap { width: calc(100% - 48px); }
  .hero-inner { min-height: 350px; grid-template-columns: 1fr 1fr; }
  .hero-inner::before { left: -14px; } .hero-inner::after { right: -14px; }
  .route-tag { font-size: 9px; }
  .catalog-item, .catalog-labels { grid-template-columns: 1fr 1fr 69px 12px; column-gap: 10px; padding-inline: 14px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 40px); }
  .topbar { height: 59px; gap: 18px; }
  .brand { font-size: 19px; gap: 7px; } .brand img { width: 23px; height: 23px; }
  .nav-explore, .nav-account { gap: 12px; font-size: 12px; }
  .nav-explore a:first-child { display: none; }
  .button.compact { min-height: 30px; padding-inline: 10px; font-size: 12px; }
  .hero-inner { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero-inner::before { left: -12px; } .hero-inner::after { right: -12px; }
  .hero-copy { padding: 36px 3px 3px; }
  .hero h1 { font-size: clamp(42px,11.4vw,62px); }
  .hero-copy p { font-size: 14px; margin-top: 14px; }
  .actions { margin-top: 18px; }
  .actions .button { min-height: 40px; padding-inline: 13px; }
  .routing-figure { width: min(100%,370px); align-self: center; margin-block: 2px 8px; }
  .catalog { padding: 29px 0 40px; }
  .catalog-header { align-items: stretch; flex-direction: column; gap: 15px; }
  .catalog-search { width: 100%; }
  .catalog-header h2 { font-size: 25px; }
  .catalog-filters { margin-block: 13px 10px; }
  .catalog-filters button { padding: 4px 12px; }
  .catalog-item, .catalog-labels { grid-template-columns: minmax(0,1fr) auto 10px; column-gap: 12px; padding-inline: 12px; }
  .catalog-labels span:nth-child(2), .item-endpoint { display: none; }
  .catalog-item { min-height: 60px; } .item-name { gap: 9px; }
  .docs-grid { grid-template-columns: minmax(0,1fr); }
  .simple-page { padding-block: 35px 46px; }
  .footer-row { min-height: 65px; } .footer-row > div { gap: 15px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0s !important; } }
