/* mcpfinder.dev homepage */
:root {
  --bg: #0A0A0A;
  --surface: #111111;
  --surface-2: #161616;
  --line: #242424;
  --text: #EDEDED;
  --muted: #8A8A8A;
  --faint: #808080;
  --accent: #D4FF00;
  --warn: #FFB020;
  --ok: #7CDB8A;
  --string: #C8E87A;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --pad: 24px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-color: var(--faint); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
code, pre, kbd { font-family: var(--mono); }
p code, dd code, li code, td code {
  font-size: .86em; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--bg); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--mono); }
.eyebrow {
  font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 15px/1 var(--sans); padding: 12px 18px; border-radius: 4px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: #E3FF4D; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line); }
.btn-secondary:hover { border-color: #3A3A3A; background: var(--surface); }
.btn-sm { font-size: 14px; padding: 8px 12px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10; height: 64px;
  background: rgba(10, 10, 10, .85); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.brand svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.nav-links { display: flex; gap: 28px; font-size: 14px; }
.nav-links a { color: var(--muted); text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; gap: 8px; }
coderai-apps {
  --coderai-apps-font: "Geist", system-ui, sans-serif; --coderai-apps-button-height: 37px;
  --coderai-apps-button-radius: 4px; --coderai-apps-button-font-size: 14px;
  --coderai-apps-bg: var(--surface); --coderai-apps-border: var(--line); --coderai-apps-focus: var(--accent);
}

/* Hero */
.hero { position: relative; padding: 88px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, #151515 1px, transparent 1px),
    linear-gradient(to bottom, #151515 1px, transparent 1px);
  background-size: 40px 40px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 20%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 30% 20%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
.hero-grid > * { min-width: 0; }
.hero h1 {
  font-size: clamp(42px, 5.2vw, 72px); font-weight: 600; letter-spacing: -.04em; line-height: 1.02;
  max-width: 12ch; text-wrap: balance;
}
.hero .eyebrow { text-transform: none; letter-spacing: .02em; }
.lede { color: var(--muted); max-width: 52ch; margin-top: 24px; text-wrap: pretty; }
.lede strong, .lede #snapshot-server-count { color: var(--text); font-weight: 500; }
.cmd {
  margin-top: 32px; max-width: 460px; display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  padding: 6px 6px 6px 16px; font: 400 14px/1.6 var(--mono);
}
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; cursor: pointer; }
.cmd .prompt { color: var(--faint); user-select: none; margin-right: 10px; }
.copy {
  flex: none; font: 500 12px/1 var(--mono); color: var(--muted); background: transparent;
  border: 1px solid var(--line); border-radius: 4px; padding: 7px 10px; cursor: pointer;
  transition: color .15s, border-color .15s;
}
.copy:hover { color: var(--text); border-color: #3A3A3A; }
.copy.copied { color: var(--accent); border-color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* Session transcript */
.session {
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  font-size: 15px; align-self: start; min-width: 0; box-shadow: 0 24px 64px -24px rgba(0,0,0,.8);
}
.session-head, .code-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; align-items: center;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
  font: 400 12px/1.5 var(--mono); color: var(--muted);
}
.session-head span:last-child { color: var(--faint); }
.session-body { padding: 20px 20px 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.turn { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0 12px; }
.turn .who { font: 400 12px/1.9 var(--mono); color: var(--faint); }
.turn p { line-height: 1.55; }
.turn.assistant p { color: #CFCFCF; }
.call { font: 400 13px/1.6 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.call .fn { color: var(--accent); }
.call .fn::before { content: "→"; margin-right: 8px; }
.call .res { color: var(--faint); margin-top: 2px; }
.checks {
  margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 18px;
  font: 400 12.5px/1.6 var(--mono); color: var(--muted);
}
.checks .ok::first-letter { color: var(--ok); }
.checks .warn { color: var(--warn); }
.snippet {
  margin-top: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 4px;
  padding: 10px 12px; font: 400 12.5px/1.6 var(--mono); color: var(--faint); white-space: pre-wrap; overflow-wrap: anywhere;
}

/* Code syntax */
.k { color: var(--text); }
.s { color: var(--string); }
.p { color: var(--muted); }

/* Clients strip */
.clients { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; padding-top: 22px; padding-bottom: 22px; font-size: 15px; }
.clients .label { font: 400 12px/1 var(--mono); color: var(--muted); letter-spacing: .02em; margin-right: 8px; }

/* Sections */
.section { padding: 112px 0; border-top: 1px solid var(--line); }
.clients + .section { border-top: 0; }
.section h2 {
  font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -.025em; line-height: 1.1;
  max-width: 22ch; text-wrap: balance;
}
.section-head { margin-bottom: 56px; }
.section-head .lede { max-width: 60ch; margin-top: 18px; }

/* Steps */
.steps { border-top: 1px solid var(--line); }
.step {
  display: grid; grid-template-columns: 220px minmax(0, 1fr) 340px; gap: 40px;
  padding: 36px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.step-id { font: 400 13px/1.7 var(--mono); }
.step-id .n { display: block; color: var(--faint); }
.step-id .tool { color: var(--accent); }
.step h3 { font-size: 20px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.step p { color: var(--muted); margin-top: 8px; max-width: 52ch; }
.excerpt {
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  padding: 14px 16px; font: 400 12.5px/1.7 var(--mono); color: var(--muted);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.footnote { margin-top: 28px; color: var(--muted); font-size: 15px; max-width: 72ch; }

/* Trust signals */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.defs { border-top: 1px solid var(--line); }
.defs > div { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.defs dt { font: 500 14px/1.5 var(--mono); color: var(--text); }
.defs dd { color: var(--muted); font-size: 16px; max-width: 54ch; }
.flags > div { grid-template-columns: 230px minmax(0, 1fr); gap: 4px 24px; padding: 16px 0; align-items: baseline; }
.flags dt { color: var(--warn); font-size: 13px; font-weight: 400; overflow-wrap: anywhere; }
.col-label { font: 400 12px/1 var(--mono); color: var(--faint); margin-bottom: 14px; letter-spacing: .02em; }

/* Install tabs */
.tablist { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tablist[hidden] { display: none; }
.tablist button {
  font: 500 14px/1 var(--sans); color: var(--muted); background: none; border: 0;
  padding: 12px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; cursor: pointer;
}
.tablist button:hover { color: var(--text); }
.tablist button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.panel + .panel { margin-top: 32px; }
.js .panel + .panel { margin-top: 0; }
.panel-title { font-weight: 600; margin-bottom: 12px; }
.js .panel-title { display: none; }
.code { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; max-width: 820px; }
.code-head { padding: 8px 8px 8px 16px; }
.code-head .path { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code pre {
  margin: 0; padding: 18px 20px; overflow-x: auto;
  font: 400 13.5px/1.6 var(--mono); color: var(--text); cursor: pointer;
}
.after { color: var(--muted); font-size: 15px; margin-top: 14px; max-width: 72ch; }
.try { margin-top: 56px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.try .col-label { margin: 6px 0 0; }
.try ul { display: flex; flex-wrap: wrap; gap: 10px 32px; font-size: 18px; letter-spacing: -.01em; }
.try li { color: var(--text); }
.codex { margin-top: 24px; color: var(--muted); font-size: 15px; }

/* Data */
.data-copy p { color: var(--muted); max-width: 56ch; }
.data-copy p + p { margin-top: 18px; }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; align-self: start; }
.facts .live { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--line); font: 400 12px/1 var(--mono); color: var(--muted); }
.facts .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.facts dl > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); align-items: baseline; }
.facts dl > div:last-child { border-bottom: 0; }
.facts dt { font: 400 12px/1.5 var(--mono); color: var(--muted); }
.facts dd { font-size: 15px; overflow-wrap: anywhere; }
.facts dd.big { font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.facts dd a { font: 400 13px/1.5 var(--mono); }

/* Compare */
.table-scroll { overflow-x: auto; border-top: 1px solid var(--line); }
table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 16px 20px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font: 400 12px/1.4 var(--mono); color: var(--muted); padding-top: 18px; padding-bottom: 18px; }
thead th.us { color: var(--accent); }
tbody th { font-weight: 500; color: var(--text); width: 22%; }
tbody td { color: var(--muted); }
tbody td.us { color: var(--text); }
.caption { margin-top: 24px; color: var(--muted); font-size: 15px; max-width: 72ch; }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px;
  padding: 22px 0; font-size: 18px; font-weight: 500; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 20px/1.2 var(--mono); color: var(--faint); flex: none; }
.faq details[open] summary::after { content: "−"; color: var(--accent); }
.faq summary:hover::after { color: var(--text); }
.faq details p { color: var(--muted); padding: 0 48px 24px 0; max-width: 68ch; }

/* Guides */
.guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; border-top: 1px solid var(--line); }
.guides a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.guides strong { font-weight: 500; }
.guides span { grid-column: 1; color: var(--muted); font-size: 15px; }
.guides a::after { content: "→"; grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--faint); transition: color .15s, transform .15s; }
.guides a:hover::after { color: var(--accent); transform: translateX(3px); }
.guides a:hover strong { color: #fff; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 88px 0 40px; }
.closing { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px 40px; padding-bottom: 72px; border-bottom: 1px solid var(--line); }
.closing h2 { font-size: 28px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; max-width: 20ch; }
.closing-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.closing .cmd { margin-top: 0; width: 360px; max-width: 100%; }
.cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding: 56px 0; font-size: 15px; }
.cols h3 { font: 400 12px/1 var(--mono); color: var(--faint); letter-spacing: .02em; margin-bottom: 18px; }
.cols p { color: var(--muted); max-width: 40ch; }
.cols li + li { margin-top: 10px; }
.cols a { color: var(--muted); text-decoration: none; }
.cols a:hover { color: var(--text); }
.cols p a { color: var(--text); text-decoration: underline; text-decoration-color: var(--faint); }
.cols li span { color: var(--faint); }
.bottom { font: 400 12px/1.6 var(--mono); color: var(--faint); padding-top: 24px; border-top: 1px solid var(--line); }

/* Responsive */
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
}
@media (max-width: 1100px) {
  .step { grid-template-columns: 180px minmax(0, 1fr); }
  .step .excerpt { grid-column: 2; }
}
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .cols { grid-template-columns: 1fr 1fr; }
  .guides { grid-template-columns: minmax(0, 1fr); }
  .try { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .section { padding: 72px 0; }
  .hero { padding: 56px 0 64px; }
  .section-head { margin-bottom: 40px; }
  .step { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 28px 0; }
  .step .excerpt { grid-column: auto; }
  .step-id .n { display: inline; margin-right: 10px; }
  .flags > div { grid-template-columns: minmax(0, 1fr); }
  .facts dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .footer { padding-top: 64px; }
  .closing { padding-bottom: 56px; }
  .try ul { flex-direction: column; font-size: 17px; }
}
@media (max-width: 480px) {
  :root { --pad: 16px; }
  .brand { font-size: 16px; }
  .nav-cta .btn-sm { padding: 7px 10px; }
  .nav .wrap { gap: 12px; }
  .turn { grid-template-columns: minmax(0, 1fr); }
  .session-body { padding: 16px; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .faq details p { padding-right: 0; }
  .tablist { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tablist button { white-space: nowrap; }
}
@media (max-width: 400px) {
  .nav .wrap { gap: 8px; }
  .nav-cta { gap: 6px; }
  .nav-cta > a[href*="github.com"] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
