/* =====================================================================
   BASE — reset, tipografia e utilidades estruturais
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  min-height: 100vh;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

a { color: var(--cyan); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--blue-soft); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::selection { background: rgba(47, 107, 255, 0.35); color: #fff; }

/* Barra de rolagem discreta */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: var(--r-pill);
  border: 2px solid var(--void);
}
::-webkit-scrollbar-thumb:hover { background: #1d2a41; }

/* ---- Títulos ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: #fff;
  text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { text-wrap: pretty; }

/* ---- Layout ---- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 860px; }

.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--graphite); }
.section--alt::before,
.section--alt::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 1px;
  background: var(--grad-edge);
}
.section--alt::before { top: 0; }
.section--alt::after  { bottom: 0; }

.stack > * + * { margin-top: var(--sp-4); }

/* ---- Cabeçalho de seção ----------------------------------------------
   Assinatura do produto: uma barra de sinal ao lado do rótulo, referência
   direta ao vocabulário de monitoramento que o site apresenta.
---------------------------------------------------------------------- */
.section-head {
  display: grid;
  gap: var(--sp-3);
  margin-bottom: var(--sp-7);
  max-width: 62ch;
}
.section-head__label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-wide);
  color: var(--cyan);
}
.signal {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
.signal i {
  display: block;
  width: 2px;
  background: currentColor;
  border-radius: 1px;
  opacity: 0.55;
}
.signal i:nth-child(1) { height: 4px; }
.signal i:nth-child(2) { height: 7px; opacity: 0.75; }
.signal i:nth-child(3) { height: 11px; opacity: 1; }

.section-head__title { font-size: var(--fs-2xl); }
.section-head__text { color: var(--ink-2); max-width: var(--maxw-text); }

.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---- Conteúdo rico vindo do CMS ---- */
.prose { color: var(--ink-2); max-width: var(--maxw-text); font-size: var(--fs-md); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: var(--fs-xl); margin-top: 2em; color: #fff; }
.prose h3 { font-size: var(--fs-lg); margin-top: 1.7em; color: #fff; }
.prose h4 { font-size: var(--fs-md); margin-top: 1.5em; color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(34,211,238,.4); }
.prose ul, .prose ol { padding-left: 1.25em; display: grid; gap: 0.5em; }
.prose li::marker { color: var(--cyan); }
.prose img { border-radius: var(--r-md); border: 1px solid var(--line); margin-block: 1.5em; }
.prose blockquote {
  border-left: 2px solid var(--cyan);
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-5);
  color: var(--ink);
  font-size: var(--fs-lg);
  font-family: var(--font-display);
  line-height: var(--lh-snug);
}
.prose pre {
  background: #070b12;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: #cfe3ff;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(47, 107, 255, 0.12);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  padding: 0.12em 0.4em;
  color: var(--cyan);
}
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.prose th, .prose td { padding: var(--sp-3) var(--sp-4); text-align: left; border-bottom: 1px solid var(--line); }
.prose th { background: var(--surface); color: #fff; font-weight: 600; }
.prose hr { border: 0; height: 1px; background: var(--line); margin-block: 2.5em; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-md); }

/* ---- Utilidades ---- */
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: var(--sp-4); z-index: var(--z-modal);
  background: var(--blue); color: #fff; padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm); font-weight: 600;
  transition: top var(--dur-base) var(--ease);
}
.skip-link:focus { top: var(--sp-4); color: #fff; }

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---- Preferência por menos movimento ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
