:root{
  --ink: #0a0a0b;
  --paper: #ffffff;
  --accent: #6e47c8;        /* roxo-600 — saturated brand purple */
  --accent-bright: #9a7be3; /* roxo-400 — brighter variant for dark contexts */
  --accent-tint: #d2bff5;   /* roxo-200 — light tint for highlight bars on light bg */
  --accent-soft: #f4efff;   /* roxo-50  — very light pastel for filled pills with dark text */
  --accent-ink: #2f1e5c;    /* roxo-900 — deep ink paired with accent-soft */
}

/* Satoshi auto-hospedada — evita CSS bloqueante do Fontshare no LCP.
   600 (semibold dos títulos) cai no arquivo 700. */
@font-face {
  font-family: 'Satoshi';
  src: url('/assets/fonts/satoshi-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: 'Satoshi';
  src: url('/assets/fonts/satoshi-700.woff2') format('woff2');
  font-weight: 600 700;
  font-style: normal;
  font-display: optional;
}

/* Brighten --accent automatically inside dark surfaces so the brand purple
   keeps its pop. Any descendant using var(--accent) (CSS or inline style)
   inherits the brighter variant. Light-bg elements remain on brand.
   .hl-solid hard-codes its background so the chip stays AA-readable on white text. */
.bg-ink-950,
.bg-ink-900,
.bg-black {
  --accent: var(--accent-bright);
}
html {
  scroll-padding-top: 64px;
  scroll-snap-type: y proximity;
}
@media (min-width: 640px) { html { scroll-padding-top: 72px; } }
@media (min-width: 1024px) { html { scroll-padding-top: 80px; } }
.snap-section { scroll-snap-align: start; scroll-snap-stop: always; }

/* Quando Lenis está ativo, desligamos o scroll-snap nativo — ele briga com
   o scroll programático do Lenis e gera "puxões" no meio da rolagem. */
html.lenis { scroll-snap-type: none; }
html.lenis .snap-section { scroll-snap-align: none; scroll-snap-stop: normal; }

/* Lenis baseline (recomendado pela doc) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  html.lenis { scroll-snap-type: y proximity; }
  html.lenis .snap-section { scroll-snap-align: start; }
}
body { font-family: 'Inter', system-ui, sans-serif; color: var(--ink); background: #ffffff;
       -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
       font-feature-settings: "ss01"; }
::selection { background: var(--accent); color: var(--ink); }

.h-display { font-family: 'Satoshi', 'Inter', system-ui, sans-serif; letter-spacing: -0.02em; font-feature-settings: "ss01","cv11"; }

/* Quebra de linha equilibrada (balance): distribui as palavras de forma mais
   uniforme entre as linhas, evitando "viúvas" e mantendo o bloco compacto em
   relação ao texto. Vale para todos os títulos de marca (.h-display) e para a
   classe utilitária .tw-balance usada nos subtítulos das seções.
   Obs.: text-wrap é herdado, então aplicar .tw-balance num wrapper já cobre os
   parágrafos filhos. */
.h-display, .tw-balance { text-wrap: balance; }
/* Exceção: títulos pensados pra ficar numa única linha continuam sem quebra. */
.h-display.whitespace-nowrap { text-wrap: nowrap; }
@media (min-width: 1024px) { .h-display.lg\:whitespace-nowrap { text-wrap: nowrap; } }
.ring-soft { box-shadow: inset 0 0 0 1px rgba(10,10,11,.07); }

.dot-grid {
  background-image: radial-gradient(rgba(10,10,11,.09) 1px, transparent 1px);
  background-size: 22px 22px;
}

.fade-up { opacity:0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.fade-up.in { opacity:1; transform:none; }

.tech-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
}
.tech-grid-fine {
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 14px 14px;
}
.scan-mask {
  mask-image: radial-gradient(ellipse 70% 55% at 50% 40%, #000 30%, transparent 75%);
}

.brackets { position: relative; }
.brackets::before,
.brackets::after,
.brackets > .br-tr,
.brackets > .br-br {
  content:""; position:absolute; width:14px; height:14px;
  border-color: currentColor; opacity:.55;
}
.brackets::before { top:0; left:0;  border-top:1px solid; border-left:1px solid; }
.brackets::after  { bottom:0; right:0; border-bottom:1px solid; border-right:1px solid; }
.brackets > .br-tr { top:0; right:0;  border-top:1px solid; border-right:1px solid; }
.brackets > .br-br { bottom:0; left:0; border-bottom:1px solid; border-left:1px solid; }

.coord {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: .04em; color: rgba(255,255,255,.72);
}
.coord-light {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px;
  letter-spacing: .04em; color: rgba(10,10,11,.65);
}

@keyframes ruleSweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.rule-sweep { transform-origin: left; animation: ruleSweep 1.2s cubic-bezier(.2,.7,.2,1) both; }

.reveal-w { display: inline-block; opacity: 0; transform: translateY(8px); }
.reveal-w.in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1); }

@keyframes barFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.bar-fill { transform-origin: left; animation: barFill 1.4s cubic-bezier(.2,.7,.2,1) both; }

@keyframes ledPulse {
  0%, 100% { opacity: .35; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.15); }
}
.led-pulse { animation: ledPulse 1.6s ease-in-out infinite; }

.hl {
  /* inline (não inline-block) + box-decoration-break: clone faz a barra do
     marcador se repetir por linha quando a frase quebra. Com inline-block o
     gradiente era calculado sobre a altura do bloco inteiro, então no celular
     (frase em 2 linhas) a barra atravessava o meio em vez de ficar sob cada
     linha — inconsistente com o desktop (1 linha). */
  display:inline;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background: linear-gradient(transparent 64%, var(--accent-tint) 64%, var(--accent-tint) 92%, transparent 92%);
  padding: 0 2px;
}
.hl-solid {
  /* inline + box-decoration-break: clone → quando o chip quebra em 2 linhas
     (headings no celular), cada linha vira seu próprio chip arredondado em vez
     de um bloco único cobrindo o vão entre as linhas. */
  display:inline;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background: #6e47c8;
  color: #ffffff;
  padding: 0 8px;
  border-radius: 6px;
  line-height: 1.05;
}
/* A Satoshi tem caixa de glifo maior que o Inter: com leading 1.18 o chip da
   2ª linha (altura ~1.37em) come as letras da 1ª. 1.4 passa o chip sem o vão
   aéreo do 1.55 antigo. Especificidade (0,1,1) vence leading-[…] do Tailwind. */
:is(h1, h2, h3, h4):has(.hl-solid) {
  line-height: 1.4;
}

/* Cabeçalho de seção — kicker + título + subtítulo, um ritmo só.
   Centro por padrão. .sec-head--left quando há elemento lateral
   (retrato dos módulos, celular do hero, mapa da região). */
.sec-head { text-align: center; margin-bottom: 40px; }
/* Sem subtítulo, o título encosta no conteúdo — mesmo vão da seção de IA. */
.sec-head:not(:has(.sec-sub)) { margin-bottom: 64px; }
@media (min-width: 1024px) {
  .sec-head:not(:has(.sec-sub)) { margin-bottom: 88px; }
}
.sec-kicker {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.sec-head .sec-kicker { justify-content: center; }
.sec-title {
  margin: 0;
  font-size: 32px;
  line-height: 1.05;
  font-weight: 600;
}
@media (min-width: 640px) { .sec-title { font-size: 40px; } }
@media (min-width: 768px) { .sec-title { font-size: 48px; } }
@media (min-width: 1024px) { .sec-title { font-size: 52px; } }
.sec-sub {
  margin: 16px auto 0;
  font-size: 17px;
  line-height: 1.55;
  max-width: 42rem;
}
@media (min-width: 768px) { .sec-sub { font-size: 18px; } }
.sec-head .odoo-video-note { margin-left: auto; margin-right: auto; }
.sec-head--left { text-align: left; }
.sec-head--left .sec-kicker { justify-content: flex-start; }
.sec-head--left .sec-sub,
.sec-head--left .odoo-video-note { margin-left: 0; margin-right: 0; }
#ia .sec-head .sec-kicker { margin-bottom: 18px; }
.hl-underline {
  /* clone garante que cada linha quebrada receba o sublinhado completo. */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 6px;
  background-repeat: no-repeat;
  background-position: 0 90%;
  padding-bottom: 2px;
}

/* Violet highlight — tied to the Odoo section's portrait treatment.
   Same shape as .hl (highlighter bar) but in the photo's signature violet. */
.hl-violet {
  /* mesmo tratamento do .hl: inline + clone p/ a barra acompanhar cada linha. */
  display: inline;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background: linear-gradient(transparent 64%, rgba(140,92,246,.28) 64%, rgba(140,92,246,.28) 92%, transparent 92%);
  color: #6d28d9;
  padding: 0 2px;
}

/* Odoo section — ambient violet bleed echoing the portrait's light streak.
   Two soft radial blooms keep it organic instead of a flat tint. */
.odoo-section .odoo-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 42%, rgba(140,92,246,.10) 0%, rgba(140,92,246,.04) 45%, transparent 70%),
    radial-gradient(40% 40% at 92% 78%, rgba(99,67,209,.08) 0%, transparent 65%);
}

/* Full-bleed portrait — anchored to the section's right edge from top
   to bottom on lg+. Hidden below lg (the mobile ghost takes over). */
.odoo-portrait-bleed {
  display: none;
}
@media (min-width: 1024px) {
  .odoo-portrait-bleed {
    display: block;
    position: absolute;
    inset-block: 0;
    right: 0;
    width: 50%;
    pointer-events: none;
  }
}
@media (min-width: 1280px) {
  .odoo-portrait-bleed { width: 52%; }
}
@media (min-width: 1536px) {
  .odoo-portrait-bleed { width: 54%; }
}

/* Mobile ghost — sits behind the headline area on screens below lg.
   Hidden on desktop where the full-bleed version is in charge. */
.odoo-portrait-ghost {
  position: absolute;
  top: 0;
  right: 0;
  width: 92%;
  max-width: 540px;
  height: 58%;
  pointer-events: none;
  z-index: 0;
}
@media (min-width: 1024px) {
  .odoo-portrait-ghost { display: none; }
}

/* Left column in the Odoo section — constrained on lg+ so it clears the
   portrait anchored on the right edge of the section. */
@media (min-width: 1024px) {
  .odoo-section .odoo-left-col { width: 56%; }
}
@media (min-width: 1280px) {
  .odoo-section .odoo-left-col { width: 54%; }
}
@media (min-width: 1536px) {
  .odoo-section .odoo-left-col { width: 52%; }
}

/* The content container in the Odoo section sits above the mobile ghost.
   Without this, the absolutely-positioned ghost would compete for stacking. */
.odoo-section > .relative { position: relative; z-index: 1; }

/* Module tiles — pick up a faint violet edge on hover so the grid feels
   connected to the portrait above instead of unrelated chrome. */
.odoo-section .module-tile {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  cursor: pointer;
  border-color: rgba(10,10,11,.14);
}
.odoo-section .module-tile:hover {
  transform: translateY(-1px);
  border-color: rgba(140,92,246,.38);
  box-shadow: 0 8px 18px -12px rgba(140,92,246,.35);
}
.module-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: #f4efff;
  color: #2f1e5c;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.module-hint::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #6e47c8;
  flex-shrink: 0;
}
.module-hint-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .module-hint-hover { display: none; }
  .module-hint-touch { display: inline; }
}

/* ─── Odoo module popup (Palantir-inspired) ──────────────────────────
   Dark glass card that appears on hover (desktop) or tap (mobile).
   Lives inside .module-tile (position: relative) and points down to it.
   The opening animation uses a clipped-rect reveal so it feels like
   a HUD element booting up, not a tooltip fading in. */
.module-tile { position: relative; }
.module-tile:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(140,92,246,.55), 0 8px 18px -12px rgba(140,92,246,.35);
}
/* When a tile is showing its popup, lift the whole tile above siblings
   (and above the "Agendar demonstração" CTA, which has its own stacking
   from .fade-up/transform). */
.module-tile[data-open="true"],
.module-tile:hover {
  z-index: 60;
}

.odoo-popup {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  width: 300px;
  z-index: 100;
  pointer-events: none;
  text-align: left;
  padding: 14px 16px 16px;
  border-radius: 12px;
  color: #e8eaf0;
  background:
    linear-gradient(180deg, rgba(20,22,28,.96) 0%, rgba(12,13,18,.96) 100%);
  border: 1px solid rgba(140,92,246,.28);
  box-shadow:
    0 1px 0 rgba(255,255,255,.04) inset,
    0 0 0 1px rgba(0,0,0,.4),
    0 20px 40px -18px rgba(10,10,11,.65),
    0 0 28px -8px rgba(140,92,246,.35);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  opacity: 0;
  transform: translateX(-50%) translateY(8px) scale(.94);
  transform-origin: 50% calc(100% + 4px);
  transition:
    opacity .22s cubic-bezier(.22,1,.36,1),
    transform .28s cubic-bezier(.22,1,.36,1);
}

/* Violet glow strip on the top edge — the HUD seam */
.odoo-popup-bar {
  position: absolute;
  top: -1px; left: 12px; right: 12px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(140,92,246,.85) 40%,
    rgba(140,92,246,.85) 60%,
    transparent 100%);
  box-shadow: 0 0 8px rgba(140,92,246,.7);
}

.odoo-popup-head {
  display: flex; align-items: center; gap: 7px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(180,160,255,.92);
  margin-bottom: 8px;
}
.odoo-popup-tag { color: #c9b8ff; }
.odoo-popup-dot { width: 3px; height: 3px; border-radius: 999px; background: rgba(140,92,246,.7); display: inline-block; }
.odoo-popup-kind { color: rgba(220,220,235,.45); }

.odoo-popup-title {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -.005em;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 4px;
}
.odoo-popup-desc {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(220,224,236,.82);
  font-weight: 400;
}

/* Triangle caret pointing to the tile */
.odoo-popup-arrow {
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px; height: 10px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(12,13,18,.96);
  border-right: 1px solid rgba(140,92,246,.28);
  border-bottom: 1px solid rgba(140,92,246,.28);
}

/* Open state — used on tap (mobile) and as the canonical "show" state */
.module-tile[data-open="true"] .odoo-popup {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}

/* Hover only on devices that actually hover (desktop) */
@media (hover: hover) and (pointer: fine) {
  .module-tile:hover .odoo-popup {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
  }
}

/* Keep the popup narrow enough to never break out of small viewports */
@media (max-width: 480px) {
  .odoo-popup { width: min(280px, calc(100vw - 32px)); }
}

@media (prefers-reduced-motion: reduce) {
  .odoo-popup { transition: opacity .12s linear; }
}

.btn-primary {
  background: var(--ink); color: #fff; font-weight: 500;
  border-radius: 999px; padding: 14px 22px; display: inline-flex; align-items:center; gap:10px;
  font-size: 14.5px; letter-spacing: -0.005em;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 8px 18px -10px rgba(10,10,11,.5);
}
.btn-primary:hover { transform: translateY(-1px); background:#26262a; box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 14px 24px -10px rgba(10,10,11,.55); }

.btn-ghost {
  color: var(--ink); font-weight: 500; font-size: 14.5px;
  border-radius: 999px; padding: 13px 20px; display:inline-flex; align-items:center; gap:8px;
  border: 1px solid rgba(10,10,11,.14); background: #fff;
  transition: background .2s, border-color .2s;
}
.btn-ghost:hover { background: #f7f7f8; border-color: rgba(10,10,11,.3); }

.chip {
  display:inline-flex; align-items:center; gap:8px;
  padding: 5px 11px 5px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 500; line-height: 1;
  background: #fff; color: var(--ink);
  border: 1px solid rgba(10,10,11,.12);
}
.chip .dot { width:6px; height:6px; border-radius: 999px; background: var(--accent); }

.kbd { font-family: 'JetBrains Mono', monospace; font-size:10.5px; padding:2px 6px; border-radius:5px; background:#fff; color:#56565d; border:1px solid #e1e1e5; }

.module-tile { transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.module-tile:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -16px rgba(10,10,11,.25); border-color: rgba(10,10,11,.2); }

/* ─── Flow card (Why Deepstrat 3 stages) ─────────────────────────────
   Visible hover on desktop, tap feedback on mobile, and a one-time
   "sweep" highlight when the card enters the viewport so mobile users
   also see something happen. */
.flow-card {
  transition:
    opacity .55s ease,
    transform .35s cubic-bezier(.2,.7,.2,1),
    border-color .25s ease,
    background-color .25s ease,
    box-shadow .35s ease;
  will-change: transform;
}
/* Hover do FlowCard alinhado com o estilo dos cards da secao Dores:
   apenas a borda muda; sem translate, sem sombra, sem mudanca de fundo. */
.flow-card.is-dark:hover {
  border-color: rgba(255,255,255,.25);
}
.flow-card.is-light:hover {
  border-color: rgba(10,10,11,.25);
}
.flow-card:active { transform: translateY(-1px) scale(.99); transition-duration: .12s; }

/* Sweep highlight that travels across the card */
.flow-card .flow-sweep {
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg,
    transparent 35%,
    var(--sweep-color, rgba(255,255,255,.10)) 50%,
    transparent 65%);
  transform: translateX(-110%);
  opacity: 0;
}
.flow-card.is-light .flow-sweep { --sweep-color: rgba(10,10,11,.10); }
@keyframes flowSweepRun {
  0%   { transform: translateX(-110%); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateX(110%); opacity: 0; }
}
/* run once when armed (mobile + desktop, on enter) */
.flow-card.is-armed .flow-sweep {
  animation: flowSweepRun 1.4s cubic-bezier(.2,.7,.2,1) .25s 1 both;
}
/* run again on hover (desktop only — touch devices skip this) */
@media (hover: hover) {
  .flow-card:hover .flow-sweep {
    animation: flowSweepRun 1.1s cubic-bezier(.2,.7,.2,1) 1 both;
  }
}

/* ── Sweep reutilizável (.sweep-card) ────────────────────────────────
   Mesmo brilho horizontal dos cards da seção IA (.flow-card), agora
   aplicável a qualquer card. O wrapper .flow-sweep se auto-recorta
   (overflow:hidden) e fica ATRÁS do conteúdo via isolation + z-index,
   então o card host NÃO precisa de overflow:hidden — preserva badges que
   vazam pra fora da borda (ex: "Recomendado" no comparativo). Reaproveita
   os keyframes flowSweepRun. Armado por .is-armed (entra na viewport, via
   useSweep) e re-disparado no hover. Use .is-light em cards claros. */
.sweep-card { isolation: isolate; }
.sweep-card .flow-sweep {
  position: absolute; inset: 0;
  z-index: -1;            /* atrás do conteúdo, acima do fundo do card */
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
}
.sweep-card .flow-sweep::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg,
    transparent 35%,
    var(--sweep-color, rgba(255,255,255,.06)) 50%,
    transparent 65%);
  transform: translateX(-110%);
  opacity: 0;
}
.sweep-card.is-light .flow-sweep::before { --sweep-color: rgba(10,10,11,.07); }
.sweep-card.is-armed .flow-sweep::before {
  animation: flowSweepRun 1.4s cubic-bezier(.2,.7,.2,1) .25s 1 both;
}
@media (hover: hover) {
  .sweep-card:hover .flow-sweep::before {
    animation: flowSweepRun 1.1s cubic-bezier(.2,.7,.2,1) 1 both;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sweep-card .flow-sweep::before { animation: none !important; opacity: 0; }
}

/* ── Entrada dos cards dark grandes (Spotlight, Contato) ─────────────
   Scroll transition "scrubada": useCardScroll (components.jsx) mapeia a
   posição do card na viewport para um progresso 0→1 e aplica transform/
   opacity/blur INLINE a cada frame — o reveal acompanha a rolagem e reverte
   ao subir. Cross-browser (JS puro, não depende de scroll-driven CSS). O
   inline vence o override de pré-hidratação do SSR (`.fade-up{opacity:1}`).
   Sem JS, o card aparece normal; reduced-motion desliga (o hook sai cedo). */
.card-reveal { will-change: transform, opacity, filter; }

/* ─── Orchestrate illustration animations ───────────────────────── */
@keyframes orchSpin        { to { transform: rotate(360deg); } }
@keyframes orchSpinReverse { to { transform: rotate(-360deg); } }
@keyframes orchPulseGlow {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 6px var(--orch-glow, rgba(255,255,255,.30))); }
  50%      { transform: scale(1.06); filter: drop-shadow(0 0 18px var(--orch-glow, rgba(255,255,255,.55))); }
}
/* Background waves flowing entrada → ação behind the orchestrator logo.
   Translating by -50% of the SVG width wraps seamlessly because the path
   contains an integer number of wavelengths in that span. */
@keyframes orchWaveScroll { to { transform: translateX(-50%); } }
.orch-wave-mask {
  /* fade edges so the waves emerge softly from the entrada/ação labels */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

/* ─── Cards de Implementação — ilustrações animadas ──────────────────
   3 SVGs decorativos (Diagnóstico / Implementação / Hypercare). Tudo via
   CSS: o SSR pré-renderiza o SVG estático e estas animações só rodam no
   browser — sem JS, sem hydration mismatch.
   transform-box: view-box → translate/rotate em unidades do viewBox. */

/* Card 01 — radar: o feixe e o alvo (crosshair) são movidos por SMIL no
   próprio SVG (<animate> em x2/y2 do feixe + <animateTransform> no alvo).
   Os dois usam os MESMOS keyTimes/keySplines e percorrem as MESMAS
   coordenadas dos nós, então a ponta do feixe fica sempre cravada no alvo —
   precisão. Aqui ficam só os efeitos auxiliares (piscar dos nós + anel). */
.impl-node { animation: implNodeBlink 2.4s ease-in-out infinite; }
.impl-node:nth-of-type(2) { animation-delay: .5s; }
.impl-node:nth-of-type(3) { animation-delay: 1s; }
.impl-node:nth-of-type(4) { animation-delay: 1.5s; }
@keyframes implNodeBlink {
  0%, 100% { fill-opacity: .25; }
  50%      { fill-opacity: .9; }
}
.impl-crosshair circle:first-of-type {   /* anel externo "respira" ao mirar */
  transform-box: fill-box; transform-origin: center;
  animation: implTargetLock 1.6s ease-in-out infinite;
}
@keyframes implTargetLock {
  0%, 100% { transform: scale(1);    stroke-opacity: 1; }
  50%      { transform: scale(1.16); stroke-opacity: .5; }
}

/* Card 02 — fluxo: linhas de entrada correm pro núcleo, o núcleo pulsa,
   as setas brilham em sequência e a saída (accent) acelera. */
.impl-flow-in line { animation: implDashFlow 1.1s linear infinite; }
@keyframes implDashFlow { to { stroke-dashoffset: -18; } }  /* 2×(2+7) → loop perfeito */
.impl-flow-core {
  transform-box: fill-box; transform-origin: center;
  animation: implCorePulse 2.2s ease-in-out infinite;
}
@keyframes implCorePulse {
  0%, 100% { transform: rotate(45deg) scale(1);    fill-opacity: .12; }
  50%      { transform: rotate(45deg) scale(1.14); fill-opacity: .28; }
}
.impl-chev { animation: implChevGlow 1.6s ease-in-out infinite; }
.impl-chev:nth-of-type(2) { animation-delay: .18s; }
.impl-chev:nth-of-type(3) { animation-delay: .36s; }
@keyframes implChevGlow {
  0%, 100% { stroke-opacity: .35; }
  45%      { stroke-opacity: 1; filter: drop-shadow(0 0 3px rgba(255,255,255,.6)); }
}
.impl-flow-out {
  stroke-dasharray: 9 6;
  animation: implFlowOut .8s linear infinite;
}
@keyframes implFlowOut { to { stroke-dashoffset: -15; } }  /* 9+6 → loop perfeito */

/* Card 03 — pulso: um sinal (accent) percorre o ECG, o ping expande em
   anéis e o ponto central pisca. */
.impl-pulse-scan { animation: implPulseScan 2.6s linear infinite; }
@keyframes implPulseScan {
  from { stroke-dashoffset: 100; }
  to   { stroke-dashoffset: 0; }
}
.impl-ping-r1, .impl-ping-r2 {
  transform-box: fill-box; transform-origin: center;
  animation: implPing 2.4s ease-out infinite;
}
.impl-ping-r2 { animation-delay: .3s; }
@keyframes implPing {
  0%        { transform: scale(.5); stroke-opacity: .8; }
  70%, 100% { transform: scale(1.5); stroke-opacity: 0; }
}
.impl-ping-dot {
  transform-box: fill-box; transform-origin: center;
  animation: implPingDot 2.4s ease-in-out infinite;
}
@keyframes implPingDot {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.5); }
}

@media (prefers-reduced-motion: reduce) {
  .impl-art * { animation: none !important; }
  .impl-pulse-scan { display: none; }   /* sem o varredor estático sobrando */
}

.sticky-nav-bg { background: #ffffff; border-bottom: 1px solid rgba(10,10,11,.06); box-shadow: 0 1px 0 rgba(10,10,11,.02), 0 4px 20px -10px rgba(10,10,11,.08); }
/* Transparent nav over the dark first-section hero. Logo/wordmark must invert
   to stay legible against the near-black background. */
.nav-on-dark { background: transparent; border-bottom: 1px solid rgba(255,255,255,.05); }
.nav-on-dark svg { color: #fff; fill: currentColor; }
/* Buttons inside the dark nav manage their own color via tone (light/dark);
   don't let the broad .nav-on-dark svg rule override the arrow color. */
.nav-on-dark .btn-square svg { color: inherit; fill: none; }
.nav-on-dark .nav-icon-btn svg { fill: none; color: inherit; }

.nav-account { position: relative; }
.nav-icon-btn { position: relative; }
.nav-icon-btn::after { content: none; }
.nav-icon-btn.is-in::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  right: 1px; bottom: 1px;
  background: #22c55e;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(10,10,11,.12);
}
.nav-on-dark .nav-icon-btn.is-in::after { border-color: #0a0a0b; }
.nav-account-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 216px;
  padding: 10px 8px 8px;
  background: #fff;
  color: #0a0a0b;
  border: 1px solid rgba(10,10,11,.12);
  z-index: 60;
  display: none;
}
.nav-account-menu.is-open { display: block; }
.nav-account-menu::before,
.nav-account-menu::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  pointer-events: none;
  border-color: #0a0a0b;
  opacity: .5;
}
.nav-account-menu::before { top: -1px; left: -1px; border-top: 1px solid; border-left: 1px solid; }
.nav-account-menu::after { bottom: -1px; right: -1px; border-bottom: 1px solid; border-right: 1px solid; }
.nav-account-menu > .nav-account-br {
  position: absolute;
  width: 10px; height: 10px;
  pointer-events: none;
  opacity: .5;
}
.nav-account-menu > .nav-account-br-tr { top: -1px; right: -1px; border-top: 1px solid #0a0a0b; border-right: 1px solid #0a0a0b; }
.nav-account-menu > .nav-account-br-bl { bottom: -1px; left: -1px; border-bottom: 1px solid #0a0a0b; border-left: 1px solid #0a0a0b; }
.nav-account-kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8a8a92;
  padding: 4px 12px 8px;
}
.nav-account-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #0a0a0b;
  text-decoration: none;
  line-height: 1.2;
}
.nav-account-menu a:hover { background: #f4f4f5; }
.nav-account-menu a svg { flex-shrink: 0; color: #56565d; }
.nav-account-menu a[data-account="logout"] {
  margin-top: 4px;
  border-top: 1px solid rgba(10,10,11,.08);
  color: #56565d;
}
.nav-account-menu a[data-account="logout"]:hover { color: #0a0a0b; background: #f4f4f5; }
.nav-account-menu a[data-account="logout"] svg { color: inherit; }
.nav-on-dark .nav-account-menu,
.nav-on-dark .nav-account-menu a { color: #0a0a0b; }
.nav-on-dark .nav-account-menu svg { fill: none; color: #56565d; }
.nav-on-dark .nav-account-menu a[data-account="logout"] { color: #56565d; }

.portal-header {
  position: fixed; top: 0; inset-inline: 0; z-index: 40;
  background: #fff;
  border-bottom: 1px solid rgba(10,10,11,.08);
}
.portal-header-bar {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
@media (min-width: 640px) { .portal-header-bar { height: 72px; padding: 0 1.5rem; } }
@media (min-width: 1024px) { .portal-header-bar { height: 80px; padding: 0 2.5rem; } }
.portal-header-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.portal-header-brand img { height: 28px; width: auto; display: block; }
@media (min-width: 1024px) { .portal-header-brand img { height: 36px; } }
.portal-header-kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #56565d;
  padding-left: 14px;
  border-left: 1px solid rgba(10,10,11,.12);
  white-space: nowrap;
}
.portal-header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.portal-header-back {
  font-size: 13px;
  font-weight: 500;
  color: #56565d;
  text-decoration: none;
}
.portal-header-back:hover { color: #0a0a0b; }
@media (max-width: 639px) {
  .portal-header-kicker { display: none; }
  .portal-header-back { display: none; }
}

body[data-density="compact"] section { padding-top: 70px; padding-bottom: 70px; }
body[data-density="airy"] section { padding-top: 130px; padding-bottom: 130px; }

.mark-ornament {
  position: absolute; pointer-events: none; user-select: none;
  color: rgba(10,10,11,.04);
}

/* ─────────────────────────────────────────────────────────────────────
   Hero Ops (section 1) — Palantir-style cinematic dashboard hero
   Dark stage + tilted fake "operations" mockup + overlaid headline.
   ───────────────────────────────────────────────────────────────────── */
/* ── Superficies escuras em tom GRAFITE (site todo) ────────────────────────
   Clareia os fundos quase-pretos pra um cinza grafite. Sobrescreve SO o
   background das utilitarias dark — text-ink-950/900 (titulos) ficam intactos.
   Mantem a hierarquia: ink-900 (cards) um tom acima do ink-950 (secoes).
   custom-styles.css e injetado depois do Tailwind, entao estas regras vencem. */
.bg-ink-950 { background-color: #26262b; }
.bg-ink-900 { background-color: #2f2f36; }

/* Superfície padrão dos cards escuros que ficam sobre o tech-grid.
   Grafite de painel quase opaco: o grid praticamente some atrás do card
   (continua visível nas frestas entre os cards, preservando o clima tech).
   Mexe só no background — borda/hover continuam vindo das classes Tailwind,
   evitando briga de especificidade. Use em cards escuros com .brackets.
   Variante .is-accent: um tom acima, pro card em destaque. */
.card-dark { background-color: #2c2c33; }
.card-dark.is-accent { background-color: #34343c; }

.hero-p {
  background: #26262b;
  color: #fff;
  /* --beam-x lives on the section so BOTH the radar layer (blur reveal) and
     the frame layer (moving scan brackets) inherit the same animated value. */
  --beam-x: -12%;
  /* Slower sweep, almost instant restart between passes. */
  animation: heroRadarSweep 8s linear infinite;
}
/* Overlay (H1+sub+CTA) e painel na mesma célula: centros coincidem.
   Especificidade acima do `flex` do Tailwind no <section>. */
section.hero-p {
  display: grid;
  grid-template: 1fr / 1fr;
}
@keyframes heroRadarSweep {
  0%   { --beam-x: -8%; }
  98%  { --beam-x: 108%; }
  100% { --beam-x: 108%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-p { animation: none; --beam-x: 50%; }
}
.hero-p-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 18%, rgba(154,123,227,.32), rgba(154,123,227,.08) 45%, transparent 75%),
    radial-gradient(ellipse 60% 55% at 18% 85%, rgba(110,71,200,.22), transparent 70%),
    radial-gradient(ellipse 60% 55% at 88% 80%, rgba(36, 112, 219, .14), transparent 70%);
}
/* HUD gridline backdrop — sits BEHIND the dashboard so the cards cover it
   cleanly. Visible in the empty hero space around the mockup. */
.hero-p-grid-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(154,123,227,.17) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154,123,227,.17) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 95% 95% at 50% 50%, #000 25%, transparent 95%);
          mask-image: radial-gradient(ellipse 95% 95% at 50% 50%, #000 25%, transparent 95%);
}
/* Real Odoo home as a faint poster behind the fake dashboard. Adds depth and
   reinforces "this is the actual product" without overwhelming the scene. */
.hero-p-poster {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(1.05);
  width: 86%;
  max-width: 1500px;
  height: auto;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  opacity: .12;
  filter: blur(6px) saturate(.6);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 80%);
}

/* Stage — tilted screen */
.hero-p-stage {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  justify-self: center;
  align-self: center;
  width: 92%;
  max-width: 1400px;
  margin: 0;
}
.hero-p-screen-wrap {
  position: relative;
  transform: perspective(2800px) rotateX(8deg);
  transform-origin: 50% 85%;
  filter:
    drop-shadow(0 30px 50px rgba(0,0,0,.7))
    drop-shadow(0 0 100px rgba(154,123,227,.18));
}
.hero-p-screen {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, #14141a 0%, #0c0c10 100%);
  overflow: hidden;
  /* Dashboard renders SHARP — the blur is applied via the radar overlay layer
     so the radar sweep can punch a moving "sharp window" through it. */
}
/* ─── Radar sweep (full hero) ─────────────────────────────────────────
   A single animated layer driven by --beam-x that does three things:
   1) Ambient blur covering the WHOLE hero (backdrop-filter).
   2) A moving "reveal window" cut via a mask that follows --beam-x — where
      the mask is transparent, the blur doesn't render, so what's underneath
      shows SHARP for a narrow strip.
   3) Visible beam — sharp white hairline core + warm asymmetric trail
      (radar "afterglow" behind the leading edge). Palantir HUD feel.
   One --beam-x keeps mask + beam perfectly in sync. */
@property --beam-x {
  syntax: '<percentage>';
  inherits: true;
  initial-value: -8%;
}
/* The radar layer: a full-hero backdrop-filter blur, masked with a wide
   gradient that gradually reduces blur on BOTH sides of --beam-x toward a
   fully sharp center window (~16% wide). */
.hero-p-radar {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  -webkit-backdrop-filter: blur(2.8px) saturate(.9);
          backdrop-filter: blur(2.8px) saturate(.9);
  background: rgba(5,5,7,.18);
  -webkit-mask:
    linear-gradient(94deg,
      #000 0%,
      #000 calc(var(--beam-x) - 22%),
      rgba(0,0,0,.85) calc(var(--beam-x) - 16%),
      rgba(0,0,0,.55) calc(var(--beam-x) - 11%),
      rgba(0,0,0,.20) calc(var(--beam-x) - 8%),
      transparent calc(var(--beam-x) - 7%),
      transparent calc(var(--beam-x) + 7%),
      rgba(0,0,0,.20) calc(var(--beam-x) + 8%),
      rgba(0,0,0,.55) calc(var(--beam-x) + 11%),
      rgba(0,0,0,.85) calc(var(--beam-x) + 16%),
      #000 calc(var(--beam-x) + 22%),
      #000 100%
    );
          mask:
    linear-gradient(94deg,
      #000 0%,
      #000 calc(var(--beam-x) - 22%),
      rgba(0,0,0,.85) calc(var(--beam-x) - 16%),
      rgba(0,0,0,.55) calc(var(--beam-x) - 11%),
      rgba(0,0,0,.20) calc(var(--beam-x) - 8%),
      transparent calc(var(--beam-x) - 7%),
      transparent calc(var(--beam-x) + 7%),
      rgba(0,0,0,.20) calc(var(--beam-x) + 8%),
      rgba(0,0,0,.55) calc(var(--beam-x) + 11%),
      rgba(0,0,0,.85) calc(var(--beam-x) + 16%),
      #000 calc(var(--beam-x) + 22%),
      #000 100%
    );
}

/* Scan line layer — only the single moving hairline (the gridline backdrop
   lives in .hero-p-grid-bg behind the dashboard). Sits above the radar so
   the line is always visible across the hero — except the top nav strip,
   which is masked out so the line passes BEHIND the header. */
.hero-p-frame {
  position: absolute;
  /* Elemento REAL de poucos px (não mais um gradiente sub-pixel do tamanho da
     tela). Vai do topo absoluto até embaixo — o nav é transparente enquanto o
     usuário está no topo, então a linha passa atrás dele. */
  top: 0; bottom: 0;
  left: 0;
  width: 3px;
  margin-left: -1.5px; /* centra o núcleo no ponto da animação */
  pointer-events: none;
  z-index: 5;
  /* Perfil de cor horizontal: roxo nas bordas, branco no centro — o mesmo
     look do gradiente antigo, agora num corpo nítido de 3px. */
  background: linear-gradient(90deg,
    rgba(154,123,227,0) 0%,
    rgba(154,123,227,.45) 28%,
    rgba(244,239,255,.7) 50%,
    rgba(154,123,227,.45) 72%,
    rgba(154,123,227,0) 100%
  );
  /* Brilho suave (substitui o "sangramento" roxo das bordas do gradiente). */
  box-shadow: 0 0 5px rgba(244,239,255,.45), 0 0 13px rgba(154,123,227,.4);
  /* MOVIMENTO 100% no compositor (GPU), via transform + keyframes puros — sem
     depender de --beam-x. Roda fora da main thread, então fica fluido na taxa
     nativa do painel (inclui 120Hz) e não repinta a tela por frame. O período
     (8s) e o mapeamento (-8% → 108%) batem com heroRadarSweep, então a linha
     segue em fase com a radar e com o brilho do headline. */
  transform: translateX(-8vw) skewX(-3deg);
  animation: heroFrameSweep 8s linear infinite;
  will-change: transform;
}
@keyframes heroFrameSweep {
  0%   { transform: translateX(-8vw)  skewX(-3deg); }
  98%  { transform: translateX(108vw) skewX(-3deg); }
  100% { transform: translateX(108vw) skewX(-3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-p-frame { animation: none; opacity: 0; }
}

/* ─── Footer aurora diagonal scan ────────────────────────────────────
   Single layer: a very thin diagonal streak that slowly drifts. */
.footer-aurora-scan {
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 78%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 78%, transparent 100%);
}
.footer-aurora-scan::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-image: linear-gradient(108deg,
    transparent 49.2%,
    rgba(154,123,227,.55) 49.85%,
    rgba(244,239,255,.85) 50%,
    rgba(154,123,227,.55) 50.15%,
    transparent 50.8%);
  background-size: 220% 100%;
  background-position: 50% 0;
  opacity: .26;
  animation: footerScanDrift 18s ease-in-out infinite alternate;
}
@keyframes footerScanDrift {
  0%   { background-position: 40% 0; }
  100% { background-position: 60% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-aurora-scan::before { animation: none; background-position: 50% 0; }
}

/* Window chrome */
.hero-p-chrome {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
}
.hero-p-traffic { display: flex; gap: 7px; }
.hero-p-traffic > span {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(255,255,255,.15);
}
.hero-p-traffic > span:nth-child(1) { background: #ff5f57; }
.hero-p-traffic > span:nth-child(2) { background: #febc2e; }
.hero-p-traffic > span:nth-child(3) { background: #28c840; }
.hero-p-title {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: rgba(255,255,255,.82);
  flex: 1;
  text-align: center;
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.hero-p-title-sep { color: rgba(255,255,255,.7); }
.hero-p-title-odoo { display: inline-flex; align-items: center; padding: 0 2px; }
/* Re-tint the inline Odoo wordmark inside the dark chrome so it pops without
   shouting — slightly lighter purple than the brand original. */
.hero-p-title-odoo svg text { fill: #b08fa6 !important; }
.hero-p-status {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: rgba(255,255,255,.88);
  letter-spacing: .14em;
}
.hero-p-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #9a7be3;
  box-shadow: 0 0 8px #9a7be3;
  animation: ledPulse 1.6s ease-in-out infinite;
}

/* Grid of columns */
.hero-p-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  padding: 16px;
}
.hero-p-col {
  display: flex; flex-direction: column; gap: 8px;
  min-width: 0;
}
.hero-p-col-title {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,.75);
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-p-col-icon {
  width: 14px; height: 14px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
  opacity: .9;
}
.hero-p-card-icon {
  width: 14px; height: 14px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
  opacity: .85;
}

/* Cards */
.hero-p-card {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 6px;
  padding: 8px 10px;
  transition: border-color .35s ease, background .35s ease, transform .35s ease, box-shadow .35s ease;
}
.hero-p-card-id {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  color: rgba(255,255,255,.72);
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.hero-p-card-row {
  display: flex; align-items: center; gap: 6px;
}
.hero-p-card-row > .hero-p-card-who { flex: 1; }
.hero-p-card-who {
  font-size: 11px;
  color: rgba(255,255,255,.88);
  font-weight: 500;
  letter-spacing: -.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-p-card-dot {
  width: 6px; height: 6px; border-radius: 50%;
  flex-shrink: 0;
}
.hero-p-card-dot--ok      { background: #7bffa3; box-shadow: 0 0 6px rgba(123,255,163,.55); }
.hero-p-card-dot--pending { background: #9a7be3; box-shadow: 0 0 6px rgba(154,123,227,.55); }
.hero-p-card-dot--warn    { background: #ff5b5b; box-shadow: 0 0 6px rgba(255,91,91,.55); }
.hero-p-card-dot--info    { background: #7aa6ff; box-shadow: 0 0 6px rgba(122,166,255,.55); }
.hero-p-card-val {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  color: rgba(255,255,255,.82);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-p-card--pulse {
  border-color: rgba(154,123,227,.6);
  background: rgba(154,123,227,.08);
  box-shadow: 0 0 0 1px rgba(154,123,227,.22), 0 0 24px rgba(154,123,227,.18);
}

/* Footer ticker */
.hero-p-foot {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 12px 18px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.015);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  color: rgba(255,255,255,.78);
  letter-spacing: .04em;
  flex-wrap: wrap;
}
.hero-p-foot b { color: rgba(255,255,255,.92); font-weight: 600; }
.hero-p-foot-sep { color: rgba(255,255,255,.6); }

/* Outer vignette — frames the whole scene */
.hero-p-vignette {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 4;
  background:
    radial-gradient(ellipse 90% 95% at 50% 55%, transparent 35%, rgba(5,5,7,.5) 75%, rgba(5,5,7,.95) 100%);
}

/* Soft uniform darkening across the hero so the headline has consistent
   contrast everywhere, without a "spotlight" that screams centerpiece. */
/* Static tint replaced by the .hero-p-radar overlay's background — keep
   the class as a thin extra dimmer so the headline still pops everywhere. */
.hero-p-focus {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 3;
  background: rgba(5,5,7,.22);
}

/* Headline overlay — mesma célula/caixa do painel (.hero-p-stage), então
   título + subtítulo + CTA ficam no centro vertical do dashboard. */
.hero-p-headline {
  grid-area: 1 / 1;
  justify-self: center;
  align-self: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
  width: 92%;
  max-width: 1400px;
  padding: 0 24px;
  box-sizing: border-box;
}
.hero-p-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(920px, calc(100vw - 40px));
  max-width: calc(100vw - 40px);
  min-width: 0;
  box-sizing: border-box;
  pointer-events: auto;
}
/* Scrim local: contraste no texto sem apagar o dashboard ao redor.
   Dois radiais — um largo (H1) e um mais denso na faixa do subtítulo. */
.hero-p-copy::before {
  content: "";
  position: absolute;
  inset: -48px -80px -56px;
  background:
    radial-gradient(ellipse 78% 70% at 50% 38%, rgba(8,6,16,.78) 0%, rgba(8,6,16,.46) 42%, rgba(8,6,16,.16) 64%, transparent 78%),
    radial-gradient(ellipse 90% 55% at 50% 62%, rgba(8,6,16,.72) 0%, rgba(8,6,16,.28) 50%, transparent 74%);
  z-index: -1;
  pointer-events: none;
}
.hero-p-headline h1,
.hero-p-headline .h-display {
  font-size: clamp(34px, 5.4vw, 84px);
  font-weight: 600;
  line-height: 0.98;
  color: #ffffff;
  text-align: center;
  letter-spacing: -0.028em;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  text-wrap: wrap; /* ganha de .h-display { text-wrap: balance } no mobile */
  overflow-wrap: break-word;
  text-shadow:
    0 2px 24px rgba(0,0,0,.75),
    0 0 50px rgba(0,0,0,.6);
}
.hero-p-sub {
  margin: 16px auto 0;
  width: 100%;
  max-width: min(34em, 100%);
  font-size: clamp(18px, 1.85vw, 22px);
  font-weight: 500;
  line-height: 1.45;
  color: #ffffff;
  white-space: normal;
  text-wrap: wrap;
  text-shadow:
    0 1px 1px rgba(0,0,0,.95),
    0 2px 10px rgba(0,0,0,.88),
    0 6px 28px rgba(0,0,0,.8),
    0 0 48px rgba(8,6,16,.92);
}
.hero-p-proof {
  margin: 14px auto 0;
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  text-shadow: 0 2px 14px rgba(0,0,0,.75);
}
.hero-p-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
}
.hero-p-cta {
  margin-top: 0;
  align-self: center;
}
.hero-p-cta-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 8px;
  color: rgba(255,255,255,.88);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.35);
  text-shadow: 0 2px 14px rgba(0,0,0,.7);
}
.hero-p-cta-ghost:hover {
  color: #fff;
  border-bottom-color: #fff;
}
@media (min-width: 640px) {
  .hero-p-headline h1,
  .hero-p-headline .h-display { text-wrap: balance; }
}
.hero-p-hl {
  /* Destaque um pouco maior que a parte branca (relativo ao tamanho do h1,
     então acompanha o clamp e o clone iluminado pixel a pixel). */
  font-size: 1.08em;
  color: #b8a0ed;
  text-shadow:
    0 2px 24px rgba(0,0,0,.75),
    0 0 30px rgba(154,123,227,.55);
}

/* Clone iluminado do headline. Reaproveita .hero-p-headline (mesma posição,
   centragem e padding) e herda .hero-p-headline h1 (mesma fonte/tamanho), então
   sobrepõe o original pixel a pixel. Só muda a cor/brilho das letras e é
   recortado por uma janela vertical que segue --beam-x: onde a linha está, as
   letras aparecem acesas; atrás, um rastro curto; à frente, apagam na hora. */
.hero-p-headline-lit {
  z-index: 6; /* acima do feixe (.hero-p-frame, z:5) */
  pointer-events: none;
  -webkit-mask: linear-gradient(94deg,
    transparent calc(var(--beam-x) - 15%),
    rgba(0,0,0,.5)  calc(var(--beam-x) - 7%),
    #000           calc(var(--beam-x) - 1%),
    #000           calc(var(--beam-x) + 2%),
    transparent    calc(var(--beam-x) + 4.5%)
  );
          mask: linear-gradient(94deg,
    transparent calc(var(--beam-x) - 15%),
    rgba(0,0,0,.5)  calc(var(--beam-x) - 7%),
    #000           calc(var(--beam-x) - 1%),
    #000           calc(var(--beam-x) + 2%),
    transparent    calc(var(--beam-x) + 4.5%)
  );
}
.hero-p-headline-lit h1,
.hero-p-headline-lit .h-display {
  color: #ffffff;
  text-shadow:
    0 0 6px  rgba(255,255,255,.95),
    0 0 20px rgba(244,239,255,.85),
    0 0 44px rgba(154,123,227,.9);
}
.hero-p-headline-lit .hero-p-hl {
  color: #ede4ff;
  text-shadow:
    0 0 6px  rgba(255,255,255,.95),
    0 0 22px rgba(184,160,237,.95),
    0 0 50px rgba(154,123,227,1);
}
/* Clone ilumina H1 e subtítulo. O scrim do clone (escuro) ficaria na
   faixa do feixe e apagaria o sub — desliga. CTA continua só no overlay real. */
.hero-p-headline-lit .hero-p-copy { pointer-events: none; }
.hero-p-headline-lit .hero-p-copy::before { display: none; }
.hero-p-headline-lit .hero-p-sub {
  visibility: visible;
  color: #ffffff;
  text-shadow:
    0 0 6px  rgba(255,255,255,.95),
    0 0 18px rgba(244,239,255,.9),
    0 0 36px rgba(154,123,227,.95);
}
.hero-p-headline-lit .hero-p-proof,
.hero-p-headline-lit .hero-p-actions,
.hero-p-headline-lit .hero-p-cta,
.hero-p-headline-lit .hero-p-cta-ghost {
  visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .hero-p-headline-lit { display: none; }
}

/* ── Mobile: alivia o custo por frame da iluminação (letras + fundo) ──────────
   No celular (e o 120Hz amplifica isso), o que sobrou de "arrastado" era a
   iluminação ainda presa à --beam-x na main thread. Aqui reduzimos o CUSTO de
   cada frame mantendo o MESMO efeito e a sincronia perfeita com a linha. */
@media (max-width: 1023px) {
  /* Fundo: a janela de nitidez (backdrop-filter mascarado) continua, mas com
     raio de blur menor — muito mais barato de computar a cada frame. */
  .hero-p-radar {
    -webkit-backdrop-filter: blur(1.5px) saturate(.9);
            backdrop-filter: blur(1.5px) saturate(.9);
  }
  /* Letras: o caro não era o movimento, e sim re-rasterizar text-shadows de
     44–50px de blur a cada frame. Enxuga os halos (look ~igual) e isola a
     camada num layer próprio, pra o repaint não contaminar o resto do hero.
     A máscara --beam-x permanece, então segue casada com a linha. */
  .hero-p-headline-lit {
    will-change: transform;
    transform: translateZ(0);
  }
  .hero-p-headline-lit h1,
  .hero-p-headline-lit .h-display {
    text-shadow:
      0 0 5px  rgba(255,255,255,.92),
      0 0 16px rgba(154,123,227,.85);
  }
  .hero-p-headline-lit .hero-p-hl {
    text-shadow:
      0 0 5px  rgba(255,255,255,.92),
      0 0 18px rgba(184,160,237,.95);
  }
  .hero-p-headline-lit .hero-p-sub {
    text-shadow:
      0 0 5px  rgba(255,255,255,.92),
      0 0 16px rgba(154,123,227,.85);
  }
}

/* ── Tela de abertura (HeroConstellation) iluminada — TODAS as versoes ──────
   Levanta o fundo, reforca o roxo e poe um glow central que destaca o painel.
   (Antes era exclusivo da C; agora vale para A/B/C. Estas regras vem depois
   das bases .hero-p* acima, entao as sobrescrevem para todas as paginas.) */
.hero-p { background: #2d2550; }

.hero-p-bg {
  background:
    radial-gradient(ellipse 96% 78% at 50% 14%, rgba(154,123,227,.48), rgba(154,123,227,.14) 50%, transparent 80%),
    radial-gradient(ellipse 74% 64% at 50% 50%, rgba(154,123,227,.28), transparent 72%),
    radial-gradient(ellipse 60% 55% at 15% 86%, rgba(110,71,200,.32), transparent 70%),
    radial-gradient(ellipse 60% 55% at 88% 82%, rgba(36,112,219,.22), transparent 70%);
}

/* quase remove o dimmer atras do headline e suaviza a vinheta das bordas */
.hero-p-focus { background: rgba(8,6,16,.02); }
.hero-p-vignette {
  background:
    radial-gradient(ellipse 92% 96% at 50% 55%, transparent 46%, rgba(8,6,16,.30) 80%, rgba(8,6,16,.70) 100%);
}

/* Scroll hint */
.hero-p-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  transition: color .2s ease;
}
.hero-p-scroll:hover { color: rgba(255,255,255,.95); }
.hero-p-scroll-chev {
  width: 12px; height: 12px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  animation: heroScrollBob 1.8s ease-in-out infinite;
}
@keyframes heroScrollBob {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: .55; }
  50%      { transform: rotate(45deg) translate(2.5px, 2.5px); opacity: 1; }
}

/* Discrete "powered by" mark in bottom-right of the hero */
/* "Powered by Odoo" — centered horizontally, sits BELOW the dashboard mockup.
   z-index above the radar layer (z:4) so the blur mask never affects it. */
.hero-p-poweredby {
  position: absolute;
  bottom: 56px;            /* baixo, com a seta pulsante logo abaixo (bottom 26px) */
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 11px 22px 13px;
  white-space: nowrap;
}
.hero-p-poweredby-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 8.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
  line-height: 1;
}
.hero-p-poweredby-logo {
  height: 96px;
  width: auto;
  display: block;
  /* Brighten the gray channels so the logo pops on the dark hero while
     preserving the brand purple of the leading "o". */
  filter: brightness(1.45) contrast(1.05);
}
@media (max-width: 639px) {
  .hero-p-poweredby {
    bottom: 48px;
    padding: 9px 16px 11px;
    gap: 3px;
  }
  .hero-p-poweredby-label { font-size: 8px; letter-spacing: .2em; }
  .hero-p-poweredby-logo { height: 75px; }
  .hero-p-headline { padding: 0 16px; }
  .hero-p-copy {
    width: min(100%, 320px);
    max-width: 320px;
    padding: 0;
  }
  /* Seletor mais específico que a regra base `.hero-p-headline h1`
     (width/max-width: 100%) pra o título caber e quebrar no telefone. */
  section.hero-p .hero-p-headline h1,
  section.hero-p .hero-p-headline .h-display {
    font-size: 32px;
    line-height: 1.12;
    width: 320px;
    max-width: 320px;
    margin-inline: auto;
  }
  .hero-p-copy::before { inset: -24px -12px; }
  section.hero-p .hero-p-sub {
    margin-top: 12px;
    font-size: 16.5px;
    width: 320px;
    max-width: 320px;
    margin-inline: auto;
  }
  .hero-p-actions { margin-top: 20px; }
  .hero-p-cta { margin-top: 0; }
  .hero-p-cta.btn-square {
    white-space: normal;
    text-align: center;
    max-width: 100%;
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* Responsive: collapse columns to fit smaller screens */
@media (max-width: 1279px) {
  .hero-p-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-p-col:nth-child(5),
  .hero-p-col:nth-child(6) { display: none; }
}
@media (max-width: 767px) {
  /* Painel ganha mais largura útil e a inclinação fica menos agressiva, pra
     não "achatar" os cards verticalmente. */
  .hero-p-stage { width: 96%; }
  .hero-p-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-p-col:nth-child(4) { display: none; }
  .hero-p-screen-wrap { transform: perspective(2200px) rotateX(4deg); }
  .hero-p-foot { font-size: 9.5px; gap: 8px; }
  .hero-p-foot-sep { display: none; }
}
@media (max-width: 519px) {
  /* 2 colunas com mais respiro: padding/gap maiores e cards com folga interna,
     tilt quase plano pra leitura limpa no celular. */
  .hero-p-stage { width: 94%; }
  .hero-p-screen-wrap { transform: perspective(2400px) rotateX(3deg); }
  .hero-p-grid { grid-template-columns: repeat(2, 1fr); padding: 16px; gap: 12px; }
  .hero-p-col { gap: 10px; }
  .hero-p-col:nth-child(3) { display: none; }
  .hero-p-col .hero-p-card:nth-child(n+5) { display: none; }
  .hero-p-card { padding: 10px 12px; }
  .hero-p-card-who { font-size: 11.5px; }
  .hero-p-card-val { font-size: 11px; }
  .hero-p-foot { padding: 10px 12px; }
}

/* ── Hero · Palantir-style subtle gridline ── */
.hero-tech-grid {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
  /* Two-layer grid (coarse + fine) — same dual-layer pattern as the blog page.
     Opacidades um pouco maiores + máscara mais ampla pra deixar o grid mais visível. */
  background-image:
    linear-gradient(rgba(10,10,11,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,10,11,.12) 1px, transparent 1px),
    linear-gradient(rgba(10,10,11,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,10,11,.07) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px, 14px 14px, 14px 14px;
  -webkit-mask-image: radial-gradient(ellipse 64% 82% at 20% 50%, #000 0%, transparent 76%);
          mask-image: radial-gradient(ellipse 64% 82% at 20% 50%, #000 0%, transparent 76%);
}

/* ── Palantir-style square CTA button ──
   Variants: .btn-square--sm (smaller), .btn-square--light (white on dark) */
.btn-square {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  background: #26262b;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 8px;
  transition: background .15s ease, transform .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-square--sm {
  padding: 10px 18px;
  font-size: 11.5px;
  gap: 8px;
}
.btn-square--light {
  background: #ffffff;
  color: #0a0a0b;
}
.btn-square--light:hover {
  background: #f4f4f5;
}
/* CTA da seção de contato vira full-width no mobile: o texto longo do botão
   não cabe na largura do card e, com white-space:nowrap, estourava o padding
   direito (cortado pelo overflow-hidden). Aqui ele ocupa a largura toda,
   centraliza e pode quebrar em duas linhas. Escopado em #agendar. */
@media (max-width: 639px) {
  #agendar .btn-square {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
    padding-left: 18px;
    padding-right: 18px;
  }
}
.btn-square::before,
.btn-square::after {
  content: "";
  position: absolute;
  top: 15px;
  bottom: 15px;
  width: 1px;
  background: rgba(255,255,255,.28);
  pointer-events: none;
  transition: background .18s ease;
}
.btn-square--sm::before,
.btn-square--sm::after { top: 11px; bottom: 11px; }
.btn-square--light::before,
.btn-square--light::after { background: rgba(10,10,11,.22); }
.btn-square::before { left: 5px; }
.btn-square::after  { right: 5px; }
.btn-square--sm::before { left: 4px; }
.btn-square--sm::after  { right: 4px; }
.btn-square:hover::before,
.btn-square:hover::after {
  background: rgba(154,123,227,.55);
}
.btn-square:hover {
  background: #32323a;
  transform: translateY(-1px);
}
.btn-square:active {
  transform: translateY(0);
}
.btn-square-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  line-height: 1;
}
.btn-square--sm .btn-square-label {
  letter-spacing: .12em;
}
.btn-square-bracket {
  position: absolute;
  width: 10px; height: 10px;
  border: 0 solid rgba(255,255,255,.55);
  pointer-events: none;
  transition: border-color .18s ease;
}
.btn-square--light .btn-square-bracket { border-color: rgba(10,10,11,.55); }
.btn-square-bracket-tl { top: 5px;    left: 5px;    border-top-width: 1px; border-left-width:  1px; border-top-left-radius:     4px; }
.btn-square-bracket-tr { top: 5px;    right: 5px;   border-top-width: 1px; border-right-width: 1px; border-top-right-radius:    4px; }
.btn-square-bracket-bl { bottom: 5px; left: 5px;    border-bottom-width: 1px; border-left-width:  1px; border-bottom-left-radius:  4px; }
.btn-square-bracket-br { bottom: 5px; right: 5px;   border-bottom-width: 1px; border-right-width: 1px; border-bottom-right-radius: 4px; }
.btn-square--sm .btn-square-bracket { width: 8px; height: 8px; }
.btn-square--sm .btn-square-bracket-tl { top: 4px;    left: 4px;  border-top-left-radius:     3px; }
.btn-square--sm .btn-square-bracket-tr { top: 4px;    right: 4px; border-top-right-radius:    3px; }
.btn-square--sm .btn-square-bracket-bl { bottom: 4px; left: 4px;  border-bottom-left-radius:  3px; }
.btn-square--sm .btn-square-bracket-br { bottom: 4px; right: 4px; border-bottom-right-radius: 3px; }
.btn-square:hover .btn-square-bracket {
  border-color: var(--accent-bright, #9a7be3);
}
.btn-square-line {
  position: absolute;
  left: 15px;
  right: 15px;
  height: 1px;
  background: rgba(255,255,255,.28);
  pointer-events: none;
  transition: background .18s ease;
}
.btn-square--light .btn-square-line { background: rgba(10,10,11,.18); }
.btn-square--sm .btn-square-line { left: 12px; right: 12px; }
.btn-square-line-top    { top: 5px; }
.btn-square-line-bottom { bottom: 5px; }
.btn-square--sm .btn-square-line-top    { top: 4px; }
.btn-square--sm .btn-square-line-bottom { bottom: 4px; }
.btn-square:hover .btn-square-line {
  background: rgba(154,123,227,.55);
}
.btn-square--light:hover {
  background: #f4f4f5;
  color: #0a0a0b;
}
.btn-square--light:hover::before,
.btn-square--light:hover::after,
.btn-square--light:hover .btn-square-line {
  background: var(--accent, #6e47c8);
}
.btn-square--light:hover .btn-square-bracket {
  border-color: var(--accent, #6e47c8);
}

/* ── Hero banner — floating Odoo apps backdrop ── */
.hero-banner {
  position: absolute;
  top: 50%;
  right: -18%;
  transform: translateY(-50%);
  /* Parallax do mouse: a propriedade `translate` compoe com o `transform`
     acima sem sobrescreve-lo. Vars setadas via JS (Hero useEffect); 0 por
     padrao, entao sem JS / em touch a imagem fica parada. */
  translate: var(--hb-x, 0px) var(--hb-y, 0px);
  will-change: translate;
  width: 125%;
  max-width: 1900px;
  height: auto;
  pointer-events: none;
  user-select: none;
  opacity: .95;
  z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 32%, #000 100%);
}
@media (max-width: 1023px) {
  .hero-banner {
    top: auto;
    bottom: 8%;
    right: -25%;
    transform: none;
    width: 180%;
    max-width: none;
    opacity: .9;
  }
}
@media (max-width: 639px) {
  .hero-banner {
    bottom: 18%;
    right: -45%;
    width: 240%;
    opacity: .9;
  }
}

/* Soft radial glow that pulls the eye toward the headline */
.hero-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 55% 60% at 18% 42%, rgba(255,255,255,.85), transparent 70%),
    radial-gradient(ellipse 50% 40% at 75% 30%, rgba(10,10,11,.03), transparent 70%);
}

/* ── Slightly larger primary CTA for hero ── */
.btn-primary-lg {
  padding: 16px 26px;
  font-size: 15px;
}

.phone-shell {
  width: 280px; aspect-ratio: 9/19;
  border-radius: 44px;
  background: linear-gradient(160deg, #1a1a1d, #050506 60%, #1a1a1d);
  padding: 8px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.06),
    inset 0 0 0 2px rgba(10,10,11,.6),
    0 30px 60px -20px rgba(10,10,11,.4),
    0 8px 16px -8px rgba(10,10,11,.2);
  position: relative;
}
@media (min-width: 1024px) { .phone-shell { width: 320px; border-radius: 50px; } }
@media (min-width: 1280px) { .phone-shell { width: 360px; border-radius: 56px; } }
.phone-screen {
  width:100%; height:100%; border-radius: 36px;
  background: #fafaf9; overflow:hidden; position:relative;
  display:flex; flex-direction:column;
}
@media (min-width: 1024px) { .phone-screen { border-radius: 42px; } }
@media (min-width: 1280px) { .phone-screen { border-radius: 48px; } }

.phone-notch {
  position:absolute; top:10px; left:50%; transform:translateX(-50%);
  width: 90px; height: 24px; border-radius: 999px;
  background:#050506; z-index: 5;
}
@media (min-width: 1024px) { .phone-notch { width: 100px; height: 26px; top: 11px; } }
@media (min-width: 1280px) { .phone-notch { width: 112px; height: 28px; top: 12px; } }

@keyframes bubbleIn {
  0%   { opacity: 0; transform: translateY(10px) scale(.92); }
  60%  { opacity: 1; transform: translateY(-1px) scale(1.015); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
/* Spring-ish ease (overshoots slightly) — feels like a physical pop, not a fade.
   The keyframes carry most of the motion; the easing keeps it crisp. */
.bubble { animation: bubbleIn .42s cubic-bezier(.34, 1.56, .64, 1) backwards; }

/* Phone chat — progress bar that fills over the active scenario duration.
   Pauses when the phone is hovered so the user can read at their own pace. */
@keyframes phoneProgress { from { width: 0%; } to { width: 100%; } }
.phone-shell:hover [style*="phoneProgress"] { animation-play-state: paused !important; }

/* Bouncing dots also pause on hover so the "typing" doesn't feel like it's
   demanding attention while the user is reading. */
.phone-shell:hover .typing-dots > span { animation-play-state: paused; }
.phone-shell:hover .typing-caret { animation-play-state: paused; }

/* Hide scrollbar inside the phone bubbles area (but keep scrolling functional) */
.phone-bubbles-scroll { scrollbar-width: none; }
.phone-bubbles-scroll::-webkit-scrollbar { display: none; }

/* Typing indicator — 3 bouncing dots (ChatGPT style) */
.typing-dots { display: inline-flex; gap: 4px; align-items: center; }
.typing-dots > span {
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
  opacity: .35;
  animation: typingDot 1.1s ease-in-out infinite;
}
.typing-dots > span:nth-child(2) { animation-delay: .18s; }
.typing-dots > span:nth-child(3) { animation-delay: .36s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: .35; }
  30%           { transform: translateY(-3px); opacity: .9; }
}

/* Blinking caret shown at the end of an in-progress typed message */
.typing-caret {
  display: inline-block;
  margin-left: 1px;
  font-weight: 300;
  color: rgba(10,10,11,.45);
  animation: typingCaret 1s steps(1) infinite;
}
@keyframes typingCaret {
  50% { opacity: 0; }
}

/* DSWordmark: invert the PNG when placed on a dark background */
img[data-tone="paper"] { filter: invert(1) brightness(1.05); }

/* ─── Join mosaic (prova de escala) ─────────────────────────────────── */
.join-section {
  position: relative;
  background: #f7f7f8;
  padding: 56px 48px 48px;
  box-sizing: border-box;
}
.join-mosaic {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  grid-template-rows: repeat(7, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 1400px;
  height: calc(100svh - 80px - 112px);
  margin: 0 auto;
}
.join-tile {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.join-section.is-in .join-tile {
  animation: joinEnter 1.45s cubic-bezier(.22,1.12,.36,1) var(--jd, 0s) both;
}
@keyframes joinEnter {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translate3d(var(--jx, 0), var(--jy, 0), 0) scale(.18) rotate(var(--jrot, 0deg));
  }
  64% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(calc(var(--jx, 0) * -.06), calc(var(--jy, 0) * -.06), 0) scale(1.08) rotate(0deg);
  }
  100% {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
.join-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center;
}
/* Foto ↔ cor chapada, em loop. Tiles --swap começam com foto; --swap-inv
   começam cor e revelam a foto na fase oposta, pra o mosaico nunca parar. */
.join-tile--swap img,
.join-tile--swap-inv img { will-change: opacity, transform; }
.join-tile--swap-inv img { opacity: 0; }
.join-section.is-in .join-tile--swap img {
  animation: joinPhotoCycle 8.5s ease-in-out calc(1.55s + var(--jd, 0s) + var(--jcycle, 0s)) infinite;
}
.join-section.is-in .join-tile--swap-inv img {
  animation: joinPhotoCycleInv 8.5s ease-in-out calc(1.55s + var(--jd, 0s) + var(--jcycle, 0s)) infinite;
}
@keyframes joinPhotoCycle {
  0%, 14%  { opacity: 1; transform: scale(1); }
  26%, 52% { opacity: 0; transform: scale(1.07); }
  64%, 100%{ opacity: 1; transform: scale(1); }
}
@keyframes joinPhotoCycleInv {
  0%, 14%  { opacity: 0; transform: scale(1.07); }
  26%, 52% { opacity: 1; transform: scale(1); }
  64%, 100%{ opacity: 0; transform: scale(1.07); }
}
.join-tile--icon {
  background: #fff;
  box-shadow: 0 1px 0 rgba(10,10,11,.04), 0 0 0 1px rgba(10,10,11,.06);
}
.join-tile--icon img {
  width: 58%;
  height: 58%;
  object-fit: contain;
}
.join-section.is-in .join-tile--icon img {
  animation: joinIconPulse 5.5s ease-in-out 1.1s infinite;
}
@keyframes joinIconPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.1); }
}
.join-tile--circle { border-radius: 999px; }
.join-tile--round { border-radius: 14px; }
.join-tile--sq { border-radius: 8px; }
.join-tile--round-tr { border-radius: 14px 48% 14px 14px; }
.join-tile--round-tl { border-radius: 48% 14px 14px 14px; }
.join-tile--round-bl { border-radius: 14px 14px 14px 48%; }
.join-tile--quarter-tr { border-radius: 0 100% 0 0; }
.join-tile--quarter-br { border-radius: 0 0 100% 0; }
.join-tile--quarter-bl { border-radius: 0 0 0 100%; }
.join-tile--half-r { border-radius: 0 999px 999px 0; }
.join-tile--half-l { border-radius: 999px 0 0 999px; }
.join-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  z-index: 2;
  padding: 24px 20px;
}
.join-section.is-in .join-copy {
  animation: joinCopyIn 1.1s cubic-bezier(.2,.7,.2,1) .4s both;
}
@keyframes joinCopyIn {
  0%   { opacity: 0; transform: translateY(22px) scale(.97); filter: blur(8px); }
  100% { opacity: 1; transform: none; filter: none; }
}
.join-copy::before {
  content: "";
  position: absolute;
  width: min(820px, 86%);
  height: min(280px, 48%);
  background: radial-gradient(ellipse at center, rgba(247,247,248,.97) 0%, rgba(247,247,248,.88) 38%, rgba(247,247,248,.45) 62%, transparent 78%);
  z-index: -1;
  pointer-events: none;
}
.join-copy h2 { max-width: 18ch; }
.join-sub {
  margin-top: 16px;
  max-width: 42rem;
  font-size: 17px;
  line-height: 1.55;
  color: #56565d;
}
@media (min-width: 768px) {
  .join-sub { font-size: 18px; }
}
@media (max-width: 767px) {
  .join-section { padding: 28px 16px 24px; }
  /* 4×8 com células ~quadradas. Peças com `m` ocupam --mc/--mr; o resto some. */
  .join-mosaic {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(8, minmax(0, 1fr));
    height: calc(100svh - 64px - 52px);
    gap: 8px;
  }
  .join-tile--hide-sm { display: none; }
  .join-tile:not(.join-tile--hide-sm) {
    grid-column: var(--mc) / span var(--mw) !important;
    grid-row: var(--mr) / span var(--mh) !important;
    --jx: 0px;
    --jy: 10px;
    --jrot: 0deg;
  }
  .join-copy { padding: 0 24px; }
  .join-copy::before {
    width: min(520px, 96%);
    height: min(240px, 38%);
  }
  .join-sub { margin-top: 12px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .join-tile,
  .join-tile img,
  .join-tile--icon img,
  .join-copy {
    animation: none !important;
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ─── Vídeo de produto — chrome HUD Deepstrat ───────────────────────── */
.odoo-video-section {
  background: #342c52;
  color: #fff;
  padding: 64px 0 80px;
}
.odoo-video-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 70% at 50% -10%, rgba(154,123,227,.42), transparent 58%),
    radial-gradient(ellipse 55% 50% at 12% 88%, rgba(110,71,200,.26), transparent 68%),
    radial-gradient(ellipse 50% 45% at 92% 80%, rgba(154,123,227,.22), transparent 70%);
}
.odoo-video-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.odoo-video-icon {
  position: absolute;
  border-radius: 14px;
  opacity: .42;
  filter: drop-shadow(0 10px 18px rgba(10,10,11,.18));
  animation: odooVideoFloat 7.5s ease-in-out infinite;
}
@keyframes odooVideoFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .odoo-video-icon { animation: none; }
}
.odoo-video-note {
  margin: 10px 0 0;
  max-width: 36em;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255,255,255,.58);
  letter-spacing: .01em;
}
.odoo-video-shell {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #14141a 0%, #0c0c10 100%);
  border: 1px solid rgba(255,255,255,.42);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.18),
    0 30px 50px rgba(0,0,0,.45),
    0 0 80px rgba(154,123,227,.12);
}
.odoo-video-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.odoo-video-traffic { display: flex; gap: 7px; flex-shrink: 0; }
.odoo-video-traffic > span {
  width: 8px; height: 8px; border-radius: 999px;
}
.odoo-video-traffic > span:nth-child(1) { background: #ff5f57; }
.odoo-video-traffic > span:nth-child(2) { background: #febc2e; }
.odoo-video-traffic > span:nth-child(3) { background: #28c840; }
.odoo-video-chrome-title {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .04em;
  color: rgba(255,255,255,.62);
  white-space: nowrap;
  overflow: hidden;
}
.odoo-video-chrome-title b { color: rgba(255,255,255,.88); font-weight: 500; }
.odoo-video-chrome-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  flex-shrink: 0;
}
.odoo-video-chrome-status i {
  width: 6px; height: 6px; border-radius: 999px;
  background: #7bffa3;
  box-shadow: 0 0 8px rgba(123,255,163,.7);
  display: block;
}
.odoo-video-fs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 4px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.88);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.odoo-video-fs:hover:not(:disabled) {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.4);
  color: #fff;
}
.odoo-video-fs:disabled { opacity: .4; cursor: default; }
.odoo-video-fs:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(154,123,227,.55);
}
.odoo-video-frame {
  position: relative;
  background: #0c0c10;
  aspect-ratio: 16 / 9;
}
.odoo-video-frame video,
.odoo-video-ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.odoo-video-frame video:fullscreen,
.odoo-video-frame video:-webkit-full-screen {
  object-fit: contain;
  background: #000;
}
.odoo-video-ph {
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(154,123,227,.18), transparent 70%),
    #14141a;
}

/* Cards do pacote /cobranca — acento HUD + hover */
.pkg-card {
  overflow: hidden;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s, border-color .4s;
}
.pkg-card-glow {
  position: absolute;
  inset: auto auto -40% -30%;
  width: 70%;
  height: 70%;
  pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 68%);
  opacity: .7;
  transition: opacity .4s;
}
.pkg-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px -22px rgba(110,71,200,.38), 0 8px 20px -10px rgba(10,10,11,.12);
  border-color: color-mix(in srgb, var(--accent) 42%, #e1e1e5);
}
.pkg-card:hover .pkg-card-glow { opacity: 1; }
.pkg-card-n {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.pkg-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}
.pkg-card--dark:hover {
  box-shadow: 0 22px 48px -22px rgba(154,123,227,.45);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.pkg-card--dark .pkg-card-icon {
  background: rgba(154,123,227,.2);
  color: #d2bff5;
}
.pkg-card--dark .pkg-card-n { color: #d2bff5; }
.pkg-card--dark .pkg-card-glow {
  background: radial-gradient(circle, rgba(154,123,227,.22), transparent 68%);
}
.pkg-conform {
  background: linear-gradient(105deg, var(--accent-soft) 0%, #f7f7f8 42%);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, #e1e1e5);
  overflow: hidden;
}
.pkg-conform::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
}
