/* NeriLabz v2 — identidade: grafite, laranja e topologia discreta.
   Caminhos de fontes relativos a este CSS. Sem dependências de CDN. */
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-variable.ttf") format("truetype");
  font-style: normal; font-weight: 300 700; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-variable.ttf") format("truetype");
  font-style: normal; font-weight: 100 800; font-display: swap;
}
:root {
  color-scheme: light;
  --color-orange: #ff7a00;
  --color-orange-soft: #ffb875;
  --color-orange-text: #a34400;
  --color-black: #111418;
  --color-teal: #68d4c5;
  --color-slate: #3b4756;
  --color-slate-2: #637184;
  --color-slate-3: #9ba8b8;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-alt: #e9eef3;
  --text: #111418;
  --text-muted: #526071;
  --border: #cbd3dc;
  --accent: var(--color-orange);
  --accent-hover: #eb7000;
  --accent-text: var(--color-orange-text);
  --accent-on: #111418;
  --technical: #17796c;
  --focus: #a34400;
  --radius: 10px;
  --shadow: 0 2px 10px rgb(17 20 24 / 5%);
  --font-body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
  color-scheme: dark;
  --bg: #111418;
  --surface: #1b2129;
  --surface-alt: #242d38;
  --text: #f5f7fa;
  --text-muted: #b6c0cc;
  --border: #3b4756;
  --accent-text: #ff9b40;
  --technical: #68d4c5;
  --focus: #ff9b40;
  --shadow: 0 3px 12px rgb(0 0 0 / 16%);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111418;
  --surface: #1b2129;
  --surface-alt: #242d38;
  --text: #f5f7fa;
  --text-muted: #b6c0cc;
  --border: #3b4756;
  --accent-text: #ff9b40;
  --technical: #68d4c5;
  --focus: #ff9b40;
  --shadow: 0 3px 12px rgb(0 0 0 / 16%);
}
:root[data-theme="light"] { color-scheme: light; }

/* Layout original preservado. */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
.mono { font-family: var(--font-mono); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Cabeçalho escuro, como o topbar das aplicações */
.topbar { background: var(--color-black); color: #f5f7fa; position: sticky; top: 0; z-index: 10; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #f5f7fa; text-decoration: none; font-weight: 600; }
.brand img { height: 38px; width: auto; object-fit: contain; }
.seg { display: inline-flex; border: 1px solid var(--color-slate-2); border-radius: 6px; overflow: hidden; }
.seg button { background: transparent; color: #f5f7fa; border: 0; padding: 6px 10px; font: inherit; font-size: 0.82rem; cursor: pointer; }
.seg button.on { background: var(--color-slate-2); }
.colorful-bar { display: flex; height: 4px; }
.colorful-bar span { flex: 1; }
.colorful-bar span:nth-child(1) { background: var(--color-slate); }
.colorful-bar span:nth-child(2) { background: var(--color-slate-2); }
.colorful-bar span:nth-child(3) { background: var(--color-orange); }
.colorful-bar span:nth-child(4) { background: var(--color-orange); }
.colorful-bar span:nth-child(5) { background: var(--color-teal); }

/* Hero */
.hero { padding: 64px 0 40px; }
.kicker { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent-text); margin: 0 0 14px; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; max-width: 22ch; }
.hero .lead { color: var(--text-muted); font-size: 1.05rem; max-width: 60ch; margin: 16px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-block; padding: 10px 18px; border-radius: var(--radius); font-weight: 600; text-decoration: none; border: 1px solid var(--border); color: var(--text); background: var(--surface); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-on); }
.btn:hover { border-color: var(--accent); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 36px; }
.fact { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.fact span { display: block; font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.fact b { font-weight: 600; }


/* Redes sociais: icones de marca */
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.social-link { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: border-color .2s, color .2s; }
.social-link svg { width: 20px; height: 20px; fill: currentColor; }
.social-link:hover { border-color: var(--accent); color: var(--accent); }

/* Seções */
section.block { padding: 56px 0; border-top: 1px solid var(--border); }
.kicker-sec { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-text); margin: 0 0 8px; }
.block h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: 10px; }
.block .intro { color: var(--text-muted); max-width: 66ch; margin: 0 0 28px; }

/* Cartões de serviço */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card .badge { align-self: flex-start; font-size: 0.72rem; font-weight: 600; color: var(--accent-text); background: var(--surface-alt); border-radius: 999px; padding: 3px 10px; margin-bottom: 12px; }
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 14px; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tags span { font-family: var(--font-mono); font-size: 0.72rem; border: 1px solid var(--border); border-radius: 4px; padding: 2px 6px; color: var(--text-muted); }
.card .link { font-weight: 600; text-decoration: none; }
.card .link:hover { text-decoration: underline; }
.card .restrito { font-size: 0.85rem; color: var(--text-muted); }

/* Operador */
.operator { display: flex; gap: 20px; align-items: flex-start; }
.avatar { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.operator h3 { font-size: 1.2rem; }
.operator .role { color: var(--accent-text); font-size: 0.92rem; margin: 2px 0 10px; }
.operator p { color: var(--text-muted); margin: 0; max-width: 64ch; }

/* Rodapé */
footer { border-top: 1px solid var(--border); padding: 24px 0 36px; color: var(--text-muted); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer .domain { font-family: var(--font-mono); color: var(--text); }

@media (max-width: 560px) {
  .hero { padding: 44px 0 28px; }
  .topbar .wrap { height: 52px; }
  .brand span { display: none; }
}

/* chamada para as redes (página de teste) */
.social-cta { margin: 28px 0 0; color: var(--text-muted); font-weight: 500; }
.social-cta + .social { margin-top: 10px; }


/* Camada visual; não altera a estrutura de navegação ou o conteúdo. */
body { font-family: var(--font-body); font-size: 1rem; background: var(--bg); color: var(--text); line-height: 1.6; }
h1, h2, h3 { font-family: var(--font-body); letter-spacing: -0.025em; text-wrap: balance; }
.mono, pre, code, kbd, samp { font-family: var(--font-mono); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
a { color: var(--accent-text); text-underline-offset: 0.2em; transition: color 160ms ease; }
::selection { background: var(--color-orange); color: var(--accent-on); }
.topbar { background: #111418; color: #f5f7fa; border-bottom: 1px solid #3b4756; }
.topbar a, .brand { color: #f5f7fa; }
.topbar :focus-visible { outline-color: #ff9b40; }
.brand img { height: 38px; width: auto; max-width: 100%; object-fit: contain; border-radius: 0; }
.brand-logo { filter: none; }
.seg { border-color: #637184; }
.seg button { color: #f5f7fa; }
.seg button.on { background: var(--color-orange); color: var(--accent-on); }
/* Preserva os cinco spans existentes; elimina a faixa arco-íris. */
.colorful-bar { display: flex; height: 3px; background: #3b4756; }
.colorful-bar > span { width: auto; flex: 1; height: 100%; }
.colorful-bar span:nth-child(1) { background: #3b4756; }
.colorful-bar span:nth-child(2) { background: #637184; }
.colorful-bar span:nth-child(3) { background: #ff7a00; }
.colorful-bar span:nth-child(4) { background: #ffb875; }
.colorful-bar span:nth-child(5) { background: #68d4c5; }
.hero { position: relative; background-image: none; }
.kicker, .kicker-sec { color: var(--accent-text); letter-spacing: 0.06em; }
.hero .lead, .block .intro, .operator p { max-width: 65ch; }
.btn { min-height: 44px; transition: background-color 160ms ease, border-color 160ms ease; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-on); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-on); filter: none; transform: none; }
.card { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color 160ms ease; }
.card:hover, .card:focus-within { border-color: var(--accent-text); transform: none; box-shadow: var(--shadow); }
.card .badge { color: var(--technical); background: var(--surface-alt); font-family: var(--font-mono); }
.card .link:hover, .social-link:hover { color: var(--accent-text); }
.tags span { border-color: var(--border); }
.social-link { width: 44px; height: 44px; }
.social-link:hover { border-color: var(--accent-text); }
.operator .avatar { background: var(--accent); color: var(--accent-on); }
footer .domain { color: var(--accent-text); }
/* Fonctionne sur toutes les pages qui possèdent déjà ces classes. */
.topo {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  width: 48px; height: 48px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-on); text-decoration: none;
  font-size: 26px; font-weight: 700; box-shadow: var(--shadow);
}
.topo:hover { background: var(--accent-hover); color: var(--accent-on); }
.voltar-inicio {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px;
  border-radius: var(--radius); border: 1px solid var(--accent-text);
  color: var(--accent-text); font-size: 15px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
}
.topbar .voltar-inicio { color: #ff9b40; border-color: #ff9b40; }
.voltar-inicio:hover, .topbar .voltar-inicio:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-on); }
/* Robustez em telas estreitas, zoom e títulos longos. */
.cards { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.facts { grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); }
.card { min-width: 0; overflow-wrap: anywhere; }
.topbar .wrap { min-height: 56px; height: auto; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.brand { min-width: 0; }
.brand img { max-width: min(210px, 55vw); }
html { scroll-padding-top: 100px; }
@media (max-width: 560px) {
  .operator { flex-direction: column; }
  .topbar .wrap { min-height: 52px; height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important; transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
  }
}
