:root {
  color-scheme: light;
  --ink: #050912;
  --muted: #667085;
  --soft: #f5f7fb;
  --surface: #ffffff;
  --line: #dde3ee;
  --line-strong: #c8d0de;
  --blue: #155dfc;
  --cyan: #00a5c7;
  --green: #0c9b63;
  --max: 1180px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(21, 93, 252, 0.08), transparent 42%),
    radial-gradient(circle at 85% 10%, rgba(0, 165, 199, 0.12), transparent 26%),
    #fff;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(190px, 1fr);
  gap: 28px;
  align-items: center;
  min-height: 72px;
  padding: 14px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(221, 227, 238, 0.86);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.header-actions,
.hero__actions,
.hero__metrics,
.panel-toolbar,
.request-line {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background-image: url("./image.png");
  background-repeat: no-repeat;
  background-position: 16% 51%;
  background-size: 250px auto;
}

.brand__name {
  overflow: hidden;
  font-size: 1rem;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav {
  gap: 22px;
  justify-content: center;
  color: #424c5f;
  font-size: 0.93rem;
  font-weight: 720;
}

.nav a,
.ghost-link,
.button {
  text-decoration: none;
}

.nav a:hover,
.ghost-link:hover {
  color: var(--blue);
}

.header-actions {
  gap: 12px;
  justify-content: flex-end;
}

.language-switcher {
  position: relative;
}

.language-trigger {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.language-trigger:hover,
.language-trigger[aria-expanded="true"] {
  border-color: var(--line);
  background: var(--soft);
}

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

.language-trigger__label {
  min-width: 18px;
  color: #344054;
  font-size: 0.76rem;
  font-weight: 860;
  line-height: 1;
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: grid;
  width: 178px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 44px rgba(5, 9, 18, 0.16);
}

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

.language-menu button {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  color: var(--ink);
  text-align: start;
  cursor: pointer;
}

.language-menu button:last-child {
  border-bottom: 0;
}

.language-menu button:hover,
.language-menu button.is-active {
  background: #f8fbff;
}

.language-menu button span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 24px;
  border-radius: 6px;
  background: #eef2f7;
  color: #344054;
  font-size: 0.78rem;
  font-weight: 840;
}

.language-menu button strong {
  overflow: hidden;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ghost-link {
  color: #424c5f;
  font-size: 0.92rem;
  font-weight: 760;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-weight: 820;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
  box-shadow: 0 12px 28px rgba(21, 93, 252, 0.18);
}

.button--secondary {
  background: white;
}

.button--small {
  min-height: 36px;
  padding: 0 13px;
  font-size: 0.88rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.86fr);
  gap: 36px;
  align-items: center;
  min-height: auto;
  padding: 42px max(24px, calc((100vw - var(--max)) / 2)) 40px;
}

.hero__copy {
  max-width: 620px;
}

.kicker,
.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 860;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 18ch;
  margin: 0;
  font-size: 2.34rem;
  line-height: 1.08;
}

h2 {
  margin: 0;
  font-size: 1.48rem;
  line-height: 1.2;
}

.hero__lead {
  max-width: 610px;
  margin: 16px 0 0;
  color: #344054;
  font-size: 0.98rem;
  line-height: 1.56;
}

.hero__actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero__metrics {
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero__metrics span {
  display: inline-flex;
  gap: 7px;
  align-items: baseline;
}

.hero__metrics strong {
  color: var(--ink);
}

.router-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 34px 90px rgba(5, 9, 18, 0.12);
}

.panel-toolbar {
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: #344054;
  font-size: 0.9rem;
  font-weight: 760;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(12, 155, 99, 0.12);
}

.toolbar-id {
  margin-left: auto;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.8rem;
}

.request-line {
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfcff;
}

.request-line span {
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(21, 93, 252, 0.1);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 860;
}

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

.request-line code {
  color: #111827;
  font-size: 0.92rem;
}

.route-stack {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.route-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  background: white;
  text-decoration: none;
}

.route-step > span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 820;
}

.route-step.is-active > span {
  border-color: rgba(21, 93, 252, 0.38);
  background: rgba(21, 93, 252, 0.08);
  color: var(--blue);
}

.route-step strong {
  display: block;
  font-size: 0.98rem;
}

.route-step p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.route-step b {
  color: #344054;
  font-size: 0.82rem;
}

.section {
  padding: 56px max(24px, calc((100vw - var(--max)) / 2));
}

.section__lead {
  max-width: 640px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.section__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.5fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 22px;
}

.search-shell {
  display: grid;
  gap: 8px;
}

.search-shell span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 820;
  text-transform: uppercase;
}

.search-shell input {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.model-market,
.enterprise-market {
  border-block: 1px solid var(--line);
  background: var(--soft);
}

.model-table,
.workload-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.model-row,
.workload-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(170px, 0.9fr) 120px 130px;
  gap: 18px;
  align-items: center;
  min-height: 74px;
  padding: 0 18px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: background 160ms ease;
}

.model-row:hover,
.workload-row:hover {
  background: #f8fbff;
}

.model-row--head,
.workload-row--head {
  min-height: 42px;
  border-top: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 860;
  text-transform: uppercase;
}

.model-row strong,
.model-row small,
.workload-row strong,
.workload-row small {
  display: block;
}

.model-row small,
.workload-row small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.8rem;
}

.state {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef2f7;
  color: #42526a;
  font-size: 0.78rem;
  font-weight: 820;
}

.state--good {
  background: rgba(12, 155, 99, 0.1);
  color: var(--green);
}

.channel-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr 0.9fr;
  gap: 1px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.channel-card {
  display: grid;
  gap: 10px;
  min-height: 168px;
  padding: 24px;
  background: white;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.channel-card:hover {
  background: #f8fbff;
  transform: translateY(-1px);
}

.channel-card strong,
.channel-card small {
  display: block;
}

.channel-card small {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.channel-card__status {
  width: fit-content;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 860;
  text-transform: uppercase;
}

.provider-section,
.control-section {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(360px, 0.8fr);
  gap: 52px;
  align-items: center;
}

.provider-section p,
.control-section p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.provider-grid,
.control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.provider-grid div,
.control-grid div {
  min-height: 142px;
  padding: 22px;
  background: white;
}

.provider-grid strong,
.provider-grid span,
.control-grid strong,
.control-grid span {
  display: block;
}

.provider-grid span,
.control-grid span {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.docs-channel {
  background: #fbfcff;
}

.docs-channel__header {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.5fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 30px;
}

.docs-channel__header p {
  max-width: 660px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.docs-meta {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.docs-meta span {
  display: grid;
  gap: 7px;
  min-height: 72px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.docs-meta span:last-child {
  border-bottom: 0;
}

.docs-meta strong {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.docs-meta code,
.docs-meta em {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 760;
}

.docs-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.docs-nav {
  position: sticky;
  top: 96px;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.docs-nav a {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: #42526a;
  font-size: 0.9rem;
  font-weight: 780;
  text-decoration: none;
}

.docs-nav a:last-child {
  border-bottom: 0;
}

.docs-nav a:hover,
.docs-nav a.is-active {
  background: #f2f6ff;
  color: var(--blue);
}

.docs-article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.doc-step {
  display: grid;
  gap: 20px;
  padding: 26px;
  border-bottom: 1px solid var(--line);
}

.doc-step:last-child {
  border-bottom: 0;
}

.doc-step__copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.doc-step__copy > span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(21, 93, 252, 0.28);
  border-radius: 8px;
  background: rgba(21, 93, 252, 0.08);
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 840;
}

.doc-step h3 {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.24;
}

.doc-step p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.doc-callout,
.doc-frameworks {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.doc-callout strong {
  color: var(--ink);
}

.doc-callout span,
.doc-frameworks span {
  color: var(--muted);
  line-height: 1.5;
}

.doc-callout a {
  color: var(--blue);
  font-weight: 820;
}

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

.doc-frameworks span {
  padding-left: 12px;
  border-left: 2px solid rgba(21, 93, 252, 0.28);
}

.pricing-section,
.reliability-section {
  border-block: 1px solid var(--line);
  background: #0b1020;
  color: white;
}

.pricing-section .eyebrow,
.reliability-section .eyebrow {
  color: #7bb8ff;
}

.pricing-strip,
.reliability-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
}

.pricing-strip > span,
.reliability-strip > span {
  min-height: 126px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.pricing-strip strong,
.reliability-strip strong {
  display: block;
  margin-bottom: 8px;
  color: white;
}

.code-block {
  overflow: auto;
  min-height: 280px;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080c16;
  color: #d7e4ff;
  font-size: 0.86rem;
  line-height: 1.7;
}

.code-block--compact {
  min-height: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px max(24px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

[dir="rtl"] .site-header,
[dir="rtl"] .hero,
[dir="rtl"] .section,
[dir="rtl"] .site-footer {
  direction: rtl;
}

[dir="rtl"] .toolbar-id {
  margin-right: auto;
  margin-left: 0;
}

[dir="rtl"] .language-menu {
  right: auto;
  left: 0;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 14px;
    position: static;
  }

  .nav,
  .header-actions {
    justify-content: space-between;
  }

  .hero,
  .section__header,
  .channel-grid,
  .provider-section,
  .control-section,
  .docs-channel,
  .docs-channel__header,
  .docs-layout,
  .doc-frameworks {
    grid-template-columns: 1fr;
  }

  .docs-nav {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  }

  .docs-nav a {
    border-right: 1px solid var(--line);
    border-bottom: 0;
    text-align: center;
  }

  .docs-nav a:last-child {
    border-right: 0;
  }

  .hero {
    min-height: 0;
    padding-top: 36px;
  }

  h1 {
    font-size: 2.05rem;
  }

  .model-row,
  .workload-row {
    grid-template-columns: minmax(200px, 1fr) 150px 100px 110px;
    min-width: 760px;
  }

  .model-table,
  .workload-table {
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .section,
  .site-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .brand__mark {
    width: 40px;
    height: 40px;
    background-size: 230px auto;
  }

  .nav {
    gap: 12px;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  .header-actions {
    display: flex;
    justify-content: space-between;
  }

  .language-menu {
    right: auto;
    left: 0;
  }

  .ghost-link {
    display: none;
  }

  h1 {
    font-size: 1.72rem;
  }

  h2 {
    font-size: 1.24rem;
  }

  .hero__lead {
    font-size: 0.96rem;
  }

  .button {
    width: 100%;
  }

  .hero__actions,
  .site-footer {
    flex-direction: column;
  }

  .router-panel {
    margin-top: 4px;
  }

  .route-step {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .route-step b {
    grid-column: 2;
  }

  .channel-grid,
  .provider-grid,
  .control-grid,
  .pricing-strip,
  .reliability-strip {
    grid-template-columns: 1fr;
  }

  .docs-nav {
    overflow-x: auto;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  }

  .doc-step {
    padding: 20px;
  }

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