/* Cliqua Agência: site institucional. Tokens conforme o briefing, seção 2.
   Versão 3D: profundidade com perspectiva, cartões que reagem ao ponteiro e símbolo em WebGL (assets/cena3d.js). */
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/poppins-700.woff2") format("woff2"); }

/* Fallback com medidas próximas às da Poppins: evita que o título mude de linha quando a fonte carrega. */
@font-face { font-family: "Poppins Fallback"; src: local("Arial"); size-adjust: 112.16%; ascent-override: 93.62%; descent-override: 31.21%; line-gap-override: 8.91%; }

:root {
  --purple-primary: #5E06B3;
  --purple-deep: #2B024F;
  --purple-bright: #7A1FD6;
  --purple-shade: #3D0475;
  --lavender: #F3E9FF;
  --lavender-line: #EADCFB;
  --neutral-gray: #E9E9EF;
  --white: #FFFFFF;
  --ink: #21172E;
  --muted: #625A6C;
  --lilac: #CFAEF5;
  --on-deep: #E7DAF6;

  --font: "Poppins", "Poppins Fallback", Inter, Arial, sans-serif;
  --radius-btn: 12px;
  --radius-card: 28px;
  --section-y: 72px;
  --header-h: 64px;
  --focus: var(--purple-primary);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --shadow-card: 0 1px 0 rgba(255,255,255,.9) inset, 0 2px 4px rgba(43,2,79,.04), 0 18px 40px -18px rgba(43,2,79,.28), 0 40px 80px -40px rgba(94,6,179,.25);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; overflow-x: clip; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.65; overflow-wrap: break-word; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--purple-primary); color: var(--white); }

h1, h2, h3 { margin: 0; color: var(--purple-deep); text-wrap: balance; }
h1 { font-size: clamp(36px, calc(25.3px + 2.9vw), 68px); font-weight: 700; line-height: 1.06; letter-spacing: -.034em; }
h1 span { display: block; background: linear-gradient(100deg, var(--purple-primary) 10%, var(--purple-bright) 55%, var(--purple-primary) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1 span .w-in { background: inherit; -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 400% 100%; }
h2 { font-size: clamp(27px, calc(23px + 1.2vw), 42px); font-weight: 600; line-height: 1.18; letter-spacing: -.024em; }
h3 { font-size: clamp(21px, calc(20px + .4vw), 26px); font-weight: 600; line-height: 1.28; letter-spacing: -.012em; }

.container { width: min(100% - 40px, 1200px); margin-inline: auto; }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.skip-link { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: var(--radius-btn); background: var(--purple-deep); color: var(--white); }
.skip-link:focus { top: 12px; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--purple-primary); font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 2px; background: var(--purple-primary); transform: rotate(45deg); box-shadow: 0 0 0 4px var(--lavender); }
.lead { margin-top: 14px; color: var(--muted); font-size: clamp(16px, calc(15px + .3vw), 19px); line-height: 1.55; }
.body-muted { color: var(--muted); }
.measure { max-width: 560px; }

/* ------------------------------------------------------------------ */
/* Barra de progresso e brilho do cursor                               */
/* ------------------------------------------------------------------ */
.scroll-bar { position: fixed; inset: 0 0 auto; z-index: 70; height: 3px; background: linear-gradient(90deg, var(--lilac), var(--purple-primary), var(--purple-bright)); transform: scaleX(var(--scroll, 0)); transform-origin: 0 50%; pointer-events: none; }
.cursor-glow { position: fixed; left: 0; top: 0; z-index: 45; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; background: radial-gradient(circle, rgba(122,31,214,.10), rgba(122,31,214,0) 62%); opacity: 0; pointer-events: none; transition: opacity .4s ease; }
.cursor-glow.is-on { opacity: 1; }

/* ------------------------------------------------------------------ */
/* Botões e links                                                      */
/* ------------------------------------------------------------------ */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px; border: 1px solid transparent; border-radius: var(--radius-btn); font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transform: translate(var(--tx, 0px), var(--ty, 0px)); transition: transform .35s var(--ease-out), translate .2s var(--ease-out), box-shadow .2s ease, background-color .18s ease, color .18s ease; }
.btn .icon { width: 20px; height: 20px; }
.btn::before { content: ""; position: absolute; inset: 0 auto 0 -60%; z-index: -1; width: 50%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .7s var(--ease-out); }
.btn:hover::before { left: 120%; }
.btn-primary { background: linear-gradient(180deg, var(--purple-bright), var(--purple-primary) 60%); color: var(--white); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 5px 0 var(--purple-shade), 0 14px 26px -10px rgba(94,6,179,.6); }
.btn-primary:hover { translate: 0 -2px; box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 7px 0 var(--purple-shade), 0 22px 34px -10px rgba(94,6,179,.65); }
.btn-primary:active { translate: 0 4px; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 0 var(--purple-shade), 0 6px 12px -6px rgba(94,6,179,.6); }
.btn-light { background: linear-gradient(180deg, #fff, #F6EFFF); color: var(--purple-primary); box-shadow: 0 5px 0 var(--lilac), 0 18px 34px -12px rgba(0,0,0,.5); }
.btn-light::before { background: linear-gradient(100deg, transparent, rgba(207,174,245,.55), transparent); }
.btn-light:hover { translate: 0 -2px; box-shadow: 0 7px 0 var(--lilac), 0 24px 40px -12px rgba(0,0,0,.55); }
.btn-light:active { translate: 0 4px; box-shadow: 0 1px 0 var(--lilac), 0 8px 14px -8px rgba(0,0,0,.5); }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--purple-primary); font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0 2px no-repeat; transition: background-size .35s var(--ease-out); }
.text-link .icon { width: 18px; height: 18px; transition: transform .3s var(--ease-spring); }
.text-link:hover { background-size: calc(100% - 26px) 2px; }
.text-link:hover .icon { transform: translateX(5px); }

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .3s ease; }
.site-header.is-scrolled { border-bottom-color: rgba(207,174,245,.45); box-shadow: 0 10px 30px -20px rgba(43,2,79,.35); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.brand { display: block; width: 124px; transition: transform .4s var(--ease-spring); }
.brand:hover { transform: perspective(400px) rotateY(-10deg) scale(1.04); }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -8px; padding: 0; border: 0; border-radius: var(--radius-btn); background: none; color: var(--purple-deep); cursor: pointer; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.site-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; gap: 4px; padding: 12px 20px 20px; background: var(--white); border-bottom: 1px solid var(--neutral-gray); box-shadow: 0 24px 40px -24px rgba(43,2,79,.35); }
.site-nav.is-open { display: flex; animation: drop .35s var(--ease-out); }
.site-nav a:not(.btn) { position: relative; display: flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--purple-primary); }
.nav-cta { margin-top: 8px; }
.nav-cta.btn-primary { min-height: 44px; box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 3px 0 var(--purple-shade), 0 10px 20px -10px rgba(94,6,179,.6); }
@keyframes drop { from { opacity: 0; transform: perspective(600px) rotateX(-18deg) translateY(-8px); transform-origin: top; } }

/* ------------------------------------------------------------------ */
/* Cenário: chão em perspectiva e manchas de luz                       */
/* ------------------------------------------------------------------ */
.grid-floor { position: absolute; left: -50%; right: -50%; bottom: -2%; height: 62%; background-image: linear-gradient(rgba(94,6,179,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(94,6,179,.13) 1px, transparent 1px); background-size: 72px 72px; transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%; -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.6) 40%, transparent 85%); mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.6) 40%, transparent 85%); animation: floor-run 5s linear infinite; pointer-events: none; }
.grid-floor-deep { background-image: linear-gradient(rgba(207,174,245,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(207,174,245,.16) 1px, transparent 1px); }
@keyframes floor-run { to { background-position: 0 72px; } }
.blob, .glow { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }

/* Layout lateral: texto e ilustração lado a lado, com a posição variando na página. */
.split { display: grid; gap: 28px; align-items: center; }
.split-top { align-items: start; }
.art { width: 100%; max-width: 520px; margin-inline: auto; }
.f-lavender { fill: var(--lavender); }
.f-white { fill: var(--white); }
.f-primary { fill: var(--purple-primary); }
.f-deep { fill: var(--purple-deep); }
.st-dash { fill: none; stroke: var(--purple-primary); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 2 15; }
.art-label { fill: var(--purple-deep); font-family: var(--font); font-size: 20px; font-weight: 600; }

/* ------------------------------------------------------------------ */
/* Cartões que inclinam em 3D                                          */
/* ------------------------------------------------------------------ */
[data-tilt] { position: relative; transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .7s var(--ease-out), box-shadow .4s ease, border-color .3s ease; will-change: transform; }
[data-tilt].is-tilting { transition: transform .15s ease-out, box-shadow .4s ease, border-color .3s ease; }
[data-tilt]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.55), transparent 45%); opacity: 0; transition: opacity .4s ease; pointer-events: none; }
[data-tilt].is-tilting::after { opacity: 1; }

.tilt-card { padding: clamp(16px, 3vw, 28px); background: linear-gradient(150deg, #fff 0%, #FAF5FF 100%); border: 1px solid var(--lavender-line); border-radius: 32px; box-shadow: var(--shadow-card); }
.tilt-card .art { transform: translateZ(46px); }
.tilt-plain { padding: 0; background: none; border: 0; border-radius: 28px; box-shadow: none; }
.tilt-plain::after { display: none; }
.tilt-plain .art { transform: translateZ(60px); filter: drop-shadow(0 30px 30px rgba(43,2,79,.16)); }

/* ------------------------------------------------------------------ */
/* 01 Hero                                                             */
/* ------------------------------------------------------------------ */
.hero { position: relative; isolation: isolate; padding-block: 16px 48px; overflow: clip; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.blob-a { right: -10%; top: -8%; width: 60vw; max-width: 760px; aspect-ratio: 1; background: radial-gradient(circle, rgba(207,174,245,.75), rgba(243,233,255,0) 65%); animation: drift 16s ease-in-out infinite alternate; }
.blob-b { left: -18%; bottom: -10%; width: 46vw; max-width: 560px; aspect-ratio: 1; background: radial-gradient(circle, rgba(243,233,255,1), rgba(243,233,255,0) 65%); animation: drift 20s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate3d(-6%, 8%, 0) scale(1.1); } }
.hero h1 { margin-bottom: 16px; }
.hero .lead { max-width: 56ch; margin-top: 0; margin-bottom: 24px; }
.actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.actions .btn { padding-inline: 14px; }
.actions .text-link { justify-content: center; }

.hero-stage { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1; margin-inline: auto; }
.hero-stage canvas, .final-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; touch-action: pan-y; cursor: grab; opacity: 0; animation: stage-in 1.2s .2s var(--ease-out) forwards; }
.hero-stage.is-grabbing canvas, .final-stage.is-grabbing canvas { cursor: grabbing; }
.hero-stage .stage-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.is-3d > .stage-fallback { display: none; }
@keyframes stage-in { from { opacity: 0; transform: scale(.85) translateY(30px); } to { opacity: 1; transform: none; } }
.drag-hint { position: absolute; left: 50%; bottom: 2%; display: none; padding: 6px 14px; border: 1px solid var(--lavender-line); border-radius: 99px; background: rgba(255,255,255,.8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--purple-primary); font-size: 12px; font-weight: 600; letter-spacing: .04em; transform: translateX(-50%); white-space: nowrap; transition: opacity .5s ease; pointer-events: none; }
.is-3d .drag-hint { display: block; animation: hint 2.4s 1.6s ease-in-out infinite; }
.was-dragged .drag-hint { opacity: 0; animation: none; }
@keyframes hint { 0%, 100% { translate: -6px 0; } 50% { translate: 6px 0; } }

.scroll-cue { position: absolute; left: 50%; bottom: 18px; display: none; width: 26px; height: 42px; margin-left: -13px; border: 2px solid var(--lilac); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--purple-primary); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Entrada do hero: palavras giram em 3D e sobem */
.is-split .w { display: inline-block; perspective: 700px; }
.is-split .w-in { display: inline-block; transform-origin: 50% 100%; }
.js .is-split .w-in { opacity: 0; transform: translateY(55%) rotateX(-85deg); }
.js.is-loaded .is-split .w-in { animation: word-up 1s var(--ease-out) forwards; animation-delay: calc(var(--wi) * 55ms + .15s); }
@keyframes word-up { to { opacity: 1; transform: none; } }
.js .hero-in { opacity: 0; transform: translateY(22px); }
.js.is-loaded .hero-in { animation: rise .9s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Faixa de serviços em movimento */
.ribbon { position: relative; z-index: 2; margin-block: 8px 0; padding-block: 14px; background: var(--purple-primary); color: var(--white); transform: rotate(-2.2deg) scale(1.04); box-shadow: 0 24px 40px -24px rgba(43,2,79,.6); overflow: hidden; }
.ribbon::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--purple-primary), transparent 12%, transparent 88%, var(--purple-primary)); z-index: 1; pointer-events: none; }
.ribbon-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ribbon-track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-size: clamp(16px, 1.6vw, 22px); font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.ribbon-track span::after { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--lilac); transform: rotate(45deg); }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ */
/* Revelação ao rolar                                                  */
/* ------------------------------------------------------------------ */
.js [data-reveal]:not(.is-in) { opacity: 0; }
.js [data-reveal].is-in { animation: reveal-3d 1.1s var(--ease-out) backwards; transform-origin: 50% 0; }
@keyframes reveal-3d { from { opacity: 0; transform: perspective(900px) translateY(34px) rotateX(-22deg); } }
/* Itens de lista usam translate/rotate separados, para não brigar com a inclinação 3D (transform) */
[data-stagger] { perspective: 1200px; }
.js [data-stagger] > [data-reveal].is-in { animation: reveal-item 1s var(--ease-out) backwards; animation-delay: calc(var(--si, 0) * 90ms); }
@keyframes reveal-item { from { opacity: 0; translate: 0 40px; rotate: x -28deg; } }

/* ------------------------------------------------------------------ */
/* Seções                                                              */
/* ------------------------------------------------------------------ */
.section { position: relative; padding-block: var(--section-y); }
.section-no-top { padding-top: 0; }

/* 02 Dores */
.plain-list { display: grid; gap: 12px; margin-top: 26px; }
.plain-list li { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border: 1px solid var(--lavender-line); border-radius: 16px; background: linear-gradient(180deg, #fff, #FDFBFF); box-shadow: 0 10px 24px -18px rgba(43,2,79,.35); line-height: 1.45; transition: transform .3s var(--ease-out), box-shadow .3s ease, border-color .3s ease; }
.plain-list li:hover { transform: translateX(6px); border-color: var(--lilac); box-shadow: 0 16px 30px -18px rgba(94,6,179,.45); }
.plain-list .icon { box-sizing: content-box; padding: 9px; border-radius: 12px; background: var(--lavender); color: var(--purple-primary); width: 20px; height: 20px; }
.pain-close { margin-top: 28px; color: var(--muted); }
.pain-turn { margin-top: 12px; color: var(--purple-primary); font-size: clamp(22px, calc(20px + .6vw), 30px); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }

/* 03 Sobre: o caminho dos pilares se desenha com a rolagem */
.prose { display: grid; gap: 14px; margin-block: 20px 12px; color: var(--muted); }
.prose strong { color: var(--purple-deep); font-weight: 600; }
.pillars-stage { perspective: 1100px; }
.art-pillars { transform: rotateX(calc((1 - var(--p, 1)) * 38deg)) rotateY(calc((1 - var(--p, 1)) * -18deg)) scale(calc(.9 + var(--p, 1) * .1)); transform-origin: 50% 80%; filter: drop-shadow(0 40px 40px rgba(94,6,179,.14)); }
.draw-path { fill: none; stroke: #fff; stroke-width: 16; stroke-dasharray: 1; stroke-dashoffset: max(0, 1 - var(--p, 1) * 1.25); }
.node { transform-box: fill-box; transform-origin: 50% 50%; scale: clamp(0, (var(--p, 1) * 1.25 - var(--t)) * 6, 1); opacity: clamp(0, (var(--p, 1) * 1.25 - var(--t)) * 6, 1); }
.node text { transform-box: fill-box; }

/* 04 Soluções: cartões que se empilham em profundidade */
.solutions { position: relative; padding-block: var(--section-y) 24px; background: linear-gradient(180deg, #fff 0%, var(--lavender) 30%, var(--lavender) 85%, #fff 100%); }
.solutions-head { margin-bottom: 28px; }
.solutions-head h2 { max-width: 620px; }
.stack { display: grid; gap: 24px; }
.service { scroll-margin-top: calc(var(--header-h) + 24px); }
.service-card { position: relative; padding: 28px 22px; background: #fff; border: 1px solid var(--lavender-line); border-radius: var(--radius-card); box-shadow: var(--shadow-card); transform-origin: 50% 0; }
#sites .service-card { background: linear-gradient(160deg, #FBF7FF 0%, #F0E3FF 100%); }
#automacao .service-card { background: radial-gradient(120% 90% at 100% 0%, #EFE2FF 0%, #fff 55%); }
.kicker { display: inline-block; margin-bottom: 12px; padding: 5px 12px; border-radius: 99px; background: var(--lavender); color: var(--purple-primary); font-size: 13px; font-weight: 600; line-height: 1.4; }
#sites .kicker { background: #fff; }
.service h3 { margin-bottom: 12px; font-size: clamp(22px, calc(19px + .9vw), 32px); letter-spacing: -.02em; }
.inline-list { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 18px 10px; }
.inline-list li { padding: 5px 12px; border: 1px solid var(--lavender-line); border-radius: 99px; background: rgba(255,255,255,.7); color: var(--purple-deep); font-size: 13px; font-weight: 500; line-height: 1.5; transition: transform .3s var(--ease-spring), background-color .2s ease, color .2s ease; }
.inline-list li:hover { transform: translateY(-3px); background: var(--purple-primary); color: #fff; border-color: var(--purple-primary); }

/* 05 Diferenciais */
.section-deep { isolation: isolate; overflow: clip; background: var(--purple-deep); --focus: var(--white); }
.deep-bg, .final-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.glow-a { left: -10%; top: 10%; width: 520px; height: 520px; background: rgba(94,6,179,.7); animation: drift 18s ease-in-out infinite alternate; }
.glow-b { right: -8%; bottom: 0; width: 420px; height: 420px; background: rgba(122,31,214,.45); animation: drift 22s ease-in-out infinite alternate-reverse; }
.section-deep h2, .section-deep h3 { color: var(--white); }
.section-deep .lead { color: var(--on-deep); }
.bridge { margin-top: 16px; color: var(--white); font-weight: 600; font-size: clamp(16px, calc(15px + .3vw), 19px); }
.diff-layout { display: grid; gap: 32px; }
.diff-art-wrap { perspective: 900px; }
.diff-art { max-width: 340px; animation: orbit-float 8s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
@keyframes orbit-float { 0%, 100% { transform: rotateY(-14deg) rotateX(8deg) translateY(0); } 50% { transform: rotateY(14deg) rotateX(-4deg) translateY(-14px); } }
.diff-list { display: grid; gap: 16px; }
.glass { display: flex; align-items: flex-start; gap: 16px; padding: 20px; border: 1px solid rgba(207,174,245,.18); border-radius: 20px; background: linear-gradient(150deg, rgba(255,255,255,.09), rgba(255,255,255,.02)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 20px 40px -24px rgba(0,0,0,.6); }
.glass::after { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(207,174,245,.22), transparent 50%); }
.glass:hover { border-color: rgba(207,174,245,.45); }
.glass .icon { box-sizing: content-box; padding: 10px; border-radius: 14px; background: rgba(207,174,245,.12); color: var(--lilac); transform: translateZ(30px); }
.glass > div { transform: translateZ(18px); }
.diff-list h3 { margin-bottom: 4px; font-size: 19px; }
.diff-list p { color: var(--on-deep); font-size: 15px; }

/* 06 Processo: trilha que se preenche com a rolagem */
.steps { position: relative; display: grid; gap: 16px; margin-block: 28px 36px; }
.step-card { display: flex; align-items: flex-start; gap: 16px; height: 100%; padding: 20px; background: #fff; border: 1px solid var(--lavender-line); border-radius: 24px; box-shadow: var(--shadow-card); }
.step-card img { width: 72px; flex: none; transform: translateZ(40px); transition: transform .5s var(--ease-spring); }
.step-card:hover img { transform: translateZ(60px) rotate(-6deg) scale(1.06); }
.step-card > div { transform: translateZ(20px); }
.step-n { display: block; color: var(--purple-primary); font-size: 13px; font-weight: 700; line-height: 1.4; letter-spacing: .06em; }
.steps h3 { margin-block: 2px 4px; font-size: 19px; }
.steps p { color: var(--muted); }

/* 07 Para quem */
.check-list { display: grid; gap: 10px; margin-block: 22px; }
.check-list li { display: flex; align-items: center; gap: 10px; color: var(--purple-deep); font-weight: 500; line-height: 1.4; }
.check-list .icon { box-sizing: content-box; width: 16px; height: 16px; padding: 5px; border-radius: 50%; background: var(--purple-primary); color: #fff; stroke-width: 3; box-shadow: 0 3px 0 var(--purple-shade); }
.js .check-list li.is-in .icon { animation: pop .6s var(--ease-spring) backwards; animation-delay: calc(var(--si, 0) * 90ms + .2s); }
@keyframes pop { from { transform: scale(0) rotate(-45deg); } }

/* 08 Chamada comercial */
.talk { padding: 36px 24px 24px; background: linear-gradient(140deg, #F7F0FF 0%, var(--lavender) 50%, #EADBFF 100%); border: 1px solid var(--lavender-line); border-radius: 28px; box-shadow: var(--shadow-card); }
.talk-copy { transform: translateZ(30px); }
.talk-text { margin-top: 14px; }
.talk-close { margin-block: 14px 22px; color: var(--purple-deep); font-weight: 600; }
.microcopy { margin-top: 14px; color: #4F4759; font-size: 14px; }
.art-talk { max-width: 300px; transform: translateZ(70px); animation: bob 6s ease-in-out infinite; filter: drop-shadow(0 26px 30px rgba(94,6,179,.25)); }
@keyframes bob { 50% { translate: 0 -12px; } }

/* 09 FAQ */
.faq-wrap { display: grid; gap: 20px; }
.faq { display: grid; gap: 10px; }
.faq-item { padding-inline: 20px; border: 1px solid var(--lavender-line); border-radius: 18px; background: #fff; transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease, transform .3s var(--ease-out); }
.faq-item:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -20px rgba(43,2,79,.35); }
.faq-item:has(button[aria-expanded="true"]) { background: linear-gradient(180deg, #FBF7FF, #fff); border-color: var(--lilac); box-shadow: 0 20px 40px -26px rgba(94,6,179,.5); }
.faq-item h3 { font-size: 17px; font-weight: 500; line-height: 1.4; letter-spacing: 0; }
.faq-item button { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 62px; padding: 14px 0; border: 0; background: none; color: var(--purple-deep); font: inherit; text-align: left; cursor: pointer; }
.faq-item button:hover { color: var(--purple-primary); }
.faq-item button .icon { box-sizing: content-box; width: 18px; height: 18px; padding: 6px; border-radius: 50%; background: var(--lavender); color: var(--purple-primary); transition: transform .4s var(--ease-spring), background-color .2s ease, color .2s ease; }
.faq-item button[aria-expanded="true"] .icon { transform: rotate(180deg); background: var(--purple-primary); color: #fff; }
.faq-panel { padding-bottom: 20px; color: var(--muted); }
.faq-panel:not([hidden]) { animation: faq-in .5s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: perspective(600px) rotateX(-25deg) translateY(-6px); transform-origin: top; } }

/* 10 CTA final: o símbolo 3D volta, agora branco sobre o roxo */
.final { isolation: isolate; overflow: clip; background: radial-gradient(90% 80% at 80% 50%, #44087A 0%, var(--purple-deep) 60%); color: var(--white); --focus: var(--white); }
.final-layout { display: grid; gap: 24px; align-items: center; }
.final-inner { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.final h2 { max-width: 720px; color: var(--white); font-size: clamp(30px, calc(22px + 2vw), 54px); letter-spacing: -.03em; }
.final .lead { max-width: 600px; margin-bottom: 28px; color: var(--on-deep); }
.signature { margin-top: 44px; color: var(--on-deep); font-size: 14px; line-height: 1.6; }
.signature strong { color: var(--white); font-weight: 600; letter-spacing: .06em; }
.final-line { margin-top: 8px; color: var(--lilac); font-weight: 600; }
.final-stage { position: relative; width: 100%; max-width: 380px; aspect-ratio: 1; margin-inline: auto; }
.final-symbol { position: absolute; inset: 15%; width: 70%; height: 70%; object-fit: contain; opacity: .14; animation: bob 7s ease-in-out infinite; }

/* Rodapé */
.site-footer { padding-block: 44px 28px; background: var(--white); }
.footer-grid { display: grid; gap: 30px; }
.footer-brand img { width: 132px; margin-bottom: 14px; }
.footer-brand p { max-width: 30ch; color: var(--muted); }
.footer-title { margin-bottom: 8px; color: var(--purple-deep); font-weight: 600; }
.site-footer nav a { display: flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; transition: color .2s ease, transform .3s var(--ease-out); }
.site-footer nav a:hover { color: var(--purple-primary); transform: translateX(4px); }
.company-info { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-bottom: 12px; font-style: normal; line-height: 1.6; }
.company-info strong { color: var(--purple-deep); font-weight: 600; }
.footer-legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--neutral-gray); color: var(--muted); font-size: 13px; }

/* Aviso de prévia: só aparece enquanto o número de WhatsApp não for configurado em site.js. */
.preview-notice { position: fixed; left: 50%; bottom: 12px; z-index: 60; width: min(100% - 24px, 560px); padding: 10px 14px; transform: translateX(-50%); background: var(--ink); border-radius: var(--radius-btn); color: var(--white); font-size: 13px; line-height: 1.4; text-align: center; }
.preview-notice.is-flash { outline: 3px solid var(--lilac); outline-offset: 2px; }

/* No celular e no tablet, o texto vem antes da ilustração. */
@media (max-width: 959px) {
  .split-art-first > .art-wrap, .split-art-first > .tilt-card { order: 2; }
}

@media (max-width: 379px) {
  .actions .btn .icon { display: none; }
}

@media (max-width: 359px) {
  .container { width: min(100% - 32px, 1200px); }
  .site-nav { padding-inline: 16px; }
}

@media (min-width: 600px) {
  .actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
  .actions .btn { padding-inline: 26px; }
  .check-list { grid-template-columns: repeat(2, 1fr); column-gap: 24px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .diff-list { grid-template-columns: 1fr; }
}

@media (min-width: 768px) {
  :root { --section-y: 104px; }
  .container { width: min(100% - 64px, 1200px); }
  .eyebrow { font-size: 13px; }
  .btn { font-size: 16px; min-height: 54px; }
  .service-card { padding: 44px; }
  .talk { padding: 48px; }
}

@media (min-width: 960px) {
  :root { --header-h: 76px; --section-y: 128px; }
  .brand { width: 148px; }
  .menu-toggle { display: none; }
  .site-nav { position: static; display: flex; flex-direction: row; align-items: center; gap: 30px; padding: 0; background: none; border: 0; box-shadow: none; }
  .site-nav a:not(.btn) { font-size: 15px; }
  .site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; border-radius: 2px; background: var(--purple-primary); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out); }
  .site-nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
  .nav-cta { margin: 0 0 0 8px; }

  .hero { display: flex; align-items: center; min-height: calc(100svh - var(--header-h)); padding-block: 24px 88px; }
  .hero > .container { width: min(100% - 64px, 1240px); }
  .hero h1 { margin-bottom: 22px; }
  .hero .lead { margin-bottom: 34px; }
  .hero-stage { max-width: none; aspect-ratio: auto; height: min(640px, 74svh); }
  .scroll-cue { display: block; }

  /* Larguras diferentes em cada bloco, para a página não virar uma grade repetida. */
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split-hero { grid-template-columns: 52fr 48fr; gap: 24px; }
  .split-art-first { grid-template-columns: 46fr 54fr; }
  .art { max-width: none; }
  .art-sticky { position: sticky; top: calc(var(--header-h) + 32px); }

  .solutions-head { margin-bottom: 48px; }
  .service-card .split { gap: 56px; }
  .service-card .art { max-height: min(400px, 52svh); object-fit: contain; }

  .diff-layout { grid-template-columns: 1.05fr 1fr; grid-template-rows: auto 1fr; column-gap: 88px; row-gap: 40px; align-items: start; }
  .diff-head { grid-column: 1; grid-row: 1; }
  .diff-art-wrap { grid-column: 1; grid-row: 2; }
  .diff-art { max-width: 360px; margin-inline: 0; }
  .diff-list { grid-column: 2; grid-row: 1 / span 2; align-self: center; gap: 18px; }

  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; margin-block: 48px 48px; padding-top: 28px; }
  .steps::before, .steps::after { content: ""; position: absolute; left: 4%; right: 4%; top: 0; height: 4px; border-radius: 4px; }
  .steps::before { background: var(--lavender); }
  .steps::after { background: linear-gradient(90deg, var(--lilac), var(--purple-primary)); transform: scaleX(var(--p, 1)); transform-origin: left; box-shadow: 0 0 18px rgba(94,6,179,.45); }
  .steps > li { position: relative; }
  .steps > li::before { content: ""; position: absolute; left: 50%; top: -34px; width: 16px; height: 16px; margin-left: -8px; border: 3px solid #fff; border-radius: 50%; background: var(--purple-primary); box-shadow: 0 0 0 4px var(--lavender); }
  .step-card { flex-direction: column; gap: 16px; padding: 24px; }
  .step-card img { width: 96px; }

  .talk { grid-template-columns: 1.35fr 1fr; gap: 56px; padding: 64px; border-radius: 36px; }
  .art-talk { max-width: 340px; }
  .faq-wrap { grid-template-columns: 1fr 2fr; gap: 56px; align-items: start; }
  .faq-wrap > h2 { position: sticky; top: calc(var(--header-h) + 32px); }

  .final-layout { grid-template-columns: 1.3fr 1fr; gap: 40px; }
  .final-stage { max-width: none; aspect-ratio: auto; height: 480px; }
}

/* Empilhamento dos serviços: só em telas largas e altas o bastante para o cartão caber inteiro. */
@media (min-width: 960px) and (min-height: 700px) {
  .stack { display: block; padding-bottom: 4vh; }
  .service { position: sticky; top: calc(var(--header-h) + 20px + var(--i) * 22px); margin-bottom: 14vh; perspective: 1600px; }
  .service:last-child { margin-bottom: 0; }
  .service-card { display: flex; align-items: center; min-height: min(600px, calc(100svh - var(--header-h) - 110px)); transform: scale(calc(1 - var(--cover, 0) * .08)) rotateX(calc(var(--cover, 0) * 7deg)); }
  .service-card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: var(--purple-deep); opacity: calc(var(--cover, 0) * .14); pointer-events: none; }
  .service-card > .split { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .cursor-glow { display: none; }
  .art-pillars { transform: none; }
}

@media print {
  .site-header, .preview-notice, .scroll-bar, .cursor-glow, .ribbon, .grid-floor { display: none; }
  .faq-panel[hidden] { display: block; }
}
