/* xenmcp.com — no external fonts or scripts: system fonts only. */
:root {
  --bg: #ffffff;
  --soft: #f3f6fa;
  --ink: #0b1220;
  --text: #262b40;
  --muted: #5b6178;
  --line: #dfe5ee;
  --brand: #0369a1;
  --brand-ink: #ffffff;
  --accent: #0ea5e9;
  --card: #ffffff;
  --code-bg: #111428;
  --code-ink: #dfe3f7;
  --dark-bg: #0b1220;
  --dark-ink: #c9cde3;
  --ok: #047857;
  --ok-bg: #e7f6ef;
  --plan: #6d28d9;
  --plan-bg: #f1ebff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 18, 34, 0.05), 0 8px 24px rgba(15, 18, 34, 0.06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --soft: #111a2c;
    --ink: #f3f4fb;
    --text: #d6d9ea;
    --muted: #9ba1bd;
    --line: #22304a;
    --brand: #38bdf8;
    --brand-ink: #062033;
    --accent: #7dd3fc;
    --card: #121c2f;
    --code-bg: #0a0d1c;
    --dark-bg: #060b15;
    --ok: #6ee7b7;
    --ok-bg: #0f2e25;
    --plan: #c4b5fd;
    --plan-bg: #261d45;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
code { font: 0.9em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 0.1em 0.35em; overflow-wrap: anywhere; }
pre { background: var(--code-bg); color: var(--code-ink); border-radius: 10px; padding: 14px 16px; overflow-x: auto; margin: 0 0 1.2em; }
pre code { background: none; border: 0; padding: 0; color: inherit; font-size: 0.85rem; overflow-wrap: normal; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.narrow { max-width: 800px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 10; }
.icon { width: 24px; height: 24px; flex: none; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--ink); margin: 0; }
.brand-by { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.nav-wide { display: none; align-items: center; gap: 18px; }
.nav-wide a:not(.btn), .nav-narrow nav a:not(.btn) { color: var(--text); text-decoration: none; font-size: 0.95rem; }
.nav-wide a[aria-current="page"] { color: var(--brand); font-weight: 600; }
@media (min-width: 1000px) { .nav-wide { display: flex; } .nav-narrow { display: none; } }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.nav-narrow, .lang { position: relative; }
.nav-narrow summary, .lang summary { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 0.92rem; color: var(--text); }
.lang .icon { width: 18px; height: 18px; }
.nav-narrow nav, .lang ul { position: absolute; right: 0; top: calc(100% + 8px); background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 10px; display: flex; flex-direction: column; gap: 4px; min-width: 220px; margin: 0; list-style: none; }
.nav-narrow nav a, .lang ul a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--text); }
.nav-narrow nav .btn { margin-top: 6px; text-align: center; color: var(--brand-ink); }
.lang ul a[aria-current] { font-weight: 700; color: var(--brand); }

/* Buttons */
.btn { display: inline-block; background: var(--brand); color: var(--brand-ink); border: 0; border-radius: 10px; padding: 12px 20px; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn-sm { padding: 8px 14px; font-size: 0.92rem; }
.btn-ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn-light { background: #fff; color: #0c4a6e; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.4em 0 0.8em; }
.more { font-weight: 650; text-decoration: none; }

/* Sections */
.section { padding: 56px 0; }
.soft { background: var(--soft); }
.dark { background: var(--dark-bg); color: var(--dark-ink); }
.dark h2, .dark h3 { color: #fff; }
.on-dark { color: #7dd3fc; }
.lead { font-size: 1.15rem; color: var(--muted); }
.page-head { padding: 48px 0 8px; }
.split-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 650; color: var(--brand); background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 999px; padding: 4px 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* Hero */
.hero { padding: 56px 0 48px; background: radial-gradient(1200px 400px at 80% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent), radial-gradient(900px 400px at 0% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent); }
.hero-inner { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.15fr 1fr; } }
.demo { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 18px; font-size: 0.93rem; }
.demo-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.demo-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.demo-label { font-weight: 700; color: var(--ink); }
.demo-field { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; }
.demo-field span { font-size: 0.78rem; color: var(--muted); }
.demo-field b { font-weight: 600; overflow-wrap: anywhere; color: var(--ink); }
.demo-ok { display: flex; align-items: center; gap: 8px; color: var(--ok); background: var(--ok-bg); border-radius: 10px; padding: 8px 12px; font-weight: 600; }
.demo-ok .icon, .demo-tool .icon { width: 18px; height: 18px; }
.demo-chat span { display: inline-block; background: var(--soft); border-radius: 14px 14px 14px 4px; padding: 8px 12px; }
.demo-tool { display: flex; align-items: center; gap: 8px; color: var(--muted); margin: 0; }

/* Grids and cards */
.grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .grid.two { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: repeat(2, 1fr); } .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card > .icon, .fact > .icon { color: var(--brand); width: 28px; height: 28px; margin-bottom: 10px; }
.dark .fact > .icon { color: #38bdf8; }
.card p:last-child, .fact p:last-child { margin-bottom: 0; }
.fact { padding: 8px 4px; }

/* Catalog */
.catalog-grid { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
@media (min-width: 640px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .catalog-grid { grid-template-columns: repeat(3, 1fr); } }
.entry-card a { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "icon name badge" "lead lead lead"; gap: 8px 12px; align-items: center; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.entry-card a:hover { border-color: var(--brand); }
.entry-icon { grid-area: icon; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.entry-icon.big { width: 56px; height: 56px; border-radius: 14px; }
.entry-icon.big .icon { width: 30px; height: 30px; }
.entry-name { grid-area: name; font-weight: 700; color: var(--ink); }
.entry-card .badge { grid-area: badge; }
.entry-lead { grid-area: lead; font-size: 0.93rem; color: var(--muted); }
.badge { display: inline-block; font-size: 0.75rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.badge-beta { color: var(--ok); background: var(--ok-bg); }
.badge-planned { color: var(--plan); background: var(--plan-bg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; text-decoration: none; font-size: 0.92rem; }
.entry-title { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.entry-title h1 { margin-bottom: 6px; }
.crumbs { font-size: 0.9rem; color: var(--muted); }
.address { display: flex; flex-direction: column; gap: 4px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.address span { font-size: 0.82rem; color: var(--muted); }
.address code { background: none; border: 0; padding: 0; font-size: 0.95rem; }
.note { background: var(--soft); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 18px 20px; margin: 1.5em 0; }
.note h2 { font-size: 1.2rem; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }

/* Lists */
.ticks, .prompts { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li, .prompts li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.ticks .icon { color: var(--ok); width: 20px; height: 20px; margin-top: 3px; }
.prompts li { background: var(--soft); border-radius: 14px 14px 14px 4px; padding: 10px 14px; }
.prompts .icon { color: var(--brand); width: 20px; height: 20px; margin-top: 3px; }
.tools { margin: 0 0 1.2em; display: grid; gap: 8px; }
.tools div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.tools dt { margin-bottom: 2px; }
.tools dd { margin: 0; color: var(--muted); font-size: 0.95rem; }
.steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 18px; counter-reset: s; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 800; margin-bottom: 10px; }
.guide-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .guide-list { grid-template-columns: repeat(2, 1fr); } }
.guide-card a { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--text); height: 100%; }
.guide-card a:hover { border-color: var(--brand); }
.guide-card .icon { color: var(--brand); margin-top: 2px; }
.guide-card strong { display: block; color: var(--ink); margin-bottom: 4px; }
.guide-card .muted { font-size: 0.93rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 650; color: var(--ink); display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; }

/* Prose (guides, entries) */
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.35em; }
.toc { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 28px; font-size: 0.95rem; }
.toc p { margin: 0 0 6px; }
.toc ol { margin: 0; padding-left: 1.3em; }

/* Pricing */
.price-beta { text-align: center; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 14%, var(--bg)), color-mix(in srgb, var(--accent) 12%, var(--bg))); border: 1px solid var(--line); border-radius: 18px; padding: 32px 20px; margin-bottom: 40px; }
.plan h3 { font-size: 1.3rem; margin-bottom: 2px; }

/* Waitlist form */
.waitlist { display: grid; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; }
.field > span, .field legend { font-weight: 650; color: var(--ink); padding: 0; margin-bottom: 6px; }
.field input, .field select, .field textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
.checks { display: grid; gap: 6px; }
@media (min-width: 640px) { .checks { grid-template-columns: repeat(2, 1fr); } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
.consent { font-size: 0.9rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* CTA and footer */
.cta-band { background: linear-gradient(135deg, #0c4a6e, #0369a1 55%, #0ea5e9); color: #e0f2fe; padding: 56px 0; }
.cta-band h2 { color: #fff; }
.foot { background: var(--dark-bg); color: var(--dark-ink); padding: 48px 0 20px; font-size: 0.93rem; }
.foot a { color: #bae6fd; }
.foot .brand-name { color: #fff; }
.foot h2 { color: #fff; font-size: 1rem; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 6px; }
.foot-inner { display: grid; gap: 28px; }
@media (min-width: 900px) { .foot-inner { grid-template-columns: 1.4fr 1fr 1.2fr 1fr; } }
.legal-line { border-top: 1px solid #22304a; margin-top: 28px; padding-top: 16px; font-size: 0.82rem; color: #8b91ad; }
.legal h2 { font-size: 1.25rem; margin-top: 1.6em; }

/* Prompt boxes (for AI agents page) */
.prompt-box { margin-bottom: 18px; }
.prompt-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.prompt-head h3 { margin: 0; }
.prompt-box pre { white-space: pre-wrap; word-break: break-word; }
.narrow-center { max-width: 760px; margin-left: auto; margin-right: auto; }
.flow { margin: 22px 0; }
