/* ==========================================================================
   Faucon Design System — Base
   Reset, grid de página, tipografia de corpo.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  /* Rede de segurança: qualquer texto com "white-space:nowrap" (títulos que não podem
     quebrar linha, como .t-oneline e o texto do bloco parallaxe) pode, numa tela estreita
     o bastante, ultrapassar o cálculo de encolhimento por um triz — sem isso, esse
     excesso empurra a largura da página inteira e quebra o layout em vez de só cortar
     a pontinha do texto. */
  overflow-x: hidden;
}

body {
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-display);
  line-height: 1.05;
}

p { margin: 0; }

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-2xl);
}

.section--tight { padding-block: var(--space-xl); }
/* Recuo pro header fixo: sem isso, um link de âncora (menu, "Saiba mais" etc.)
   deixa o título da seção escondido atrás do header. */
section[id] { scroll-margin-top: 100px; }
.section--dark {
  background: var(--surface-dark);
  color: var(--text-on-dark);
}
.section--alt { background: var(--surface-alt); }

.grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-primary-dark);
}
[data-brand="opera"] .eyebrow {
  font-family: var(--font-body);
  color: var(--brand-primary);
  font-weight: 500;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}

.t-display {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-display);
}

.t-hero {
  font-size: var(--text-3xl);
}

.t-h2 { font-size: var(--text-2xl); }
.t-h3 { font-size: var(--text-xl); }
.t-h4 { font-size: var(--text-md); }

.t-lede {
  font-size: var(--text-md);
  color: var(--text-muted);
  max-width: 60ch;
}
.section--dark .t-lede { color: var(--text-on-dark-muted); }

/* ---- Revelação suave ao rolar (qualquer seção pode usar) ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
