*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(16px, 1.05vw + 11px, 18px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 12px; }

/* ---------- Tipografia ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 18px;
}
.eyebrow--dark { color: var(--accent-dark); }
.mono-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: .95;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.h2 em, .hero__title em, .final__title em, .pull em { font-style: italic; color: var(--accent); }
.lead { font-size: clamp(17px, 1.2vw + 10px, 21px); line-height: 1.5; max-width: 58ch; color: var(--ink-2); margin-top: 22px; }
.section__head { max-width: 900px; margin-bottom: clamp(44px, 6vw, 80px); }

/* ---------- Botões e links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform .25s var(--ease), background-color .25s, color .25s;
  border: 0;
}
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--accent-text); }
.btn--accent { background: var(--accent-dark); color: var(--ink); }
.btn--accent:hover { background: var(--paper); }
.link-arrow {
  font-weight: 600; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-arrow:hover { color: var(--accent-text); }

/* ---------- Movimento (CSS puro, sem biblioteca) ----------
   Tudo que anima entra por transição ou keyframe do próprio navegador.
   Sem js-motion a página aparece inteira e estática. */

/* Revelação por rolagem: js/motion.js só acrescenta a classe quando a seção chega */
.js-motion .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--atraso, 0ms);
}
.js-motion .reveal.aparece { opacity: 1; transform: none; }

/* Entrada do topo */
.js-motion [data-intro], .js-motion .hero__title .w { opacity: 0; }
html.entrou [data-intro] { animation: entra .7s var(--ease) both var(--atraso, 0ms); }
html.entrou .hero__title .w { animation: entra-palavra .9s var(--ease) both var(--atraso, 0ms); }
@keyframes entra {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes entra-palavra {
  from { opacity: 0; transform: translateY(60%) rotate(2deg); }
  to { opacity: 1; transform: none; }
}

/* Painel de prova abrindo com a rolagem, quando o navegador suporta */
.js-motion .proof { background-color: transparent; }
@supports (animation-timeline: view()) {
  .js-motion .proof__bg {
    animation: abre-painel linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
}
@keyframes abre-painel {
  from { clip-path: inset(0% 7% 0% 7% round 28px); }
  to { clip-path: inset(0% 0% 0% 0% round 0px); }
}

@media (prefers-reduced-motion: reduce) {
  .js-motion .reveal, .js-motion [data-intro], .js-motion .hero__title .w { opacity: 1; transform: none; animation: none; }
  .js-motion .proof__bg { animation: none; }
}
