/* ==========================================================================
   FourMind — Design System
   Paleta original preservada:
   Azul #4D8BB6 · Roxo #6863A9 · Ciano #3AA8C0 · Magenta #883198
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Marca (inalterada) */
  --blue: #4d8bb6;
  --purple: #6863a9;
  --cyan: #3aa8c0;
  --magenta: #883198;
  --white: #ffffff;
  --black: #000000;

  /* Derivados de marca */
  --cyan-200: #8fd9e8;
  --blue-200: #9dc4de;
  --purple-200: #b2aee0;

  /* Escala de fundo (neutros frios) */
  --ink-950: #06070c;
  --ink-900: #090a11;
  --ink-850: #0c0e16;
  --ink-800: #10121c;
  --ink-750: #161927;

  /* Texto */
  --text: #eef1fa;
  --text-soft: #c3cadd;
  --muted: #98a1ba;
  --faint: #7c86a3;
  --pink-200: #d3a6dd;

  /* Superfícies e linhas */
  --surface: rgba(255, 255, 255, 0.038);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Gradientes */
  --grad-brand: linear-gradient(100deg, var(--cyan) 0%, var(--blue) 42%, var(--purple) 72%, var(--magenta) 100%);
  /* variante clara: usada em texto, para manter contraste AA sobre fundo escuro */
  --grad-text: linear-gradient(100deg, var(--cyan-200) 0%, var(--blue-200) 38%, var(--purple-200) 70%, var(--pink-200) 100%);
  --grad-cta: linear-gradient(100deg, var(--magenta), var(--purple) 45%, var(--blue));
  --grad-line: linear-gradient(90deg, transparent, rgba(58, 168, 192, 0.55), rgba(136, 49, 152, 0.45), transparent);

  /* Raios */
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 30px;
  --r-full: 999px;

  /* Sombras */
  --sh-1: 0 8px 24px rgba(0, 0, 0, 0.28);
  --sh-2: 0 18px 44px rgba(0, 0, 0, 0.38);
  --sh-3: 0 32px 80px rgba(0, 0, 0, 0.5);
  --sh-brand: 0 16px 40px rgba(104, 99, 169, 0.32);

  /* Ritmo */
  --pad-x: clamp(20px, 4.5vw, 34px);
  --sec-y: clamp(64px, 8.5vw, 118px);
  --maxw: 1200px;

  /* Curvas */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 76px;
}

/* ---------- 2. Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

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

body {
  font-family: "Poppins", "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(15.5px, 0.42vw + 14.5px, 17px);
  line-height: 1.65;
  font-weight: 300;
  color: var(--text-soft);
  background: var(--ink-950);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Camada de atmosfera: brilho de marca + malha de pontos + grão */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
body::before {
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(104, 99, 169, 0.2), transparent 62%),
    radial-gradient(760px 460px at 8% 4%, rgba(58, 168, 192, 0.14), transparent 60%),
    radial-gradient(1100px 700px at 50% 108%, rgba(136, 49, 152, 0.12), transparent 62%);
}
body::after {
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 78%);
  opacity: 0.55;
}

main,
.site-header,
.site-footer,
.mobile-nav,
.nav-backdrop,
.whatsapp-fab { position: relative; z-index: 1; }

img,
svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--white);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 1.15rem + 4vw, 4.05rem); }
h2 { font-size: clamp(1.72rem, 0.95rem + 2.6vw, 2.85rem); }
h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.012em; }

p { text-wrap: pretty; }

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

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

button { font: inherit; color: inherit; }

strong { color: var(--text); font-weight: 600; }

::selection { background: rgba(104, 99, 169, 0.45); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan-200);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--r-xs);
  background: var(--ink-800);
  border: 1px solid var(--line-strong);
  color: var(--white);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus-visible { top: 16px; }

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

.ico {
  width: 20px;
  height: 20px;
  flex: none;
  color: inherit;
}
.ico-xs { width: 15px; height: 15px; }

/* ---------- 3. Tipografia de seção ---------- */
.section { padding-block: var(--sec-y); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.narrow { max-width: 660px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--cyan-200);
  margin-bottom: 16px;
}
.eyebrow-dot {
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  flex: none;
}

.section-lead {
  color: var(--muted);
  font-size: 1.03rem;
  max-width: 62ch;
  margin-top: 18px;
}

.grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 4. Botões ---------- */
.btn {
  --btn-y: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: var(--btn-y) 22px;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  font-family: "Montserrat", sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.2s var(--ease);
}
.btn .ico { width: 18px; height: 18px; transition: transform 0.25s var(--ease-out); }
.btn:hover .ico { transform: translateX(3px); }

.btn-sm { --btn-y: 10px; padding-inline: 18px; font-size: 0.86rem; }
.btn-block { width: 100%; }

.btn-primary {
  position: relative;
  color: #fff;
  background: var(--grad-cta);
  background-size: 160% 100%;
  background-position: 0% 50%;
  box-shadow: var(--sh-brand);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease), background-position 0.5s var(--ease);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), transparent 52%);
  opacity: 0.7;
  pointer-events: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 20px 46px rgba(136, 49, 152, 0.42);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-strong);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(143, 217, 232, 0.5);
  color: #fff;
}

.btn-quiet {
  color: var(--text-soft);
  background: transparent;
  border-color: var(--line);
}
.btn-quiet:hover { color: #fff; border-color: var(--line-strong); background: rgba(255, 255, 255, 0.04); }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease),
              backdrop-filter 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.is-stuck {
  background: rgba(8, 9, 15, 0.72);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
  transition: height 0.35s var(--ease);
}
.site-header.is-stuck .nav { height: 66px; }

.brand { display: flex; align-items: center; flex: none; padding-block: 7px; }
.brand img {
  height: 34px;
  width: auto;
  transition: transform 0.3s var(--ease-out);
}
.brand:hover img { transform: scale(1.03); }

.menu {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
}
.menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--r-full);
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease);
}
.menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease-out);
}
.menu a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.menu a.is-active { color: #fff; }
.menu a.is-active::after { width: 20px; }
.menu-ext .ico { opacity: 0.6; }

.nav-actions { display: flex; align-items: center; gap: 12px; flex: none; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out), opacity 0.2s var(--ease), width 0.3s var(--ease-out);
}
.menu-toggle span:nth-child(3) { width: 62%; align-self: flex-start; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { width: 100%; transform: translateY(-7px) rotate(-45deg); }

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.site-header.is-stuck .scroll-progress { opacity: 1; }

/* ---------- 6. Menu mobile (drawer) ---------- */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(4, 5, 9, 0.66);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.nav-backdrop.is-open { opacity: 1; }
.nav-backdrop[hidden],
.mobile-nav[hidden] { display: none; }

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  width: min(400px, 88vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 20px var(--pad-x) calc(24px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, var(--ink-850), var(--ink-950));
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 70px rgba(0, 0, 0, 0.55);
  transform: translateX(102%);
  transition: transform 0.42s var(--ease-out);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-nav.is-open { transform: translateX(0); }

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav-head img { height: 30px; width: auto; }
.mobile-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
.mobile-close:hover { background: rgba(255, 255, 255, 0.1); }
.mobile-close svg { width: 20px; height: 20px; }

.mobile-links { padding-block: 12px; }
.mobile-links li {
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease-out);
}
.mobile-nav.is-open .mobile-links li { opacity: 1; transform: none; }
.mobile-nav.is-open .mobile-links li:nth-child(1) { transition-delay: 0.06s; }
.mobile-nav.is-open .mobile-links li:nth-child(2) { transition-delay: 0.1s; }
.mobile-nav.is-open .mobile-links li:nth-child(3) { transition-delay: 0.14s; }
.mobile-nav.is-open .mobile-links li:nth-child(4) { transition-delay: 0.18s; }
.mobile-nav.is-open .mobile-links li:nth-child(5) { transition-delay: 0.22s; }
.mobile-nav.is-open .mobile-links li:nth-child(6) { transition-delay: 0.26s; }
.mobile-nav.is-open .mobile-links li:nth-child(7) { transition-delay: 0.3s; }

.mobile-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 8px 4px;
  font-family: "Montserrat", sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mobile-links a .ico { color: var(--faint); transition: transform 0.25s var(--ease-out), color 0.2s var(--ease); }
.mobile-links a:hover,
.mobile-links a:active { color: var(--cyan-200); }
.mobile-links a:hover .ico { transform: translateX(4px); color: var(--cyan); }

.mobile-nav-foot {
  margin-top: auto;
  padding-top: 22px;
  display: grid;
  gap: 10px;
}
.mobile-mail {
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  padding-top: 6px;
}

/* ---------- 7. Reveal (scroll) ----------
   Só esconde quando o JS está ativo (classe .js no <html>). Sem JS, ou se o
   script falhar, o conteúdo continua visível. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}
.js .reveal.is-in { opacity: 1; transform: none; will-change: auto; }
.js .reveal[data-delay="1"] { transition-delay: 0.07s; }
.js .reveal[data-delay="2"] { transition-delay: 0.14s; }
.js .reveal[data-delay="3"] { transition-delay: 0.21s; }
.js .reveal[data-delay="4"] { transition-delay: 0.28s; }
.js .reveal[data-delay="5"] { transition-delay: 0.35s; }

/* ---------- 8. Cartão base + spotlight ---------- */
.card-base {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.35s var(--ease), box-shadow 0.4s var(--ease);
}
[data-spotlight]::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%),
              rgba(143, 217, 232, 0.16), rgba(104, 99, 169, 0.1) 42%, transparent 68%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
  z-index: 0;
}
[data-spotlight]:hover::before,
[data-spotlight]:focus-within::before { opacity: 1; }
[data-spotlight] > * { position: relative; z-index: 1; }

/* ---------- 9. Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(48px, 7vw, 84px);
  padding-bottom: clamp(56px, 8vw, 104px);
  overflow: clip;
}
.hero-aura {
  position: absolute;
  top: -30%;
  right: -12%;
  width: min(920px, 96vw);
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, rgba(77, 139, 182, 0.2), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.hero-copy h1 { margin-bottom: 22px; }
.hero-lead {
  font-size: clamp(1.02rem, 0.5vw + 0.9rem, 1.2rem);
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 32px;
}
.hero-lead strong { color: var(--white); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-proof li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--muted);
}
.hero-proof .ico { width: 18px; height: 18px; color: var(--cyan); }

/* Mindmap */
.hero-visual { position: relative; }
.hero-visual-glow {
  position: absolute;
  inset: 8% 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(104, 99, 169, 0.22), transparent 66%);
  filter: blur(30px);
  pointer-events: none;
}
.mindmap {
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: "Montserrat", sans-serif;
}

.mm-link { stroke: rgba(255, 255, 255, 0.11); stroke-width: 1.4; }
.mm-flow {
  stroke: url(#gEdge);
  stroke-width: 2.6;
  stroke-dasharray: 26 300;
  stroke-dashoffset: 326;
  animation: mmFlow 3.8s linear infinite;
  animation-delay: var(--d, 0s);
}
.mm-flow-out { stroke-dasharray: 18 120; stroke-dashoffset: 138; animation-name: mmFlowOut; animation-duration: 2.6s; }
@keyframes mmFlow { from { stroke-dashoffset: 326; } to { stroke-dashoffset: 0; } }
@keyframes mmFlowOut { from { stroke-dashoffset: 138; } to { stroke-dashoffset: 0; } }

.mm-nodes circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: mmNode 4.6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.mm-nodes circle:nth-child(4n + 1) { fill: var(--cyan-200); }
.mm-nodes circle:nth-child(4n + 2) { fill: var(--blue-200); }
.mm-nodes circle:nth-child(4n + 3) { fill: var(--purple-200); }
.mm-nodes circle:nth-child(4n) { fill: var(--pink-200); }
@keyframes mmNode {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.mm-halo { animation: mmHalo 8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes mmHalo {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.mm-pill rect {
  fill: rgba(255, 255, 255, 0.05);
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
}
.mm-pill text {
  fill: #fff;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-anchor: middle;
}
/* "Desenvolvimento" é o rótulo mais longo: um passo menor para respirar */
.mm-pill.mm-pill-long text { font-size: 18px; }
.mm-pill-out rect { fill: rgba(136, 49, 152, 0.18); stroke: rgba(211, 166, 221, 0.42); }
.mm-pill-out text { fill: #f0dcf5; }

.mm-core { transition: transform 0.5s var(--ease-out); }
.mm-pills { transition: transform 0.6s var(--ease-out); }
.hero-visual[data-parallax-on] .mm-core { transform: translate(calc(var(--px, 0) * 7px), calc(var(--py, 0) * 7px)); }
.hero-visual[data-parallax-on] .mm-pills { transform: translate(calc(var(--px, 0) * -12px), calc(var(--py, 0) * -12px)); }

/* ---------- 10. Fluxo de valor ---------- */
.section-flow { padding-top: clamp(40px, 5vw, 70px); }

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: flow;
}
.flow-step {
  position: relative;
  padding: 26px 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  transition: transform 0.4s var(--ease-out), border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}
.flow-step:hover { transform: translateY(-4px); border-color: rgba(143, 217, 232, 0.3); }

/* seta de ligação entre etapas */
.flow-step::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -12px;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid rgba(255, 255, 255, 0.22);
  border-right: 1.5px solid rgba(255, 255, 255, 0.22);
  transform: translateY(-50%) rotate(45deg);
}
.flow-step:last-child::after { display: none; }

.flow-index {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--faint);
}
.flow-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  color: var(--cyan-200);
  background: linear-gradient(150deg, rgba(58, 168, 192, 0.18), rgba(104, 99, 169, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.flow-icon .ico { width: 22px; height: 22px; }
.flow-step h3 { margin-bottom: 8px; }
.flow-step p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* ---------- 11. Sobre ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: clamp(30px, 4.5vw, 64px);
  align-items: start;
}
.about-copy > p { color: var(--muted); margin-bottom: 16px; max-width: 62ch; }

.capsules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}
.capsule {
  position: relative;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.032);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.35s var(--ease);
}
.capsule:hover { transform: translateY(-3px); border-color: rgba(143, 217, 232, 0.3); }
.capsule-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  margin-bottom: 14px;
  color: var(--cyan-200);
  background: rgba(58, 168, 192, 0.12);
  border: 1px solid rgba(58, 168, 192, 0.22);
}
.capsule-icon .ico { width: 19px; height: 19px; }
.capsule h3 { font-size: 0.99rem; margin-bottom: 4px; }
.capsule p { font-size: 0.855rem; color: var(--muted); line-height: 1.55; }

.about-media { margin: 0; }
.about-media-inner {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(600px 320px at 80% 0%, rgba(58, 168, 192, 0.1), transparent 62%),
    radial-gradient(420px 280px at 0% 100%, rgba(136, 49, 152, 0.1), transparent 60%),
    rgba(255, 255, 255, 0.028);
  box-shadow: var(--sh-2);
  overflow: hidden;
}
.about-media-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 72%);
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 72%);
}
.about-media-inner img {
  position: relative;
  width: min(300px, 74%);
  filter: drop-shadow(0 20px 44px rgba(104, 99, 169, 0.4));
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.about-media figcaption {
  margin-top: 14px;
  font-size: 0.83rem;
  color: var(--faint);
  text-align: center;
}

/* ---------- 12. Pilares (RPA / BI) ---------- */
.section-pillar { position: relative; }
.section-pillar-alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.022) 12%, rgba(255, 255, 255, 0.022) 88%, transparent);
  border-block: 1px solid var(--line);
}

.pillar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4.5vw, 68px);
  align-items: center;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin-top: 30px;
}
.check-grid li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}
.check-grid .ico {
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  color: var(--cyan-200);
  background: rgba(58, 168, 192, 0.14);
  margin-top: 2px;
}
.check-grid strong { color: var(--text); }

.pillar-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Painéis */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02) 55%);
  box-shadow: var(--sh-3);
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(143, 217, 232, 0.42), transparent 38%, transparent 62%, rgba(178, 174, 224, 0.34));
  -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;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.panel-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
}
.panel-note {
  margin-top: 16px;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--faint);
}

/* Painel RPA */
.run-steps { display: grid; gap: 4px; }
.run-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background-color: transparent;
}
.run-step::after {
  content: "";
  position: absolute;
  left: 30px;
  top: 100%;
  width: 1px;
  height: 4px;
  background: var(--line-strong);
}
.run-step:last-child::after { display: none; }

.run-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: transparent;
}
.run-mark .ico { width: 15px; height: 15px; opacity: 0; }
.run-step div { display: grid; gap: 1px; min-width: 0; }
.run-step strong {
  font-family: "Montserrat", sans-serif;
  font-size: 0.89rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.4s var(--ease);
}
.run-step span {
  font-size: 0.77rem;
  color: var(--faint);
  line-height: 1.4;
}

/* animação sequencial (pausada fora da tela) */
.panel-run.is-live .run-step {
  animation: runRow 7s linear infinite backwards;
  animation-delay: calc(var(--i, 0) * 0.95s);
}
.panel-run.is-live .run-step:nth-child(1) { --i: 0; }
.panel-run.is-live .run-step:nth-child(2) { --i: 1; }
.panel-run.is-live .run-step:nth-child(3) { --i: 2; }
.panel-run.is-live .run-step:nth-child(4) { --i: 3; }
.panel-run.is-live .run-step:nth-child(5) { --i: 4; }

.panel-run.is-live .run-mark {
  animation: runMark 7s linear infinite backwards;
  animation-delay: calc(var(--i, 0) * 0.95s);
}
.panel-run.is-live .run-mark .ico {
  animation: runCheck 7s linear infinite backwards;
  animation-delay: calc(var(--i, 0) * 0.95s);
}
.panel-run.is-live .run-step strong {
  animation: runText 7s linear infinite backwards;
  animation-delay: calc(var(--i, 0) * 0.95s);
}

@keyframes runRow {
  0%, 3% { background-color: transparent; border-color: transparent; }
  6%, 12% { background-color: rgba(58, 168, 192, 0.1); border-color: rgba(58, 168, 192, 0.28); }
  16%, 96% { background-color: rgba(255, 255, 255, 0.028); border-color: rgba(255, 255, 255, 0.07); }
  100% { background-color: transparent; border-color: transparent; }
}
@keyframes runMark {
  0%, 3% { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.04); transform: scale(1); }
  8% { border-color: var(--cyan); background: rgba(58, 168, 192, 0.22); transform: scale(1.14); }
  16%, 96% { border-color: transparent; background: linear-gradient(135deg, var(--cyan), var(--purple)); transform: scale(1); }
  100% { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.04); transform: scale(1); }
}
@keyframes runCheck {
  0%, 10% { opacity: 0; transform: scale(0.5); color: #fff; }
  16%, 96% { opacity: 1; transform: scale(1); color: #fff; }
  100% { opacity: 0; transform: scale(0.5); color: #fff; }
}
@keyframes runText {
  0%, 5% { color: var(--muted); }
  16%, 96% { color: var(--white); }
  100% { color: var(--muted); }
}

.panel-foot { margin-top: 18px; }
.run-bar {
  height: 4px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.run-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--grad-brand);
}
.panel-run.is-live .run-bar span { animation: runBar 7s linear infinite; }
@keyframes runBar {
  0% { width: 0; opacity: 1; }
  92% { width: 100%; opacity: 1; }
  97% { width: 100%; opacity: 0.25; }
  100% { width: 0; opacity: 0; }
}

/* Painel BI */
.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.kpi {
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.032);
  min-width: 0;
}
.kpi-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--faint);
  margin-bottom: 6px;
}
.kpi-value {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--muted);
}
.kpi-trend.up { color: #7fd0a5; }
.kpi-trend.down { color: var(--cyan-200); }

.chart {
  padding: 16px 14px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.022);
}
.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.chart-title {
  font-family: "Montserrat", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.chart-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--faint);
}
.chart-legend .dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  display: inline-block;
  margin-right: 1px;
  margin-left: 6px;
}
.chart-legend .dot:first-child { margin-left: 0; }
.dot-bar { background: linear-gradient(180deg, var(--cyan), var(--blue)); }
.dot-line { background: var(--magenta); border-radius: 50%; }

.chart-body { position: relative; height: 132px; }
.bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  gap: clamp(4px, 1vw, 8px);
}
.bars span {
  flex: 1;
  height: var(--h);
  min-width: 0;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, rgba(58, 168, 192, 0.95), rgba(77, 139, 182, 0.35));
  transform-origin: bottom;
  transition: transform 0.75s var(--ease-out);
}
.js .bars span { transform: scaleY(0); }
.js .panel-bi.is-live .bars span { transform: scaleY(1); }
.bars span:nth-child(1) { transition-delay: 0.02s; }
.bars span:nth-child(2) { transition-delay: 0.07s; }
.bars span:nth-child(3) { transition-delay: 0.12s; }
.bars span:nth-child(4) { transition-delay: 0.17s; }
.bars span:nth-child(5) { transition-delay: 0.22s; }
.bars span:nth-child(6) { transition-delay: 0.27s; }
.bars span:nth-child(7) { transition-delay: 0.32s; }
.bars span:nth-child(8) { transition-delay: 0.37s; }
.bars span:nth-child(9) { transition-delay: 0.42s; }
.bars span:nth-child(10) { transition-delay: 0.47s; }
.bars span:nth-child(11) { transition-delay: 0.52s; }
.bars span:nth-child(12) { transition-delay: 0.57s; }

.spark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.spark-line {
  fill: none;
  stroke: #d3a6dd;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 6px rgba(136, 49, 152, 0.5));
  transition: stroke-dashoffset 1.6s var(--ease-out) 0.3s;
}
.js .spark-line { stroke-dashoffset: 100; }
.js .panel-bi.is-live .spark-line { stroke-dashoffset: 0; }

.chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.73rem;
  color: var(--faint);
  letter-spacing: 0.04em;
}

/* ---------- 13. Serviços ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.service-card {
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.016));
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.35s var(--ease), box-shadow 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(143, 217, 232, 0.32);
  box-shadow: var(--sh-2);
}
.service-card:nth-child(1) { grid-column: span 4; }
.service-card:nth-child(2) { grid-column: span 2; }
.service-card:nth-child(3) { grid-column: span 2; }
.service-card:nth-child(4) { grid-column: span 4; }
.service-lead h3 { font-size: 1.3rem; }
.service-lead p { font-size: 0.97rem; }

.service-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 15px;
  color: var(--cyan-200);
  background: linear-gradient(150deg, rgba(58, 168, 192, 0.2), rgba(136, 49, 152, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.4s var(--ease-out), color 0.3s var(--ease);
}
.service-icon .ico { width: 23px; height: 23px; }
.service-card:hover .service-icon { transform: translateY(-2px) rotate(-4deg); color: #fff; }

.service-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--white);
}
.service-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.62; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}
.tag-list li {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.035);
}

.service-ext { color: inherit; }
.service-ext h3 .ico { color: var(--faint); }
.service-link {
  margin-top: auto;
  padding-top: 18px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan-200);
}
.service-ext:hover .service-link { color: #fff; }

/* ---------- 14. Diferenciais ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.why-card {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.028);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.35s var(--ease);
}
.why-card:hover { transform: translateY(-4px); border-color: rgba(178, 174, 224, 0.35); }
.why-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 50%;
  color: var(--purple-200);
  background: radial-gradient(circle at 35% 30%, rgba(104, 99, 169, 0.34), rgba(104, 99, 169, 0.1));
  border: 1px solid rgba(178, 174, 224, 0.24);
}
.why-icon .ico { width: 24px; height: 24px; }
.why-card h3 { font-size: 1.12rem; margin-bottom: 9px; }
.why-card p { font-size: 0.9rem; color: var(--muted); }

/* ---------- 15. Processo ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  position: relative;
}
.process-step { position: relative; }
.process-step::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 98px;
  right: -18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04));
}
.process-step:last-child::before { display: none; }
.process-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 50%;
  font-family: "Montserrat", sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--white);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line-strong);
}
.process-icon {
  position: absolute;
  top: 15px;
  left: 66px;
  color: var(--faint);
  opacity: 0.55;
}
.process-icon .ico { width: 22px; height: 22px; }
.process-step h3 { margin-bottom: 8px; }
.process-step p { font-size: 0.89rem; color: var(--muted); line-height: 1.6; }

/* ---------- 16. Equipe ---------- */
.section-team {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02) 14%, rgba(255, 255, 255, 0.02) 86%, transparent);
  border-block: 1px solid var(--line);
}
.team-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(34px, 4.5vw, 56px);
}
.team-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}
.team-stats > div {
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}
.team-stats dd {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.team-stats dt {
  order: 2;
  margin-top: 8px;
  font-size: 0.77rem;
  line-height: 1.35;
  color: var(--muted);
}
.team-stats > div { display: flex; flex-direction: column; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.016));
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.35s var(--ease), box-shadow 0.4s var(--ease);
}
.team-card:hover {
  transform: translateY(-5px);
  border-color: rgba(143, 217, 232, 0.34);
  box-shadow: var(--sh-2);
}

.team-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(180deg, #cfd8e2, #aab7c6);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.14);
  transition: transform 0.6s var(--ease-out), filter 0.5s var(--ease);
  filter: saturate(1.02) contrast(1.02);
}
.team-card:hover .team-photo img { transform: scale(1.2); }
.team-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 10, 17, 0.1) 0%, transparent 26%, rgba(9, 10, 17, 0.55) 82%, rgba(9, 10, 17, 0.95) 100%),
    linear-gradient(140deg, rgba(58, 168, 192, 0.14), transparent 48%, rgba(136, 49, 152, 0.16));
  pointer-events: none;
}

.team-info { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.team-info h3 { font-size: 1.06rem; margin-bottom: 3px; }
.team-role {
  font-family: "Montserrat", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.team-bio { font-size: 0.855rem; color: var(--muted); line-height: 1.55; }
.team-info .tag-list { margin-top: 14px; margin-bottom: 16px; }
.team-info .tag-list li { font-size: 0.73rem; padding: 4px 9px; }

.team-social {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--muted);
  min-height: 40px;
  padding-block: 8px;
}
.team-social:hover { color: var(--cyan-200); }

/* ---------- 17. FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.faq-list { display: grid; gap: 10px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.028);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.faq-item[open] { border-color: rgba(143, 217, 232, 0.3); background: rgba(255, 255, 255, 0.045); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-family: "Montserrat", sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: #fff; }
.faq-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--cyan-200);
  transition: transform 0.35s var(--ease-out), background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.faq-item[open] .faq-mark {
  transform: rotate(135deg);
  background: rgba(58, 168, 192, 0.18);
  border-color: rgba(58, 168, 192, 0.4);
}
.faq-answer { padding: 0 20px 20px; }
.faq-answer p { font-size: 0.9rem; color: var(--muted); max-width: 62ch; }

/* ---------- 18. Contato ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 4vw, 64px);
  align-items: start;
}

.contact-channels { display: grid; gap: 10px; margin-top: 34px; }
.channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  transition: transform 0.35s var(--ease-out), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
a.channel:hover {
  transform: translateX(4px);
  border-color: rgba(143, 217, 232, 0.34);
  background: rgba(255, 255, 255, 0.055);
}
.channel-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 13px;
  color: var(--cyan-200);
  background: rgba(58, 168, 192, 0.13);
  border: 1px solid rgba(58, 168, 192, 0.22);
}
.channel-icon-whats { color: #5ee292; background: rgba(37, 211, 102, 0.12); border-color: rgba(37, 211, 102, 0.24); }
.channel-text { display: grid; gap: 1px; min-width: 0; }
.channel-text strong { font-family: "Montserrat", sans-serif; font-size: 0.92rem; }
.channel-text span {
  font-size: 0.82rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.channel-arrow {
  margin-left: auto;
  color: var(--faint);
  transition: transform 0.3s var(--ease-out), color 0.3s var(--ease);
}
a.channel:hover .channel-arrow { transform: translateX(3px); color: var(--cyan-200); }
.channel-static { cursor: default; }

/* Formulário */
.contact-form {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02));
  box-shadow: var(--sh-2);
}
.form-title { font-size: 1.16rem; margin-bottom: 22px; }

.form-row { display: grid; gap: 7px; margin-bottom: 16px; }
.form-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-fieldset { border: 0; padding: 0; min-width: 0; }
.form-fieldset legend { padding: 0; margin-bottom: 10px; }

.form-row label,
.form-fieldset legend {
  font-family: "Montserrat", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
}
.opt { color: var(--faint); font-weight: 400; }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.contact-form textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.contact-form ::placeholder { color: var(--faint); opacity: 1; }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(58, 168, 192, 0.6);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 0 0 3px rgba(58, 168, 192, 0.16);
}
.contact-form input:focus-visible,
.contact-form textarea:focus-visible { outline: none; }
.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] {
  border-color: rgba(255, 138, 138, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 138, 138, 0.13);
}
.field-error {
  font-size: 0.78rem;
  color: #ff9d9d;
  min-height: 0;
}
.field-error:empty { display: none; }

.chip-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.chip span {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.25s var(--ease);
}
.chip:hover span { color: var(--text); border-color: var(--line-strong); }
.chip input:checked + span {
  color: #fff;
  border-color: rgba(143, 217, 232, 0.5);
  background: linear-gradient(100deg, rgba(58, 168, 192, 0.22), rgba(104, 99, 169, 0.22));
}
.chip input:focus-visible + span { outline: 2px solid var(--cyan-200); outline-offset: 2px; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#submitBtn { margin-top: 8px; }
#submitBtn[data-loading="true"] { opacity: 0.75; pointer-events: none; }

.form-feedback {
  margin-top: 12px;
  font-size: 0.87rem;
  color: var(--cyan-200);
  min-height: 1.2em;
}
.form-feedback[data-state="error"] { color: #ff9d9d; }
.form-feedback[data-state="ok"] { color: #7fd0a5; }
.form-legal { margin-top: 10px; font-size: 0.78rem; color: var(--faint); }

/* ---------- 19. Rodapé ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent);
  margin-top: clamp(20px, 4vw, 40px);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 3vw, 48px);
  padding-block: clamp(44px, 6vw, 68px);
}
.footer-brand img { height: 32px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 0.88rem; color: var(--muted); max-width: 38ch; }

.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.25s var(--ease);
}
.footer-social a:hover {
  color: #fff;
  transform: translateY(-2px);
  border-color: rgba(143, 217, 232, 0.4);
  background: rgba(58, 168, 192, 0.12);
}

.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 4px;
}
.footer-col a,
.footer-plain {
  font-size: 0.88rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.footer-col a:hover { color: var(--cyan-200); }
.footer-cta { align-self: flex-start; margin-top: 6px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.82rem;
}
.footer-bottom small { font-size: inherit; }

/* ---------- 20. WhatsApp FAB ---------- */
.whatsapp-fab {
  position: fixed;
  right: clamp(14px, 2.5vw, 26px);
  bottom: clamp(14px, 2.5vw, 26px);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 56px;
  padding: 0 16px;
  border-radius: var(--r-full);
  color: #fff;
  background: linear-gradient(140deg, #2ee27a, #12a350);
  box-shadow: 0 14px 34px rgba(18, 163, 80, 0.34), 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease), gap 0.35s var(--ease-out);
}
.whatsapp-fab .ico { width: 26px; height: 26px; }
.whatsapp-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: "Montserrat", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0;
  transition: max-width 0.4s var(--ease-out), opacity 0.3s var(--ease);
}
.whatsapp-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(18, 163, 80, 0.44);
  gap: 10px;
}
.whatsapp-fab:hover .whatsapp-label { max-width: 190px; opacity: 1; }

/* ==========================================================================
   21. Responsivo
   ========================================================================== */

/* Notebook / desktop pequeno */
@media (max-width: 1180px) {
  .menu a { padding-inline: 11px; font-size: 0.87rem; }
  .brand img { height: 31px; }
}

@media (max-width: 1040px) {
  :root { --header-h: 70px; }
  .menu,
  .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .nav { justify-content: space-between; }

  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-step:nth-child(2)::after { display: none; }

  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 22px; }
  .process-step:nth-child(2)::before { display: none; }

  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-head { grid-template-columns: 1fr; align-items: start; }

  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card:nth-child(1),
  .service-card:nth-child(2),
  .service-card:nth-child(3),
  .service-card:nth-child(4) { grid-column: span 1; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* Tablet */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: 640px; }
  .hero-visual { max-width: 560px; margin-inline: auto; width: 100%; }

  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; max-width: 460px; }
  .about-media-inner img { width: min(240px, 62%); }

  .pillar-grid,
  .pillar-grid-rev { grid-template-columns: 1fr; gap: 36px; }
  .pillar-grid-rev .pillar-visual { order: 2; }
  .pillar-grid-rev .pillar-copy { order: 1; }

  .faq-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  /* alvos de toque confortáveis no rodapé */
  .footer-col { gap: 0; }
  .footer-col a,
  .footer-plain { display: flex; align-items: center; min-height: 42px; }
  .footer-col .footer-cta { min-height: 0; margin-top: 12px; }
}

/* Smartphone grande */
@media (max-width: 680px) {
  :root { --header-h: 64px; }

  .hero { padding-top: 34px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-proof { gap: 10px 18px; }
  .hero-proof li { font-size: 0.82rem; }

  .flow { grid-template-columns: 1fr; gap: 12px; }
  .flow-step::after {
    display: block;
    top: auto;
    right: auto;
    bottom: -10px;
    left: 42px;
    transform: rotate(135deg);
  }
  .flow-step:nth-child(2)::after { display: block; }
  .flow-step:last-child::after { display: none; }
  .flow-step { padding: 22px 20px; }

  .process { grid-template-columns: 1fr; gap: 26px; }
  .process-step::before { display: none; }

  .capsules { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .pillar-actions .btn { flex: 1 1 100%; }

  .kpis { grid-template-columns: 1fr; gap: 8px; }
  .kpi { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  .kpi-label { margin-bottom: 0; }
  .kpi-value { font-size: 1.25rem; }
  .kpi-trend { margin-top: 0; width: 100%; }
  .chart-body { height: 110px; }
  .chart-axis span:nth-child(even) { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 24px 20px; }
  .why-grid { grid-template-columns: 1fr; }

  .team-grid { grid-template-columns: 1fr; gap: 14px; }
  .team-card { flex-direction: row; }
  .team-photo { aspect-ratio: auto; width: 40%; max-width: 168px; flex: none; }
  .team-photo::after {
    background:
      linear-gradient(90deg, transparent 40%, rgba(9, 10, 17, 0.5) 100%),
      linear-gradient(140deg, rgba(58, 168, 192, 0.14), transparent 50%, rgba(136, 49, 152, 0.16));
  }
  .team-info { padding: 16px 16px 18px; }
  .team-info .tag-list { margin-top: 10px; margin-bottom: 12px; }

  .team-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .team-stats > div { padding: 14px 6px; }
  .team-stats dt { font-size: 0.72rem; }

  .form-duo { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 22px 18px; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { justify-content: flex-start; }

  .whatsapp-fab { height: 52px; padding: 0 13px; }
  .whatsapp-fab:hover .whatsapp-label { max-width: 0; opacity: 0; }
  .whatsapp-fab:hover { gap: 0; }
}

/* Diagrama do hero: rótulos maiores quando o SVG é renderizado pequeno */
@media (max-width: 520px) {
  .mm-pill text { font-size: 23px; }
  .mm-pill.mm-pill-long text { font-size: 20px; }
}

@media (max-width: 420px) {
  .team-card { flex-direction: column; }
  .team-photo { width: 100%; max-width: none; aspect-ratio: 4 / 3; }
  .team-photo img { transform: scale(1.05); object-position: center 22%; }
  .team-card:hover .team-photo img { transform: scale(1.1); }
  .team-photo::after {
    background:
      linear-gradient(180deg, transparent 40%, rgba(9, 10, 17, 0.6) 100%),
      linear-gradient(140deg, rgba(58, 168, 192, 0.14), transparent 50%, rgba(136, 49, 152, 0.16));
  }
}

/* Telas largas */
@media (min-width: 1500px) {
  :root { --maxw: 1280px; }
}

/* ---------- 22. Preferências do usuário ---------- */
@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;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .bars span { transform: scaleY(1) !important; }
  .spark-line { stroke-dashoffset: 0 !important; }
  .mm-flow { display: none; }
  .mm-nodes circle { opacity: 0.85; }
  .about-media-inner img { animation: none; }
  .run-step { background-color: rgba(255, 255, 255, 0.028); border-color: rgba(255, 255, 255, 0.07); }
  .run-mark { background: linear-gradient(135deg, var(--cyan), var(--purple)); border-color: transparent; }
  .run-mark .ico { opacity: 1; color: #fff; }
  .run-step strong { color: var(--white); }
  .run-bar span { width: 100%; }
  .mobile-links li { opacity: 1; transform: none; }
}

@media print {
  body::before,
  body::after,
  .site-header,
  .mobile-nav,
  .nav-backdrop,
  .whatsapp-fab,
  .hero-visual { display: none !important; }
  body { background: #fff; color: #111; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
