/* LECS/Claude - 06/11/2026 - estilo do portal Developers (pagina inicial + manual do MCP).
   Paleta do site www.gluocrm.com.br (laranja #FC3C04, cinzas, azul-marinho) e fontes Poppins/Roboto.
   Sem dependencias: substitui Bootstrap 4, jQuery e particles.js. */

:root {
  /* Cores do site www.gluocrm.com.br (globais do Elementor) */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f6f8;
  --sunken: #f4f6f8;
  --border: #dde2e7;
  --border-strong: #c9d0d7;
  --text: #333333;
  --text-2: #5b5f64;
  --muted: #7c7c7c;
  --primary: #fc3c04;
  --primary-2: #fc6c04;
  --primary-hover: #e03400;
  --primary-text: #d83400;
  --primary-soft: #fff3ef;
  --primary-soft-2: #ffe9e3;
  --on-primary: #ffffff;
  --focus: rgba(252, 60, 4, 0.32);
  --warn-bg: #fff6e5;
  --warn-border: #f5cf8a;
  --warn-text: #7a4b00;
  --danger-text: #c62828;
  --code-bg: #131936;
  --code-bar: #1c244b;
  --code-fg: #e6e8f0;
  --code-muted: #8d93ad;
  --code-key: #8ec5ff;
  --code-str: #ffb38a;
  --code-num: #ffd27a;
  --header-bg: rgba(255, 255, 255, 0.9);
  --shadow: 0 1px 2px rgba(28, 36, 75, 0.05), 0 8px 24px -12px rgba(28, 36, 75, 0.16);
  --shadow-lg: 0 2px 4px rgba(28, 36, 75, 0.05), 0 24px 48px -20px rgba(28, 36, 75, 0.26);
  --g-navy: #1c244b;

  --font-sans: "Roboto", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Poppins", "Roboto", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r-sm: 3px;
  --r-md: 5px;
  --r-lg: 10px;
  --r-xl: 14px;
  --max: 1180px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
}

/* LECS/Claude - 06/11/2026 - tema claro e o padrao; escuro so quando o usuario escolhe no botao */
:root[data-theme="dark"] {
  --bg: #0f1430; --surface: #161d3d; --surface-2: #1a2246; --sunken: #0b1028;
  --border: #2a3360; --border-strong: #3a4475;
  --text: #f1f2f6; --text-2: #c5c9d8; --muted: #8d93ad;
  --primary: #ff5a26; --primary-2: #ff7a2e; --primary-hover: #ff6d3d; --primary-text: #ff8a5c;
  --primary-soft: #2a1d2a; --primary-soft-2: #3d2430; --on-primary: #ffffff;
  --focus: rgba(255, 90, 38, 0.45);
  --warn-bg: #33281a; --warn-border: #6b5228; --warn-text: #ffd68a;
  --danger-text: #ff8a80;
  --code-bg: #0b1028; --code-bar: #131936;
  --header-bg: rgba(15, 20, 48, 0.85);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 48px -20px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
h1, h2, h3, h4, .brand-name { font-family: var(--font-head); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary-text); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
code, kbd, pre { font-family: var(--font-mono); font-size: 0.88em; }
:not(pre) > code {
  background: var(--sunken);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.05em 0.35em;
  color: var(--text);
  overflow-wrap: anywhere;
}
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 8px 14px; border-radius: var(--r-md); }
.skip:focus { top: 12px; }

/* Faixa com as cores do logotipo */
.brand-stripe {
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

/* ---------- Topo ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand img { height: 32px; width: auto; }
.brand-sep { width: 1px; height: 22px; background: var(--border-strong); }
.brand-name { font-weight: 500; font-size: 15px; }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 11px;
  border-radius: var(--r-md);
}
.site-nav a:hover { background: var(--sunken); color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--primary-text); background: var(--primary-soft); }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  flex-shrink: 0;
}
.icon-btn:hover { color: var(--text); background: var(--sunken); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.menu-toggle { display: none; }

@media (max-width: 820px) {
  .menu-toggle { display: inline-grid; }
  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 12px; font-size: 15px; }
  .theme-toggle { margin-left: auto; }
}
@media (max-width: 420px) {
  .brand-sep, .brand-name { display: none; }
}

/* ---------- Botoes ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 500;
  font-size: 14.5px;
  line-height: 1.2;
  padding: 10px 16px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.15s, color 0.15s;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary { background: linear-gradient(90deg, var(--primary), var(--primary-2)); color: var(--on-primary); }
.btn-primary:hover { background: linear-gradient(90deg, var(--primary-hover), var(--primary)); color: var(--on-primary); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--sunken); color: var(--text); }
.btn-lg { padding: 12px 20px; font-size: 15px; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn:active { transform: translateY(0.5px); }

/* ---------- Selos ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 600 11px/1.4 var(--font-mono);
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  white-space: nowrap;
}
.badge-primary { background: var(--primary-soft); border-color: var(--primary-soft-2); color: var(--primary-text); }
.badge-new { background: linear-gradient(90deg, var(--primary), var(--primary-2)); border-color: transparent; color: #fff; font-family: var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; font-size: 10.5px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: var(--primary-soft);
  border: 1px solid var(--primary-soft-2);
  border-radius: 999px;
  padding: 4px 12px 4px 5px;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.eyebrow:hover { color: var(--text); border-color: var(--border-strong); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 80px; }
.hero::before {
  /* manchas suaves em laranja (substitui o particles.js) */
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  background:
    radial-gradient(38% 42% at 10% 15%, color-mix(in srgb, var(--primary-2) 12%, transparent), transparent 70%),
    radial-gradient(34% 40% at 92% 10%, color-mix(in srgb, var(--primary) 9%, transparent), transparent 70%),
    radial-gradient(40% 40% at 70% 90%, color-mix(in srgb, var(--g-navy) 6%, transparent), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(color-mix(in oklch, var(--text) 9%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
  z-index: -1;
}
.hero { isolation: isolate; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 20px 0 18px;
  font-weight: 400;
  text-wrap: balance;
}
.hero h1 .hl {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede { font-size: 18px; line-height: 1.55; color: var(--text-2); margin: 0 0 28px; max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--muted); }
.hero-facts li { display: flex; align-items: center; gap: 7px; }
.hero-facts svg { width: 15px; height: 15px; color: var(--primary); }

/* Janela de codigo */
.code-window {
  background: var(--code-bg);
  color: var(--code-fg);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid oklch(1 0 0 / 0.06);
  overflow: hidden;
  min-width: 0;
}
.code-window .bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--code-bar); border-bottom: 1px solid oklch(1 0 0 / 0.06); }
.code-window .dot { width: 10px; height: 10px; border-radius: 50%; }
.code-window .dot:nth-child(1) { background: #ff5f57; }
.code-window .dot:nth-child(2) { background: #febc2e; }
.code-window .dot:nth-child(3) { background: #28c840; }
.code-window .title { margin-left: 8px; font: 500 12px var(--font-mono); color: var(--code-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-window pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-size: 12.5px; line-height: 1.7; }
.code-window .divider { border-top: 1px dashed oklch(1 0 0 / 0.1); }
.k { color: var(--code-key); }
.s { color: var(--code-str); }
.n { color: var(--code-num); }
.c { color: var(--code-muted); }
.m { color: #7ee787; font-weight: 600; }

/* ---------- Secoes ---------- */
.section { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 640px; margin: 0 0 36px; }
.section-head .kicker { display: inline-block; font: 500 12.5px var(--font-sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--primary); background: var(--primary-soft-2); border-radius: 999px; padding: 5px 14px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; letter-spacing: -0.01em; font-weight: 400; margin: 14px 0 10px; text-wrap: balance; }
.section-head p { color: var(--text-2); margin: 0; font-size: 16px; }

/* ---------- Cartoes de recursos ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.2s, border-color 0.2s;
  min-width: 0;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
}
.card-icon svg { width: 23px; height: 23px; }
.ic-teal { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; }
.ic-primary { background: var(--g-navy); color: #fff; }
.ic-orange, .ic-amber, .ic-lime { background: var(--primary-soft-2); color: var(--primary); }
.card-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.card h3 { font-size: 19px; font-weight: 500; margin: 0 0 8px; line-height: 1.3; }
.card p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 22px; }
.card .meta { margin-top: 14px; font: 12.5px var(--font-mono); color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.card .meta span { display: inline-flex; align-items: center; gap: 6px; }
.card .meta svg { width: 13px; height: 13px; }

/* Cartao do MCP em destaque */
.card-feature {
  grid-column: span 2;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(120deg, var(--primary), var(--primary-2) 45%, var(--primary-soft-2)) border-box;
}
.card-feature .feature-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 26px; height: 100%; }
.card-feature .feature-main { display: flex; flex-direction: column; min-width: 0; }
.feature-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--text-2); }
.feature-list li { display: flex; gap: 9px; align-items: flex-start; }
.feature-list svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; margin-top: 3px; }
.chat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  align-self: stretch;
  justify-content: center;
  min-width: 0;
}
.chat .msg { padding: 9px 12px; border-radius: 12px; max-width: 92%; line-height: 1.45; }
.chat .me { align-self: flex-end; background: linear-gradient(90deg, var(--primary), var(--primary-2)); color: var(--on-primary); border-bottom-right-radius: 4px; }
.chat .ai { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); border-bottom-left-radius: 4px; }
.chat .tool { align-self: flex-start; font: 11.5px/1.5 var(--font-mono); color: var(--primary-text); background: var(--primary-soft); border: 1px solid var(--primary-soft-2); border-radius: 10px; padding: 3px 10px; display: inline-flex; gap: 6px; align-items: flex-start; max-width: 100%; overflow-wrap: anywhere; }
.chat .tool svg { margin-top: 3px; }
.chat .tool svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ---------- Primeiros passos ---------- */
.start-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: st; }
.timeline > li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; }
.timeline > li::before {
  counter-increment: st;
  content: counter(st);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 600 14px var(--font-mono);
  background: var(--primary-soft);
  color: var(--primary-text);
  border: 1px solid var(--primary-soft-2);
}
.timeline h3 { margin: 4px 0 6px; font-size: 17px; letter-spacing: -0.01em; }
.timeline p { margin: 0 0 4px; color: var(--text-2); }
.facts {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 84px;
}
.facts h3 { margin: 0 0 14px; font-size: 16px; }
.facts dl { margin: 0; display: grid; gap: 14px; }
.facts dt { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.facts dd { margin: 3px 0 0; font-size: 14px; color: var(--text-2); }
.facts .btn { margin-top: 20px; width: 100%; }

/* ---------- Blocos de codigo com copiar ---------- */
.code { position: relative; margin: 12px 0 16px; }
.code pre {
  margin: 0;
  background: var(--code-bg);
  color: var(--code-fg);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  tab-size: 2;
}
.code .lbl { position: absolute; top: 8px; left: 16px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--code-muted); }
.code .lbl + pre, .code .lbl + .copy + pre { padding-top: 30px; }
.code .copy + pre { padding-right: 84px; }
/* LECS/Claude - 06/11/2026 - prompt para a IA: quebra linha (texto corrido) e destaca o que o usuario troca */
.code.prompt pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.code .ph { color: #ffb38a; background: rgba(252, 108, 4, 0.18); border-radius: 3px; padding: 0 3px; }
.copy {
  position: absolute;
  top: 7px;
  right: 8px;
  font: 500 12px var(--font-sans);
  color: var(--code-muted);
  background: var(--code-bg);
  border: 1px solid oklch(1 0 0 / 0.14);
  border-radius: var(--r-md);
  padding: 3px 9px;
  cursor: pointer;
}
.copy:hover { color: var(--code-fg); border-color: oklch(1 0 0 / 0.3); }

/* ---------- Novidades ---------- */
.changelog { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 2px solid var(--border); }
.changelog li { position: relative; padding: 0 0 26px 24px; }
.changelog li:last-child { padding-bottom: 0; }
.changelog li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--primary); }
.changelog li.new::before { background: var(--primary); border-color: var(--primary); }
.changelog time { font: 500 12.5px var(--font-mono); color: var(--muted); }
.changelog h3 { margin: 2px 0 4px; font-size: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.changelog p { margin: 0; color: var(--text-2); font-size: 14.5px; max-width: 70ch; }

/* ---------- CTA final + rodape ---------- */
.cta-band {
  border-radius: var(--r-xl);
  padding: 40px;
  background:
    radial-gradient(60% 120% at 100% 0%, color-mix(in srgb, var(--primary) 32%, transparent), transparent 70%),
    radial-gradient(50% 120% at 0% 100%, color-mix(in srgb, var(--primary-2) 14%, transparent), transparent 70%),
    var(--g-navy);
  color: var(--code-fg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-band h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 30px); font-weight: 400; color: #fff; }
.cta-band p { margin: 0; color: #c5c9d8; max-width: 52ch; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: oklch(1 0 0 / 0.3); }
.cta-band .btn-ghost:hover { background: oklch(1 0 0 / 0.08); }

.site-footer { border-top: 1px solid var(--border); padding: 40px 0 48px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer img { height: 40px; width: auto; margin: 0 0 12px; }
.site-footer h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--primary-text); text-decoration: underline; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; }

/* ---------- Responsivo (pagina inicial) ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .start-grid { grid-template-columns: minmax(0, 1fr); }
  .facts { position: static; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .hero { padding: 44px 0 56px; }
  .section { padding: 56px 0; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card-feature { grid-column: auto; }
  .card-feature .feature-body { grid-template-columns: minmax(0, 1fr); }
  .cta-band { padding: 28px 22px; }
  .hero-cta .btn, .card-actions .btn { flex: 1 1 auto; }
}

/* =========================================================
   Manual do MCP (mcp/index.html)
   ========================================================= */
.doc-hero { position: relative; isolation: isolate; overflow: hidden; padding: 52px 0 40px; border-bottom: 1px solid var(--border); }
.doc-hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 160%;
  background:
    radial-gradient(34% 40% at 10% 30%, color-mix(in srgb, var(--primary-2) 12%, transparent), transparent 70%),
    radial-gradient(28% 36% at 90% 20%, color-mix(in srgb, var(--primary) 8%, transparent), transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--primary-text); }
.doc-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: center; margin-top: 18px; }
.doc-hero h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -0.015em; font-weight: 400; margin: 0 0 14px; text-wrap: balance; }
.doc-hero .lede { font-size: 17.5px; line-height: 1.55; color: var(--text-2); margin: 0; max-width: 60ch; }
.dl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 14px;
}
.dl-card .row { display: flex; align-items: center; gap: 12px; }
.dl-card .card-icon { width: 42px; height: 42px; }
.dl-card .name { font-family: var(--font-head); font-weight: 500; line-height: 1.25; }
.dl-card .sub { font: 12.5px var(--font-mono); color: var(--muted); }
.dl-card .btn { width: 100%; }
.dl-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; }
.dl-card dt { color: var(--muted); }
.dl-card dd { margin: 0; color: var(--text-2); text-align: right; font-family: var(--font-mono); font-size: 12.5px; }

.doc-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-top: 36px; padding-bottom: 80px; }
nav.toc { position: sticky; top: 84px; align-self: start; font-size: 13.5px; }
nav.toc p { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; font-weight: 600; }
nav.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: s; }
nav.toc a { display: flex; gap: 8px; padding: 5px 8px; border-radius: var(--r-md); color: var(--text-2); text-decoration: none; }
nav.toc a::before { counter-increment: s; content: counter(s); font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); min-width: 1.4em; padding-top: 1px; }
nav.toc a:hover { background: var(--sunken); color: var(--text); }
nav.toc a.on { background: var(--primary-soft); color: var(--primary-text); }

.doc { min-width: 0; max-width: 780px; }
.doc section { padding-top: 8px; scroll-margin-top: 84px; }
.doc section + section { border-top: 1px solid var(--border); margin-top: 44px; padding-top: 44px; }
.doc h2 { font-size: 25px; line-height: 1.2; margin: 0 0 6px; font-weight: 500; text-wrap: balance; display: flex; gap: 12px; align-items: baseline; }
.doc h2 .num { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--primary-text); }
.doc h3 { font-size: 17px; margin: 28px 0 8px; font-weight: 500; }
.doc .sub { color: var(--muted); margin: 0 0 18px; font-size: 14.5px; }
.doc p, .doc ul, .doc ol { max-width: 70ch; }
.doc ul, .doc ol { padding-left: 1.25em; }
.doc li { margin: 4px 0; }
.doc li::marker { color: var(--muted); }

.asks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px; margin: 18px 0 6px; padding: 0 !important; list-style: none; max-width: none !important; }
.asks li { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px 14px; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.asks li span { display: block; font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; font-weight: 600; }

.steps { list-style: none; padding: 0 !important; margin: 16px 0; display: grid; gap: 18px; counter-reset: st; max-width: none !important; }
.steps > li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; margin: 0; }
.steps > li::before { counter-increment: st; content: counter(st); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--font-mono); background: var(--primary-soft); color: var(--primary-text); border: 1px solid var(--primary-soft-2); }
.steps > li > div { min-width: 0; }
.steps strong { display: block; margin-bottom: 2px; }

.tbl { overflow-x: auto; margin: 14px 0 18px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.tbl table { border-collapse: collapse; width: 100%; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th { font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--surface-2); }
.tbl td code { white-space: nowrap; }
.tbl td.w code { white-space: normal; }
.pill { display: inline-block; font: 600 11px var(--font-sans); letter-spacing: 0.03em; padding: 2px 7px; border-radius: var(--r-sm); white-space: nowrap; }
.pill.read { background: var(--primary-soft); color: var(--primary-text); border: 1px solid var(--primary-soft-2); }
.pill.write { background: var(--sunken); color: var(--text-2); border: 1px solid var(--border-strong); }
.pill.del { background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-border); }

.note { border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-lg); padding: 12px 16px; margin: 16px 0; font-size: 14.5px; color: var(--text-2); }
.note strong { color: var(--text); }
.note.warn { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn-text); }
.note.warn strong { color: var(--warn-text); }
.note p { margin: 0; }

.gen { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 18px; margin: 16px 0 8px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; box-shadow: var(--shadow); }
.gen > * { min-width: 0; }
.gen .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .label { font-size: 13px; font-weight: 600; }
.field small { color: var(--muted); font-size: 12.5px; }
.field input { font: 14px var(--font-mono); padding: 9px 10px; border-radius: var(--r-md); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); width: 100%; min-width: 0; }
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--focus); }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--r-md); overflow: hidden; flex-wrap: wrap; justify-self: start; }
.seg button { font: 500 13px var(--font-sans); padding: 8px 12px; border: 0; background: var(--surface); color: var(--text-2); cursor: pointer; border-right: 1px solid var(--border); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--primary-soft); color: var(--primary-text); }
.perm-hint { font-size: 13px; color: var(--muted); margin: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tabs button { font: 500 14px var(--font-sans); padding: 8px 12px; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--primary-text); border-bottom-color: var(--primary); }
.tabs button:hover { color: var(--text); }
.panel p { font-size: 14px; color: var(--text-2); margin: 12px 0 0; }

.doc details { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); margin: 10px 0; }
.doc details summary { cursor: pointer; padding: 12px 16px; font-weight: 600; font-size: 14.5px; list-style: none; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.doc details summary::-webkit-details-marker { display: none; }
.doc details summary::before { content: "+"; font-family: var(--font-mono); color: var(--primary-text); width: 1ch; }
.doc details[open] summary::before { content: "\2212"; }
.doc details .body { padding: 0 16px 14px 36px; color: var(--text-2); font-size: 14.5px; }
.doc details .body p { margin: 6px 0; }
.err { font-family: var(--font-mono); font-size: 12.5px; color: var(--danger-text); font-weight: 400; }

@media (max-width: 900px) {
  .doc-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .doc-wrap { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 24px; }
  nav.toc { position: static; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); padding: 12px; }
  nav.toc ol { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
