/* keelframework.io — hoja de estilos */
:root {
  --ink: #17132a;
  --ink-2: #4f4b63;
  --ink-3: #8a8699;
  --line: #e6e2f0;
  --surface: #f7f5fc;
  --surface-2: #efebf8;
  --bg: #ffffff;
  --keel: #6d18e8;
  --keel-deep: #4b0eb4;
  --keel-soft: #f4efff;
  --code-bg: #1d1735;
  --code-ink: #e9e4f7;
  --ok: #1f8a4c;
  --sans: Inter, ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 6px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--keel-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--keel); outline-offset: 2px; }
code, pre, kbd { font-family: var(--mono); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; font-weight: 600; letter-spacing: -0.01em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--keel); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; height: 60px; display: flex; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 500; font-size: 1.05rem; letter-spacing: -.01em; }
.brand img { display: block; width: 28px; height: auto; }
.brand b { color: var(--keel); font-weight: 700; margin-left: .25em; }
.brand:hover { text-decoration: none; }
.topnav { margin-left: auto; display: flex; gap: 1.75rem; }
.topnav a { color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.topnav a:hover { color: var(--keel-deep); text-decoration: none; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius); width: 40px; height: 36px; padding: 8px 9px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- hero */
.hero { border-bottom: 1px solid var(--line); background:
  linear-gradient(180deg, #fff 0%, var(--surface) 100%); }
.hero-inner { max-width: var(--max); margin: 0 auto; padding: 4.5rem 1.25rem 4rem; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; }
.hero-kicker { margin: 0 0 1rem; color: var(--keel-deep); font-family: var(--mono); font-size: .85rem; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -.025em; max-width: 18ch; }
.lead { font-size: 1.15rem; color: var(--ink-2); margin: 1.25rem 0 1.75rem; max-width: 52ch; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.btn { display: inline-flex; align-items: center; padding: .7rem 1.2rem; border-radius: var(--radius); font-weight: 600; font-size: .95rem; border: 1px solid transparent; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--keel); color: #fff; }
.btn-primary:hover { background: var(--keel-deep); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); }

.cmd { display: flex; align-items: center; gap: .75rem; background: var(--code-bg); color: var(--code-ink); border-radius: var(--radius); padding: .75rem 1rem; font-family: var(--mono); font-size: .85rem; max-width: 100%; overflow: hidden; min-height: 96px; }
.cmd-prompt { color: #b79bff; }
.cmd code { flex: 1; white-space: nowrap; overflow-x: auto; }

.copy { background: transparent; color: #cbbdf5; border: 1px solid #4a3e78; border-radius: 4px; font: inherit; font-size: .75rem; padding: .25rem .6rem; cursor: pointer; }
.copy:hover { color: #fff; border-color: #8a72e0; }
.copy.done { color: #9be6b2; border-color: #4f9f6a; }

/* ---------- variante: comando con sintaxis + ejemplo, dos lineas ---------- */
.cmd-multi {
  flex-direction: column;
  align-items: stretch;
  gap: .5rem;
}
.cmd-multi .cmd-line {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}
.cmd-multi .cmd-line code {
  white-space: normal;
  overflow-wrap: anywhere;
  overflow-x: visible;
  flex: 1;
}
.cmd-multi .cmd-syntax {
  opacity: .55;
  font-style: italic;
}
.cmd-multi .copy {
  align-self: flex-end;
}

/* module map (the one memorable element) */
.modmap { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 20px 50px -30px rgba(67, 9, 166, .35); font-family: var(--mono); font-size: .8rem; }
.modmap-head, .modmap-foot { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; gap: 1rem; }
.modmap-head { border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.tag { font-size: .7rem; color: var(--keel-deep); background: var(--keel-soft); padding: .15rem .5rem; border-radius: 999px; }
.modmap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.modgroup { background: #fff; padding: .9rem 1rem; }
.modgroup h3 { font-family: var(--sans); font-size: .8rem; font-weight: 600; color: var(--ink-3); margin-bottom: .5rem; }
.modgroup ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.modgroup li { color: var(--ink); padding-left: .9rem; position: relative; }
.modgroup li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 2px; background: var(--keel); }
.modmap-foot { border-top: 1px solid var(--line); background: var(--surface); border-radius: 0 0 10px 10px; color: var(--ink-2); }
.modmap-foot code { color: var(--keel-deep); }
.arrow { flex: 1; height: 1px; background: var(--ink-3); position: relative; min-width: 24px; }
.arrow::after { content: ""; position: absolute; right: -1px; top: -3px; border: 3.5px solid transparent; border-left-color: var(--ink-3); }

/* ---------- landing sections */
.section-inner { max-width: var(--max); margin: 0 auto; padding: 4rem 1.25rem; }
.section-inner > h2 { font-size: 1.7rem; letter-spacing: -.02em; }
.section-lead { color: var(--ink-2); max-width: 60ch; margin: .6rem 0 2rem; }
.project-list { display: grid; gap: 1rem; }
.project { display: grid; grid-template-columns: 88px 1fr; gap: 1.5rem; align-items: start; padding: 1.5rem; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; }
a.project:hover { text-decoration: none; border-color: var(--keel); }
.project img { width: 72px; height: auto; margin: 0 auto; display: block; }
.project h3 { font-size: 1.15rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.status { font-size: .72rem; font-weight: 600; color: var(--ok); background: #e6f5ec; padding: .15rem .55rem; border-radius: 999px; }
.project p { margin: .5rem 0 .75rem; color: var(--ink-2); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; gap: .4rem; flex-wrap: wrap; }
.chips li { font-family: var(--mono); font-size: .75rem; color: var(--ink-2); background: var(--surface-2); padding: .2rem .55rem; border-radius: 4px; }
.project-soon { background: var(--surface); border-style: dashed; color: var(--ink-2); }
.soon-mark { width: 72px; height: 72px; margin: 0 auto; border-radius: 10px; border: 1px dashed var(--ink-3); display: grid; place-items: center; font-weight: 700; font-size: 1.6rem; color: var(--ink-3); }

.flow { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { list-style: none; counter-reset: step; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.steps li { counter-increment: step; position: relative; padding-top: 2.5rem; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--keel); color: #fff; font-weight: 600; display: grid; place-items: center; font-size: .9rem; }
.steps h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.steps p { margin: 0 0 .6rem; color: var(--ink-2); }
.steps code { font-size: .85em; background: var(--surface-2); padding: .1em .35em; border-radius: 3px; }
.steps a { font-weight: 600; }

.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 2rem; }
.cap-grid > div { background: #fff; padding: 1.25rem; }
.cap-grid h3 { font-size: .95rem; margin-bottom: .4rem; }
.cap-grid p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.cap-grid code { font-size: .85em; }

/* ---------- docs shell */
.docs-shell { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; display: grid; grid-template-columns: 250px minmax(0, 1fr) 220px; gap: 3rem; }
.sidebar { position: sticky; top: 60px; align-self: start; max-height: calc(100vh - 60px); overflow-y: auto; padding: 2rem 0 2rem; border-right: 1px solid var(--line); }
.sidebar-title { font-weight: 600; font-size: .85rem; color: var(--ink-3); margin: 0 0 .75rem; }
.sidenav, .sidenav ul { list-style: none; margin: 0; padding: 0; }
.sidenav > li > a { display: block; padding: .35rem .75rem .35rem 0; color: var(--ink); font-weight: 500; font-size: .95rem; border-right: 2px solid transparent; margin-right: -1px; }
.sidenav > li.active > a { color: var(--keel-deep); border-right-color: var(--keel); }
.sidenav ul { margin: .1rem 0 .5rem; padding-left: .8rem; border-left: 1px solid var(--line); }
.sidenav ul a { display: block; font-size: .85rem; color: var(--ink-2); padding: .22rem 0; }
.sidenav ul a.current { color: var(--keel-deep); font-weight: 500; }
.sidenav a:hover { color: var(--keel-deep); text-decoration: none; }

/*.docs-main { padding: 2rem 0 4rem; min-width: 0; }*/
.docs-main {
  padding: 2rem 2rem 4rem;
  min-width: 0;
  max-width: 100%;
}
.docs-shell {
  grid-template-columns: 260px 1fr; /* sidebar + contenido que ocupa todo el resto */
}
.crumbs { font-size: .85rem; color: var(--ink-3); margin: 0 0 .75rem; }
.toc { position: sticky; top: 60px; align-self: start; max-height: calc(100vh - 60px); overflow-y: auto; padding: 2rem 0; font-size: .82rem; }
.toc p { margin: 0 0 .5rem; font-weight: 600; color: var(--ink-3); }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc ul ul { padding-left: .8rem; }
.toc a { display: block; padding: .18rem 0 .18rem .75rem; color: var(--ink-2); border-left: 2px solid var(--line); }
.toc a.current { color: var(--keel-deep); border-left-color: var(--keel); }

.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.pager a { display: flex; flex-direction: column; font-weight: 600; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); max-width: 48%; }
.pager a small { font-weight: 400; color: var(--ink-3); font-size: .8rem; }
.pager-next { text-align: right; margin-left: auto; }
.pager a:hover { border-color: var(--keel); text-decoration: none; }


/* ---------- prose */
/*.prose { max-width: 78ch; }*/
.prose { max-width: calc(100% - 2rem)}
.prose h1 { font-size: 2.2rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 1.25rem; }
.prose h3 { font-size: 1.45rem; margin: 2.75rem 0 .9rem; padding-top: 1.25rem; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.prose h4 { font-size: 1.1rem; margin: 2rem 0 .7rem; scroll-margin-top: 80px; }
.prose h5 { font-size: 1rem; margin: 1.5rem 0 .5rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose li { margin: .25rem 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.prose blockquote { margin: 1.25rem 0; padding: .75rem 1rem; border-left: 3px solid var(--keel); background: var(--surface); color: var(--ink-2); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { font-size: .875em; background: var(--surface-2); color: var(--keel-deep); padding: .12em .35em; border-radius: 3px; }
.prose pre { background: var(--code-bg); color: var(--code-ink); padding: 1rem 1.15rem; border-radius: var(--radius); overflow-x: auto; margin: 1rem 0 1.5rem; font-size: .84rem; line-height: 1.55; }
.prose pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.prose figure { margin: 1.5rem 0; }
.prose figure img { display: block; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.prose th, .prose td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.prose td code { white-space: nowrap; }
.prose .badge-row img { display: inline; }
.prose table td:first-child {
  white-space: nowrap;
}

.callout { margin: 1.25rem 0; padding: 1rem 1.15rem; border-radius: var(--radius); border: 1px solid var(--line); border-left-width: 4px; background: var(--surface); }
.callout::before { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .4rem; }
.callout p:last-child { margin-bottom: 0; }
.callout-important { border-left-color: var(--keel); }
.callout-important::before { content: "Importante"; color: var(--keel-deep); }
.callout-note { border-left-color: #2d6fd6; }
.callout-note::before { content: "Nota"; color: #2d6fd6; }
.callout-tip { border-left-color: var(--ok); }
.callout-tip::before { content: "Consejo"; color: var(--ok); }
.callout-warning, .callout-caution { border-left-color: #d2841c; }
.callout-warning::before, .callout-caution::before { content: "Atención"; color: #a8620c; }

/* highlight.js theme (dark purple) */
.hljs-comment, .hljs-quote { color: #8d84b3; font-style: italic; }
.hljs-keyword, .hljs-selector-tag, .hljs-meta { color: #c4a7ff; }
.hljs-string, .hljs-attr { color: #9be6b2; }
.hljs-number, .hljs-literal { color: #ffc78a; }
.hljs-title, .hljs-type, .hljs-class .hljs-title, .hljs-title.class_ { color: #8fd3ff; }
.hljs-built_in, .hljs-symbol, .hljs-bullet { color: #ffb3d1; }
.hljs-variable, .hljs-template-variable, .hljs-punctuation { color: var(--code-ink); }

/* ---------- footer */
.footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 2.5rem 1.25rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem 2.5rem; align-items: center; font-size: .9rem; color: var(--ink-2); }
.footer-inner > div { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ink); }
.footer-inner p { margin: 0; max-width: 46ch; }
.footer-inner ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-inner small { grid-column: 1 / -1; color: var(--ink-3); }

/* ---------- responsive */
@media (max-width: 1000px) {
  .docs-shell { grid-template-columns: 230px minmax(0, 1fr); gap: 2rem; }
  .toc { display: none; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { max-width: 560px; }
}
@media (max-width: 760px) {
  .topnav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: .5rem 1.25rem 1rem; }
  .topnav a { padding: .6rem 0; border-top: 1px solid var(--line); }
  body.nav-open .topnav { display: flex; }
  .menu-btn { display: flex; }
  .docs-shell { grid-template-columns: 1fr; gap: 0; }
  .sidebar { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
  .steps { grid-template-columns: 1fr; }
  .project { grid-template-columns: 1fr; }
  .project img, .soon-mark { margin: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 3rem; }
  .modmap-grid { grid-template-columns: 1fr; }
  .cmd { font-size: .78rem; }
}
@media (max-width: 480px) {
  .cap-grid { grid-template-columns: 1fr; }
  .pager a { max-width: 100%; }
  .pager { flex-direction: column; }
}

/* ---------- home (paraguas Keel) */
.hero-logo { display: block; width: 300px; height: auto; margin: 0 0 1.5rem -6px; }
.hero-home h1 { max-width: 22ch; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.hero-home .hero-inner { align-items: start; }

.layers { display: flex; flex-direction: column; gap: .6rem; font-size: .85rem; }
.layer { border-radius: 10px; padding: .9rem 1.1rem; border: 1px solid var(--line); background: #fff; }
.layer-label { display: block; font-family: var(--mono); font-size: .72rem; color: var(--ink-3); margin-bottom: .55rem; }
.layer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.layer li { padding: .3rem .65rem; border-radius: 6px; background: var(--surface); color: var(--ink); }
.layer-top { border-color: var(--keel); box-shadow: 0 20px 50px -30px rgba(67, 9, 166, .4); }
.layer-top li { background: var(--keel-soft); font-weight: 500; }
.layer-top li a { color: var(--keel-deep); }
.layer-top li.is-soon { background: transparent; border: 1px dashed var(--ink-3); color: var(--ink-3); font-weight: 400; }
.layer-mid { background: var(--keel); border-color: var(--keel); }
.layer-mid .layer-label { color: #d7c6ff; }
.layer-mid li { background: rgba(255,255,255,.12); color: #fff; }
.layer-base li { font-family: var(--mono); }

.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 1rem; }
.model-grid h3 { font-size: 1.05rem; margin-bottom: .5rem; padding-top: .75rem; border-top: 2px solid var(--keel); }
.model-grid p { margin: 0; color: var(--ink-2); }
.principles { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cap-grid-5 { grid-template-columns: repeat(5, 1fr); }

.project-meta { margin: .6rem 0 .75rem; display: grid; gap: .35rem; }
.project-meta div { display: grid; grid-template-columns: 170px 1fr; gap: .75rem; font-size: .9rem; }
.project-meta dt { color: var(--ink-3); }
.project-meta dd { margin: 0; color: var(--ink); }
.status-soon { color: var(--ink-3); background: var(--surface-2); }
.project-soon h3 { color: var(--ink); }

.contact { border-top: 1px solid var(--line); }
.contact-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.contact h2 { font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: .75rem; }
.contact p { margin: 0; color: var(--ink-2); }
.contact .hero-actions { margin: 0; justify-content: flex-end; }

@media (max-width: 1000px) {
  .cap-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .model-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact .hero-actions { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .hero-logo { width: 220px; }
  .project-meta div { grid-template-columns: 1fr; gap: .1rem; }
}
@media (max-width: 480px) { .cap-grid-5 { grid-template-columns: 1fr; } }

/* ---------- home v2: frase central, diagrama de capas, carrusel */
.hero-center { text-align: center; }
.hero-inner-center { display: block; max-width: 820px; padding: 3.5rem 1.25rem 4rem; }
.hero-center .hero-logo { width: 260px; margin: 0 auto 1.25rem; }
.hero-center .hero-kicker { font-family: var(--sans); font-size: 1rem; color: var(--ink-3); margin-bottom: .75rem; }
.hero-center h1 { max-width: none; font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.hero-center .lead { margin: 1rem auto 2.5rem; max-width: 62ch; }
.hero-actions-center { justify-content: center; margin: 2.5rem 0 0; }

.stack { max-width: 620px; margin: 0 auto; text-align: center; }
.stack-box { border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.25rem; background: #fff; }
.stack-box h2 { font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .35rem; }
.stack-box p { margin: 0; font-size: .95rem; color: var(--ink-2); }
.stack-box p + p { margin-top: .2rem; font-size: .85rem; }
.stack-keel { background: var(--keel); border-color: var(--keel); box-shadow: 0 24px 50px -30px rgba(67, 9, 166, .5); }
.stack-keel h2 { color: #d7c6ff; }
.stack-keel p { color: #fff; }
.stack-base p { font-family: var(--mono); font-size: .9rem; }
.stack-link { width: 2px; height: 26px; margin: 0 auto; background: var(--ink-3); position: relative; }
.stack-link::before { content: ""; position: absolute; top: -1px; left: -4px; border: 5px solid transparent; border-bottom-color: var(--ink-3); border-top: 0; }

.how { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-tagline { font-size: 1.25rem; font-weight: 500; color: var(--keel-deep); margin: .5rem 0 1.5rem; }
.how-intro { max-width: 68ch; color: var(--ink-2); }
.how-intro p { margin: 0 0 .9rem; }
.how-close { color: var(--ink); font-weight: 500; }

.carousel { margin-top: 2.5rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.carousel-track { padding: 2.25rem 2.5rem 1.5rem; min-height: 300px; }
.slide { display: none; max-width: 70ch; }
.slide.is-active { display: block; }
.slide-num { font-family: var(--mono); font-size: .8rem; color: var(--keel-deep); margin: 0 0 .75rem; }
.slide h3 { font-size: 1.35rem; line-height: 1.3; margin-bottom: 1rem; }
.slide p { margin: 0 0 .9rem; color: var(--ink-2); }
.slide-close { color: var(--ink); font-weight: 500; }
.carousel-nav { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.25rem; border-top: 1px solid var(--line); }
.car-btn { background: #fff; border: 1px solid var(--line); border-radius: 50%; width: 38px; height: 38px; font-size: 1.1rem; color: var(--ink); cursor: pointer; }
.car-btn:hover { border-color: var(--keel); color: var(--keel-deep); }
.dots { display: flex; gap: .5rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--line); padding: 0; cursor: pointer; }
.dot.is-active { background: var(--keel); width: 26px; border-radius: 5px; }

@media (max-width: 760px) {
  .carousel-track { padding: 1.5rem 1.25rem 1rem; }
  .slide h3 { font-size: 1.15rem; }
  .hero-center .hero-logo { width: 200px; }
}

/* ---------- language switch */
.lang-switch { border: 1px solid var(--line); border-radius: var(--radius); padding: .3rem .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: var(--ink) !important; }
.lang-switch:hover { border-color: var(--keel); color: var(--keel-deep) !important; text-decoration: none; }

/* ---------- maintainer page */
.maint-inner { max-width: 880px; }
.maint h1 { font-size: 2.2rem; font-weight: 700; letter-spacing: -.02em; }
.author { display: grid; grid-template-columns: 160px 1fr; gap: 2rem; align-items: start; padding: 2rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin: 2rem 0 3rem; }
.author-photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 4px solid var(--keel-soft); }
.author-body h2 { font-size: 1.5rem; }
.author-role { color: var(--keel-deep); font-weight: 600; margin: .25rem 0 1rem; }
.author-body p { color: var(--ink-2); margin: 0 0 .9rem; }
.author-links { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; gap: 1.25rem; flex-wrap: wrap; font-weight: 600; }
.contact-ways h2 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.way { display: block; padding: 1.25rem; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; }
.way:hover { border-color: var(--keel); text-decoration: none; }
.way h3 { font-size: 1rem; margin-bottom: .4rem; color: var(--keel-deep); }
.way p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.note { color: var(--ink-3); font-size: .9rem; margin-top: 1.5rem; }
@media (max-width: 760px) {
  .author { grid-template-columns: 1fr; text-align: center; }
  .author-photo { margin: 0 auto; }
  .author-links { justify-content: center; }
  .ways { grid-template-columns: 1fr; }
}

/* ---------- Keel/MCP bridge, tech pages */
.hero-bridge .hero-inner-center { padding: 3rem 1.25rem 2.5rem; text-align: left; max-width: var(--max); }
.hero-bridge h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -.025em; }
.hero-bridge .lead { margin: 1rem 0 0; }
.hero-sub { font-size: 1.15rem; color: var(--ink-2); margin: .5rem 0 1.5rem; }
.tech-mark { width: 72px; height: 72px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-weight: 800; color: #fff; margin: 0 auto; }
.tech-mark span { font-size: 1.15rem; letter-spacing: -.02em; }
.tech-mark small { font-size: .62rem; font-weight: 600; opacity: .85; letter-spacing: .04em; text-transform: uppercase; }
.tech-java { background: linear-gradient(135deg, #d9481d, #f39a2b); }
.tech-python { background: linear-gradient(135deg, #2f6db3, #f4c430); }
.tech-mark img { width: 100%; height: 100%; object-fit: contain; }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2rem; align-items: stretch; }
.mode { border: 1px solid var(--line); border-radius: 12px; padding: 1.75rem; background: #fff; display: flex; flex-direction: column; height: 100%; }
.mode-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: .9rem;
  font-weight: 600;
  color: var(--keel-deep);
  background: var(--keel-soft);
  padding: .3rem .7rem;
  border-radius: 999px;
  margin: 0 0 .75rem;
}
.mode h3 { font-size: 1.25rem; margin-bottom: .75rem; }
.mode > p:not(.mode-num) { color: var(--ink-2); margin: 0 0 1.25rem; }
.mode code { font-size: .85em; background: var(--surface-2); padding: .1em .35em; border-radius: 3px; }
.mode .cmd { margin-bottom: 1.25rem; }
.mode .cmd code { background: none; padding: 0; font-size: inherit; }
.mode .hero-actions { margin-top: auto; margin-bottom: 0; flex-wrap: nowrap; }
.mode .btn { padding: .6rem .9rem; font-size: .88rem; white-space: nowrap; }
.roadmap { border: 1px solid #f0c98c; border-left: 4px solid #d2841c; background: #fff8ec; border-radius: var(--radius); padding: 1rem 1.15rem; color: var(--ink-2); margin: 0 0 1.5rem; }
.roadmap strong { color: #8a4e07; }
.modmap-planned { opacity: .85; border-style: dashed; }
.modmap-planned .tag { background: #fff3dd; color: #8a4e07; }
@media (max-width: 760px) { .mode-grid { grid-template-columns: 1fr; } .tech-mark { margin: 0; } }

/* ---------- Keel/MCP destaque palavra */

.badge-rec {
  font-size: 0.75em;
  color: #2e7d32;
  background: #e8e8e8;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.badge-arch {
  font-size: 0.75em;
  color: #cc0000;
  background: #e8e8e8;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}