:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --text: #111827;
  --muted: #697586;
  --line: #dfe3e8;
  --accent: #2563d8;
  --dark: #111821;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

button, code, .eyebrow, .aside-kicker, .install-note > span,
.mcp-endpoint-row > span, .mcp-grid, .panel-heading, .mcp-error > span {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", "Courier New", monospace;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(217, 222, 229, 0.9);
  background: rgba(245, 246, 248, 0.94);
  backdrop-filter: blur(14px);
}

.nav-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  width: 132px;
  height: 42px;
  padding: 0;
  overflow: visible;
  background: transparent;
}


.nav nav {
  display: flex;
  align-items: stretch;
  gap: 22px;
}

.nav nav a {
  min-height: 68px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: #75808e;
  font-size: 13px;
  font-weight: 500;
  transition: color 140ms ease, border-color 140ms ease;
}

.nav nav a:hover,
.nav nav a.current {
  color: var(--text);
}

.nav nav a.current { border-bottom-color: var(--accent); }

.nav-links {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 15px;
}

.icon-link {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #788391;
  transition: color 140ms ease, transform 140ms ease;
}

.icon-link svg { width: 18px; height: 18px; }
.icon-link:hover { color: var(--text); transform: translateY(-1px); }

main { min-height: calc(100vh - 69px); }

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 69px);
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 58px 0;
}

.hero-home {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 90px;
}

.hero-copy { max-width: 720px; }

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.hero h1 {
  max-width: 12ch;
  margin: 16px 0 0;
  font-size: clamp(50px, 7vw, 82px);
  line-height: 0.93;
  letter-spacing: -0.06em;
  font-weight: 750;
}

.lead {
  max-width: 60ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 29px;
}

.button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.button.dark { background: var(--dark); color: #fff; }
.button.light { border: 1px solid var(--line); background: var(--panel); }
.button:hover { transform: translateY(-1px); }

.command {
  max-width: 590px;
  margin-top: 19px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--dark);
  color: #edf2f6;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

.command span {
  display: block;
  padding: 8px 11px;
  border-bottom: 1px solid #28333e;
  color: #7c8793;
  font: 9px/1 "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.command code {
  display: block;
  overflow-x: auto;
  padding: 13px 14px;
  font-size: 11px;
  line-height: 1.5;
}

.hero-aside:empty {
  min-height: 220px;
  padding: 0;
  border-left: 0;
}

.hero-aside {
  align-self: center;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.hero-page { grid-template-columns: 1fr; }
.hero-page .hero-copy { max-width: 800px; }
.docs-message { max-width: 720px !important; }

.hero-install {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: 82px;
}

.hero-install .hero-copy { max-width: 700px; }

.install-steps {
  max-width: 700px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.install-step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  min-height: 69px;
  padding: 13px 0;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.install-step > span {
  color: var(--accent);
  font: 10px/1 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.08em;
}

.install-step strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
}

.install-step p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.inline-command {
  width: fit-content;
  max-width: 100%;
  margin-top: 6px;
  padding: 7px 9px;
  overflow-x: auto;
  border-radius: 5px;
  background: #e9edf2;
  color: #27313d;
  font: 10px/1.4 "SFMono-Regular", Consolas, monospace;
  white-space: nowrap;
}

.install-note {
  display: flex;
  gap: 14px;
  margin-top: 19px;
  color: var(--muted);
}

.install-note > span {
  flex: 0 0 auto;
  color: #8b95a1;
  font-size: 9px;
  letter-spacing: 0.12em;
  padding-top: 3px;
}

.install-note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.install-aside {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,0.78);
  box-shadow: var(--shadow);
}

.aside-kicker {
  color: #8b95a1;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.install-aside h2 {
  margin: 13px 0 0;
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.install-aside > p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.endpoint-box {
  margin-top: 20px;
  padding: 13px 14px;
  overflow-x: auto;
  border-radius: 7px;
  background: var(--dark);
  color: #eef3f7;
}

.endpoint-box code {
  font-size: 12px;
  white-space: nowrap;
}

.aside-button { margin-top: 13px; width: 100%; }

.aside-small {
  margin-top: 13px !important;
  font-size: 10px !important;
}

.aside-small code { color: var(--text); }

.mcp-page {
  grid-template-columns: 1fr;
  align-items: start;
  padding-top: 68px;
  padding-bottom: 68px;
}

.mcp-page .hero-copy { max-width: 900px; }
.mcp-page h1 { max-width: 13ch; }

.mcp-endpoint-row {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 760px;
  margin-top: 28px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mcp-endpoint-row > span {
  color: #8b95a1;
  font-size: 9px;
  letter-spacing: 0.13em;
}

.mcp-endpoint-row code {
  overflow-x: auto;
  font-size: 12px;
  white-space: nowrap;
}

.mcp-grid {
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mcp-grid > div {
  min-height: 78px;
  padding: 14px;
  border-right: 1px solid var(--line);
}

.mcp-grid > div:last-child { border-right: 0; }

.mcp-grid span {
  display: block;
  color: #8b95a1;
  font-size: 8px;
  letter-spacing: 0.11em;
}

.mcp-grid strong {
  display: block;
  margin-top: 21px;
  font-size: 12px;
  font-family: Inter, ui-sans-serif, sans-serif;
  font-weight: 650;
}

.mcp-panels {
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}

.mcp-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(17,24,39,0.035);
}

.panel-heading {
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  color: #8b95a1;
  font-size: 8px;
  letter-spacing: 0.11em;
}

.panel-heading button {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 9px;
  cursor: pointer;
}

.mcp-panel pre {
  min-height: 180px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  background: #101720;
  color: #dce5ed;
  font: 10px/1.65 "SFMono-Regular", Consolas, monospace;
}

.mcp-error {
  max-width: 900px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.mcp-error > span {
  color: #8b95a1;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.mcp-error p {
  margin: 9px 0 9px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.mcp-error pre {
  margin: 0;
  overflow-x: auto;
  color: #7c8793;
  font: 9px/1.6 "SFMono-Regular", Consolas, monospace;
  white-space: pre-wrap;
}

@media (max-width: 900px) {
  .hero-home { gap: 55px; }
  .hero-install { grid-template-columns: 1fr; gap: 42px; }
  .install-aside { max-width: 700px; }
  .mcp-panels { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-inner {
    grid-template-columns: 1fr auto;
    min-height: 60px;
  }

  .nav nav {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-bottom: 8px;
    overflow-x: auto;
  }

  .nav nav a { min-height: auto; }

  .brand { grid-column: 1; grid-row: 1; }
  .nav-links { grid-column: 2; grid-row: 1; }

  .hero {
    min-height: calc(100vh - 61px);
    padding: 45px 0;
  }

  .hero-home {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-aside:empty { display: none; }

  .mcp-grid { grid-template-columns: 1fr 1fr; }
  .mcp-grid > div:nth-child(2) { border-right: 0; }
  .mcp-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}


/* Viewport-fit pages */
html, body { height: 100%; overflow: hidden; }
main { height: calc(100vh - 69px); min-height: 0; overflow: hidden; }
.hero { height: 100%; min-height: 0; }

.brand {
  width: 132px;
  height: 42px;
  padding: 0;
  background: transparent;
}

.hero-install {
  padding-top: 38px;
  padding-bottom: 38px;
  gap: 62px;
}
.install-steps { margin-top: 23px; }
.install-step {
  min-height: 0;
  padding: 10px 0;
}
.install-command {
  max-width: 590px;
  margin-top: 7px;
}
.install-command code { padding: 10px 12px; }
.endpoint-group { margin-top: 16px; }
.endpoint-group > span {
  display: block;
  margin-bottom: 6px;
  color: #8b95a1;
  font: 8px/1 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.12em;
}
.endpoint-group + .endpoint-group { margin-top: 12px; }
.endpoint-box { margin-top: 0; padding: 11px 12px; }
.endpoint-box code { font-size: 10px; }
.install-aside > p { margin-top: 8px; }
.aside-small { line-height: 1.45 !important; }

.mcp-page {
  padding-top: 38px;
  padding-bottom: 38px;
}
.mcp-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}
.mcp-title-row h1 { margin-bottom: 0; }
.mcp-refresh {
  flex: 0 0 auto;
  min-height: 36px;
}
.mcp-page .lead { margin-top: 18px; max-width: 76ch; }
.mcp-endpoint-row { margin-top: 20px; padding: 10px 0; }
.mcp-grid { margin-top: 14px; }
.mcp-grid > div { min-height: 64px; padding: 11px 12px; }
.mcp-grid strong { margin-top: 13px; }
.mcp-panels { margin-top: 14px; gap: 10px; }
.mcp-panel pre { min-height: 138px; max-height: 150px; padding: 11px; }
.mcp-live-error {
  max-width: 900px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}
.mcp-live-error pre {
  max-height: 72px;
  margin: 0;
  padding: 10px 12px;
  overflow: auto;
  background: #101720;
  color: #dce5ed;
  font: 9px/1.5 "SFMono-Regular", Consolas, monospace;
  white-space: pre-wrap;
}

@media (max-width: 820px) {
  html, body { overflow: auto; }
  main { height: auto; min-height: calc(100vh - 61px); overflow: visible; }
  .hero { height: auto; min-height: calc(100vh - 61px); }
}

.brand {
  width: 168px;
  height: 48px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  overflow: visible;
  background: transparent;
  color: #fff;
}

.brand-mark {
  display: block;
  line-height: .9;
  white-space: nowrap;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.085em;
}

.brand-free,
.brand-way {
  display: inline-block;
  margin: 0;
  font-size: 40px;
  line-height: .9;
  vertical-align: baseline;
}

.brand-free { color: #111827; }
.brand-way {
  color: transparent;
  -webkit-text-stroke: 1.9px #111827;
  text-stroke: 1.9px #111827;
  margin-left: 0.02em;
}

@media (max-width: 560px) {
  .nav-inner, .hero { width: min(100% - 28px, 1180px); }
  .brand { width: 150px; height: 42px; padding: 0; }
  .brand-free, .brand-way { font-size: 22px; }
  .brand-way { -webkit-text-stroke-width: 1.1px; }

  .nav nav { gap: 17px; }
  .nav nav a { font-size: 12px; }

  .hero h1 { font-size: 47px; }
  .lead { font-size: 15px; }

  .install-aside { padding: 20px; }
  .install-note { align-items: flex-start; }

  .mcp-endpoint-row { display: block; }
  .mcp-endpoint-row code { display: block; margin-top: 8px; }
  .mcp-grid { grid-template-columns: 1fr; }
  .mcp-grid > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .mcp-grid > div:last-child { border-bottom: 0; }
}
