/* XMACNA design tokens v3 — redesign futurista (malha viva, Sora, violeta+ciano). 2 temas. */
:root,
[data-theme="dark"] {
  --bg: #07040d;
  --bg-2: #0d0718;
  --bg-elevated: #120a20;
  --ink: #f4f1fb;
  --text: #f4f1fb;
  --ink-dim: #a99fc4;
  --text-dim: #a99fc4;
  --ink-faint: #6b6088;
  --text-faint: #6b6088;
  --violet: #a78bfa;
  --accent: #a78bfa;
  --violet-deep: #7c3aed;
  --cyan: #22d3ee;
  --accent-2: #22d3ee;
  --accent-soft: rgba(167,139,250,.08);
  --accent-glow: rgba(124,58,237,.42);
  --cyan-glow: rgba(34,211,238,.32);
  --accent-border: rgba(167,139,250,.20);
  --accent-border-strong: rgba(167,139,250,.34);
  --border: rgba(255,255,255,.07);
  --border-strong: rgba(255,255,255,.13);
  --line: rgba(167,139,250,.14);
  --glass: rgba(255,255,255,.04);
  --glass-2: rgba(255,255,255,.028);
  --glass-brd: rgba(255,255,255,.09);
  --nav-bg: rgba(7,4,13,.62);
  --grid-line: rgba(255,255,255,.016);
  --hero-bg: #0d0718;
  --grad: linear-gradient(110deg, var(--violet) 0%, var(--cyan) 100%);
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Sora', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --duration-fast: 120ms;
  --duration: 220ms;
  --duration-slow: 340ms;
  --ease-standard: cubic-bezier(0.4,0,0.2,1);
  --ease-emphasized: cubic-bezier(0.2,0.8,0.2,1);
}

[data-theme="light"] {
  --bg: #f6f4fc;
  --bg-2: #ffffff;
  --bg-elevated: #ffffff;
  --ink: #0d0718;
  --text: #0d0718;
  --ink-dim: #4a4263;
  --text-dim: #4a4263;
  --ink-faint: #857aa3;
  --text-faint: #857aa3;
  --violet: #7c3aed;
  --accent: #7c3aed;
  --violet-deep: #6d28d9;
  --cyan: #0891b2;
  --accent-2: #0891b2;
  --accent-soft: rgba(124,58,237,.07);
  --accent-glow: rgba(124,58,237,.20);
  --cyan-glow: rgba(8,145,178,.18);
  --accent-border: rgba(124,58,237,.18);
  --accent-border-strong: rgba(124,58,237,.28);
  --border: rgba(13,7,24,.09);
  --border-strong: rgba(13,7,24,.16);
  --line: rgba(124,58,237,.16);
  --glass: rgba(13,7,24,.03);
  --glass-2: rgba(13,7,24,.025);
  --glass-brd: rgba(13,7,24,.09);
  --nav-bg: rgba(246,244,252,.72);
  --grid-line: rgba(13,7,24,.04);
  --hero-bg: #efeafa;
}

/* XMACNA landings v3 — design system futurista. Estiliza TODOS os elementos do gerador.
   Conteudo (texto/SEO) inalterado; muda a casca: malha viva, Sora, gradiente, glass, motion. */
* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh; overflow-x: hidden;
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-weight: 400; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
img, svg, canvas { max-width: 100%; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

/* malha viva + aurora (fundo) */
#voronoi {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: .68;
}
.scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(900px 720px at 23% 28%, rgba(7, 4, 13, .86), rgba(7, 4, 13, .42) 58%, transparent 82%),
    linear-gradient(180deg, rgba(7, 4, 13, .20), rgba(7, 4, 13, .82) 88%);
}
.landing-shell-v2 { position: relative; z-index: 1; width: min(1180px, 100%); margin: 0 auto; padding: 0 1.25rem 5rem; }

/* nav */
.nav { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(18px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 62%, transparent); border-bottom: 1px solid var(--border); }
.nav-inner { width: min(1180px,100%); margin: 0 auto; padding: .85rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none;
  font-weight: 800; font-size: 1.15rem; letter-spacing: .26em; color: var(--ink); }
.brand .brand-x { color: var(--ink); }
.brand b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-actions { display: inline-flex; align-items: center; gap: .85rem; }
.theme-toggle { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--glass-brd); border-radius: 999px; background: var(--glass); color: var(--ink-dim);
  cursor: pointer; transition: color var(--duration) var(--ease-standard), border-color var(--duration) var(--ease-standard); }
.theme-toggle:hover { color: var(--violet); border-color: var(--violet); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
.back { color: var(--ink-dim); font-size: .86rem; font-weight: 600; text-decoration: none; }
.back:hover { color: var(--ink); }

/* hero (sem imagem — a malha e o visual) */
.hero { position: relative; padding: clamp(3.2rem, 8vw, 6.5rem) 0 clamp(2.6rem, 5vw, 4.5rem); }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-mono);
  font-size: .7rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--cyan);
  padding: .4rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan); animation: pulse 2.2s ease-in-out infinite; }
.eyebrow-ico::before { display: none; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(1.5); } }
h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.5rem, 7vw, 5.2rem);
  line-height: .99; letter-spacing: -.03em; margin: 1.5rem 0 1.3rem; max-width: 17ch; }
h1 em, h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 50ch; color: var(--ink-dim); font-size: clamp(1.04rem, 1.7vw, 1.28rem); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; margin-top: 2.1rem; }
.cta, .cta-secondary { display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 50px; padding: .95rem 1.7rem; border-radius: 999px; font-weight: 700; font-size: .97rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform var(--duration) var(--ease-emphasized), box-shadow var(--duration), border-color var(--duration); }
.cta { background: var(--grad); color: #0a0410; box-shadow: 0 8px 30px var(--accent-glow); }
.cta:hover { transform: translateY(-3px); box-shadow: 0 16px 48px var(--accent-glow); }
.cta-secondary { background: var(--glass); border-color: var(--glass-brd); color: var(--ink); }
.cta-secondary:hover { transform: translateY(-3px); border-color: var(--violet); }

/* ribbon de prova (3 stats) — substitui a imagem cheia de texto */
.hero-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 2.8rem;
  max-width: 580px; border: 1px solid var(--glass-brd); border-radius: 16px; overflow: hidden;
  background: var(--border); backdrop-filter: blur(14px); }
.proof { display: flex; align-items: flex-start; gap: .55rem; padding: 1.05rem 1.05rem;
  background: color-mix(in srgb, var(--bg-2) 72%, transparent); }
.proof .ico { width: 19px; height: 19px; margin-top: .15rem; color: var(--cyan); flex: 0 0 auto; }
.proof-body { min-width: 0; }
.proof strong { display: block; font-family: var(--font-mono); font-size: 1.55rem; font-weight: 700; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.proof span { display: block; margin-top: .4rem; color: var(--ink-faint); font-size: .73rem; line-height: 1.3; }

/* icones */
.ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 1.15em; height: 1.15em; line-height: 0; color: var(--violet); }
.ico svg { width: 100%; height: 100%; display: block; }
.ico-sm { width: .9em; height: .9em; }

/* operation-trail (ciclo) — cards glass com badge nro+icone */
.operation-band { position: relative; margin: .5rem 0 2.6rem; padding: clamp(1.3rem, 3vw, 2rem);
  display: grid; grid-template-columns: minmax(240px,.72fr) minmax(0,1.28fr); gap: clamp(1.1rem,3vw,2rem);
  align-items: center; border: 1px solid var(--glass-brd); border-radius: 22px; overflow: hidden;
  background: var(--glass); backdrop-filter: blur(16px); }
.operation-copy h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem,2.6vw,2.1rem);
  line-height: 1.06; letter-spacing: -.02em; margin: .7rem 0 .5rem; }
.operation-copy p { color: var(--ink-dim); max-width: 42ch; }
.operation-trail { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: .8rem; list-style: none; }
.operation-trail li { position: relative; min-height: 168px; padding: 1rem .9rem; border: 1px solid var(--glass-brd);
  border-radius: 16px; background: color-mix(in srgb, var(--bg-2) 60%, transparent); }
.operation-trail li span.trail-step { display: inline-flex; align-items: center; gap: .4rem; height: 30px;
  padding: 0 .6rem 0 .35rem; border: 1px solid var(--accent-border-strong); border-radius: 999px; background: var(--accent-soft); }
.trail-num { font-family: var(--font-mono); font-size: .72rem; font-weight: 700; font-style: normal; color: var(--cyan); }
.trail-ico { display: inline-flex; width: 16px; height: 16px; color: var(--violet); }
.trail-ico svg { width: 100%; height: 100%; }
.operation-trail li strong { display: block; margin-top: .85rem; font-weight: 700; font-size: .96rem; }
.operation-trail li p { margin-top: .45rem; color: var(--ink-dim); font-size: .79rem; line-height: 1.4; }

/* sections */
.section { padding: clamp(3.4rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--border); }
.kicker, .section .eyebrow { margin-bottom: 1rem; }
.section h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.05; letter-spacing: -.025em; max-width: 20ch; margin: .9rem 0; }
.section p { color: var(--ink-dim); max-width: 64ch; font-size: 1.04rem; }

/* COMPARISON -> versus cards (Antes -> Depois) */
.versus { display: grid; gap: 1.1rem; margin-top: 2.4rem; }
.vcard { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.2rem;
  padding: 1.5rem 1.4rem; border: 1px solid var(--glass-brd); border-radius: 20px; background: var(--glass); backdrop-filter: blur(14px); }
.vcard::before { content: ''; position: absolute; inset: 0; border-radius: 20px; padding: 1px;
  background: linear-gradient(110deg, transparent, var(--violet) 50%, var(--cyan));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .35; transition: opacity var(--duration); pointer-events: none; }
.vcard:hover::before { opacity: 1; }
.v-old .lab, .v-new .lab { display: block; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em;
  text-transform: uppercase; margin-bottom: .45rem; }
.v-old .lab { color: var(--ink-faint); } .v-new .lab { color: var(--cyan); }
.v-old p { color: var(--ink-faint); font-size: .96rem; } .v-new p { color: var(--ink); font-weight: 600; font-size: 1rem; }
.v-mid { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); }
.v-mid svg { width: 18px; height: 18px; color: var(--violet); }
.v-metric { display: inline-block; margin-left: .5rem; font-family: var(--font-mono); font-weight: 700; font-size: 1.35rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.1rem; margin-top: 2rem; }
.step { position: relative; padding: 1.3rem 1.2rem; border: 1px solid var(--glass-brd); border-radius: 16px; background: var(--glass); }
.step-icon { width: 40px; height: 40px; margin-bottom: .9rem; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--accent-border); border-radius: 12px; background: var(--accent-soft); color: var(--violet); }
.step-icon svg { width: 19px; height: 19px; }
.step-label { display: block; font-family: var(--font-mono); font-size: .66rem; font-weight: 700; letter-spacing: .12em; color: var(--cyan); }
.step h3 { margin: .5rem 0 .35rem; font-size: 1.02rem; font-weight: 700; }
.step p { font-size: .89rem; line-height: 1.5; color: var(--ink-dim); }

/* tabela legada (fallback se algum body_html ainda usar) */
.comparison-table { width: 100%; margin-top: 1.5rem; border-collapse: collapse; font-size: .95rem; }
th, td { padding: .9rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
td { color: var(--ink-dim); } td strong { color: var(--ink); }
.price { color: var(--cyan); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.insight { margin-top: 1.35rem; padding: 1rem 1.1rem; border: 1px solid var(--accent-border); border-radius: 14px; background: var(--accent-soft); }
.insight strong { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* faq */
.faq { margin-top: 1.6rem; }
.faq-item { border-top: 1px solid var(--border); padding: 1.1rem 0; }
.faq-item summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; font-weight: 600; font-size: 1.05rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { color: var(--cyan); font-family: var(--font-mono); transition: transform var(--duration); }
.faq-item[open] summary span { transform: rotate(45deg); }
.faq-item p { margin-top: .7rem; color: var(--ink-dim); max-width: 68ch; }

/* related */
.related { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.related a { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border: 1px solid var(--accent-border-strong);
  border-radius: 999px; background: var(--accent-soft); color: var(--violet); font-size: .85rem; font-weight: 600; text-decoration: none;
  transition: transform var(--duration), background var(--duration); }
.related a:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--violet) 14%, transparent); }
.related a .ico { color: inherit; transition: transform var(--duration); }
.related a:hover .ico { transform: translateX(3px); }

/* powered by AI */
.powered-ai { margin-top: 3rem; padding: clamp(3rem,5vw,4rem) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }
.powered-ai .container { width: min(1180px,100%); margin: 0 auto; padding: 0 1.25rem; }
.powered-ai .eyebrow { margin-bottom: 1rem; }
.powered-ai h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem,2.6vw,2.1rem); letter-spacing: -.02em; line-height: 1.1; margin-bottom: .55rem; }
.powered-ai .ai-sub { color: var(--ink-dim); max-width: 620px; margin: 0 auto 2rem; }
.ai-logos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); max-width: 980px; margin: 0 auto 1.4rem; gap: 1rem .6rem; }
.ai-provider { display: flex; flex-direction: column; align-items: center; gap: .55rem; padding: 1.1rem .8rem;
  border: 1px solid var(--glass-brd); border-radius: 14px; background: var(--glass); transition: transform var(--duration), border-color var(--duration); }
.ai-provider:hover { transform: translateY(-3px); border-color: var(--accent-border-strong); }
.ai-logo-svg { display: inline-flex; align-items: center; justify-content: center; height: 34px; color: var(--ink); }
.ai-logo-svg svg { width: 34px; height: 34px; }
.ai-provider-name { font-family: var(--font-display); font-weight: 600; font-size: .8rem; color: var(--ink); }
.powered-ai .closing { color: var(--ink-faint); font-size: .85rem; max-width: 620px; margin: 0 auto; }

/* final cta */
.final-cta { margin-top: 3rem; padding: clamp(2.6rem,5vw,4rem) clamp(1.4rem,4vw,2.6rem); text-align: center;
  border: 1px solid var(--accent-border-strong); border-radius: 24px; background:
   radial-gradient(80% 120% at 50% 0%, var(--accent-soft), transparent 70%), var(--glass); position: relative; overflow: hidden; }
.final-cta h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem,3.4vw,2.6rem); line-height: 1.08; letter-spacing: -.02em; margin-bottom: .7rem; }
.final-cta p { color: var(--ink-dim); max-width: 52ch; margin: 0 auto 1.6rem; }
.final-cta .hero-actions { margin-top: 0; justify-content: center; }

/* footer */
.footer { padding: 3rem 0 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--ink-faint); font-size: .82rem; border-top: 1px solid var(--border); }
.footer strong { color: var(--ink); }
em, i { font-style: normal; }

/* reveal (motion) — hero revela no LOAD; demais no scroll */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-emphasized), transform .7s var(--ease-emphasized); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .07s; } .rv.d2 { transition-delay: .14s; } .rv.d3 { transition-delay: .21s; } .rv.d4 { transition-delay: .28s; }
.hero .rv { animation: heroReveal .7s var(--ease-emphasized) both; opacity: 1; transform: none; }
.hero .rv.d1 { animation-delay: .07s; } .hero .rv.d2 { animation-delay: .14s; } .hero .rv.d3 { animation-delay: .21s; } .hero .rv.d4 { animation-delay: .28s; }
@keyframes heroReveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* MOBILE-FIRST: simplifica grids no mobile (este bloco e o default; desktop expande acima) */
@media (max-width: 900px) {
  .operation-band { grid-template-columns: 1fr; padding: 1.2rem; border-radius: 18px; }
  .operation-trail { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-proof { max-width: 100%; }
  h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
}
@media (max-width: 620px) {
  .operation-trail { grid-template-columns: 1fr; }
  .operation-trail li { min-height: auto; }
  .hero-proof { grid-template-columns: 1fr; }
  .vcard { grid-template-columns: 1fr; gap: .8rem; }
  .v-mid { transform: rotate(90deg); }
  .hero-actions .cta, .hero-actions .cta-secondary { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .rv, .hero .rv { opacity: 1 !important; transform: none !important; }
  #mesh { display: none; }
}

/* PROTO-41 bg: conteúdo acima do scrim (z-1) */
.nav, main, .landing-shell-v2 { position: relative; z-index: 2; }


/* ===== Cards tc-cap (template da home PROTO-41) ===== */
:root, [data-theme="dark"] { --ease: var(--ease-emphasized); }
.type-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  perspective: 1400px;
}
.type-card {
  min-height: 292px;
  position: relative;
  overflow: hidden;
  padding: 24px 24px 60px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(480px 260px at var(--mx, 50%) var(--my, 50%), rgba(34, 211, 238, .12), transparent 60%),
    rgba(13, 8, 24, .72);
  backdrop-filter: blur(16px);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .34);
  transform-style: preserve-3d;
  transition: transform .35s var(--ease), border-color .25s, background .25s;
}
.type-card:hover { border-color: rgba(34, 211, 238, .42); }
.type-card::before {
  content: attr(data-word);
  position: absolute;
  left: 18px;
  top: 10px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(167, 139, 250, .18);
  font-size: clamp(58px, 6vw, 92px);
  font-weight: 800;
  line-height: .82;
  letter-spacing: -.06em;
  opacity: .95;
  transform: translateZ(-1px);
}
.type-card .num {
  position: relative;
  z-index: 2;
  color: var(--cyan);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .18em;
}
.type-card h3 {
  position: relative;
  z-index: 2;
  margin-top: 58px;
  color: var(--ink);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.04;
  letter-spacing: -.035em;
}
.type-card p {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.56;
}
.type-card .tag {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 2;
  color: #07040d;
  background: linear-gradient(95deg, var(--violet), var(--cyan));
  border-radius: 3px;
  padding: 6px 9px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
/* G3 */
.cap-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.tc-cap { min-height: 286px; }
.tc-cap .tc-ico { position: absolute; top: 18px; right: 18px; z-index: 2; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(167,139,250,.22), rgba(34,211,238,.14)); color: var(--cyan); }
.tc-cap .tc-ico svg { width: 22px; height: 22px; }
@media (max-width: 920px) { .cap-grid { grid-template-columns: 1fr; } }
/* G4 fluxo */
.flow-label { font-size: 16px; font-weight: 700; fill: #ece7fb; }
.flow-cap { font-size: 12px; }
.flow-glow { transform-box: fill-box; transform-origin: center; animation: flowGlowPulse 3.4s ease-in-out infinite; }
@keyframes flowGlowPulse { 0%,100% { opacity: .26; transform: scale(1); } 50% { opacity: .6; transform: scale(1.13); } }
/* G5 quote-grid 3 col */
.quote-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 980px) { .quote-grid { grid-template-columns: 1fr; } }

/* tc-cap V2: accent por card + mouse-follow (diferencia do #resposta) */
.cap-grid { perspective: 1400px; }
.tc-cap { --acc: 167,139,250; transition: transform .18s ease;
  background: radial-gradient(520px 280px at var(--mx,50%) var(--my,50%), rgba(var(--acc),.18), transparent 60%), rgba(13,8,24,.72); }
.tc-cap::before { -webkit-text-stroke: 1px rgba(var(--acc),.14); color: rgba(var(--acc),.045); }
.tc-cap::after { content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 2px; z-index: 2;
  background: linear-gradient(90deg, transparent, rgb(var(--acc)), transparent); opacity: .55; }
.tc-cap .tc-ico { background: rgba(var(--acc),.16); color: rgb(var(--acc)); border: 1px solid rgba(var(--acc),.30); box-shadow: 0 0 22px rgba(var(--acc),.18); }
.tc-cap .tag { background: linear-gradient(95deg, rgb(var(--acc)), rgba(var(--acc),.5)); color: #06121a; }
@media (max-width: 920px) { .type-card-grid { grid-template-columns: 1fr; } }


/* ============================================================
   HERO PROTO-41 — split headline + cena 3D parallax (portado)
   ============================================================ */
.display {
  font-weight: 800;
  font-size: clamp(2.6rem, 9.3vw, 8.3rem);
  line-height: .88;
  letter-spacing: -.035em;
  text-wrap: balance;
  transform-origin: 40% 50%;
  max-width: 9ch;
}
.display .line {
  display: block;
  overflow: hidden;
  padding-bottom: .035em;
}
.display .line > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: rise .9s var(--ease) forwards;
  will-change: transform;
}
.display .line:nth-child(1) > span { animation-delay: .05s; }
.display .line:nth-child(2) > span { animation-delay: .16s; }
.display .line:nth-child(3) > span { animation-delay: .27s; }
.display .g {
  background: linear-gradient(100deg, #c4b5fd 0%, #a78bfa 45%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.display .accent {
  color: var(--bg);
  background: var(--ink);
  padding: 0 .12em;
  border-radius: 4px;
  transform: rotate(-1deg);
  display: inline-block;
}
.display em { font-style: normal; font-weight: 200; }
@keyframes rise { to { transform: translateY(0); opacity: 1; } }

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(24px, 3.2vw, 34px);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 0 26px;
  font-weight: 650;
  font-size: 15px;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 6px 6px 0 0 var(--violet);
}
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 0 var(--cyan); }
.btn-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, .025);
  border-color: var(--line);
}
.btn-secondary:hover { color: var(--cyan); border-color: var(--cyan); transform: translateY(-2px); }

.hero-2col { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr); gap: clamp(30px, 5vw, 76px); align-items: center; }
.hero-main { display: flex; flex-direction: column; align-items: flex-start; }
.hero-main .lede { margin-top: clamp(20px, 2.6vw, 30px); }
.hero-main .ctas { margin-top: clamp(26px, 3vw, 38px); }
.hero-aside { display: grid; place-items: center; }

.hero-parallax {
  --hpx-violet: #a78bfa;
  --hpx-violet-deep: #7c5cff;
  --hpx-cyan: #22d3ee;
  --hpx-ink: #f3effd;
  --hpx-ink-soft: #b4a9cf;
  --hpx-ink-faint: #6f6589;
  --hpx-glass: rgba(20, 13, 38, 0.55);
  --hpx-glass-bd: rgba(167, 139, 250, 0.18);
  --hpx-wa-bubble-in: #1f2c33;
  --hpx-wa-bubble-out: #144d37;
  --hpx-shadow-3d: 0 40px 90px -20px rgba(0, 0, 0, 0.85), 0 12px 30px -10px rgba(124, 92, 255, 0.25);
  --hpx-r: 20px;

  position: relative;
  /* O wrapper fornece a perspectiva da cena 3D */
  perspective: 1400px;
  perspective-origin: 55% 45%;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', system-ui, sans-serif;
  color: var(--hpx-ink);
}
.hero-parallax * { box-sizing: border-box; }

/* ---------- Orbs de profundidade (fundo opcional) ---------- */
.hero-parallax .hpx-orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-parallax .hpx-orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  will-change: transform;
}
.hero-parallax .hpx-orb-v {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(124,92,255,0.6), transparent 70%);
  top: -120px; right: 4%;
}
.hero-parallax .hpx-orb-c {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(34,211,238,0.5), transparent 70%);
  bottom: -110px; left: -40px;
}

/* ---------- Stage 3D ---------- */
.hero-parallax .hpx-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  height: 540px;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}

/* ---------- Card base (glass) ---------- */
.hero-parallax .hpx-card {
  position: absolute;
  border-radius: var(--hpx-r);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: var(--hpx-glass);
  border: 1px solid var(--hpx-glass-bd);
  box-shadow: var(--hpx-shadow-3d);
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
}
.hero-parallax .hpx-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(255,255,255,0.10), transparent 38%);
  pointer-events: none;
}
/* Brilho/sheen que segue o ponteiro via --mx/--my (setados pelo JS) */
.hero-parallax .hpx-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at calc(var(--mx,50%)) calc(var(--my,50%)), rgba(167,139,250,0.16), transparent 45%);
  opacity: .9; mix-blend-mode: screen;
}

/* ---------- Floaty idle animation ---------- */
.hero-parallax .hpx-float { animation: hpx-floaty 7s ease-in-out infinite; }
.hero-parallax .hpx-float-b { animation-duration: 8.4s; animation-delay: -2s; }
.hero-parallax .hpx-float-c { animation-duration: 6.2s; animation-delay: -4s; }
@keyframes hpx-floaty {
  0%,100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

/* =====================================================================
   PROFUNDIDADE / POSICIONAMENTO DAS CAMADAS
   Cada card tem um translateZ() diferente -> parallax real com a perspectiva.
   z-index mantem ordem de pintura consistente com o eixo Z.
   ===================================================================== */

/* CARD frente — WhatsApp */
.hero-parallax .hpx-card-wa {
  width: 320px;
  top: 40px; left: 2%;
  transform: translateZ(80px) rotateY(-9deg) rotateX(4deg);
  z-index: 4;
  background: rgba(8, 14, 17, 0.78);
}
/* CARD meio — CRM */
.hero-parallax .hpx-card-crm {
  width: 300px;
  top: 8px; right: -2%;
  transform: translateZ(20px) rotateY(11deg) rotateX(3deg);
  z-index: 3;
}
/* CARD atras — Stat */
.hero-parallax .hpx-card-stat {
  width: 215px;
  bottom: 18px; left: 16%;
  transform: translateZ(-40px) rotateY(-5deg) rotateX(6deg);
  z-index: 2;
  padding: 18px 18px 16px;
}

/* Chips flutuantes (camada mais a frente que tudo) */
.hero-parallax .hpx-chip {
  position: absolute;
  z-index: 5;
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  padding: 8px 12px; border-radius: 11px;
  background: rgba(12,7,22,0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--hpx-glass-bd);
  display: flex; align-items: center; gap: 7px;
  box-shadow: var(--hpx-shadow-3d);
  color: var(--hpx-ink);
}
.hero-parallax .hpx-chip .hpx-gd { width: 8px; height: 8px; border-radius: 3px; background: linear-gradient(135deg, var(--hpx-violet), var(--hpx-cyan)); }
.hero-parallax .hpx-chip-1 { top: -8px; left: 34%; transform: translateZ(120px) rotateY(-6deg); }
.hero-parallax .hpx-chip-2 { bottom: 84px; right: -4%; transform: translateZ(60px) rotateY(8deg); }

/* ---------- WhatsApp card interno ---------- */
.hero-parallax .hpx-wa-head {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 15px;
  background: linear-gradient(90deg, rgba(20,77,55,0.65), rgba(8,14,17,0.5));
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.hero-parallax .hpx-wa-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--hpx-violet-deep), var(--hpx-cyan));
  display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #07040d;
  flex-shrink: 0;
}
.hero-parallax .hpx-wa-meta .nm { font-size: 14px; font-weight: 600; }
.hero-parallax .hpx-wa-meta .st { font-size: 11px; color: #54d49a; display: flex; align-items: center; gap: 5px; margin-top: 1px; }
.hero-parallax .hpx-wa-meta .st .ld { width: 6px; height: 6px; border-radius: 50%; background: #54d49a; box-shadow: 0 0 7px #54d49a; }
.hero-parallax .hpx-wa-badge {
  margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 9.5px;
  color: var(--hpx-violet); padding: 4px 8px; border-radius: 8px;
  border: 1px solid rgba(167,139,250,0.3); background: rgba(167,139,250,0.08);
  white-space: nowrap;
}
.hero-parallax .hpx-wa-body { padding: 16px 14px; display: flex; flex-direction: column; gap: 9px; min-height: 250px; }
.hero-parallax .hpx-bubble {
  max-width: 82%; padding: 8px 12px; font-size: 12.5px; line-height: 1.42;
  border-radius: 13px; position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.hero-parallax .hpx-bubble .t { display: block; font-family: 'JetBrains Mono', monospace; font-size: 9px; color: rgba(255,255,255,0.4); margin-top: 4px; text-align: right; }
.hero-parallax .hpx-bub-in { align-self: flex-start; background: var(--hpx-wa-bubble-in); border-bottom-left-radius: 4px; }
.hero-parallax .hpx-bub-out { align-self: flex-end; background: var(--hpx-wa-bubble-out); border-bottom-right-radius: 4px; }
.hero-parallax .hpx-bub-out .t { color: rgba(255,255,255,0.55); }
.hero-parallax .hpx-typing { align-self: flex-end; display: inline-flex; gap: 4px; padding: 11px 14px; background: var(--hpx-wa-bubble-out); border-radius: 13px; border-bottom-right-radius: 4px; }
.hero-parallax .hpx-typing span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.7); animation: hpx-blink 1.3s infinite; }
.hero-parallax .hpx-typing span:nth-child(2) { animation-delay: .2s; }
.hero-parallax .hpx-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes hpx-blink { 0%,60%,100% { opacity:.3; transform: translateY(0);} 30% { opacity:1; transform: translateY(-3px);} }

/* ---------- CRM card interno ---------- */
.hero-parallax .hpx-crm-head { padding: 15px 16px 10px; border-bottom: 1px solid rgba(167,139,250,0.1); }
.hero-parallax .hpx-crm-k { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; color: var(--hpx-cyan); letter-spacing: 0.08em; text-transform: uppercase; }
.hero-parallax .hpx-crm-lead { font-size: 15px; font-weight: 600; margin-top: 4px; }
.hero-parallax .hpx-crm-stage { margin-top: 9px; display: flex; gap: 5px; }
.hero-parallax .hpx-crm-stage i { height: 5px; flex: 1; border-radius: 3px; background: rgba(167,139,250,0.18); }
.hero-parallax .hpx-crm-stage i.on { background: linear-gradient(90deg, var(--hpx-violet), var(--hpx-cyan)); }
.hero-parallax .hpx-crm-stage-lbl { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--hpx-ink-soft); margin-top: 7px; }
.hero-parallax .hpx-crm-stage-lbl b { color: var(--hpx-cyan); }
.hero-parallax .hpx-crm-fields { padding: 13px 16px; display: grid; gap: 11px; }
.hero-parallax .hpx-crm-row { display: flex; align-items: center; gap: 10px; }
.hero-parallax .hpx-crm-ic { width: 28px; height: 28px; border-radius: 9px; background: rgba(167,139,250,0.1); display: grid; place-items: center; flex-shrink: 0; }
.hero-parallax .hpx-crm-ic svg { width: 14px; height: 14px; stroke: var(--hpx-violet); }
.hero-parallax .hpx-crm-tx .a { font-size: 10px; color: var(--hpx-ink-faint); font-family: 'JetBrains Mono', monospace; }
.hero-parallax .hpx-crm-tx .b { font-size: 12.5px; color: var(--hpx-ink); font-weight: 500; margin-top: 1px; }
.hero-parallax .hpx-crm-foot { padding: 11px 16px; border-top: 1px solid rgba(167,139,250,0.1); display: flex; align-items: center; gap: 8px; }
.hero-parallax .hpx-ai-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hpx-cyan); box-shadow: 0 0 8px var(--hpx-cyan); animation: hpx-pulse 2s infinite; }
.hero-parallax .hpx-crm-foot-tx { font-size: 11px; color: var(--hpx-ink-soft); }
.hero-parallax .hpx-crm-foot-tx b { color: var(--hpx-cyan); }
@keyframes hpx-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Stat card interno ---------- */
.hero-parallax .hpx-stat-cap { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; color: var(--hpx-ink-faint); letter-spacing: 0.08em; text-transform: uppercase; }
.hero-parallax .hpx-stat-big { font-size: 34px; font-weight: 800; margin-top: 4px; letter-spacing: -0.02em;
  background: linear-gradient(100deg, var(--hpx-violet), var(--hpx-cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-parallax .hpx-stat-sub { font-size: 11px; color: var(--hpx-ink-soft); margin-top: 2px; }
.hero-parallax .hpx-spark { margin-top: 14px; display: flex; align-items: flex-end; gap: 5px; height: 42px; }
.hero-parallax .hpx-spark i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--hpx-violet), rgba(34,211,238,0.25)); transform-origin: bottom; animation: hpx-grow 2.6s ease-in-out infinite; }
@keyframes hpx-grow { 0%,100% { transform: scaleY(.72);} 50% { transform: scaleY(1);} }

/* ---------- Responsivo ---------- */
@media (max-width: 540px) {
  .hero-parallax { min-height: 470px; }
  .hero-parallax .hpx-stage { height: 470px; max-width: 380px; }
  .hero-parallax .hpx-card-wa { width: 280px; left: -2%; }
  .hero-parallax .hpx-card-crm { width: 248px; right: -4%; }
  .hero-parallax .hpx-card-stat { width: 180px; left: 8%; }
  .hero-parallax .hpx-chip-1 { left: 30%; }
}

/* ---------- Reduced motion: zera animacoes e tilt ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-parallax .hpx-float,
  .hero-parallax .hpx-float-b,
  .hero-parallax .hpx-float-c,
  .hero-parallax .hpx-spark i,
  .hero-parallax .hpx-typing span,
  .hero-parallax .hpx-ai-dot,
  .hero-parallax .hpx-orb { animation: none !important; }
  .hero-parallax .hpx-stage { transition: none !important; transform: none !important; }
  .hero-parallax .hpx-card { transition: none !important; }
}
.hero-aside .hero-parallax { width: 100%; }

/* C: animacao no texto do hero — gradiente fluindo no 'comecar' + leve respiro */
.display .g { background-size: 220% 100%; animation: gFlow 6.5s ease-in-out infinite; }
@keyframes gFlow { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .display .g { animation: none; } }

/* ===== Hero igual a home (PROTO-41) — overrides escopados ao .hero-main ===== */
.hero-main { display: flex; flex-direction: column; align-items: flex-start; }
.hero-main .eyebrow {
  color: var(--violet); border-left: 3px solid var(--cyan); border-radius: 0;
  padding: 0 0 0 12px; gap: 12px; background: none;
  font-size: clamp(11px, 1.4vw, 13px); letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.hero-main .eyebrow::before { display: none !important; }
.display .line:nth-child(4) > span { animation-delay: .38s; }
.hero-main .display { font-size: clamp(2.2rem, 5.6vw, 5.3rem); max-width: 14ch; margin: 0; line-height: .92; }
.hero-main .lede { max-width: 50ch; margin-top: clamp(18px, 2.4vw, 28px); }
.hero-main .ctas { margin-top: clamp(22px, 2.8vw, 32px); }
.hero-aside .hero-parallax { width: 100%; }
.hero-main .eyebrow.fade, .hero-main .lede.fade, .hero-main .ctas.fade, .hero-aside.fade {
  animation: heroReveal .7s var(--ease-emphasized) both;
}
.hero-main .lede.fade { animation-delay: .12s; }
.hero-main .ctas.fade { animation-delay: .2s; }
.hero-aside.fade { animation-delay: .28s; }
.hero-proof.band { max-width: 820px; margin-inline: auto; }
@media (max-width: 980px) {
  .hero-2col { grid-template-columns: 1fr; gap: 30px; }
  .hero-aside { margin-top: 6px; }
  .hero-main .display { font-size: clamp(2.3rem, 11vw, 4.2rem); max-width: 18ch; }
}
