/* ============================================================
   WORKFACILIT — HOME (narrativa AI First)
   Namespace: hm-*   ·   Cores: só tokens --wf-* (sem hex, ver theme.css)
   Superfícies azul-escuras fixas (.hm-stage .hm-ai .hm-cta .hm-node--ceci .hm-tt)
   entram no escopo escuro via css/theme-deep.css.
   ============================================================ */

@property --hm-n { syntax: '<integer>'; inherits: false; initial-value: 0; }

.hm-main { --hm-pad: clamp(4.5rem, 9vw, 8rem); background: var(--wf-bg-page); overflow-x: clip; }
.hm-main section[id] { scroll-margin-top: 84px; }
.hm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hm-skip { position: fixed; left: 1rem; top: -4rem; z-index: 900; padding: .6rem 1rem; border-radius: var(--wf-r-md); background: var(--wf-primary); color: var(--wf-on-primary); font-weight: 600; transition: top .2s; }
.hm-skip:focus { top: 1rem; }
.hm-main :focus-visible { outline: 2px solid var(--wf-primary); outline-offset: 3px; border-radius: 6px; }

/* ── Revelar ao rolar (só com JS; sem JS tudo fica visível) ── */
.hm-js .hm-rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--wf-ease), transform .8s var(--wf-ease); transition-delay: calc(var(--i, 0) * 70ms); }
.hm-js .hm-rv.is-in { opacity: 1; transform: none; }

/* ── Tipografia de seção ── */
.hm-sec { position: relative; padding: var(--hm-pad) 0; }
.hm-sec--surface { background: var(--wf-bg-surface); }
.hm-head { max-width: 900px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.hm-eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wf-primary); }
.hm-eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; opacity: .6; }
.hm-h2 { font-size: clamp(1.85rem, 3.1vw, 2.75rem); line-height: 1.08; letter-spacing: -.035em; margin: .9rem 0 1rem; text-wrap: balance; }
.hm-lead { font-size: clamp(1rem, 1.3vw, 1.175rem); line-height: 1.7; color: var(--wf-text-secondary); max-width: 660px; margin: 0 auto; text-wrap: balance; }
.hm-grad { background: linear-gradient(100deg, var(--wf-primary), var(--wf-chart-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ── Botões (estende .btn do base.css) ── */
.hm-btn { overflow: hidden; isolation: isolate; }
.hm-btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, color-mix(in srgb, var(--wf-on-primary) 28%, transparent) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--wf-ease); }
.hm-btn:hover::after { transform: translateX(120%); }
.hm-btn i { font-size: 1.05em; transition: transform .25s var(--wf-ease); }
.hm-btn:hover i { transform: translateX(3px); }

/* ============================================================
   HERO
   ============================================================ */
.hm-hero { position: relative; overflow: hidden; padding: clamp(7rem, 11vw, 9rem) 0 clamp(3rem, 6vw, 5rem); background: var(--wf-bg-page); }
.hm-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 30%, color-mix(in srgb, var(--wf-primary) 13%, transparent), transparent 70%),
    radial-gradient(40% 40% at 8% 0%, color-mix(in srgb, var(--wf-ai-ceci) 8%, transparent), transparent 70%); }
.hm-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--wf-border) 1px, transparent 1px), linear-gradient(90deg, var(--wf-border) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: radial-gradient(70% 70% at 70% 35%, black, transparent 75%); mask-image: radial-gradient(70% 70% at 70% 35%, black, transparent 75%); }
.hm-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
.hm-pill { display: inline-flex; align-items: center; gap: .6rem; padding: .4rem .9rem .4rem .7rem; border-radius: var(--wf-r-full); background: var(--wf-bg-surface); border: 1px solid var(--wf-border-strong); font-size: .78rem; font-weight: 600; color: var(--wf-text-secondary); margin-bottom: 1.5rem; }
.hm-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wf-ai-ceci); box-shadow: 0 0 0 0 color-mix(in srgb, var(--wf-ai-ceci) 60%, transparent); animation: hm-ping 2.4s var(--wf-ease) infinite; }
@keyframes hm-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--wf-ai-ceci) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }
.hm-hero__title { font-size: clamp(2rem, 3.35vw, 3.2rem); line-height: 1.08; letter-spacing: -.038em; text-wrap: balance; max-width: 22ch; }
.hm-hero__sub { margin-top: 1.5rem; font-size: clamp(1.02rem, 1.35vw, 1.2rem); line-height: 1.65; color: var(--wf-text-secondary); max-width: 34rem; }
.hm-hero__sub strong { color: var(--wf-text-primary); font-weight: 600; }
.hm-hero__ctas { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.hm-proof { margin-top: clamp(2rem, 4vw, 3rem); }
.hm-proof__label { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--wf-text-tertiary); margin-bottom: .9rem; }
.hm-proof__list { display: flex; flex-wrap: wrap; gap: .5rem 1.35rem; }
.hm-wordmark { font-family: var(--wf-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; color: var(--wf-text-tertiary); opacity: .85; transition: color .25s, opacity .25s; }
.hm-wordmark:hover { color: var(--wf-text-primary); opacity: 1; }

/* ── Palco da ilustração (superfície profunda) ── */
.hm-stage { position: relative; width: 100%; max-width: 660px; margin-inline: auto; aspect-ratio: 640 / 600; container-type: inline-size; border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(80% 55% at 50% 37%, color-mix(in srgb, var(--wf-ai-ceci) 26%, transparent), transparent 72%),
    radial-gradient(70% 45% at 50% 100%, color-mix(in srgb, var(--wf-primary) 16%, transparent), transparent 70%),
    linear-gradient(180deg, var(--wf-primary-darker), var(--wf-bg-page));
  border: 1px solid color-mix(in srgb, var(--wf-primary) 26%, var(--wf-border));
  box-shadow: 0 40px 100px color-mix(in srgb, var(--wf-primary-darker) 38%, transparent), inset 0 1px 0 color-mix(in srgb, var(--wf-text-primary) 8%, transparent); }
.hm-stage__in { --u: calc(100cqw / 640); position: absolute; inset: 0; }
.hm-stage__dust, .hm-stage__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hm-stage__svg { overflow: visible; }

.hm-halo { transform-box: fill-box; transform-origin: center; animation: hm-halo-in 1.2s var(--wf-ease) 3.7s backwards, hm-breathe 5s ease-in-out 5s infinite; }
@keyframes hm-halo-in { from { opacity: 0; scale: .4; } to { opacity: 1; scale: 1; } }
@keyframes hm-breathe { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: 1.08; opacity: .8; } }
.hm-ring { transform-box: fill-box; transform-origin: center; animation: hm-spin 40s linear infinite; }
.hm-ring--rev { animation-direction: reverse; animation-duration: 58s; }
@keyframes hm-spin { to { rotate: 360deg; } }
.hm-core-disc { transform-box: fill-box; transform-origin: center; animation: hm-halo-in .9s var(--wf-ease) 3.7s backwards; }
.hm-ring-wrap { animation: hm-fade .9s ease 4s backwards; }
@keyframes hm-fade { from { opacity: 0; } to { opacity: 1; } }

/* linhas que se desenham (pathLength=1) */
.hm-draw { stroke-dasharray: 1; stroke-dashoffset: 0; animation: hm-draw var(--dur, .55s) var(--wf-ease) var(--d, 0s) backwards; }
@keyframes hm-draw { from { stroke-dashoffset: 1; opacity: 0; } 10% { opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
.hm-line { fill: none; stroke-linecap: round; }
.hm-line--chain { stroke: color-mix(in srgb, var(--wf-primary) 75%, transparent); stroke-width: 1.6; }
.hm-line--beam { stroke: url(#hm-g-beam); stroke-width: 1.4; opacity: .85; }
.hm-line--spoke { stroke: color-mix(in srgb, var(--wf-ai-ceci) 55%, var(--wf-primary)); stroke-width: 1; opacity: .5; stroke-dasharray: 2 5; animation: hm-fade .6s ease var(--d, 0s) backwards; }
.hm-line--tap { stroke: color-mix(in srgb, var(--wf-primary) 70%, transparent); stroke-width: 1.4; }
.hm-line--rc { stroke: var(--wf-ai-ceci); opacity: .6; }
.hm-tapdot { fill: var(--wf-primary); animation: hm-pop-svg .5s var(--wf-ease) var(--d, 0s) backwards; transform-box: fill-box; transform-origin: center; }
@keyframes hm-pop-svg { from { opacity: 0; scale: 0; } to { opacity: 1; scale: 1; } }
.hm-dot { fill: var(--wf-on-deep); }
.hm-dot--glow { fill: color-mix(in srgb, var(--wf-primary) 70%, transparent); }

/* nós HTML posicionados por % do viewBox (mesmo aspect-ratio do SVG) */
.hm-n { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: max(var(--min, 28px), calc(var(--u) * var(--sz, 44))); aspect-ratio: 1; translate: -50% -50%; display: grid; place-items: center; border-radius: 50%;
  background: color-mix(in srgb, var(--wf-bg-surface) 82%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid color-mix(in srgb, var(--wf-primary) 38%, transparent); color: var(--wf-primary);
  box-shadow: 0 0 0 calc(var(--u) * 5) color-mix(in srgb, var(--wf-primary) 8%, transparent), 0 calc(var(--u) * 12) calc(var(--u) * 28) color-mix(in srgb, var(--wf-primary-darker) 55%, transparent);
  animation: hm-pop .7s var(--wf-ease) var(--d, 0s) backwards; }
.hm-n i { font-size: max(14px, calc(var(--u) * var(--ic, 20))); line-height: 1; }
.hm-n__l { position: absolute; top: calc(100% + max(4px, calc(var(--u) * 7))); left: 50%; translate: -50% 0; white-space: nowrap; font-size: max(9px, calc(var(--u) * 12.5)); font-weight: 600; letter-spacing: -.005em; color: var(--wf-text-secondary); }
.hm-n--ch { --sz: 40; --ic: 18; --min: 26px; color: var(--wf-text-secondary); border-color: color-mix(in srgb, var(--wf-text-primary) 16%, transparent); box-shadow: 0 calc(var(--u) * 10) calc(var(--u) * 24) color-mix(in srgb, var(--wf-primary-darker) 50%, transparent); }
.hm-n--ch .hm-n__l { font-size: max(8.5px, calc(var(--u) * 11)); font-weight: 500; color: var(--wf-text-tertiary); }
.hm-n--st { --step: 1; }
.hm-n--st .hm-n__l { color: var(--wf-text-primary); font-weight: 700; }
.hm-n__step { position: absolute; top: calc(var(--u) * -6); right: calc(var(--u) * -6); min-width: max(15px, calc(var(--u) * 20)); height: max(15px, calc(var(--u) * 20)); padding: 0 3px; border-radius: 99px; display: grid; place-items: center; background: var(--wf-primary); color: var(--wf-on-primary); font-size: max(8px, calc(var(--u) * 10)); font-weight: 800; line-height: 1; }
.hm-n--core { --sz: 120; left: calc(320 / 640 * 100%); top: calc(222 / 600 * 100%); border: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--wf-on-deep); animation: hm-halo-in .9s var(--wf-ease) 3.8s backwards; }
.hm-core-t { text-align: center; line-height: 1; }
.hm-core-t b { display: block; font-family: var(--wf-display); font-weight: 800; font-size: max(13px, calc(var(--u) * 27)); letter-spacing: -.02em; }
.hm-core-t small { display: block; margin-top: max(2px, calc(var(--u) * 5)); font-size: max(7px, calc(var(--u) * 10)); font-weight: 700; letter-spacing: .2em; color: color-mix(in srgb, var(--wf-on-deep) 78%, transparent); }
@keyframes hm-pop { from { opacity: 0; scale: .55; } to { opacity: 1; scale: 1; } }
/* Atend Regras: barramento horizontal que interage com todos os estúdios */
.hm-bus { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%); height: max(22px, calc(var(--u) * 28)); display: flex; align-items: center; justify-content: center; gap: .55em; padding: 0 1em; white-space: nowrap; overflow: hidden;
  border-radius: var(--wf-r-full); font-size: max(9px, calc(var(--u) * 12.5)); color: var(--wf-text-primary);
  background: linear-gradient(90deg, color-mix(in srgb, var(--wf-primary) 18%, transparent), color-mix(in srgb, var(--wf-ai-ceci) 16%, transparent), color-mix(in srgb, var(--wf-primary) 18%, transparent)), var(--wf-primary-darker);
  border: 1px solid color-mix(in srgb, var(--wf-primary) 48%, transparent);
  box-shadow: 0 0 calc(var(--u) * 26) color-mix(in srgb, var(--wf-primary) 24%, transparent);
  transform-origin: left center; animation: hm-busgrow .9s var(--wf-ease) 2.4s backwards; }
.hm-bus::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 22%; pointer-events: none; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--wf-primary) 38%, transparent), transparent); animation: hm-bus-sweep 4.2s ease-in-out 5s infinite backwards; }
@keyframes hm-bus-sweep { from { translate: -100% 0; } to { translate: 480% 0; } }
.hm-bus > * { position: relative; z-index: 1; }
.hm-bus b { font-weight: 700; }
.hm-bus small { font-size: .92em; color: var(--wf-text-secondary); }
.hm-bus__n { display: grid; place-items: center; min-width: 1.5em; height: 1.5em; border-radius: 99px; background: var(--wf-primary); color: var(--wf-on-primary); font-size: .8em; font-weight: 800; line-height: 1; }
@keyframes hm-busgrow { from { opacity: 0; scale: .04 1; } to { opacity: 1; scale: 1 1; } }
@media (max-width: 520px) { .hm-bus small { display: none; } }
.hm-stage__cap { position: absolute; left: 0; right: 0; bottom: calc(var(--u) * 13); text-align: center; font-size: max(9.5px, calc(var(--u) * 13)); letter-spacing: .02em; color: var(--wf-text-tertiary); animation: hm-fade 1s ease 4.6s backwards; }

/* ============================================================
   HISTÓRIA — timeline (horizontal no desktop · vertical no mobile)
   ============================================================ */
.hm-tl { --n: 6; --gap: 1.75rem; --col: calc((100% - (var(--n) - 1) * var(--gap)) / var(--n)); --p: 1; position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); column-gap: var(--gap); list-style: none; }
.hm-tl::before, .hm-tl::after { content: ""; position: absolute; top: 25px; left: 26px; right: calc(var(--col) - 26px); height: 2px; border-radius: 2px; }
.hm-tl::before { background: var(--wf-border-strong); }
.hm-tl::after { background: linear-gradient(90deg, var(--wf-primary) 70%, var(--wf-ai-ceci)); transform-origin: left; transform: scaleX(var(--p)); }
.hm-tl__step { position: relative; }
.hm-js .hm-tl__step { transition: opacity .6s var(--wf-ease); }
.hm-js .hm-tl__step:not(.is-on) { opacity: .42; }
.hm-tl__node { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; background: var(--wf-bg-surface); color: var(--wf-text-tertiary); border: 1px solid var(--wf-border-strong); transition: all .5s var(--wf-ease); }
.hm-tl__step.is-on .hm-tl__node, .hm-tl__step:first-child .hm-tl__node { background: var(--wf-primary); color: var(--wf-on-primary); border-color: transparent; box-shadow: 0 0 0 6px color-mix(in srgb, var(--wf-primary) 14%, transparent), 0 10px 26px color-mix(in srgb, var(--wf-primary) 30%, transparent); }
.hm-tl__step--ceci .hm-tl__node { background: var(--wf-ai-ceci); color: var(--wf-bg-surface); }
.hm-tl__step--ceci.is-on .hm-tl__node { background: var(--wf-ai-ceci); color: var(--wf-bg-surface); box-shadow: 0 0 0 6px color-mix(in srgb, var(--wf-ai-ceci) 18%, transparent), 0 0 34px color-mix(in srgb, var(--wf-ai-ceci) 45%, transparent); }
.hm-tl__body { margin-top: 1.4rem; }
.hm-tl__num { font-size: .7rem; font-weight: 700; letter-spacing: .16em; color: var(--wf-text-tertiary); }
.hm-tl__name { font-size: 1.25rem; letter-spacing: -.02em; margin: .2rem 0 1.1rem; }
.hm-tl__row { margin-bottom: 1rem; }
.hm-tl__row dt { font-size: .66rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--wf-text-tertiary); margin-bottom: .25rem; }
.hm-tl__row dd { font-size: .875rem; line-height: 1.55; color: var(--wf-text-secondary); }
.hm-tl__row--res { padding-top: 1rem; border-top: 1px solid var(--wf-border); }
.hm-tl__row--res dd strong { display: block; font-family: var(--wf-display); font-size: 1.3rem; line-height: 1.1; letter-spacing: -.03em; color: var(--wf-primary); margin-bottom: .2rem; }
.hm-tl__quote { font-family: var(--wf-display); font-size: 1.02rem; line-height: 1.45; letter-spacing: -.015em; color: var(--wf-text-primary); font-weight: 600; }
.hm-tl__quote em { font-style: normal; color: var(--wf-ai-ceci-text); }
.hm-tl__sub { margin-top: .75rem; font-size: .84rem; line-height: 1.55; color: var(--wf-text-secondary); }
.hm-tl__more { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; font-size: .85rem; font-weight: 600; color: var(--wf-primary); }
.hm-tl__more i { transition: transform .25s var(--wf-ease); }
.hm-tl__more:hover i { transform: translateX(3px); }

@media (min-width: 1100px) {
  .hm-tl__step, .hm-tl__body, .hm-tl__body > dl { display: flex; flex-direction: column; }
  .hm-tl__body, .hm-tl__body > dl { flex: 1; }
  .hm-tl__row--res { margin-top: auto; }
  .hm-tl__step--ceci .hm-tl__more { margin-top: auto; }
}
@media (max-width: 1099px) {
  .hm-tl { display: block; }
  .hm-tl::before, .hm-tl::after { top: 26px; bottom: 26px; left: 25px; right: auto; width: 2px; height: auto; }
  .hm-tl::after { background: linear-gradient(180deg, var(--wf-primary) 70%, var(--wf-ai-ceci)); transform-origin: top; transform: scaleY(var(--p)); }
  .hm-tl__step { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 1.25rem; padding-bottom: 2.75rem; }
  .hm-tl__step:last-child { padding-bottom: 0; }
  .hm-tl__body { margin-top: .35rem; max-width: 36rem; }
}

/* ============================================================
   AI FIRST (superfície profunda)
   ============================================================ */
.hm-ai, .hm-cta { position: relative; overflow: hidden; isolation: isolate; color: var(--wf-text-secondary);
  background:
    radial-gradient(55% 60% at 12% 0%, color-mix(in srgb, var(--wf-ai-ceci) 20%, transparent), transparent 70%),
    radial-gradient(55% 55% at 100% 100%, color-mix(in srgb, var(--wf-primary) 18%, transparent), transparent 70%),
    linear-gradient(180deg, var(--wf-primary-darker), var(--wf-bg-page)); }
.hm-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hm-lines path { fill: none; stroke: url(#hm-g-line); stroke-width: 1.2; stroke-dasharray: 6 14; opacity: .55; animation: hm-flow 26s linear infinite; }
.hm-lines path:nth-child(2n) { animation-duration: 38s; animation-direction: reverse; opacity: .35; }
.hm-lines path:nth-child(3n) { stroke-dasharray: 2 10; opacity: .3; }
@keyframes hm-flow { to { stroke-dashoffset: -400; } }
.hm-cta .hm-lines path { opacity: .8; stroke-width: 1.4; }
.hm-cta .hm-lines path:nth-child(2n) { opacity: .5; }
.hm-ai .hm-eyebrow { color: color-mix(in srgb, var(--wf-ai-ceci) 55%, var(--wf-text-primary)); }
.hm-ai .hm-h2, .hm-cta .hm-h2 { color: var(--wf-text-primary); }
.hm-ai__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.hm-ai__tag { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .75rem; border-radius: var(--wf-r-full); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: color-mix(in srgb, var(--wf-ai-ceci) 18%, transparent); color: color-mix(in srgb, var(--wf-ai-ceci) 45%, var(--wf-text-primary)); border: 1px solid color-mix(in srgb, var(--wf-ai-ceci) 35%, transparent); }
.hm-ai h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); letter-spacing: -.025em; line-height: 1.2; margin: 1rem 0 .8rem; }
.hm-ai__col > p { color: var(--wf-text-secondary); line-height: 1.7; max-width: 34rem; }
.hm-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 .5rem; }
.hm-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: var(--wf-r-full); font-size: .82rem; font-weight: 500; color: var(--wf-text-primary); background: color-mix(in srgb, var(--wf-text-primary) 6%, transparent); border: 1px solid var(--wf-border-strong); }
.hm-chip i { color: var(--wf-primary); }
.hm-ai__strong { margin-top: 1rem; font-family: var(--wf-display); font-weight: 700; font-size: 1.1rem; color: var(--wf-text-primary); letter-spacing: -.02em; }

.hm-chat { margin-top: 1.75rem; border-radius: 20px; border: 1px solid var(--wf-border-strong); background: color-mix(in srgb, var(--wf-bg-surface) 78%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); overflow: hidden; box-shadow: 0 30px 80px color-mix(in srgb, var(--wf-primary-darker) 60%, transparent); }
.hm-chat__bar { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; border-bottom: 1px solid var(--wf-border); font-size: .78rem; font-weight: 600; color: var(--wf-text-primary); }
.hm-chat__bar .hm-live { margin-left: auto; font-weight: 500; color: var(--wf-text-tertiary); }
.hm-chat__av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--wf-ai-ceci), var(--wf-primary)); color: var(--wf-bg-page); font-size: .9rem; }
.hm-chat__body { display: grid; gap: .8rem; padding: 1.1rem; }
.hm-msg { max-width: 92%; padding: .7rem .95rem; border-radius: 14px; font-size: .86rem; line-height: 1.55; }
.hm-msg--u { justify-self: end; background: var(--wf-primary); color: var(--wf-on-primary); border-bottom-right-radius: 4px; }
.hm-msg--c { background: var(--wf-bg-subtle); border: 1px solid var(--wf-border); color: var(--wf-text-primary); border-bottom-left-radius: 4px; }
.hm-tasks { display: grid; gap: .45rem; margin-top: .6rem; }
.hm-task { display: flex; align-items: center; gap: .55rem; padding: .5rem .65rem; border-radius: 10px; background: color-mix(in srgb, var(--wf-primary) 8%, transparent); font-size: .8rem; color: var(--wf-text-secondary); }
.hm-task i { color: var(--wf-success-strong); font-size: 1rem; }
.hm-task b { color: var(--wf-text-primary); font-weight: 600; }
.hm-js .hm-chat .hm-seq { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--wf-ease), transform .6s var(--wf-ease); transition-delay: calc(var(--s, 0) * 650ms + .2s); }
.hm-js .hm-chat.is-in .hm-seq { opacity: 1; transform: none; }
.hm-chat__note { padding: 0 1.1rem 1rem; font-size: .7rem; color: var(--wf-text-tertiary); }

.hm-cap { display: grid; margin-top: 1.5rem; }
.hm-cap__i { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 1rem; padding: 1.05rem 0; border-top: 1px solid var(--wf-border); transition: transform .3s var(--wf-ease); }
.hm-cap__i:last-child { border-bottom: 1px solid var(--wf-border); }
.hm-cap__i:hover { transform: translateX(6px); }
.hm-cap__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; color: var(--wf-primary); background: color-mix(in srgb, var(--wf-primary) 10%, transparent); border: 1px solid color-mix(in srgb, var(--wf-primary) 22%, transparent); transition: box-shadow .3s; }
.hm-cap__i:hover .hm-cap__ic { box-shadow: 0 0 24px color-mix(in srgb, var(--wf-primary) 40%, transparent); }
.hm-cap__i h4 { font-size: 1rem; letter-spacing: -.015em; margin-bottom: .15rem; }
.hm-cap__i p { font-size: .875rem; line-height: 1.55; color: var(--wf-text-secondary); }

/* ============================================================
   ARQUITETURA
   ============================================================ */
.hm-arch { position: relative; max-width: 1080px; margin: 0 auto; display: grid; justify-items: center; row-gap: clamp(2.5rem, 4.6vw, 3.6rem); }
.hm-arch__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.hm-arch > :not(svg) { position: relative; z-index: 1; }
.hm-edge { fill: none; stroke: color-mix(in srgb, var(--wf-primary) 22%, var(--wf-border-strong)); stroke-width: 1.5; stroke-linecap: round; transition: stroke .3s, stroke-width .3s; }
.hm-edge.is-lit { stroke: var(--wf-primary); stroke-width: 2; stroke-dasharray: 6 8; animation: hm-edgeflow .9s linear infinite; filter: drop-shadow(0 0 5px color-mix(in srgb, var(--wf-primary) 65%, transparent)); }
@keyframes hm-edgeflow { to { stroke-dashoffset: -14; } }

.hm-node { position: relative; display: flex; align-items: center; gap: .8rem; padding: .9rem 1.15rem; border-radius: var(--wf-r-lg); background: var(--wf-bg-surface); border: 1px solid var(--wf-border-strong); color: var(--wf-text-primary); text-align: left; transition: border-color .3s, box-shadow .3s, transform .3s var(--wf-ease), background .3s; }
.hm-node:hover, .hm-node:focus-visible, .hm-node.is-lit { border-color: var(--wf-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--wf-primary) 12%, transparent), 0 14px 34px color-mix(in srgb, var(--wf-primary) calc(24% * var(--wf-fx-k)), transparent); transform: translateY(-2px); }
.hm-node.is-linked { border-color: color-mix(in srgb, var(--wf-primary) 55%, var(--wf-border-strong)); }
.hm-node__ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; color: var(--wf-primary); background: var(--wf-primary-light); }
.hm-node b { display: block; font-family: var(--wf-display); font-size: .98rem; letter-spacing: -.015em; }
.hm-node small { display: block; font-size: .76rem; line-height: 1.35; color: var(--wf-text-tertiary); margin-top: .1rem; }
.hm-node--users { padding: .8rem 1.4rem; }
.hm-node--fronts { flex-direction: column; align-items: stretch; width: 100%; max-width: 840px; gap: .8rem; padding: 1rem 1.25rem 1.15rem; cursor: default; }
.hm-node__cap { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wf-text-tertiary); text-align: center; }
.hm-fronts { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.hm-front { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem; border-radius: var(--wf-r-full); font-size: .82rem; font-weight: 500; background: var(--wf-bg-subtle); border: 1px solid var(--wf-border); color: var(--wf-text-secondary); }
.hm-front i { color: var(--wf-primary); font-size: 1rem; }
.hm-band { position: relative; width: 100%; padding: 2rem 1.25rem 1.25rem; border: 1px dashed var(--wf-border-strong); border-radius: 26px; }
.hm-band__t { position: absolute; top: -.7rem; left: 50%; translate: -50% 0; padding: 0 .8rem; background: var(--wf-bg-page); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wf-text-tertiary); white-space: nowrap; }
.hm-studios { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 2.5rem; }
.hm-studios .hm-node { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: .65rem; }
.hm-node--ceci { width: 100%; justify-content: center; gap: 1.1rem; padding: 1.35rem 1.5rem; text-align: left; color: var(--wf-text-primary);
  background: radial-gradient(60% 140% at 50% 0%, color-mix(in srgb, var(--wf-ai-ceci) 32%, transparent), transparent 70%), linear-gradient(180deg, var(--wf-primary-darker), var(--wf-bg-page));
  border-color: color-mix(in srgb, var(--wf-ai-ceci) 45%, var(--wf-border-strong)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--wf-ai-ceci) 20%, transparent), 0 24px 70px color-mix(in srgb, var(--wf-ai-ceci) 24%, transparent); }
.hm-node--ceci .hm-node__ic { width: 48px; height: 48px; font-size: 1.5rem; color: var(--wf-text-primary); background: linear-gradient(135deg, var(--wf-ai-ceci), var(--wf-primary)); }
.hm-node--ceci b { font-size: 1.15rem; }
.hm-node--ceci small { color: var(--wf-text-secondary); font-size: .82rem; }
.hm-node--ceci .hm-gov span { background: color-mix(in srgb, var(--wf-ai-ceci) 16%, transparent); border-color: color-mix(in srgb, var(--wf-ai-ceci) 38%, transparent); color: var(--wf-text-primary); }
.hm-node--bus { width: 100%; justify-content: center; flex-wrap: wrap; gap: .5rem 1.1rem; padding: 1.15rem 1.5rem;
  background: linear-gradient(90deg, var(--wf-primary-light), var(--wf-bg-surface) 50%, var(--wf-primary-light));
  border-color: color-mix(in srgb, var(--wf-primary) 42%, var(--wf-border-strong)); }
.hm-node--bus .hm-node__ic { background: var(--wf-primary); color: var(--wf-on-primary); }
.hm-node--ceci { flex-wrap: wrap; }
.hm-node--gov { width: 100%; justify-content: center; flex-wrap: wrap; background: var(--wf-bg-subtle); border-style: dashed; }
.hm-gov { display: flex; flex-wrap: wrap; gap: .4rem; }
.hm-gov span { font-size: .72rem; font-weight: 600; padding: .22rem .6rem; border-radius: var(--wf-r-full); background: var(--wf-bg-surface); border: 1px solid var(--wf-border); color: var(--wf-text-secondary); }

/* tooltip */
.hm-tt { position: absolute; bottom: calc(100% + 12px); left: 50%; translate: -50% 6px; z-index: 30; width: max-content; max-width: min(260px, 78vw); padding: .7rem .9rem; border-radius: 12px; font-size: .78rem; font-weight: 400; line-height: 1.5; letter-spacing: 0; text-align: left; color: var(--wf-text-secondary); background: var(--wf-bg-surface); border: 1px solid var(--wf-border-strong); box-shadow: 0 18px 44px color-mix(in srgb, var(--wf-primary-darker) 45%, transparent); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, translate .25s var(--wf-ease), visibility .2s; }
.hm-tt::after { content: ""; position: absolute; top: 100%; left: 50%; width: 10px; height: 10px; translate: -50% -50%; rotate: 45deg; background: var(--wf-bg-surface); border-right: 1px solid var(--wf-border-strong); border-bottom: 1px solid var(--wf-border-strong); }
.hm-node:hover > .hm-tt, .hm-node:focus-visible > .hm-tt, .hm-node:focus > .hm-tt { opacity: 1; visibility: visible; translate: -50% 0; }
.hm-tt b { display: block; font-size: .78rem; color: var(--wf-text-primary); margin-bottom: .15rem; }

@media (max-width: 899px) {
  .hm-studios { grid-template-columns: 1fr; row-gap: 1.75rem; }
  .hm-studios .hm-node { flex-direction: row; align-items: center; }
  .hm-band { padding: 1.75rem 1rem 1rem; }
}

/* ============================================================
   GARGALOS
   ============================================================ */
.hm-bn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.hm-bn { position: relative; display: flex; flex-direction: column; min-height: 310px; padding: clamp(1.5rem, 2.6vw, 2.4rem); border-radius: var(--wf-r-xl); background: var(--wf-bg-surface); border: 1px solid var(--wf-border); overflow: hidden; isolation: isolate; transition: transform .45s var(--wf-ease), border-color .35s, box-shadow .45s var(--wf-ease); }
.hm-bn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(460px circle at var(--mx, 85%) var(--my, 0%), color-mix(in srgb, var(--wf-primary) 15%, transparent), transparent 62%); opacity: .55; transition: opacity .35s; }
.hm-bn:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--wf-primary) 42%, var(--wf-border)); box-shadow: 0 26px 64px color-mix(in srgb, var(--wf-primary-darker) calc(22% * var(--wf-fx-k)), transparent); }
.hm-bn:hover::before { opacity: 1; }
.hm-bn__ghost { position: absolute; z-index: -1; right: -1.25rem; bottom: -2rem; font-size: 11rem; line-height: 1; color: var(--wf-primary); opacity: .06; transition: transform .6s var(--wf-ease), opacity .4s; }
.hm-bn:hover .hm-bn__ghost { transform: translate(-8px, -8px) rotate(-4deg); opacity: .1; }
.hm-bn__k { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--wf-text-tertiary); }
.hm-bn h3 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); letter-spacing: -.035em; line-height: 1.08; margin: .7rem 0 .7rem; }
.hm-bn p { max-width: 26rem; font-size: .95rem; line-height: 1.6; }
.hm-bn__sol { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1.75rem; }
.hm-bn__sol > div { display: grid; gap: .3rem; }
.hm-bn__sol strong { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--wf-display); font-size: 1.1rem; letter-spacing: -.02em; color: var(--wf-primary); }
.hm-bn__sol strong i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 1.1rem; background: var(--wf-primary-light); }
.hm-bn__sol span { font-size: .8rem; color: var(--wf-text-tertiary); }
.hm-bn__go { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-size: 1.15rem; color: var(--wf-primary); background: var(--wf-bg-subtle); border: 1px solid var(--wf-border-strong); transition: all .35s var(--wf-ease); }
.hm-bn:hover .hm-bn__go { background: var(--wf-primary); color: var(--wf-on-primary); border-color: transparent; transform: translateX(4px) rotate(-45deg); }

/* ============================================================
   RESULTADOS
   ============================================================ */
.hm-marq { position: relative; overflow: hidden; margin-bottom: clamp(2.5rem, 5vw, 4rem); -webkit-mask-image: linear-gradient(90deg, transparent, black 9%, black 91%, transparent); mask-image: linear-gradient(90deg, transparent, black 9%, black 91%, transparent); }
.hm-marq__track { display: flex; width: max-content; animation: hm-marq 70s linear infinite; }
.hm-marq:hover .hm-marq__track { animation-play-state: paused; }
.hm-marq__set { display: flex; align-items: center; gap: 3.25rem; padding-right: 3.25rem; }
.hm-marq .hm-wordmark { font-size: clamp(1.15rem, 1.7vw, 1.5rem); white-space: nowrap; }
@keyframes hm-marq { to { transform: translateX(-50%); } }

.hm-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--wf-border-strong); border-bottom: 1px solid var(--wf-border-strong); }
.hm-metric { padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1rem, 2vw, 2rem); border-left: 1px solid var(--wf-border); }
.hm-metric:first-child { border-left: 0; padding-left: 0; }
.hm-metric__v { display: flex; align-items: baseline; gap: .15rem; font-family: var(--wf-display); font-weight: 800; letter-spacing: -.05em; line-height: .95; color: var(--wf-text-primary); font-size: clamp(3rem, 6vw, 5.5rem); font-variant-numeric: tabular-nums; }
.hm-metric__v small { align-self: flex-start; margin: .35em .4rem 0 0; font-size: .8rem; font-weight: 600; letter-spacing: 0; color: var(--wf-text-tertiary); }
.hm-metric__v .hm-pct { color: var(--wf-primary); font-size: .6em; }
.hm-metric__l { margin-top: 1rem; font-size: .92rem; line-height: 1.5; color: var(--wf-text-secondary); max-width: 15rem; }
.hm-metric__s { display: inline-block; margin-top: .55rem; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wf-primary); }
.hm-num { --hm-n: var(--to); counter-reset: hmn var(--hm-n); transition: --hm-n 1.8s var(--wf-ease); }
.hm-num::before { content: counter(hmn); }
.hm-js .hm-num { --hm-n: 0; }
.hm-js .hm-num.is-in { --hm-n: var(--to); }

.hm-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: clamp(2rem, 4vw, 3rem); }
.hm-case { display: block; padding: 1.5rem 1.6rem; border-radius: var(--wf-r-lg); background: var(--wf-bg-surface); border: 1px solid var(--wf-border); transition: transform .35s var(--wf-ease), border-color .3s, box-shadow .35s var(--wf-ease); }
.hm-case:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--wf-primary) 40%, var(--wf-border)); box-shadow: 0 18px 44px color-mix(in srgb, var(--wf-primary-darker) calc(16% * var(--wf-fx-k)), transparent); }
.hm-case h3 { font-size: 1.35rem; letter-spacing: -.03em; margin-bottom: .4rem; }
.hm-case p { font-size: .92rem; line-height: 1.55; }
.hm-case__go { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; font-size: .82rem; font-weight: 600; color: var(--wf-primary); }
.hm-case__go i { transition: transform .25s var(--wf-ease); }
.hm-case:hover .hm-case__go i { transform: translateX(3px); }
.hm-more { display: flex; justify-content: center; margin-top: 2rem; }

/* ============================================================
   DIFERENCIAIS
   ============================================================ */
.hm-diff { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--wf-border); border: 1px solid var(--wf-border); border-radius: var(--wf-r-xl); overflow: hidden; }
.hm-diff__i { position: relative; padding: clamp(1.4rem, 2.4vw, 2rem); background: var(--wf-bg-surface); transition: background .35s; }
.hm-diff__i::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--wf-primary) 10%, transparent), transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.hm-diff__i:hover::before { opacity: 1; }
.hm-diff__ic { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; font-size: 1.4rem; color: var(--wf-primary); background: var(--wf-primary-light); margin-bottom: 1.1rem; transition: transform .4s var(--wf-spring); }
.hm-diff__i:hover .hm-diff__ic { transform: translateY(-3px) scale(1.06); }
.hm-diff__i h3 { position: relative; font-size: 1.05rem; letter-spacing: -.02em; margin-bottom: .4rem; }
.hm-diff__i p { position: relative; font-size: .87rem; line-height: 1.6; }

/* ============================================================
   CTA FINAL (superfície profunda)
   ============================================================ */
.hm-cta { padding: clamp(5rem, 10vw, 8.5rem) 0; text-align: center; }
.hm-cta .hm-eyebrow { color: color-mix(in srgb, var(--wf-primary) 90%, var(--wf-text-primary)); }
.hm-cta__h { font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.06; letter-spacing: -.04em; max-width: 20ch; margin: 1rem auto 1.4rem; color: var(--wf-text-primary); text-wrap: balance; }
.hm-cta p.hm-lead { color: var(--wf-text-secondary); max-width: 40rem; }
.hm-cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 2.25rem; }
.hm-cta__alt { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--wf-border); display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.75rem; font-size: .88rem; color: var(--wf-text-tertiary); }
.hm-cta__alt a { display: inline-flex; align-items: center; gap: .4rem; color: var(--wf-text-secondary); transition: color .2s; }
.hm-cta__alt a:hover { color: var(--wf-primary); }
.hm-cta__alt i { font-size: 1.05rem; }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1023px) {
  .hm-hero__grid { grid-template-columns: 1fr; }
  .hm-hero__title { max-width: 26ch; }
  .hm-ai__grid { grid-template-columns: 1fr; }
  .hm-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-metric:nth-child(3) { border-left: 0; padding-left: 0; }
  .hm-metric:nth-child(n+3) { border-top: 1px solid var(--wf-border); }
  .hm-diff { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .hm-bn-grid, .hm-cases { grid-template-columns: 1fr; }
  .hm-bn { min-height: 0; }
  .hm-bn__ghost { font-size: 8rem; }
  .hm-hero__ctas .btn { width: 100%; }
  .hm-cta__btns .btn { width: 100%; }
  .hm-stage { border-radius: 20px; }
  .hm-n--ch .hm-n__l { display: none; }
}
@media (max-width: 520px) {
  .hm-metrics { grid-template-columns: 1fr; }
  .hm-metric, .hm-metric:nth-child(3) { border-left: 0; padding-left: 0; }
  .hm-metric:nth-child(n+2) { border-top: 1px solid var(--wf-border); }
  .hm-diff { grid-template-columns: 1fr; }
}

/* ── Movimento reduzido: tudo visível e estático ── */
@media (prefers-reduced-motion: reduce) {
  .hm-js .hm-rv, .hm-js .hm-chat .hm-seq { opacity: 1; transform: none; transition: none; }
  .hm-js .hm-tl__step:not(.is-on) { opacity: 1; }
  .hm-n, .hm-draw, .hm-bus, .hm-bus::after, .hm-tapdot, .hm-halo, .hm-core-disc, .hm-ring, .hm-ring-wrap, .hm-line--spoke, .hm-stage__cap, .hm-pill__dot, .hm-lines path, .hm-marq__track, .hm-edge.is-lit { animation: none !important; }
  .hm-js .hm-num, .hm-js .hm-num.is-in { --hm-n: var(--to); transition: none; }
  .hm-marq__track { flex-wrap: wrap; width: auto; }
  .hm-marq__set[aria-hidden] { display: none; }
  .hm-btn::after { display: none; }
}
