/* ==========================================================================
   Uziti Brasil Software — site institucional
   HTML + CSS + JS puros (sem framework / sem build)

   1. Tokens & base
   2. Tons pastel (gradiente + grão) e ícone 3D tintado
   3. Navegação + drawer
   4. Hero (quadro 1440×960, unidade --u)
   5. Blocos de conteúdo (serviços, ERP, e-commerce, websites)
   6. Clientes, projetos, contato, sobre
   7. Rodapé, WhatsApp, utilitários
   8. Responsivo e movimento reduzido
   ========================================================================== */

/* ---------- 1. Tokens & base ------------------------------------------- */
@font-face {
  font-family: "Inter Tight";
  src: url("../assets/fonts/inter-tight-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0d0d0c;
  --ink-72: rgb(13 13 12 / 0.72);
  --ink-56: rgb(13 13 12 / 0.56);
  --ink-42: rgb(13 13 12 / 0.42);
  --hair: rgb(13 13 12 / 0.12);
  --cream: #fbf6ef;
  --ff: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* 1u = 1px de um quadro 1440×960; a página preenche o viewport */
  --u: min(100vw / 1440, 100vh / 960);

  --pad: clamp(20px, 7.8vw, 112px);   /* margem lateral das seções abaixo do hero */
  --hpad: calc(112 * var(--u));       /* margem lateral do hero (112u no quadro) */
  --nav-h: calc(80 * var(--u));

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@supports (height: 100svh) {
  :root { --u: min(100vw / 1440, 100svh / 960); }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--ff);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, figure, address { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed; left: 12px; top: -64px; z-index: 100;
  padding: 12px 18px; border-radius: 10px;
  background: var(--ink); color: #fff; font-weight: 500;
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

.container { width: min(1216px, 100% - 2 * var(--pad)); margin-inline: auto; }
.section { padding-block: clamp(32px, 4.6vw, 68px); }

/* ---------- 2. Tons pastel, grão e ícone 3D tintado --------------------- */
.tone-lemon { --b1: #f2ecdf; --b2: #f4ebc6; --glow: 246 222 104; --tint: #e9c22e; }
/* Websites: roxo orquídea/ametista (matiz ~281°), mais magenta que o periwinkle do TERA (~254°) */
.tone-orchid { --b1: #f1e0f7; --b2: #e6c8f2; --glow: 199 125 240; --tint: #a63fd4; }
.tone-sage  { --b1: #e9ebe0; --b2: #dfe9d4; --glow: 150 206 150; --tint: #3fb874; }
/* TERA ERP: periwinkle/violeta da marca (#818cf8 no brilho, #5a35d1 no ícone) */
.tone-tera  { --b1: #e9e7f8; --b2: #d7d9fa; --glow: 129 140 248; --tint: #5a35d1; }

[class*="tone-"] {
  background:
    radial-gradient(ellipse 58% 74% at 86% 76%, rgb(var(--glow) / 0.95), rgb(var(--glow) / 0.5) 42%, rgb(var(--glow) / 0) 76%),
    radial-gradient(ellipse 50% 62% at 32% 105%, rgb(var(--glow) / 0.55), rgb(var(--glow) / 0) 72%),
    linear-gradient(180deg, var(--b1), var(--b2));
}

/* grão fino sobre os cartões pastel */
.svc, .feature { position: relative; isolation: isolate; }
.svc::after, .feature::after {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--grain);
  background-size: 240px;
  opacity: 0.18;
  mix-blend-mode: multiply;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
}
.svc > *, .feature > * { position: relative; z-index: 1; }

/* Ícone 3D: base cinza + camada de cor (mix-blend color) recortada pelo
   próprio formato do ícone — preserva brilho/especular, só muda o matiz. */
.ico {
  position: relative;
  display: inline-block;
  width: 1.02em; height: 1.02em;
  flex: none;
  isolation: isolate;
}
.ico img {
  display: block;
  width: 100%; height: 100%;
  object-fit: contain;
  filter: grayscale(1) brightness(1.1) contrast(1.08);
}
.ico i {
  position: absolute; inset: 0;
  background: var(--tint);
  mix-blend-mode: color;
  -webkit-mask: var(--m) center / contain no-repeat;
          mask: var(--m) center / contain no-repeat;
}
.ico-chat  { --m: url("../assets/img/hero/chat.webp");  --tint: #e9c22e; }
.ico-spark { --m: url("../assets/img/hero/spark.webp"); --tint: #5a35d1; }
.ico-coin  { --m: url("../assets/img/hero/coin.webp");  --tint: #3fb874; }
.ico-globe { --m: url("../assets/img/hero/globe.webp"); --tint: #a63fd4; }
.ico-sm { width: 46px; height: 46px; }
.ico-lg { width: 104px; height: 104px; margin-bottom: 8px; }

/* ---------- 3. Navegação + drawer -------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center;
  gap: calc(42 * var(--u));
  padding-inline: var(--hpad);
  border-bottom: 1px solid var(--hair);
  transition: background-color 0.3s, backdrop-filter 0.3s;
}
.nav.stuck, .page-legal .nav {
  background: rgb(251 246 239 / 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
          backdrop-filter: saturate(1.4) blur(14px);
}
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { height: max(34px, calc(46 * var(--u))); width: auto; }

.nav-links { display: flex; align-items: center; gap: calc(42 * var(--u)); }
.dd { position: relative; }
.dd-btn {
  display: flex; align-items: center; gap: calc(6 * var(--u));
  padding: 10px 0;
  background: none; border: 0;
  font-size: max(14px, calc(18 * var(--u)));
  font-weight: 500;
  letter-spacing: -0.005em;
}
.chev {
  width: max(13px, calc(17 * var(--u))); height: max(13px, calc(17 * var(--u)));
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.25s;
}
.dd.open .chev, .dd:hover .chev { transform: rotate(180deg); }
.dd-menu {
  position: absolute; top: 100%; left: -14px;
  min-width: 224px; padding: 8px;
  background: var(--cream);
  border: 1px solid var(--hair);
  border-radius: 16px;
  box-shadow: 0 24px 48px -24px rgb(13 13 12 / 0.4);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.dd:hover .dd-menu, .dd.open .dd-menu, .dd:focus-within .dd-menu {
  opacity: 1; visibility: visible; transform: none;
}
.dd-menu a {
  display: block; padding: 11px 14px; border-radius: 10px;
  font-size: 16px; font-weight: 500;
}
.dd-menu a:hover { background: rgb(13 13 12 / 0.06); }

.langs { display: flex; align-items: center; gap: 6px; }
.lang {
  width: max(26px, calc(30 * var(--u))); height: max(26px, calc(30 * var(--u)));
  padding: 2px;
  background: none; border: 1.4px solid transparent; border-radius: 50%;
  opacity: 0.5; transition: opacity 0.2s, border-color 0.2s;
}
.lang img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.lang:hover { opacity: 0.85; }
.lang[aria-pressed="true"] { opacity: 1; border-color: var(--ink); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  height: max(40px, calc(48 * var(--u)));
  padding-inline: max(18px, calc(26 * var(--u)));
  border: 1.4px solid var(--ink);
  border-radius: calc(7 * var(--u));
  font-size: max(14px, calc(17 * var(--u)));
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--ink); color: #fff; }

.burger {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.burger span { width: 24px; height: 1.8px; background: var(--ink); border-radius: 2px; }

.drawer-overlay {
  position: fixed; inset: 0; z-index: 65;
  background: rgb(13 13 12 / 0.4);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
  width: min(88vw, 380px);
  padding: 20px 24px 32px;
  display: flex; flex-direction: column; gap: 8px;
  background: var(--cream);
  overflow-y: auto;
  transform: translateX(100%); visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0.35s;
}
body.drawer-open .drawer-overlay { opacity: 1; visibility: visible; }
body.drawer-open .drawer { transform: none; visibility: visible; }
body.drawer-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer-close { width: 44px; height: 44px; background: none; border: 0; }
.drawer-close svg { width: 24px; height: 24px; margin: auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.drawer-label { margin: 18px 0 4px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-56); }
.drawer-nav a {
  display: block; padding: 11px 0;
  font-size: 18px; font-weight: 500; letter-spacing: -0.01em;
  border-bottom: 1px solid var(--hair);
}
.drawer-langs > div { display: grid; gap: 8px; margin-top: 8px; }
.lang-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: none; border: 1.4px solid var(--hair); border-radius: 12px;
  font-size: 15px; font-weight: 500; text-align: left;
}
.lang-opt img { width: 28px; height: 28px; border-radius: 50%; }
.lang-opt[aria-pressed="true"] { border-color: var(--ink); }

/* ---------- 4. Hero (quadro 1440×960) ----------------------------------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column;
  background: var(--cream);
}

/* painel: 75% superior, 4 camadas de gradiente + grão */
.panel { position: relative; flex: 0 0 75%; overflow: hidden; isolation: isolate; }
/* z-index:0 → contexto próprio: os z-index internos do crossfade (1/2) não passam do vidro */
.layers { position: absolute; inset: 0; z-index: 0; }
.layer {
  position: absolute; inset: 0;
  transform: scale(1.08);
  will-change: transform, opacity;
}
.js .layer { opacity: 0; }
.grain {
  position: absolute; inset: 0;
  background-image: var(--grain);
  background-size: 240px;
  opacity: 0.18;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* ---- elemento gráfico do hero: vidro fosco -------------------------------
   Camada decorativa no canto direito do painel (entre as cores e o texto).
   Esferas nítidas na cor do tom ativo + painéis de vidro por cima: o
   backdrop-filter borra a parte da esfera que fica atrás, e é isso que lê
   como vidro. --glow/--deep (mistura dos tons) e --in/--fy de cada peça vêm
   de renderHero() (JS), então tudo obedece ao mesmo relógio do hero.
   Tudo em unidade --u e ancorado à direita: acompanha o quadro 1440×960 e,
   em telas mais largas, continua colado na borda direita.
   Zona livre no quadro: x ≥ ~1130u ("Automatize" termina ~1070u; a legenda, ~1170u). */
.glass-scene {
  --glow: 246 222 104; --deep: 233 194 46;
  position: absolute; top: 0; right: 0; bottom: 0;
  width: calc(400 * var(--u));
  z-index: 1;
  pointer-events: none;
}
/* com JS, cada peça nasce invisível e o relógio a traz (sem JS fica estática) */
.js .glass-scene > * { --in: 0; }
.glass-scene > * {
  position: absolute;
  opacity: var(--in, 1);
  translate: 0 calc((var(--fy, 0) + (1 - var(--in, 1)) * 26) * var(--u));
}

/* esferas: nítidas, pastel, com brilho no canto superior esquerdo */
.orb {
  border-radius: 50%;
  background: radial-gradient(circle at 33% 27%,
    rgb(255 255 255 / 0.92) 0, rgb(var(--glow) / 1) 36%, rgb(var(--deep) / 0.62) 100%);
  box-shadow: 0 calc(46 * var(--u)) calc(70 * var(--u)) calc(-34 * var(--u)) rgb(var(--deep) / 0.4);
}
.orb-a { width: calc(236 * var(--u)); height: calc(236 * var(--u)); right: calc(56 * var(--u));  top: calc(128 * var(--u)); }
.orb-b { width: calc(110 * var(--u)); height: calc(110 * var(--u)); right: calc(52 * var(--u));  top: calc(478 * var(--u)); }

/* vidro: translúcido, borrado, aro de luz fino (::before) e sombra suave na cor do tom */
.glass {
  overflow: hidden;
  border-radius: calc(34 * var(--u));
  background: linear-gradient(145deg, rgb(255 255 255 / 0.44), rgb(255 255 255 / 0.12) 55%, rgb(255 255 255 / 0.26));
  -webkit-backdrop-filter: blur(calc(20 * var(--u))) saturate(1.5);
          backdrop-filter: blur(calc(20 * var(--u))) saturate(1.5);
  box-shadow:
    inset 0 1px 1px rgb(255 255 255 / 0.55),
    0 calc(34 * var(--u)) calc(60 * var(--u)) calc(-36 * var(--u)) rgb(var(--deep) / 0.38);
}
.glass::before {
  content: "";
  position: absolute; inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(140deg, rgb(255 255 255 / 0.95), rgb(255 255 255 / 0.12) 38%, rgb(255 255 255 / 0.05) 62%, rgb(255 255 255 / 0.62));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  pointer-events: none;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: linear-gradient(145deg, rgb(255 255 255 / 0.7), rgb(255 255 255 / 0.4)); }
}

/* cartão pequeno na frente: "avatar + linhas + selo", leitura de interface sem texto */
.g-card {
  display: flex; align-items: center;
  gap: calc(16 * var(--u));
  width: calc(246 * var(--u)); height: calc(92 * var(--u));
  padding: 0 calc(20 * var(--u));
  right: calc(150 * var(--u)); top: calc(452 * var(--u));
  border-radius: calc(26 * var(--u));
  rotate: 3deg;
}
.av {
  flex: none;
  width: calc(42 * var(--u)); height: calc(42 * var(--u));
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, rgb(255 255 255 / 0.95) 0, rgb(var(--glow) / 1) 40%, rgb(var(--deep) / 0.7) 100%);
  box-shadow: 0 calc(8 * var(--u)) calc(16 * var(--u)) calc(-8 * var(--u)) rgb(var(--deep) / 0.5);
}
.ln { flex: 1; display: grid; gap: calc(9 * var(--u)); }
.ln i { display: block; height: calc(8 * var(--u)); border-radius: 99px; background: var(--ink); }
.ln i:nth-child(1) { width: 92%; opacity: 0.2; }
.ln i:nth-child(2) { width: 58%; opacity: 0.1; }
.pill {
  flex: none;
  width: calc(26 * var(--u)); height: calc(14 * var(--u));
  border-radius: 99px;
  background: rgb(var(--deep) / 0.34);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.5);
}

.hero-copy { position: absolute; inset: 0; z-index: 3; }

.headline {
  position: absolute;
  left: var(--hpad); top: calc(190 * var(--u));
  font-size: calc(172 * var(--u));
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.032em;
  white-space: nowrap;
}
.slot { display: grid; height: 0.86em; }
.word {
  grid-area: 1 / 1;
  display: flex; align-items: center;
  height: 0.86em;
  gap: 0.07em;
  transform-origin: 0 60%;
  will-change: transform, opacity, filter;
}
.js .word { opacity: 0; }
.word .ico { will-change: transform; }
.line2 { display: block; }

.row {
  position: absolute;
  left: var(--hpad); top: calc(578 * var(--u));
  display: flex; align-items: center;
  gap: calc(30 * var(--u));
}
.ctas { display: flex; gap: calc(14 * var(--u)); }
.store {
  --fill: 0;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center;
  gap: calc(14 * var(--u));
  height: calc(58 * var(--u));
  padding: 0 calc(24 * var(--u)) 0 calc(18 * var(--u));
  border: 1.4px solid var(--ink);
  border-radius: calc(14 * var(--u));
  color: color-mix(in srgb, #fff calc(var(--fill) * 100%), var(--ink));
  white-space: nowrap;
  transition: background-color 0.2s;
}
.store::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); opacity: var(--fill);
}
.store:hover { background-color: rgb(13 13 12 / 0.07); }
.store svg {
  width: max(20px, calc(28 * var(--u))); height: max(20px, calc(28 * var(--u)));
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}
.store small { display: block; font-size: max(10px, calc(12 * var(--u))); line-height: 1.1; opacity: 0.7; }
.store b { display: block; font-size: max(15px, calc(20 * var(--u))); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
.caption {
  max-width: calc(560 * var(--u));
  font-size: max(14px, calc(18.5 * var(--u)));
  line-height: 1.34;
  color: var(--ink-56);
  text-wrap: balance;
}

/* faixa de números: 25% inferior, com entalhe em curva S */
.strip { position: relative; flex: 1 1 25%; background: var(--cream); }
.notch {
  position: absolute; left: 0; bottom: calc(100% - 1px);
  width: 100%; height: calc(62 * var(--u));
  fill: var(--cream);
  pointer-events: none;
}
.scroll-hint {
  position: absolute; right: var(--hpad); top: calc(-42 * var(--u));
  font-size: max(12px, calc(15 * var(--u)));
  color: var(--ink-42);
  transition: color 0.2s;
}
.scroll-hint:hover { color: var(--ink); }
.strip-in {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: calc(40 * var(--u));
  padding-inline: var(--hpad);
}
.strip-title {
  font-size: max(18px, calc(29 * var(--u)));
  font-weight: 500; line-height: 1.1; letter-spacing: -0.022em;
  white-space: nowrap;
}
.stats { display: flex; gap: calc(52 * var(--u)); }
.stats li { width: calc(184 * var(--u)); }
.num {
  display: block;
  font-size: max(30px, calc(54 * var(--u)));
  font-weight: 500; line-height: 1; letter-spacing: -0.035em;
}
.lbl {
  display: block; margin-top: calc(8 * var(--u));
  font-size: max(12px, calc(16.5 * var(--u)));
  line-height: 1.25;
  color: var(--ink-56);
}

/* CTA "App Store" -> preenche de preto durante a 4ª palavra (via JS: --fill) */

/* ---------- 5. Blocos de conteúdo --------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 15px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-56);
}
.eyebrow.center { display: flex; justify-content: center; }
.eyebrow.on-dark { color: rgb(255 255 255 / 0.75); }

.h2 { font-size: clamp(38px, 5.4vw, 76px); font-weight: 500; line-height: 0.98; letter-spacing: -0.034em; }
.h2-md { font-size: clamp(27px, 3.1vw, 45px); line-height: 1.06; letter-spacing: -0.028em; }
.h3 { font-size: clamp(28px, 3.2vw, 46px); font-weight: 500; line-height: 1.02; letter-spacing: -0.03em; }
.lead { font-size: clamp(19px, 1.9vw, 26px); line-height: 1.28; letter-spacing: -0.012em; color: var(--ink-72); }
.body { font-size: 18px; line-height: 1.55; color: var(--ink-72); }
.body + .body { margin-top: 16px; }

.product { --glow: 246 222 104; }
#erpuziti { --glow: 129 140 248; }
#website  { --glow: 150 206 150; }
#webuziti { --glow: 199 125 240; }
.lead strong, .body strong, .h2 strong, .statement strong, .h3 em {
  font-weight: 500; font-style: normal; color: var(--ink);
  background: linear-gradient(transparent 64%, rgb(var(--glow) / 0.7) 64%, rgb(var(--glow) / 0.7) 94%, transparent 94%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.btn-solid {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 32px; min-height: 58px; padding: 12px 26px;
  max-width: 100%;
  border-radius: 14px;
  background: var(--ink); color: #fff;
  font-size: 17px; font-weight: 500; line-height: 1.2;
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn-solid svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s; }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -14px rgb(13 13 12 / 0.55); }
.btn-solid:hover svg { transform: translateX(4px); }

/* serviços */
.services { padding-top: clamp(56px, 7vw, 104px); }
.services .eyebrow { margin-bottom: 28px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc {
  display: flex; flex-direction: column; align-items: flex-start;
  min-height: 360px; padding: 32px;
  border-radius: 32px;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.svc:hover { transform: translateY(-6px); }
.svc h2 { margin-top: auto; font-size: clamp(30px, 3vw, 42px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.svc p { margin-top: 10px; font-size: 18px; line-height: 1.35; color: var(--ink-72); max-width: 22ch; }
.more {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 28px; padding: 10px 18px;
  border: 1.4px solid var(--ink); border-radius: 999px;
  font-size: 15px; font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}
.more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s; }
.more:hover { background: var(--ink); color: #fff; }
.more:hover svg { transform: translateX(3px); }

/* painel de destaque de cada produto */
.feature {
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(28px, 5vw, 72px);
  border-radius: clamp(28px, 3.4vw, 48px);
  overflow: hidden;
}
.feature.flip { grid-template-columns: 0.95fr 1.05fr; }
.feature.flip .feature-media { order: -1; }
.feature-text .eyebrow { margin-bottom: 22px; color: var(--ink-72); }
.feature-text .h2 { margin-bottom: 26px; }
.feature-text .lead { max-width: 36em; }
.feature-media img {
  width: 100%; height: auto; max-height: 540px; object-fit: contain; margin-inline: auto;
  filter: drop-shadow(0 28px 36px rgb(13 13 12 / 0.16));
}

.split {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(28px, 6vw, 96px);
  margin-top: clamp(56px, 8vw, 120px);
}
.split.reverse .split-media { order: -1; }
.split-text .h3 { margin-bottom: 24px; }
.split-media img { width: 100%; height: auto; margin-inline: auto; max-width: 560px; }
.split-media.photo img { max-width: none; border-radius: 32px; box-shadow: 0 30px 50px -30px rgb(13 13 12 / 0.45); }
.tag { margin-bottom: 18px; font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-56); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.chips li { padding: 7px 14px; border: 1.4px solid var(--ink); border-radius: 999px; font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.split-text .h3 + .chips { margin: 0 0 24px; }

/* TERA ERP — identidade do produto dentro do bloco (navy + violeta da marca) */
#erpuziti { --tera-navy: #0b1d3a; --tera-brand: #5837a7; }
.tera-logo { display: block; height: 44px; width: auto; }
#erpuziti .btn-solid { background: var(--tera-navy); }
#erpuziti .btn-solid:hover { box-shadow: 0 16px 28px -14px rgb(11 29 58 / 0.6); }
#erpuziti .chips li { border-color: var(--tera-brand); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 32px; }
.cta-row .btn-solid { margin-top: 0; }
.btn-line {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 58px; padding: 12px 24px;
  border: 1.4px solid var(--tera-navy); border-radius: 14px;
  color: var(--tera-navy); font-size: 17px; font-weight: 500; line-height: 1.2;
  transition: background-color 0.2s, color 0.2s;
}
.btn-line svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-line:hover { background: var(--tera-navy); color: #fff; }

/* telas do sistema: moldura de "janela" em vez de foto recortada */
.feature.wide-media { grid-template-columns: 0.9fr 1.1fr; }
.split.wide { grid-template-columns: 0.82fr 1.18fr; }
.split.wide.reverse { grid-template-columns: 1.18fr 0.82fr; }
.feature-media.shot img, .split-media.shot img {
  width: 100%; height: auto; max-width: none; max-height: none;
  border: 1px solid rgb(11 29 58 / 0.1);
  border-radius: 16px;
  background: #fff;
  filter: none;
  box-shadow: 0 34px 60px -30px rgb(11 29 58 / 0.55), 0 10px 22px -12px rgb(11 29 58 / 0.3);
}
/* troca simples entre telas: imagens empilhadas na mesma célula; a nova sobe (slide-up) e aparece por cima da anterior
   (a anterior fica parada embaixo e só some depois, então a sombra/moldura nunca "pisca" no meio da transição) */
.split-media.fade { display: grid; }
.split-media.fade img { grid-area: 1 / 1; opacity: 0; transform: translateY(36px); }
.split-media.fade img.is-prev { opacity: 1; transform: none; z-index: 1; }
.split-media.fade img.is-on {
  opacity: 1; transform: none; z-index: 2;
  transition: opacity 0.6s ease, transform 0.9s cubic-bezier(0.22, 0.7, 0.2, 1);
}
/* no destaque, a tela "sai" pela borda direita do painel (o .feature corta o excesso) */
.feature.wide-media .feature-media.shot { margin-right: calc(-1 * clamp(28px, 5vw, 72px)); }
.feature.wide-media .feature-media.shot img { border-right: 0; border-radius: 16px 0 0 16px; }

/* galeria 3D do TERA ERP: telas empilhadas em perspectiva, abas com progresso e troca automática.
   Tudo é em em: o .hs-view tem font-size = largura da coluna / 47, então a pilha escala sozinha.
   O JS (main.js, seção 5) só escreve --p (0 = frente) em cada tela e alterna classes. */
.hshow {
  --hs-ink: #0b1d3a; --hs-muted: #52627f; --hs-accent: #5a35d1; --hs-dot: #88fbb6;
  --hs-line: rgb(11 29 58 / 0.1); --hs-ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  width: 100%; max-width: 720px; margin-inline: auto;
  container-type: inline-size; color: var(--hs-ink);
}
.hs-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.hs-view { position: relative; font-size: 11px; font-size: calc(100cqw / 47); perspective: 80em; perspective-origin: 60% -25%; }
.hs-glow {
  position: absolute; left: 4%; top: 10%; width: 92%; height: 84%; z-index: 0; pointer-events: none; filter: blur(2.6em); opacity: 0.9;
  background:
    radial-gradient(46% 50% at 62% 36%, rgb(115 61 242 / 0.34), rgb(115 61 242 / 0) 72%),
    radial-gradient(42% 46% at 28% 78%, rgb(63 124 255 / 0.3), rgb(63 124 255 / 0) 72%),
    radial-gradient(34% 36% at 90% 70%, rgb(143 213 241 / 0.55), rgb(143 213 241 / 0) 72%);
}
.hs-stage {
  position: relative; z-index: 1; width: 100%; height: 29.5em; transform-style: preserve-3d; transform-origin: 20% 100%;
  transform: rotateY(calc(-13deg + var(--mx, 0) * 4deg)) rotateX(calc(3deg + var(--my, 0) * -3deg)) rotateZ(0.8deg);
  transition: transform 0.7s var(--hs-ease);
}
.hs-slide {
  position: absolute; left: 0; bottom: 0; width: 89.4%; margin: 0; overflow: hidden; border-radius: 1.15em; background: #fff;
  transform: translate3d(calc(min(var(--p), 3) * 2em), calc(min(var(--p), 3) * -1.8em), calc(min(var(--p), 3) * -8em));
  opacity: calc(1 - min(var(--p), 3) * 0.2);
  box-shadow: 0 0 0 1px rgb(11 29 58 / 0.1), 0 2.2em 4.4em -1.6em rgb(52 28 150 / 0.42), 0 0.5em 1.4em -0.4em rgb(11 29 58 / 0.16);
  transition: transform 0.8s var(--hs-ease), opacity 0.65s ease, box-shadow 0.65s ease;
}
.hs-slide[aria-hidden="true"] { cursor: pointer; }
.hs-slide.gone { opacity: 0; pointer-events: none; }
.hs-slide.front { box-shadow: 0 0 0 1px rgb(11 29 58 / 0.1), 0 3.2em 6em -1.6em rgb(52 28 150 / 0.55), 0 0.5em 1.4em -0.4em rgb(11 29 58 / 0.2); }
/* véu claro: quanto mais ao fundo, mais a tela se dissolve no fundo do painel */
.hs-slide::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: #e9edff;
  opacity: calc(min(var(--p), 3) * 0.17); transition: opacity 0.65s ease;
}
/* brilho que atravessa a tela quando ela chega à frente */
.hs-slide::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background: linear-gradient(108deg, rgb(255 255 255 / 0) 38%, rgb(255 255 255 / 0.5) 50%, rgb(255 255 255 / 0) 62%);
  background-size: 260% 100%; background-position: 130% 0;
}
.hs-slide.shine::after { animation: hsshine 1.15s 0.25s var(--hs-ease) both; }
@keyframes hsshine { 0% { opacity: 1; background-position: 130% 0; } 100% { opacity: 0; background-position: -30% 0; } }
/* saída: a tela da frente avança, desliza para a esquerda e some; depois volta ao fundo (.snap: só a opacidade anima) */
.hs-slide.is-out { transform: translate3d(-7em, 1.2em, 9em) rotateY(9deg) rotateZ(-1.5deg); opacity: 0; }
.hs-slide.snap { transition: opacity 0.7s ease; }
.hs-bar { display: flex; align-items: center; gap: 0.5em; height: 2.3em; padding: 0 1em; background: #f4f6fc; border-bottom: 1px solid var(--hs-line); }
.hs-bar i { width: 0.68em; height: 0.68em; border-radius: 50%; background: #d7deee; }
.hs-bar span { margin-left: 0.7em; font-size: 0.82em; font-weight: 500; color: #6b7a99; }
.hshow .hs-slide img {
  display: block; width: 100%; height: auto; max-height: none; margin: 0; aspect-ratio: 1330 / 693;
  background: #f4f6fc; filter: none; object-fit: fill;
}

.hs-note {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 0.7em; white-space: nowrap;
  padding: 0.75em 1.1em; border-radius: 1.1em; background: #fff; font-size: max(1em, 11px); font-weight: 500; letter-spacing: -0.01em;
  box-shadow: 0 0 0 1px var(--hs-line), 0 0.7em 2.4em -0.5em rgb(11 29 58 / 0.28);
}
.hs-note i { width: 0.6em; height: 0.6em; border-radius: 50%; background: #12b886; box-shadow: 0 0 0.7em #12b886; }
.hs-note b { font-weight: 600; color: #0b8f78; }
.hs-note.n1 { top: 1.2em; right: -0.4em; }
.hs-note.n2 { bottom: 10em; left: -0.8em; }
.hs-note.n2 i { background: var(--hs-accent); box-shadow: 0 0 0.7em rgb(90 53 209 / 0.7); }
.hs-note.n2 b { color: var(--hs-accent); }
.js .hs-note.n1 { animation: hsfloat 6s ease-in-out infinite; }
.js .hs-note.n2 { animation: hsfloat 6s ease-in-out 2s infinite; }
@keyframes hsfloat { 50% { transform: translateY(-0.7em); } }

/* navegação: pílula com todos os tópicos. Só o item ativo mostra o título (e cresce para acomodá-lo);
   a linha mint nele é o progresso até a próxima tela. Fonte fixa, para continuar legível em colunas estreitas. */
.hs-ctl { position: relative; z-index: 3; display: flex; align-items: center; gap: 0.6em; margin-top: max(2em, calc(100cqw * 0.083)); width: 89.4%; font-size: 13px; }
.hs-tabs {
  display: flex; flex: 1; min-width: 0; gap: 0.15em; padding: 0.3em; border-radius: 99px; background: rgb(255 255 255 / 0.74);
  box-shadow: 0 0 0 1px var(--hs-line), 0 0.8em 2em -1em rgb(11 29 58 / 0.3); -webkit-backdrop-filter: blur(0.9em); backdrop-filter: blur(0.9em);
}
.hs-tabs button {
  position: relative; flex: 1 1 0; min-width: 0; height: 2.6em; display: flex; align-items: center; justify-content: center;
  padding: 0 0.4em; border: 0; border-radius: 99px; background: none; overflow: hidden; font-size: 0.92em; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  color: var(--hs-muted); transition: flex-grow 0.58s var(--hs-ease), background 0.3s ease, color 0.3s ease;
}
.hs-tabs button:hover { color: var(--hs-ink); background: rgb(11 29 58 / 0.06); }
.hs-tabs button.on, .hs-tabs button.on:hover { flex-grow: 3.8; color: #fff; background: var(--hs-ink); }
.hs-tabs .ic { flex: none; width: 1.3em; height: 1.3em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hs-lbl {
  display: block; max-width: 0; margin-left: 0; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateX(-0.5em);
  transition: max-width 0.58s var(--hs-ease), margin 0.58s var(--hs-ease), opacity 0.2s ease, transform 0.4s var(--hs-ease);
}
.hs-tabs button.on .hs-lbl { max-width: 11em; margin-left: 0.6em; opacity: 1; transform: none; transition-delay: 0s, 0s, 0.15s, 0.12s; }
.hs-fill {
  position: absolute; left: 1.1em; right: 1.1em; bottom: 0.3em; height: 0.17em; border-radius: 99px; overflow: hidden; pointer-events: none;
  background: rgb(255 255 255 / 0.2); opacity: 0; transition: opacity 0.3s ease;
}
.hs-tabs button.on .hs-fill { opacity: 1; transition-delay: 0.25s; }
.hs-fill::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--hs-dot); transform: scaleX(0); transform-origin: left; }
.hshow.run .hs-tabs button.on .hs-fill::after { animation: hsfill var(--hs-dur, 3.5s) linear forwards; }
.hshow.is-paused .hs-tabs button.on .hs-fill::after { animation-play-state: paused; }
@keyframes hsfill { to { transform: scaleX(1); } }
.hs-pp {
  flex: none; width: 3em; height: 3em; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / 0.74); color: var(--hs-ink);
  box-shadow: 0 0 0 1px var(--hs-line), 0 0.8em 2em -1em rgb(11 29 58 / 0.3); -webkit-backdrop-filter: blur(0.9em); backdrop-filter: blur(0.9em);
  transition: background 0.25s ease;
}
.hs-pp:hover { background: #fff; }
.hs-pp svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hs-pp .p2 { fill: currentColor; stroke-width: 0.6; }
.hs-pp .p2, .hs-pp.off .p1 { display: none; }
.hs-pp.off .p2 { display: block; }
.hs-tabs button:focus-visible, .hs-pp:focus-visible { outline: 2px solid var(--hs-accent); outline-offset: 2px; }
html:not(.js) .hs-ctl { display: none; }

@media (max-width: 560px) {
  .hs-ctl { width: 100%; gap: 0.5em; }
  .hs-tabs { gap: 0.1em; padding: 0.25em; }
  .hs-tabs button { font-size: 0.88em; padding: 0 0.2em; }
  .hs-tabs button.on, .hs-tabs button.on:hover { flex-grow: 5; }
  .hs-tabs .ic { width: 1.25em; height: 1.25em; }
  .hs-tabs button.on .hs-lbl { margin-left: 0.45em; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-slide.shine::after { animation: none; }
  .hs-stage, .hs-slide, .hs-slide::before { transition-duration: 0.01s; }
  .hshow.run .hs-tabs button.on .hs-fill::after { animation: none; transform: none; }
  .hs-tabs button, .hs-lbl, .hs-fill { transition-duration: 0.01s; transition-delay: 0s; }
  .js .hs-note.n1, .js .hs-note.n2 { animation: none; }
}

/* e-commerce */
.checklist {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px; margin-top: clamp(32px, 4vw, 56px);
}
.checklist li {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: #fff; border: 1px solid var(--hair); border-radius: 18px;
  font-size: 17px; font-weight: 500; line-height: 1.25;
}
.checklist li::before {
  content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D0D0C' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat,
    rgb(var(--glow));
}
.checklist .stat-card {
  grid-column: 1 / -1;
  gap: 28px; padding: 26px 30px;
  background: rgb(var(--glow) / 0.22); border-color: transparent;
  font-weight: 400; color: var(--ink-72);
}
.checklist .stat-card::before { display: none; }
.stat-card b { font-size: clamp(48px, 6vw, 80px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.stat-card span { max-width: 52ch; font-size: 17px; }

/* websites */
.statement {
  max-width: 24em;
  margin: clamp(48px, 7vw, 104px) 0 clamp(40px, 5vw, 72px);
  font-size: clamp(26px, 3.3vw, 46px); font-weight: 500; line-height: 1.12; letter-spacing: -0.028em;
}
.features-head { margin-bottom: 28px; }
.features-head .h3 { margin-bottom: 10px; font-size: clamp(26px, 2.6vw, 36px); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.features-grid li {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px;
  background: #fff; border: 1px solid var(--hair); border-radius: 20px;
  font-size: 17px; font-weight: 500; line-height: 1.25;
}
.features-grid svg {
  flex: none; width: 50px; height: 50px; padding: 13px;
  border-radius: 14px; background: rgb(var(--glow) / 0.4);
  fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- 6. Clientes, projetos, contato, sobre ----------------------- */
.clients { padding-bottom: clamp(32px, 4vw, 56px); }
.mood {
  min-height: 2.2em;
  margin: 0 auto clamp(36px, 5vw, 64px);
  max-width: 17em;
  text-align: center;
  font-size: clamp(30px, 4.6vw, 66px);
  font-weight: 500; line-height: 1.06; letter-spacing: -0.034em;
}
.caret {
  display: inline-block; width: 0.055em; height: 0.86em; margin-left: 0.05em;
  vertical-align: -0.08em; background: var(--ink);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.marquee {
  margin-top: 36px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.track { display: flex; width: max-content; animation: marquee 56s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.track li {
  --box: 108px;
  flex: none; width: 188px; height: var(--box); margin-right: 20px;
  display: flex; align-items: center; justify-content: center; padding: 18px;
  background: #fff; border: 1px solid var(--hair); border-radius: 22px;
}
.track img {
  max-width: 100%; max-height: calc(var(--box) - 38px); width: auto; height: auto; object-fit: contain;
  filter: grayscale(1); opacity: 0.85;
  transition: filter 0.3s, opacity 0.3s;
}
.track li:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

.projects { padding-top: clamp(24px, 3vw, 40px); }
.proj-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 18px; margin-top: clamp(28px, 4vw, 48px);
}
.proj {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 288 / 169;
  background: #fff; border: 1px solid var(--hair); border-radius: 22px;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s;
}
.proj:hover { transform: translateY(-4px); box-shadow: 0 26px 40px -28px rgb(13 13 12 / 0.5); }
.proj img { position: absolute; inset: 0; width: 100%; height: 100%; }
.proj .logo { object-fit: contain; transition: filter 0.3s ease-in; }
.proj .shot { object-fit: cover; opacity: 0; transition: opacity 0.35s ease; }
.proj:hover .shot, .proj.open .shot, .proj:focus-visible .shot { opacity: 1; }
.proj:hover .logo, .proj.open .logo { filter: blur(2px); }
.proj-hint { display: none; margin-top: 20px; text-align: center; font-size: 14px; color: var(--ink-56); }
@media (hover: none) { .proj-hint { display: block; } }

.contact-card {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 440px; padding: clamp(36px, 6vw, 96px);
  display: grid; place-items: center;
  border-radius: clamp(28px, 3.4vw, 48px);
  color: #fff; text-align: center;
}
.contact-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.contact-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(13 13 12 / 0.28), rgb(13 13 12 / 0.6));
}
.contact-in { max-width: 820px; display: flex; flex-direction: column; align-items: center; }
.contact-in .eyebrow { margin-bottom: 24px; }
.contact-text { font-size: clamp(24px, 3vw, 40px); font-weight: 500; line-height: 1.16; letter-spacing: -0.024em; }
.contact-text strong { font-weight: 500; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: rgb(255 255 255 / 0.5); }
.contact-brand { margin-top: 18px; font-size: 18px; font-weight: 500; color: rgb(255 255 255 / 0.8); }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; margin-top: 36px; }
/* mesmo padrão do .btn-solid (raio 14px, 58px, 17px), em creme sobre o fundo escuro */
.contact-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 58px; padding: 12px 26px; max-width: 100%;
  border-radius: 14px; background: var(--cream); color: var(--ink);
  font-size: 17px; font-weight: 500; line-height: 1.2; white-space: nowrap;
  transition: transform 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.contact-btn:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 16px 28px -14px rgb(13 13 12 / 0.55); }
.contact-btn svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-btn small { margin-right: 4px; font-size: 14px; font-weight: 400; opacity: 0.6; }

.about-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: clamp(28px, 6vw, 96px);
  padding: clamp(32px, 6vw, 96px);
  border-radius: clamp(28px, 3.4vw, 48px);
  color: #fff;
  background:
    radial-gradient(ellipse 60% 80% at 92% 100%, rgb(112 112 181 / 0.6), rgb(112 112 181 / 0) 70%),
    radial-gradient(ellipse 50% 60% at 18% 112%, rgb(112 181 170 / 0.38), rgb(112 181 170 / 0) 72%),
    linear-gradient(180deg, #3a1d5a, #26123f);
}
.about-card::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
  background-image: var(--grain); background-size: 240px; opacity: 0.2; mix-blend-mode: multiply;
}
.about-card > * { position: relative; z-index: 1; }
.about-lead { margin-top: 30px; max-width: 34em; font-size: clamp(20px, 2.2vw, 30px); font-weight: 500; line-height: 1.24; letter-spacing: -0.018em; }
.about-body { margin-top: 22px; max-width: 62ch; font-size: 17px; line-height: 1.6; color: rgb(255 255 255 / 0.72); }
.about-logo { width: clamp(110px, 15vw, 216px); height: auto; }

/* ---------- 7. Rodapé, WhatsApp, revelar ao rolar ----------------------- */
.footer {
  margin-top: clamp(40px, 6vw, 88px);
  padding: clamp(56px, 7vw, 96px) 0 28px;
  background: var(--ink); color: rgb(255 255 255 / 0.68);
  font-size: 16px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1.3fr; gap: 40px; }
.footer-brand p { margin-top: 20px; max-width: 30ch; line-height: 1.5; }
.footer h2 { margin-bottom: 20px; font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; }
.footer-col li + li { margin-top: 12px; }
.footer a { transition: color 0.2s; }
.footer a:hover { color: #fff; }
.footer address { display: grid; gap: 12px; line-height: 1.45; }
.social { display: flex; gap: 10px; margin-top: 22px; }
.footer .social li + li { margin-top: 0; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1.4px solid rgb(255 255 255 / 0.3); border-radius: 50%;
  transition: background-color 0.2s, border-color 0.2s;
}
.social a:hover { background: #fff; border-color: #fff; color: var(--ink); }
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  font-size: 14px;
}

.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 55;
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  color: #fff;
  background: linear-gradient(155deg, #3cea84 0%, #25d366 48%, #0f9d52 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.4),
    inset 0 -2px 6px rgb(0 0 0 / 0.12),
    0 12px 28px -8px rgb(37 211 102 / 0.65),
    0 4px 10px -2px rgb(13 13 12 / 0.25);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s, opacity 0.3s, visibility 0.3s;
}
.whatsapp-float svg { width: 52%; height: 52%; filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.18)); transition: transform 0.25s; }
/* anéis de pulso */
.whatsapp-float::before, .whatsapp-float::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: 50%; background: #25d366;
  opacity: 0; pointer-events: none;
  animation: wapulse 2.6s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
.whatsapp-float::after { animation-delay: 1.3s; }
@keyframes wapulse {
  0%   { transform: scale(1);   opacity: 0.5; }
  75%  { transform: scale(1.75); opacity: 0; }
  100% { transform: scale(1.75); opacity: 0; }
}
/* no hero o botão fica oculto (o hero já tem o CTA de WhatsApp); aparece ao rolar */
.js .whatsapp-float:not(.show) { opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.9); }
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.45),
    inset 0 -2px 6px rgb(0 0 0 / 0.12),
    0 18px 34px -8px rgb(37 211 102 / 0.8),
    0 6px 14px -2px rgb(13 13 12 / 0.3);
}
.whatsapp-float:hover svg { transform: rotate(-8deg) scale(1.05); }
.whatsapp-float:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px rgb(37 211 102 / 0.55); }
.js .whatsapp-float:not(.show)::before, .js .whatsapp-float:not(.show)::after { animation-play-state: paused; }

.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s);
}
.js [data-reveal].in { opacity: 1; transform: none; }
.svc[data-reveal].in { transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s), transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }

/* página de política de privacidade */
.legal { padding-top: calc(var(--nav-h) + clamp(32px, 5vw, 72px)); min-height: 70vh; }
.legal-card { max-width: 820px; margin-inline: auto; }
.legal h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 500; line-height: 1; letter-spacing: -0.034em; margin-bottom: 24px; }
.legal h2 { margin: 44px 0 12px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; }
.legal p, .legal li { font-size: 17px; line-height: 1.62; color: var(--ink-72); }
.legal ul { margin-top: 12px; padding-left: 22px; list-style: disc; }
.legal li + li { margin-top: 6px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal .updated { margin-top: 48px; font-size: 14px; color: var(--ink-56); font-style: italic; }
.legal .lead { color: var(--ink); }

/* ---------- 8. Responsivo ----------------------------------------------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc { min-height: 280px; }
  .feature, .feature.flip, .feature.wide-media { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
  .feature.wide-media .feature-media.shot { margin-right: 0; }
  .feature.wide-media .feature-media.shot img { border-right: 1px solid rgb(11 29 58 / 0.1); border-radius: 16px; }
  .split, .split.wide, .split.wide.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .about-card { grid-template-columns: 1fr; }
  .about-logo { order: -1; width: 96px; }
}

/* telefones (e retrato): painel em fluxo normal, nav em drawer */
@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px) {
  :root { --nav-h: 64px; --pad: clamp(10px, 3.9vw, 56px); /* metade da margem lateral desktop */ }

  .nav { gap: 12px; padding-inline: 20px; }
  .nav-links, .langs, .nav-cta { display: none; }
  .burger { display: flex; margin-right: -8px; }
  .brand img { height: 38px; }

  .hero { height: auto; }
  .glass-scene { display: none; }
  .panel { flex: none; padding: calc(var(--nav-h) + 44px) 20px 64px; }
  .hero-copy { position: relative; inset: auto; }
  .headline {
    position: static;
    /* briefing: clamp(52px, 15.5vw, 88px); as palavras daqui ("Automatize") são mais longas,
       então o piso/vw são um pouco menores para nunca encostar na borda */
    font-size: clamp(44px, 14.2vw, 88px);
  }
  .row {
    position: static;
    flex-direction: column; align-items: flex-start;
    gap: 24px; margin-top: 40px;
  }
  .ctas { flex-wrap: wrap; gap: 12px; }
  .store { height: 58px; padding: 0 22px 0 16px; border-radius: 14px; gap: 12px; }
  .store svg { width: 26px; height: 26px; }
  .store small { font-size: 11px; }
  .store b { font-size: 19px; }
  .caption { max-width: 34ch; font-size: 16px; }

  .strip { flex: none; padding: 52px 20px 36px; }
  .notch { height: 40px; }
  .scroll-hint { display: none; }
  .strip-in {
    display: grid; grid-template-columns: 1fr; align-items: end;
    gap: 28px 12px; height: auto; padding-inline: 0;
  }
  .strip-title { grid-column: 1 / -1; font-size: 26px; }
  .stats {
    grid-column: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px;
  }
  .stats li { width: auto; max-width: none; min-width: 0; }
  .num { font-size: 44px; }
  .lbl { min-width: 0; margin-top: 6px; font-size: 14px; }

  .section { padding-block: 36px; }
  .services { padding-top: 48px; }
  .feature { padding: 28px 22px; }
  .body { font-size: 17px; }
  .checklist { grid-template-columns: 1fr; }
  .checklist .stat-card { flex-direction: column; align-items: flex-start; gap: 12px; }
  .features-grid { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .track li { --box: 90px; width: 150px; margin-right: 14px; }
  .contact-card { min-height: 0; }
  .contact-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .contact-btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .whatsapp-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

@media (max-width: 420px) {
  .proj-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
  .track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; row-gap: 14px; }
  .track li:nth-child(n + 13) { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; padding-inline: var(--pad); }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .svc, .proj, .btn-solid, .contact-btn { transition: none; }
  .whatsapp-float::before, .whatsapp-float::after { animation: none; display: none; }
  .whatsapp-float:hover, .whatsapp-float:hover svg { transform: none; }
}
