/* ============================================================
   MULTIPLAN ASSESSORIA — Design System
   BPO Financeiro e Gestão Estratégica
   ============================================================ */

/* ---------- Fontes da marca (self-hosted) ---------- */
@font-face {
  font-family: 'Comfortaa';
  src: url('../fonts/Comfortaa-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Comfortaa';
  src: url('../fonts/Comfortaa-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Comfortaa';
  src: url('../fonts/Comfortaa-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Parisienne';
  src: url('../fonts/Parisienne-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Marca */
  --navy-950: #10171d;
  --navy-900: #182229;
  --navy-800: #24323d;
  --navy-700: #34424d;
  --navy-600: #4b5a64;
  --navy-500: #67767f;

  --orange-600: #c1531f;
  --orange-500: #df6638;
  --orange-400: #ea8256;
  --orange-300: #f3a67f;
  --orange-100: #fdece1;

  --cream: #f2f0ee;
  --cream-dark: #e6e2de;
  --white: #ffffff;

  --ink: #1b262e;
  --muted: #5c6b74;
  --muted-light: #8695a0;
  --muted-invert: #aeb9c0;
  --line: #e2e1de;
  --line-dark: #33424d;

  /* Tipografia */
  --font-display: 'Comfortaa', ui-sans-serif, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-script: 'Parisienne', cursive;

  /* Layout */
  --container: 1200px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  /* Sombras */
  --shadow-sm: 0 2px 10px rgba(24, 34, 41, 0.06);
  --shadow-md: 0 12px 30px rgba(24, 34, 41, 0.10);
  --shadow-lg: 0 24px 60px rgba(24, 34, 41, 0.16);
  --shadow-orange: 0 14px 34px rgba(223, 102, 56, 0.35);
  --shadow-card-rest: 0 2px 6px rgba(223, 102, 56, 0.08), 0 14px 30px -10px rgba(223, 102, 56, 0.22);
  --shadow-card-hover: 0 6px 14px rgba(223, 102, 56, 0.14), 0 26px 48px -12px rgba(223, 102, 56, 0.34);

  /* Movimento */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 0.2s;
  --med: 0.45s;
  --slow: 0.8s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

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

::selection { background: var(--orange-500); color: var(--white); }

/* ---------- Foco acessível (navegação por teclado) ---------- */
a, button, input, textarea, select { outline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 2.5px solid var(--orange-500);
  outline-offset: 3px;
  border-radius: 4px;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2.5px solid var(--orange-500);
  outline-offset: 1px;
}
.btn:focus-visible { outline-offset: 4px; }
.main-nav a:focus-visible { outline-color: var(--orange-400); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Cursor customizado (só em mouse/trackpad, não-touch) ---------- */
html.rich-cursor, html.rich-cursor a, html.rich-cursor button { cursor: none; }
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: opacity var(--fast) var(--ease);
}
.cursor-dot {
  width: 7px; height: 7px;
  background: var(--orange-500);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid rgba(223,102,56,.55);
  transition: width var(--fast) var(--ease), height var(--fast) var(--ease), border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.cursor-ring.cursor-hover {
  width: 56px; height: 56px;
  background: rgba(223,102,56,.1);
  border-color: var(--orange-500);
}
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Tilt 3D (JS aplica transform inline via mousemove) ---------- */
.card.tilt, .price-card.tilt, .num-card.tilt, .contact-info-card.tilt {
  transition: transform 0.15s var(--ease), box-shadow var(--med) var(--ease), border-color var(--med) var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
/* Fallback simples para touch/reduced-motion, onde o JS de tilt não roda */
@media (hover: none), (prefers-reduced-motion: reduce) {
  .card:hover, .num-card:hover, .contact-info-card:hover { transform: translateY(-6px); }
}

/* ---------- Glow que acompanha o cursor (seções escuras) ---------- */
.bg-dark, .hero, .page-hero { position: relative; }
.bg-dark::before, .hero::before, .page-hero::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 10%), rgba(223,102,56,.14), transparent 65%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.bg-dark:hover::before, .hero:hover::before, .page-hero:hover::before { opacity: 1; }
.bg-dark > *, .hero > *, .page-hero > * { position: relative; z-index: 1; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Em monitores muito largos, o container de 1200px fixo deixa o conteúdo
   pequeno e isolado no meio de uma faixa vazia de cada lado. Acima do
   ponto onde o layout de desktop já está confortável (1440px), o
   container cresce em proporção à tela (mesma relação largura útil/vazio
   de 1440px) até um teto de 1800px, pra grids não ficarem esparsos demais. */
@media (min-width: 1441px) {
  :root { --container: min(1800px, 83vw); }
}

section { position: relative; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 4.4vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-500);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--orange-500);
  border-radius: 2px;
}
.eyebrow.on-dark { color: var(--orange-400); }

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 56ch;
}
.on-dark .lede, .lede.on-dark { color: var(--muted-invert); }

.text-center { text-align: center; }
.section-head {
  max-width: 700px;
  margin-bottom: 56px;
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 14px; }
.section-head .lede { margin-top: 16px; }
.section-head.center .lede { margin-inline: auto; }

/* ---------- Utilitários ---------- */
.section-pad { padding-block: 110px; }
@media (max-width: 768px) { .section-pad { padding-block: 72px; } }

.bg-dark { background: var(--navy-800); color: var(--white); }
.bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--white); }
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 980px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

/* ---------- Botões ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.btn-primary {
  background: var(--orange-500);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover { background: var(--orange-600); transform: translateY(-2px); box-shadow: 0 18px 40px rgba(223,102,56,.42); }
.btn-outline {
  background: transparent;
  color: var(--navy-800);
  border: 1.5px solid var(--line-dark);
}
.btn-outline.on-dark { color: var(--white); border-color: rgba(255,255,255,.28); }
.btn-outline:hover { border-color: var(--orange-500); color: var(--orange-500); transform: translateY(-2px); }
.btn:active { transform: scale(.96); transition-duration: .1s; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading::before {
  content: '';
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: btn-spin .7s linear infinite;
}
.btn-outline.is-loading::before { border-color: rgba(27,38,46,.18); border-top-color: currentColor; }
@keyframes btn-spin { to { transform: rotate(360deg); } }
.btn-ghost { color: var(--navy-800); padding-inline: 4px; }
.btn-ghost::after {
  content: '→';
  transition: transform var(--fast) var(--ease);
  display: inline-block;
}
.btn-ghost:hover::after { transform: translateX(5px); }
.btn-ghost.on-dark { color: var(--white); }
.btn-sm { padding: 11px 22px; font-size: 0.85rem; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 200;
  padding-block: 22px;
  transition: padding var(--med) var(--ease), background var(--med) var(--ease), box-shadow var(--med) var(--ease);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.scrolled {
  padding-block: 12px;
  box-shadow: var(--shadow-sm);
}
/* O blur fica num pseudo-elemento, não direto no .site-header: um
   backdrop-filter no header criaria um containing block novo pros filhos
   com position:fixed (ex.: .main-nav, o menu mobile), quebrando o cálculo
   de "tela inteira" dele e fazendo o menu vazar visível na página ao rolar. */
.site-header.scrolled::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(242, 240, 238, 0.82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}
.brand { display: flex; align-items: center; gap: 10px; position: relative; }
.brand img { height: 40px; width: auto; transition: height var(--med) var(--ease), opacity var(--fast) var(--ease); }
.site-header.scrolled .brand img { height: 34px; }
.brand .logo-dark { display: none; }
.brand .logo-light { display: block; }
.site-header.scrolled .brand .logo-dark { display: block; }
.site-header.scrolled .brand .logo-light { display: none; }

.main-nav { display: flex; align-items: center; gap: 40px; }
.main-nav ul { display: flex; gap: 32px; }
.main-nav a {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,.82);
  padding-block: 4px;
  transition: color var(--fast) var(--ease);
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--orange-400);
  border-radius: 2px;
  transition: right var(--fast) var(--ease);
}
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.main-nav a.active { color: var(--orange-400); }

/* Header sobre fundo claro (rolado): nav volta a ser navy sobre creme */
@media (min-width: 921px) {
  .site-header.scrolled .main-nav a { color: var(--navy-700); }
  .site-header.scrolled .main-nav a::after { background: var(--orange-500); }
  .site-header.scrolled .main-nav a.active { color: var(--orange-600); }
}

.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  z-index: 210;
}
.nav-toggle span { height: 2px; background: var(--white); border-radius: 2px; transition: transform var(--fast) var(--ease), opacity var(--fast) var(--ease), background var(--fast) var(--ease); }
.site-header.scrolled .nav-toggle span { background: var(--navy-800); }
body.nav-open .nav-toggle span { background: var(--white) !important; }

@media (max-width: 920px) {
  .main-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    background: var(--navy-900);
    transform: translateY(-100%);
    transition: transform var(--med) var(--ease);
    z-index: 205;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: center; gap: 26px; }
  .main-nav a { color: var(--white); font-size: 1.4rem; }
  .main-nav .nav-actions { margin-top: 34px; }
  .nav-toggle { display: flex; }
  body.nav-open { overflow: hidden; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: 190px;
  padding-bottom: 120px;
  background: var(--navy-800);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 55% at 82% 12%, rgba(223,102,56,.35), transparent 60%),
    radial-gradient(45% 45% at 8% 90%, rgba(223,102,56,.16), transparent 65%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800) 55%, var(--navy-700));
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 70% 30%, black, transparent 75%);
}
/* Trava os elementos decorativos (sunburst, orbs) na mesma largura/centro
   do conteúdo (var(--container)) — sem isso, em monitores muito largos
   eles derivam para longe do texto/cards, calculados em % da seção inteira. */
.hero-decor {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 100%;
  max-width: var(--container);
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-sunburst {
  position: absolute;
  top: -25%; right: -12%;
  width: 900px; height: 900px;
  z-index: -1;
  opacity: .3;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.09) 0deg 1.6deg, transparent 1.6deg 11deg);
  mask-image: radial-gradient(circle, black 0%, transparent 66%);
  -webkit-mask-image: radial-gradient(circle, black 0%, transparent 66%);
  animation: sunburst-spin 100s linear infinite;
  pointer-events: none;
}
@keyframes sunburst-spin { to { transform: rotate(360deg); } }
@media (max-width: 768px) { .hero-sunburst { width: 560px; height: 560px; } }

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  z-index: -1;
  animation: float 9s var(--ease) infinite;
}
.hero-orb.o1 { width: 10px; height: 10px; top: 22%; left: 62%; background: var(--orange-400); animation-delay: 0s; }
.hero-orb.o2 { width: 6px; height: 6px; top: 68%; left: 78%; background: var(--orange-300); animation-delay: 1.4s; }
.hero-orb.o3 { width: 14px; height: 14px; top: 40%; left: 88%; background: rgba(255,255,255,.5); animation-delay: 2.6s; }
.hero-orb.o4 { width: 8px; height: 8px; top: 78%; left: 55%; background: rgba(255,255,255,.35); animation-delay: 0.8s; }
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); opacity: .8; }
  50% { transform: translateY(-26px) scale(1.15); opacity: 1; }
}

.hero-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
@media (max-width: 980px) { .hero-layout { grid-template-columns: 1fr; } }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-invert);
  margin-bottom: 26px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange-500); box-shadow: 0 0 0 4px rgba(223,102,56,.25); }

.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; font-family: var(--font-script); font-weight: 400; color: var(--orange-400); font-size: 1.18em; display: inline-block; margin-left: .05em; }
.hero .lede { margin-top: 22px; color: var(--muted-invert); font-size: 1.15rem; }
.hero-ctas { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 34px; margin-top: 56px; flex-wrap: wrap; }
.hero-stat .num { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--white); }
.hero-stat .num span { color: var(--orange-400); }
.hero-stat .label { font-size: 0.82rem; color: var(--muted-invert); margin-top: 2px; }
@media (max-width: 620px) {
  /* Em telas estreitas os stats quebram linha e viram uma coluna — sem
     isso, cada número/rótulo fica alinhado à esquerda dentro da própria
     largura, em vez de centralizado como o restante do bloco. */
  .hero-stats { justify-content: center; text-align: center; }
}

/* ---------- Visual do hero: stack de cards com profundidade 3D real ---------- */
.hero-3d {
  position: relative;
  width: 460px; height: 460px;
  max-width: 100%;
  margin-inline: auto;
  perspective: 1400px;
}
.stack-glow {
  position: absolute; inset: 20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223,102,56,.32), transparent 72%);
  filter: blur(10px);
  animation: orbit-pulse 3.8s ease-in-out infinite;
}
@keyframes orbit-pulse {
  0%, 100% { opacity: .6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* A marca real da Multiplan como centro do hero — não um ícone genérico */
.stack-core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 160px; height: 160px;
  display: flex; align-items: center; justify-content: center;
  z-index: 0;
}
.stack-core img {
  width: 148px; height: auto;
  animation: core-breathe 3.6s ease-in-out infinite;
  filter: drop-shadow(0 0 26px rgba(223,102,56,.6));
}
@keyframes core-breathe {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 26px rgba(223,102,56,.6)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 36px rgba(223,102,56,.8)); }
}

/* Linhas finas conectando os cards ao centro — sugere organização, não IA */
.stack-lines {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
  animation: fade-in 1.2s var(--ease) .3s both;
}
.stack-lines line {
  stroke: rgba(223,102,56,.4);
  stroke-width: 1.4;
  stroke-dasharray: 3 7;
  animation: dash-flow 3.5s linear infinite;
}
.stack-lines circle { fill: var(--orange-400); }
@keyframes dash-flow { to { stroke-dashoffset: -20; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.stack-card {
  --px: 0deg; --py: 0deg;
  --rest-op: 1;
  position: absolute; top: 50%; left: 50%;
  width: 240px;
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 45px rgba(6,10,14,.35);
  transform-style: preserve-3d;
  overflow: hidden;
  opacity: 0;
  scale: .8;
  animation: card-float 7s ease-in-out infinite, card-appear .9s var(--ease) forwards;
}
.stack-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.16) 50%, transparent 58%);
  background-size: 240% 240%;
  background-position: 200% 200%;
  animation: shine-sweep 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shine-sweep {
  0%, 60%, 100% { background-position: 200% 200%; }
  80% { background-position: -30% -30%; }
}
@keyframes card-appear { to { opacity: var(--rest-op); scale: 1; } }

.stack-card.c1 { --bx: -124px; --by: -132px; --bz: 60px; --brx: 6deg; --bry: -16deg; z-index: 3; animation-delay: 0s, .15s; }
.stack-card.c2 { --bx: 132px; --by: 24px; --bz: 10px; --brx: -4deg; --bry: 12deg; z-index: 2; --rest-op: .92; animation-delay: -2.3s, .4s; }
.stack-card.c3 { --bx: -24px; --by: 162px; --bz: -50px; --brx: 3deg; --bry: -6deg; z-index: 1; --rest-op: .8; animation-delay: -4.6s, .65s; }
.stack-card::after { animation-delay: inherit; }

@keyframes card-float {
  0%, 100% {
    transform: translate(-50%, -50%) translate3d(var(--bx), var(--by), var(--bz))
      rotateX(calc(var(--brx) + var(--py))) rotateY(calc(var(--bry) + var(--px)));
  }
  50% {
    transform: translate(-50%, -50%) translate3d(var(--bx), calc(var(--by) - 16px), var(--bz))
      rotateX(calc(var(--brx) + var(--py))) rotateY(calc(var(--bry) + var(--px)));
  }
}

.stack-ic {
  flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(223,102,56,.16);
  color: var(--orange-400);
}
.stack-ic svg { width: 20px; height: 20px; }
.stack-text { display: flex; flex-direction: column; gap: 2px; }
.stack-text strong { font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; color: var(--white); }
.stack-text span { font-size: 0.78rem; color: var(--orange-400); font-weight: 600; }

@media (max-width: 980px) {
  .hero-3d { width: 390px; height: 390px; margin-top: 30px; }
  .stack-card { width: 210px; padding: 15px 18px; }
  .stack-card.c1 { --bx: -95px; --by: -116px; }
  .stack-card.c2 { --bx: 111px; --by: 19px; }
  .stack-card.c3 { --bx: -19px; --by: 140px; }
}
@media (max-width: 460px) {
  .hero-3d { width: 320px; height: 420px; }
  .stack-card { width: 188px; padding: 13px 16px; gap: 10px; }
  .stack-card.c1 { --bx: -73px; --by: -105px; }
  .stack-card.c2 { --bx: 86px; --by: 11px; }
  .stack-card.c3 { --bx: -16px; --by: 124px; }
  .stack-ic { width: 36px; height: 36px; }
  .stack-text strong { font-size: 0.82rem; }
  .stack-text span { font-size: 0.7rem; }
}

.hero-chart {
  height: 108px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  padding: 16px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.hero-chart .bar {
  flex: 1;
  height: 100%;
  background: linear-gradient(180deg, var(--orange-400), var(--orange-600));
  border-radius: 6px 6px 2px 2px;
  transform: scaleY(0);
  transform-origin: bottom;
  animation: growBar 1.1s var(--ease) forwards;
}
@keyframes growBar { to { transform: scaleY(var(--h, 1)); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Marquee de confiança ---------- */
.trust-bar { padding-block: 20px; background: var(--white); border-block: 1px solid var(--line); overflow: hidden; }
.trust-track { display: flex; gap: 60px; width: max-content; animation: marquee 26s linear infinite; }
.trust-track span { font-family: var(--font-display); font-weight: 700; color: var(--muted-light); font-size: 0.95rem; letter-spacing: .04em; white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Cards genéricos ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card-rest);
  transition: transform var(--med) var(--ease), box-shadow var(--med) var(--ease), border-color var(--med) var(--ease);
}
.card:hover { box-shadow: var(--shadow-card-hover); border-color: transparent; }
@media (hover: none), (prefers-reduced-motion: reduce) { .card:hover { transform: translateY(-6px); } }

/* Selo circular com anel pontilhado giratório — motivo dos raios da logo,
   em vez do quadrado laranja genérico. */
@keyframes ring-spin { to { transform: rotate(360deg); } }
.icon-tile {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 32% 28%, var(--orange-100), var(--white) 72%);
  color: var(--orange-500);
  margin-bottom: 22px;
  box-shadow: 0 10px 22px -8px rgba(223,102,56,.45);
  transition: color var(--med) var(--ease), transform var(--med) var(--ease), background var(--med) var(--ease), box-shadow var(--med) var(--ease);
}
.card:hover .icon-tile { box-shadow: 0 14px 28px -6px rgba(223,102,56,.55); }
.icon-tile::before {
  content: '';
  position: absolute; inset: -7px;
  border-radius: 50%;
  border: 1.5px dashed var(--orange-300);
  animation: ring-spin 16s linear infinite;
  transition: border-color var(--med) var(--ease), animation-duration var(--med) var(--ease);
}
.icon-tile::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: border-color var(--med) var(--ease);
}
.icon-tile svg { width: 24px; height: 24px; position: relative; z-index: 1; }
.card:hover .icon-tile { color: var(--white); transform: scale(1.08); background: radial-gradient(circle at 32% 28%, var(--orange-400), var(--orange-600) 78%); }
.card:hover .icon-tile::before { border-color: var(--orange-500); animation-duration: 4s; }
.card:hover .icon-tile::after { border-color: transparent; }

.card.card-center { text-align: center; }
.card.card-center .icon-tile { margin-inline: auto; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* Cards numerados (benefícios) */
.num-card {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  box-shadow: 0 14px 32px -14px rgba(223,102,56,.25);
  transition: background var(--med) var(--ease), transform var(--med) var(--ease), box-shadow var(--med) var(--ease), border-color var(--med) var(--ease);
}
.num-card:hover { background: rgba(255,255,255,.08); transform: translateY(-6px); border-color: rgba(223,102,56,.4); box-shadow: 0 20px 44px -12px rgba(223,102,56,.4); }
.num-card .index { font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; color: var(--orange-400); }
.num-card h3 { color: var(--white); margin-top: 14px; }
.num-card p { color: var(--muted-invert); margin-top: 8px; font-size: 0.95rem; }

/* Listas com check */
.check-list li { display: flex; gap: 12px; padding-block: 11px; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
.check-list li:last-child { border-bottom: none; }
.check-list.on-dark li { border-color: rgba(255,255,255,.1); color: var(--muted-invert); }
.check-list .ic { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.check-list .ic.yes { background: var(--orange-100); color: var(--orange-500); }
.check-list .ic.no { background: var(--cream-dark); color: var(--muted-light); }
.check-list .ic svg { width: 12px; height: 12px; }

/* ---------- Posicionamento (somos / não somos) ---------- */
.pos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 780px) { .pos-grid { grid-template-columns: 1fr; } }
.pos-card { border-radius: var(--radius-lg); padding: 38px; }
.pos-card.yes { background: var(--navy-800); color: var(--white); }
.pos-card.no { background: var(--white); border: 1px solid var(--line); }
.pos-card .tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.pos-card.yes .tag { color: var(--orange-400); }
.pos-card.no .tag { color: var(--muted); }
.pos-card h3 { margin-bottom: 18px; }
.pos-card.yes h3 { color: var(--white); }

/* ---------- Timeline / Como funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; }
@media (max-width: 920px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; }
.step .bullet {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--navy-800); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative; z-index: 1;
  transition: background var(--med) var(--ease);
}
.step:hover .bullet { background: var(--orange-500); }
.steps::before {
  content: '';
  position: absolute;
  top: 27px; left: 6%; right: 6%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-dark) 0 8px, transparent 8px 16px);
}
@media (max-width: 920px) { .steps::before { display: none; } }
.step h4 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Pacotes / Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 1180px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  position: relative;
  box-shadow: var(--shadow-card-rest);
  transition: transform var(--med) var(--ease), box-shadow var(--med) var(--ease);
}
.price-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card-hover); }
.price-card.featured { background: var(--navy-800); color: var(--white); border-color: transparent; }
.price-card.featured h3, .price-card.featured h4 { color: var(--white); }
.price-card.featured .price-desc { color: var(--muted-invert); }
.price-card .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--orange-500); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 0.7rem;
  padding: 6px 16px; border-radius: var(--radius-pill); letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap;
  box-shadow: var(--shadow-orange);
}
.price-card .plan-icon {
  position: relative;
  width: 48px; height: 48px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--orange-100), var(--white) 72%);
  color: var(--orange-500);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  box-shadow: 0 10px 22px -8px rgba(223,102,56,.45);
}
.price-card .plan-icon::before {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1.5px dashed var(--orange-300);
  animation: ring-spin 16s linear infinite;
}
.price-card:hover .plan-icon::before { animation-duration: 4s; }
.price-card.featured .plan-icon { background: rgba(255,255,255,.08); color: var(--orange-400); }
.price-card.featured .plan-icon::before { border-color: rgba(255,255,255,.25); }
.price-card .plan-icon svg { width: 22px; height: 22px; position: relative; z-index: 1; }
.price-card h3 { font-size: 1.15rem; }
.price-card .price-desc { color: var(--muted); font-size: 0.86rem; margin-top: 8px; min-height: 58px; }
.price-card .plan-list { margin-top: 20px; margin-bottom: 26px; flex-grow: 1; }
.price-card .plan-list li { display: flex; gap: 9px; font-size: 0.84rem; padding-block: 7px; color: var(--ink); }
.price-card.featured .plan-list li { color: var(--muted-invert); }
.price-card .plan-list li svg { flex-shrink: 0; width: 15px; height: 15px; margin-top: 3px; color: var(--orange-500); }
.price-card.featured .plan-list li svg { color: var(--orange-400); }
.price-card .btn { width: 100%; }

/* Tabela comparativa */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--white); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 820px; }
.compare-table th, .compare-table td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.compare-table td:first-child, .compare-table th:first-child { text-align: left; font-weight: 600; min-width: 260px; }
.compare-table thead th { font-family: var(--font-display); background: var(--navy-800); color: var(--white); font-weight: 700; font-size: 0.82rem; }
.compare-table thead th:first-child { border-top-left-radius: var(--radius-md); }
.compare-table thead th:last-child { border-top-right-radius: var(--radius-md); background: var(--orange-500); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: var(--cream); }
.compare-table .yes { color: var(--orange-500); }
.compare-table .no { color: var(--line-dark); }
.compare-table svg { width: 18px; height: 18px; margin-inline: auto; }

/* ---------- CTA banda ---------- */
.cta-band.center { justify-content: center; text-align: center; flex-direction: column; }
.cta-band.center h3 { max-width: 48ch; margin-inline: auto; }
.cta-band {
  background: linear-gradient(120deg, var(--orange-500), var(--orange-600));
  border-radius: var(--radius-lg);
  padding: 50px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  right: -80px; top: -120px;
}
.cta-band h3 { color: var(--white); font-size: 1.5rem; max-width: 34ch; }
.cta-band .btn-outline { border-color: rgba(255,255,255,.5); color: var(--white); }
.cta-band .btn-outline:hover { background: var(--white); color: var(--orange-600); border-color: var(--white); }

/* ---------- Depoimento / script ---------- */
.quote-block { max-width: 780px; margin-inline: auto; text-align: center; }
.quote-block p { font-family: var(--font-script); font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--navy-800); line-height: 1.35; }
.quote-block .quote-by { margin-top: 22px; font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--muted-invert); padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,.08); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid img { height: 42px; margin-bottom: 16px; }
.footer-grid p { font-size: 0.9rem; max-width: 32ch; }
.footer-col h4 { color: var(--white); font-size: 0.86rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.92rem; transition: color var(--fast) var(--ease); }
.footer-col a:hover { color: var(--orange-400); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-block: 26px; font-size: 0.82rem; flex-wrap: wrap; gap: 12px; }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.socials a:hover { background: var(--orange-500); border-color: var(--orange-500); transform: translateY(-3px); }
.socials svg { width: 16px; height: 16px; }

/* ---------- Reveal on scroll (com profundidade 3D) ---------- */
.reveal {
  opacity: 0;
  transform: perspective(1000px) translateY(34px) rotateX(-14deg);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
.reveal.visible { opacity: 1; transform: perspective(1000px) translateY(0) rotateX(0deg); }

.reveal-stagger.visible .r-item {
  opacity: 1;
  transform: perspective(1000px) translateY(0) rotateX(0deg) scale(1);
}
.r-item {
  opacity: 0;
  transform: perspective(1000px) translateY(30px) rotateX(-16deg) scale(.97);
  transform-origin: center bottom;
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.r-item:nth-child(1) { transition-delay: 0.05s; }
.r-item:nth-child(2) { transition-delay: 0.15s; }
.r-item:nth-child(3) { transition-delay: 0.25s; }
.r-item:nth-child(4) { transition-delay: 0.35s; }
.r-item:nth-child(5) { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  /* A regra global de reduced-motion (topo do arquivo) zera a duração de
     toda transição, inclusive esta. Sem isso, o fade de entrada nem
     aparece: o elemento salta direto pro estado final. */
  .reveal, .r-item { transform: none; transition-duration: .4s !important; }
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease), background var(--fast) var(--ease);
  z-index: 150;
  box-shadow: var(--shadow-md);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--orange-500); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- Page hero (páginas internas) ---------- */
.page-hero {
  padding-top: 170px;
  padding-bottom: 80px;
  background: var(--navy-800);
  color: var(--white);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-hero .hero-bg { opacity: .9; }
.page-hero .breadcrumb { font-size: 0.85rem; color: var(--muted-invert); margin-bottom: 18px; display: flex; gap: 8px; align-items: center; }
.page-hero .breadcrumb a:hover { color: var(--orange-400); }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 3.6vw, 3rem); }
.page-hero .lede { color: var(--muted-invert); margin-top: 16px; max-width: 62ch; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  left: 26px; bottom: 26px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px rgba(37,211,102,.4);
  z-index: 150;
  animation: pulse 2.6s infinite;
}
.wa-float svg { width: 28px; height: 28px; fill: white; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 14px 30px rgba(37,211,102,.4); }
  50% { box-shadow: 0 14px 30px rgba(37,211,102,.4), 0 0 0 10px rgba(37,211,102,.12); }
}

/* Tooltips discretos nos botões flutuantes
   (wa-float/to-top já são position:fixed, que também cria contexto
   de posicionamento — não sobrescrever com relative aqui) */
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translate(-50%, 4px);
  background: var(--navy-900);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease);
  z-index: 160;
}
[data-tip]:hover::after, [data-tip]:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ---------- Formulário de contato ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--navy-700); }
.field input, .field select, .field textarea {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--white);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange-500);
  box-shadow: 0 0 0 4px var(--orange-100);
}
.form-note { font-size: 0.82rem; color: var(--muted-light); margin-top: 14px; }
.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--orange-100);
  color: var(--orange-600);
  font-weight: 600;
  margin-top: 20px;
}
.form-success.show { display: flex; }

.contact-info-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-rest);
  transition: transform var(--med) var(--ease), box-shadow var(--med) var(--ease);
}
.contact-info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.contact-info-card .icon-tile { margin-bottom: 0; flex-shrink: 0; }
.contact-info-card h4 { margin-bottom: 4px; }
.contact-info-card p, .contact-info-card a { color: var(--muted); font-size: 0.92rem; }
.contact-info-card a:hover { color: var(--orange-500); }

.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); filter: grayscale(0.3) contrast(1.05); height: 340px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Serviços: blocos de texto (sem painel visual) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}
.feature-row + .feature-row { margin-top: 150px; }
.feature-content { max-width: 800px; margin-inline: auto; text-align: center; }
@media (max-width: 900px) {
  .feature-row + .feature-row { margin-top: 96px; }
}

.feature-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.72rem;
  color: var(--muted-light); letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 14px;
}
.feature-tag .n { color: var(--orange-500); font-size: 1rem; }
.feature-content h2 { margin-bottom: 16px; }
.feature-content > .lede { margin-bottom: 26px; margin-inline: auto; }
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 40px;
  text-align: left;
  max-width: 640px;
  margin-inline: auto;
}
.feature-list li { display: flex; gap: 12px; align-items: flex-start; padding-block: 10px; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
.feature-list li svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--orange-500); margin-top: 1px; }
@media (max-width: 640px) {
  .feature-list { grid-template-columns: 1fr; }
}

