/* Vector Company. Reset, tipografia base e componentes compartilhados. */

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--teal); color: #06121f; }

img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* o canvas da grade viva ocupa a viewport inteira, atrás de tudo */
#grid-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.page { position: relative; z-index: 1; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--page-x);
}

.section { padding-block: var(--section-y); position: relative; }

/* O cabeçalho é sticky. Sem esta margem, pular por âncora deixaria o
   topo da seção escondido atrás dele. */
.section[id] { scroll-margin-top: 84px; }

/* Âncora do topo: elemento de altura zero, antes do cabeçalho. */
.ancora { display: block; height: 0; scroll-margin-top: 0; }

/* ================================================================== *
 * Superfícies
 *
 * O ritmo da página vem de alternar escuro e claro, como no site atual:
 * onde a seção não tem fundo, a grade animada aparece por trás.
 * ================================================================== */
.surface-dark  { background: var(--bg-section); }
.surface-deep  { background: var(--bg); }
.surface-light { background: var(--bg-light); color: var(--ink-on-light); }

.surface-light h1, .surface-light h2, .surface-light h3 { color: var(--ink-on-light); }
.surface-light p, .surface-light .lead { color: var(--muted-on-light); }
.surface-light .eyebrow { color: var(--teal); }

/* os cards de diferencial no fundo claro */
.surface-light .dif-card {
  background: #f8fafc;
  border: 1px solid var(--line-light);
  border-left: 3px solid var(--teal);
}
.surface-light .dif-card:hover {
  background: #fff;
  box-shadow: 0 18px 40px -20px rgba(15, 23, 42, 0.28);
}
.surface-light .dif-ico { background: rgba(39, 211, 184, 0.16); }
.surface-light .dif-card p { color: var(--muted-on-light); }
.surface-light .dif-card h3 { color: var(--ink-on-light); }

/* Etapas do processo no fundo claro.
   O card padrão usa azul-marinho a 35%, que sobre branco vira cinza,
   e o texto em cinza claro some junto. */
.surface-light .passo {
  background: #f8fafc;
  border-color: var(--line-light);
}
.surface-light .passo:hover {
  background: #fff;
  border-color: var(--teal);
  box-shadow: 0 16px 36px -18px rgba(15, 23, 42, 0.3);
}
.surface-light .passo h3 { color: var(--ink-on-light); }
.surface-light .passo p { color: var(--muted-on-light); }
/* o brilho do número é feito para fundo escuro */
.surface-light .passo-n { text-shadow: none; }

/* Depoimentos no fundo claro, para o dia em que forem preenchidos */
.surface-light .quote {
  background: #f8fafc;
  border: 1px solid var(--line-light);
}
.surface-light .quote-text { color: var(--ink-on-light); }
.surface-light .quote-name { color: var(--ink-on-light); }
.surface-light .quote-company { color: var(--muted-on-light); }

/* ================================================================== *
 * Tipografia
 * ================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.15rem); }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.2rem); }

h1 em, h2 em, .teal { font-style: normal; color: var(--teal); }

p { font-size: clamp(0.95rem, 1.5vw, 1.05rem); line-height: 1.65; }

.lead { color: var(--muted); max-width: 52ch; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}

.section-head { text-align: center; max-width: 54rem; margin-inline: auto; }
.section-head .lead { margin-inline: auto; margin-top: var(--gap-sm); }

/* ================================================================== *
 * Botão em pílula, como no site atual
 * ================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--teal);
  color: #06121f;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 40px var(--teal-glow); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }

.btn-sm { padding: 0.65rem 1.35rem; font-size: 0.88rem; }

/* o botão do fechamento tem brilho permanente */
.btn-glow { box-shadow: 0 0 60px var(--teal-glow); }
.btn-glow:hover { box-shadow: 0 0 80px var(--teal-glow); }

.btn svg {
  width: 16px; height: 16px; flex-shrink: 0;
  stroke: currentColor; stroke-width: 2.2; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ================================================================== *
 * Entrada no scroll
 * ================================================================== */
/* Entrada e saída. O elemento sobe ao entrar na tela e desce ao sair,
   então o movimento acompanha o scroll nos dois sentidos.
   A saída é mais curta que a entrada para não parecer arrastada. */
.rise {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease);
  will-change: opacity, transform;
}
.rise.is-in {
  opacity: 1;
  transform: none;
  transition-duration: var(--dur-slow);
  transition-delay: var(--delay, 0s);
}

@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;
  }
  .rise { opacity: 1; transform: none; }
}
