/* Palette, faces and scale come from /assets/brand.css, linked first.
   --bg, --panel, --line and --muted are exported by the core as aliases, so
   the rules below inherit the token set without being renamed. */
:root {
  /* Local aliases. --violet and --blue are left to the core: this site uses
     them for ambient blobs and a gradient, which want the real accent rather
     than the lighter value that body text needs. */
  --white: var(--ink);
  --cyan: var(--violet-2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(95, 70, 196, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 70, 196, 0.045) 1px, transparent 1px),
    var(--bg);
  background-size: 52px 52px;
  color: var(--white);
  /* Face and scale come from the core; only the size is local. */
  font-size: 16px;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.ambient {
  position: fixed;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .14;
  pointer-events: none;
}
.ambient-one { top: -300px; right: -130px; background: var(--blue); }
.ambient-two { top: 500px; left: -420px; background: var(--violet); }
header, main, footer { position: relative; z-index: 1; }
header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  padding: 0 28px;
  margin: auto;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 34px; height: 34px; }
.brand span { display: flex; align-items: baseline; gap: 9px; }
.brand b { font-size: 19px; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: 9px; letter-spacing: .19em; }
nav { display: flex; align-items: center; gap: 28px; color: var(--ink); font-size: 14px; }
nav a:hover, footer a:hover { color: white; }
/* The core supplies .button. This site's markup says `button primary` rather
   than `button button-primary`, so the primary treatment is mapped onto that
   selector instead of being redefined. The previous rules were a 9px-radius
   pill with a gradient fill, which is the opposite of the square, accent-spine
   control the rest of the brand uses. */
/* The core's bare .button carries a transparent border because it is always
   paired with a variant. This site uses `class="button"` on its own, so the
   secondary treatment is what an unqualified button should get here. */
.button:not(.primary) { background: transparent; border-color: var(--rule-strong); color: var(--ink); }
.button:not(.primary):hover { border-color: var(--ink-3); }
.button.primary {
  background: var(--action); color: var(--action-fg);
  border-color: var(--action-edge);
  border-left: 3px solid var(--action-spine);
  padding-left: 29px;
}
.button.primary:hover { background: var(--action-hover); border-left-color: var(--violet-2); }
.button.ghost { height: 40px; min-height: 40px; padding-inline: 20px; }
main { max-width: 1184px; margin: auto; padding: 0 28px; }
.hero { max-width: 840px; padding: 118px 0 106px; }
.eyebrow, .label {
  color: var(--violet-text);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .18em;
}
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rule);
  box-shadow: 0 0 14px var(--ink-3);
}
h1 {
  margin: 25px 0 23px;
  font-size: clamp(56px, 8vw, 94px);
  line-height: .98;
  letter-spacing: -.065em;
}
h1 span {
  color: transparent;
  background: linear-gradient(110deg, var(--violet-2), var(--violet-3));
  background-clip: text;
  -webkit-background-clip: text;
}
.hero > p {
  max-width: 730px;
  margin: 0;
  color: var(--ink);
  font-size: 20px;
}
.actions { display: flex; gap: 12px; margin-top: 35px; }
.endpoint {
  display: grid;
  grid-template-columns: 1fr auto;
  max-width: 700px;
  margin-top: 55px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(13, 13, 18, .72);
  overflow: hidden;
}
.endpoint span {
  grid-column: 1 / -1;
  padding: 13px 18px 5px;
  color: var(--ink-3);
  font-size: 9px;
  letter-spacing: .18em;
}
.endpoint code { padding: 7px 18px 16px; color: var(--violet-text); font-size: 14px; overflow: auto; }
.endpoint button {
  margin: 3px 8px 8px 0;
  border: 0;
  background: transparent;
  color: var(--violet-text);
  cursor: pointer;
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  backdrop-filter: blur(16px);
}
.principles article { padding: 34px; }
.principles article + article { border-left: 1px solid var(--line); }
.principles span { color: var(--violet-text); font: 600 12px ui-monospace, monospace; }
h2 { margin: 8px 0 10px; font-size: 27px; letter-spacing: -.035em; }
.principles p, .section-copy p, .boundary p, .section-copy li { color: var(--muted); margin: 0; }
.architecture {
  margin: 80px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(13, 13, 18, .72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}
.architecture a { display: block; overflow-x: auto; }
.architecture img { display: block; width: 100%; min-width: 700px; height: auto; }
.architecture figcaption {
  padding: 13px 18px 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.architecture a:focus-visible { outline: 2px solid var(--cyan); outline-offset: -3px; }
.tools, .code-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
  padding: 120px 0;
  align-items: start;
}
.section-copy h2 { max-width: 420px; font-size: 43px; line-height: 1.1; }
.tool-list { border-top: 1px solid var(--line); }
.tool-list article {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  padding: 20px 2px;
  border-bottom: 1px solid var(--line);
}
.tool-list code { color: var(--violet-text); }
.tool-list p { margin: 0; color: var(--muted); }
.boundary {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
  padding: 55px;
  border: 1px solid rgba(125, 104, 255, .29);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(90, 63, 199, .13), rgba(112, 72, 207, .12));
}
.boundary h2 { margin-bottom: 0; font-size: 39px; }
.boundary p { font-size: 18px; }
.section-copy ol { padding-left: 19px; }
.section-copy li { padding: 5px 0 5px 8px; }
pre {
  position: relative;
  margin: 0;
  padding: 29px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .24);
  overflow: auto;
}
pre::before {
  content: "MCP CLIENT CONFIGURATION";
  display: block;
  margin-bottom: 20px;
  color: var(--ink-3);
  font: 600 9px ui-monospace, monospace;
  letter-spacing: .15em;
}
pre code { color: var(--violet-text); font: 13px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; }
footer {
  max-width: 1240px;
  margin: auto;
  padding: 36px 28px 55px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer > div { display: flex; gap: 24px; color: var(--muted); font-size: 13px; }

@media (max-width: 820px) {
  header nav > a:not(.button) { display: none; }
  .hero { padding: 85px 0; }
  .hero > p { font-size: 18px; }
  .principles, .tools, .boundary, .code-section { grid-template-columns: 1fr; }
  .principles article + article { border-left: 0; border-top: 1px solid var(--line); }
  .tools, .code-section { gap: 42px; padding: 85px 0; }
  .boundary { gap: 18px; padding: 32px; }
  footer { align-items: flex-start; gap: 35px; }
  footer > div { flex-wrap: wrap; }
}

@media (max-width: 540px) {
  header, main, footer { padding-left: 18px; padding-right: 18px; }
  .brand small { display: none; }
  h1 { font-size: 52px; }
  .actions { flex-direction: column; align-items: stretch; }
  .endpoint { grid-template-columns: minmax(0, 1fr) auto; }
  .tool-list article { grid-template-columns: 1fr; gap: 4px; }
  footer { flex-direction: column; }
}
