:root {
  color-scheme: light;

  --surface: #ffffff;
  --surface-2: #f7f7f8;
  --text: #111114;
  --muted: #5b5b66;
  --border: color-mix(in oklab, #111114 12%, transparent);
  --accent: #0a84ff;
  --accent-strong: #0068d7;

  --content-max: clamp(960px, 94vw, 1440px);
  --content-pad: clamp(16px, 2.4vw, 42px);
  --radius: 12px;

  --font-ui: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --surface: #0c0c0f;
    --surface-2: #14141a;
    --text: #f2f2f5;
    --muted: #a3a3b3;
    --border: color-mix(in oklab, #f2f2f5 14%, transparent);
    --accent: #49a6ff;
    --accent-strong: #80c0ff;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.35;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in oklab, var(--text) 38%, transparent);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

code,
pre {
  font-family: var(--font-mono);
}

code {
  border-radius: 4px;
  padding: 0.1em 0.28em;
  background: color-mix(in oklab, var(--surface-2) 82%, var(--text) 5%);
  font-size: 0.92em;
}

pre {
  margin: 1rem 0 0;
  overflow-x: auto;
  white-space: pre;
}

pre code {
  padding: 0;
  background: transparent;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

::selection {
  background: color-mix(in oklab, var(--text) 18%, transparent);
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 1rem;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 86%, transparent);
  backdrop-filter: blur(10px);
}

.site-header-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(14px, 1.8vw, 20px) var(--content-pad);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 1.25rem;
  aspect-ratio: 1;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 3px var(--surface),
    inset 0 0 0 4.5px currentColor;
}

nav {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

nav a {
  margin: -4px -6px;
  padding: 4px 6px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

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

main {
  width: 100%;
  overflow: hidden;
}

.hero,
.section {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--content-pad);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: min(760px, calc(100svh - 61px));
  padding-block: clamp(56px, 8vw, 110px);
}

.hero h1,
.section h2 {
  margin: 0;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}

.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
}

.section h2 {
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  opacity: 0.62;
  text-transform: uppercase;
}

.lede {
  max-width: 64ch;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  width: fit-content;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

.button:hover {
  background: color-mix(in oklab, var(--surface) 70%, var(--surface-2));
}

.button.primary {
  border-color: var(--text);
  background: var(--text);
  color: var(--surface);
}

.button.primary:hover {
  background: color-mix(in oklab, var(--text) 88%, var(--surface));
}

.button.secondary {
  background: color-mix(in oklab, var(--surface-2) 80%, transparent);
}

.hero-meta,
.master-values {
  margin: 0;
  display: grid;
  font-family: var(--font-ui);
}

.hero-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.hero-meta div,
.master-values div {
  min-width: 0;
}

.hero-meta dt,
.master-values dt {
  margin: 0 0 3px;
  color: var(--text);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  opacity: 0.48;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.hero-meta dd,
.master-values dd {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.35;
  opacity: 0.78;
  overflow-wrap: anywhere;
}

.hero-shot,
.shot-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.hero-shot img {
  width: 100%;
}

.section {
  padding-block: clamp(56px, 7vw, 96px);
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 72ch;
  margin-bottom: clamp(24px, 3.5vw, 42px);
}

.section-heading .eyebrow {
  margin-bottom: -2px;
}

.section-heading > p:last-child,
.split > div > p {
  max-width: 66ch;
  margin: 0;
  color: color-mix(in oklab, var(--text) 92%, var(--muted));
  font-size: 1.02rem;
  line-height: 1.65;
}

.section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.shot-grid {
  display: grid;
  align-items: start;
  gap: clamp(18px, 2vw, 28px);
}

.shot-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shot-card img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  background: var(--surface-2);
}

.mcp-status-shot img {
  padding:
    clamp(18px, 3vw, 32px)
    clamp(18px, 3vw, 32px)
    clamp(32px, 5vw, 56px)
    clamp(32px, 5vw, 56px);
}

.shot-card figcaption {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.shot-card.wide {
  max-width: 1180px;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.split > div {
  display: grid;
  align-content: start;
  gap: 12px;
}

.split > div .eyebrow {
  margin: 0 0 -2px;
}

.master-values {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.master-values dd {
  display: flex;
  align-items: baseline;
  gap: 0.4em;
}

.master-values strong {
  font-size: inherit;
  font-variant-numeric: tabular-nums;
}

.master-values small {
  color: var(--muted);
  font-size: inherit;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 18px);
}

.option-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: clamp(14px, 2vw, 18px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-2);
}

.option-grid h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 720;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.option-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.install-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: clamp(18px, 2.5vw, 28px);
}

.install-option.recommended {
  border-color: color-mix(in oklab, var(--accent) 48%, var(--border));
  background: color-mix(in oklab, var(--accent) 7%, var(--surface-2));
}

.option-grid .install-label {
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 720;
  letter-spacing: 0.04em;
  line-height: 1.25;
  opacity: 0.58;
  text-transform: uppercase;
}

.install-options a {
  text-underline-offset: 0.18em;
}

.install-finish {
  max-width: 72ch;
  margin: 0 0 clamp(24px, 3.5vw, 42px);
  color: color-mix(in oklab, var(--text) 92%, var(--muted));
  font-size: 1.02rem;
  line-height: 1.65;
}

.centered-link {
  margin: 24px 0 0;
  font-weight: 650;
}

.mcp-section {
  max-width: var(--content-max);
}

.terminal-card {
  min-width: 0;
  padding: clamp(14px, 2vw, 18px);
  border: 1px solid color-mix(in oklab, #f2f2f5 14%, transparent);
  border-radius: 16px;
  background: #0c0c0f;
  color: #f2f2f5;
}

.terminal-card h3 {
  margin: 0;
  color: #f2f2f5;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.terminal-card p {
  margin: 12px 0 0;
  color: #c8c8d2;
  font-size: 0.94rem;
  line-height: 1.55;
}

.terminal-card p strong {
  color: #f2f2f5;
}

.terminal-card pre {
  margin: 16px 0 0;
  padding: 14px;
  border: 1px solid color-mix(in oklab, #f2f2f5 14%, transparent);
  border-radius: 8px;
  background: #15151c;
  color: #f2f2f5;
  font-size: 0.88rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.terminal-card code {
  background: color-mix(in oklab, #f2f2f5 10%, transparent);
}

.terminal-card pre code {
  background: transparent;
}

.terminal-top {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.terminal-top span {
  width: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ff5f57;
}

.terminal-top span:nth-child(2) {
  background: #febc2e;
}

.terminal-top span:nth-child(3) {
  background: #28c840;
}

.client-tabs {
  margin-top: clamp(24px, 3.5vw, 42px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-2);
}

.tab-list {
  display: flex;
  gap: 2px;
  padding: 6px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
}

.tab-list button {
  appearance: none;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 650;
  cursor: pointer;
}

.tab-list button:hover {
  color: var(--text);
}

.tab-list button[aria-selected="true"] {
  background: var(--text);
  color: var(--surface);
}

[role="tabpanel"] {
  padding: clamp(14px, 2vw, 18px);
}

[role="tabpanel"] p {
  color: var(--muted);
}

.notice {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-left: 2px solid var(--text);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

footer {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 24px var(--content-pad) clamp(32px, 5vw, 56px);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

footer p {
  margin: 0;
}

.not-found {
  min-height: 70vh;
}

.not-found h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.not-found p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .shot-grid.two,
  .option-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .site-header-inner {
    align-items: center;
  }

  nav {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-meta {
    grid-template-columns: 1fr 1fr;
  }

  .shot-grid.two,
  .option-grid {
    grid-template-columns: 1fr;
  }

  .actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
