/* Impacta Studio — tokens e layout. Paleta: grafite, creme, âmbar (uma vez por seção). */
:root {
  --grafite: #1A1512;
  --creme: #FBF7F2;
  --creme-2: #F7F2EC;
  --creme-3: #F1EAE1;
  --ambar: #F5A524;
  --ink-78: rgba(26, 21, 18, 0.78);
  --ink-75: rgba(26, 21, 18, 0.75);
  --ink-70: rgba(26, 21, 18, 0.70);
  --ink-60: rgba(26, 21, 18, 0.60);
  --ink-40: rgba(26, 21, 18, 0.40);
  --line: rgba(26, 21, 18, 0.14);
  --line-2: rgba(26, 21, 18, 0.20);
  --shadow: 0 14px 32px -26px rgba(26, 21, 18, 0.55);
  --shadow-up: 0 26px 46px -28px rgba(26, 21, 18, 0.6);
  --font: Outfit, "Segoe UI", system-ui, -apple-system, sans-serif;
  --pad: clamp(72px, 7vw, 120px);
  --ease: cubic-bezier(.22, .7, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--grafite);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; }
h1, h2, h3, p, dl, dd, ol { margin: 0; }
::selection { background: var(--ambar); color: var(--grafite); }

.wrap { width: min(1320px, 100% - 48px); margin: 0 auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--grafite); color: var(--creme); border-radius: 999px;
}
.skip:focus { top: 12px; }

.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}
@media (prefers-reduced-motion: reduce), (max-width: 720px) { .grain { display: none; } }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--creme); border-bottom: 1px solid var(--line);
}
.header__in { height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo { height: 22px; width: auto; display: block; transform-origin: left center; transition: transform 220ms ease; }
.header--small { border-bottom-color: rgba(26, 21, 18, 0.24); }
.header--small .header__logo { transform: scale(0.82); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 400; }
.nav__link { transition: opacity 160ms ease; }
.nav__link:hover { opacity: 0.6; }
@media (max-width: 959px) { .nav__link { display: none; } }

/* Botões */
.btn {
  display: inline-block; padding: 15px 28px; border-radius: 999px;
  font-weight: 500; font-size: 16px; line-height: 1.2; transition: opacity 160ms ease, background 160ms ease;
}
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--dark { background: var(--grafite); color: var(--creme); }
.btn--dark:hover { opacity: 0.86; }
.btn--ghost { border: 1px solid rgba(26, 21, 18, 0.35); }
.btn--ghost:hover { background: rgba(26, 21, 18, 0.06); }
.btn--light { background: var(--creme); color: var(--grafite); }
.btn--light:hover { opacity: 0.86; }
.btn--outline { border: 1px solid rgba(251, 247, 242, 0.4); color: var(--creme); }
.btn--outline:hover { background: rgba(251, 247, 242, 0.1); }

/* Hero */
.hero { padding: clamp(40px, 5vw, 64px) 0 clamp(56px, 7vw, 88px); }
.hero__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(28px, 3.5vw, 56px); align-items: center;
}
.hero__logo { height: clamp(26px, 2.4vw, 32px); width: auto; display: block; margin-bottom: clamp(24px, 3vw, 36px); }
.hero__title {
  font-weight: 700; font-size: clamp(40px, 5.4vw, 72px); line-height: 0.98;
  letter-spacing: -0.04em; text-wrap: balance;
}
.hero__lead {
  margin-top: clamp(18px, 2vw, 24px); max-width: 44ch;
  font-weight: 300; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.5; color: var(--ink-78);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 2.6vw, 34px); }
.hero__shots { position: relative; padding: clamp(12px, 2vw, 28px) 0 clamp(52px, 6vw, 80px); }

.frame {
  border: 1px solid var(--line-2); border-radius: 6px; padding: 6px; background: #fff;
  box-shadow: 0 24px 50px -34px rgba(26, 21, 18, 0.65);
}
.frame img, .frame video { display: block; width: 100%; height: auto; border-radius: 3px; }
.frame--float {
  position: absolute; right: -2%; bottom: 0; width: 56%;
  box-shadow: 0 26px 48px -30px rgba(26, 21, 18, 0.7);
}

.stats {
  margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid rgba(26, 21, 18, 0.16); border-bottom: 1px solid rgba(26, 21, 18, 0.16);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.stats__item { display: flex; flex-direction: column-reverse; padding: 22px 28px; border-right: 1px solid rgba(26, 21, 18, 0.12); }
.stats__item:first-child { padding-left: 0; }
.stats__item:last-child { padding-right: 0; border-right: 0; }
.stats__num { font-weight: 700; font-size: clamp(32px, 3vw, 44px); letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats__num--amber { color: var(--ambar); }
.stats__label { margin-top: 6px; font-weight: 300; font-size: 15px; line-height: 1.4; color: var(--ink-70); }
@media (max-width: 720px) { .stats__item { border-right: 0; padding-left: 0; padding-right: 0; border-bottom: 1px solid rgba(26, 21, 18, 0.12); } .stats__item:last-child { border-bottom: 0; } }

/* Seções */
.section { padding: var(--pad) 0; border-top: 1px solid var(--line); }
.section__title { font-weight: 700; font-size: clamp(30px, 3.2vw, 44px); letter-spacing: -0.035em; line-height: 1.05; margin-bottom: clamp(32px, 3.4vw, 48px); }
.section__title--inline { margin-bottom: 0; }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: clamp(36px, 4vw, 60px); }
.section__sub { font-weight: 300; font-size: 16px; color: var(--ink-60); }
.section__cta {
  margin-top: clamp(44px, 5vw, 80px); padding-top: 26px; border-top: 1px solid var(--line);
  font-weight: 400; font-size: clamp(18px, 1.7vw, 24px); letter-spacing: -0.02em;
}
.link--strong { font-weight: 600; border-bottom: 2px solid var(--grafite); }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(24px, 2.6vw, 44px); }
.col { border-top: 1px solid var(--line-2); padding-top: 18px; }
.col__num { font-weight: 600; font-size: 14px; letter-spacing: 0.08em; color: var(--ink-40); }
.col__num--amber { color: var(--ambar); }
.col__title { margin: 12px 0 10px; font-weight: 700; font-size: clamp(22px, 1.9vw, 27px); letter-spacing: -0.025em; }
.col__text { font-weight: 300; font-size: 16px; line-height: 1.55; color: rgba(26, 21, 18, 0.75); }

/* Sistemas */
.systems { display: flex; flex-direction: column; gap: clamp(48px, 5.5vw, 88px); }
.system { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: clamp(26px, 3.5vw, 56px); align-items: center; }
.system--flip .frame { order: 2; }
.system--flip .system__body { order: 1; }
.frame--video { padding: 7px; box-shadow: var(--shadow); transition: transform 260ms ease, box-shadow 260ms ease; }
/* Sem aspect-ratio fixo aqui: cada gravação tem a sua (1280x660, 720 ou 800) e os
   atributos width/height do <video> já dão a proporção certa. Forçar 16/10 sobrava
   faixa de fundo em cima e embaixo. O poster é o 1º quadro do próprio vídeo, então
   proporção e conteúdo batem e não há salto quando começa a tocar. */
.frame--video video { display: block; width: 100%; height: auto; object-fit: cover; background: var(--creme-3); }
.system:hover .frame--video, .browser:hover, .site:hover .browser { transform: translateY(-4px); box-shadow: var(--shadow-up); }
.system__title { font-weight: 700; font-size: clamp(26px, 2.5vw, 36px); letter-spacing: -0.03em; line-height: 1.05; }
.system__text { margin-top: 14px; font-weight: 300; font-size: clamp(16px, 1.15vw, 18px); line-height: 1.55; color: var(--ink-78); max-width: 48ch; }
.col__pain { display: block; margin-bottom: 6px; font-weight: 500; color: var(--grafite); }
.system__pain { display: block; margin-bottom: 6px; font-weight: 500; color: var(--grafite); }
.system__note { margin-top: 14px; font-weight: 400; font-size: 16px; line-height: 1.5; max-width: 46ch; border-left: 2px solid var(--ambar); padding-left: 14px; }
.link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  font-weight: 500; font-size: 16px; border-bottom: 1px solid var(--ink-40); padding-bottom: 3px;
}
.arrow { display: inline-block; transition: transform 240ms ease; }
.system:hover .arrow, .site:hover .arrow { transform: translateX(6px); }

/* Sites */
.sites { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(24px, 2.4vw, 40px); }
.site { display: block; }
.browser {
  position: relative; border: 1px solid rgba(26, 21, 18, 0.18); border-radius: 6px; overflow: hidden; background: #fff;
  box-shadow: 0 14px 30px -26px rgba(26, 21, 18, 0.55); transition: transform 260ms ease, box-shadow 260ms ease;
}
.browser__bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid rgba(26, 21, 18, 0.12); background: var(--creme-2); }
.dots { display: flex; gap: 5px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(26, 21, 18, 0.22); }
.dot--amber { background: var(--ambar); }
.browser__url { font-weight: 300; font-size: 11px; letter-spacing: 0.01em; color: rgba(26, 21, 18, 0.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser__view { position: relative; aspect-ratio: 1440 / 900; overflow: hidden; }
.browser__view img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.browser__open {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px;
  background: rgba(26, 21, 18, 0.42); opacity: 0; transition: opacity 240ms ease;
}
.site:hover .browser__open, .site:focus-visible .browser__open { opacity: 1; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; background: var(--creme); color: var(--grafite); border-radius: 999px; font-weight: 500; font-size: 14px; }
.site__name { margin-top: 12px; font-weight: 700; font-size: clamp(19px, 1.5vw, 22px); letter-spacing: -0.025em; }
.site__url { margin-top: 2px; font-weight: 300; font-size: 15px; color: var(--ink-60); }

/* Perguntas: mesmo tratamento editorial das colunas de "O que a gente faz" */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: clamp(24px, 2.6vw, 44px) clamp(32px, 3.4vw, 56px); }
.faq__item { border-top: 1px solid var(--line-2); padding-top: 18px; }
.faq__item--first { border-top-color: var(--ambar); }
.faq__q { font-weight: 600; font-size: clamp(18px, 1.5vw, 21px); letter-spacing: -0.02em; line-height: 1.25; }
.faq__a { margin-top: 10px; font-weight: 300; font-size: 16px; line-height: 1.6; color: var(--ink-75); max-width: 46ch; }

/* Processo */
.steps { list-style: none; padding: 0; position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(20px, 2vw, 32px); }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(26, 21, 18, 0.28); }
.step { position: relative; padding: 26px 20px; overflow: hidden; }
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; }
.step__ghost { position: absolute; right: 8px; top: 6px; font-weight: 700; font-size: 96px; line-height: 1; letter-spacing: -0.05em; color: rgba(26, 21, 18, 0.07); }
.step__ghost--amber { color: rgba(245, 165, 36, 0.3); }
.step__title { position: relative; font-weight: 600; font-size: clamp(19px, 1.5vw, 22px); letter-spacing: -0.02em; }
.step__text { position: relative; margin-top: 8px; font-weight: 300; font-size: 15px; line-height: 1.5; color: var(--ink-70); max-width: 26ch; }

/* Contato + rodapé */
.contact { background: var(--grafite); color: var(--creme); padding: var(--pad) 0 0; }
.contact__title { max-width: 19ch; font-weight: 700; font-size: clamp(32px, 4.2vw, 58px); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.contact__lead { margin-top: clamp(16px, 1.6vw, 22px); max-width: 52ch; font-weight: 300; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.5; color: rgba(251, 247, 242, 0.75); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3vw, 44px); }
.footer {
  margin-top: clamp(56px, 6vw, 96px); border-top: 1px solid rgba(251, 247, 242, 0.18); padding: 30px 0 36px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 26px; align-items: start;
}
.footer img { height: 22px; width: auto; display: block; }
.footer__muted { margin-top: 10px; font-weight: 300; font-size: 15px; color: rgba(251, 247, 242, 0.6); }
.footer__col { display: flex; flex-direction: column; gap: 8px; font-weight: 300; font-size: 15px; color: rgba(251, 247, 242, 0.75); }
.footer__col a:hover { color: var(--creme); }
.footer__copy { font-weight: 300; font-size: 14px; color: rgba(251, 247, 242, 0.45); text-align: right; }
@media (max-width: 720px) { .footer__copy { text-align: left; } }

/* Reveal: só esconde quando há JS; sem JS a página nasce inteira */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 480ms var(--ease), transform 480ms var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .frame--video, .browser, .arrow, .header__in, .header__logo { transition: none; }
}
