/* ==========================================================================
   SISTEMA UNIFICADO DE NAVEGAÇÃO (7 MEGA-MENUS REAIS + BLUR BACKDROP)
   + DESIGN SYSTEM OFICIAL G4 BUSINESS APLICADO DETERMINISTICAMENTE
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

h1 .bg-clip-text {
  background-image: linear-gradient(90deg, rgba(0, 128, 255, 1) 0%, rgba(255, 0, 128, 1) 50%, rgba(255, 128, 0, 1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tz-switcher-bar,
#apps-card-primary-btn,
#ai-card-primary-btn,
#bots-card-primary-btn,
#voice-card-primary-btn,
#chat-card-primary-btn {
  display: none !important;
}

.tz-switcher-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tz-switch-pill {
  padding: 4px 11px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 11px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
}

.tz-switch-pill:hover {
  border-color: #B9915B;
  color: #FFFFFF;
}

.tz-switch-pill.active {
  background: #B9915B;
  color: #031A26;
  border-color: #B9915B;
  font-weight: 800;
}

/* Fundo Escurecido + Desfocado Idêntico ao Print de www.criandonegocioia.com.br */
.tz-megamenu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.36);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  z-index: 450;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.tz-megamenu-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.tz-nav-trigger {
  user-select: none;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.tz-nav-trigger.active {
  background-color: #F4F4F5 !important;
}

.tz-nav-trigger.active svg.lucide-chevron-down {
  transform: rotate(180deg);
}

/* Container Universal dos 7 Mega-Menus */
.tz-mega-host {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  max-width: calc(100vw - 24px);
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  z-index: 1100;
  color: #09090B;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
}

.tz-mega-host.open {
  display: block;
  animation: tzMegaFade 0.16s ease-out;
}

@keyframes tzMegaFade {
  from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.tz-mega-body {
  display: grid;
  grid-template-columns: 1.38fr 0.92fr;
  gap: 22px;
  padding: 24px 26px;
  align-items: stretch;
}

/* Grid SuperApp 2x3 */
.tz-superapp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}

.tz-superapp-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #09090B;
  transition: background-color 0.15s ease;
}

.tz-superapp-card:hover {
  background-color: #F4F4F5;
}

.tz-superapp-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.tz-superapp-head img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: contain;
}

.tz-superapp-tzbadge {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1.5px solid #18181B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #09090B;
  background: #FFFFFF;
}

.tz-superapp-title {
  font-size: 13.5px;
  color: #18181B;
}

.tz-superapp-title b {
  font-weight: 700;
}

.tz-superapp-desc {
  font-size: 12px;
  color: #71717A;
  line-height: 1.35;
}

/* Colunas Duplas (LXP, AI, Agentes de IA, Voice, Bots, Chat) */
.tz-cols-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.tz-col-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #71717A;
  margin: 0 0 10px 8px;
}

.tz-col-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tz-col-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #09090B;
  transition: background-color 0.15s ease;
}

.tz-col-item:hover,
.tz-col-item.active {
  background-color: #F4F4F5;
}

.tz-col-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #F4F4F5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  font-size: 15px;
}

.tz-col-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tz-col-item h4 {
  font-size: 13px;
  font-weight: 600;
  color: #09090B;
  margin: 0 0 2px 0;
  line-height: 1.25;
}

.tz-col-item p {
  font-size: 11.5px;
  color: #71717A;
  margin: 0;
  line-height: 1.32;
}

/* Card de Preview à Direita do Mega-Menu */
.tz-mega-aside {
  background: #FAFAFA;
  border: 1px solid #E4E4E7;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: #09090B;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}

.tz-mega-aside:hover {
  border-color: #B9915B;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.tz-mega-aside.dark-aside {
  background: #09090B;
  border-color: #27272A;
  color: #FFFFFF;
}

.tz-mega-aside.dark-aside p {
  color: #A1A1AA !important;
}

.tz-aside-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tz-aside-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
}

.tz-aside-arrow {
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.tz-mega-aside.dark-aside .tz-aside-arrow {
  border-color: rgba(255, 255, 255, 0.25);
}

.tz-mega-aside h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px 0;
}

.tz-mega-aside p {
  font-size: 12.5px;
  color: #52525B;
  margin: 0;
  line-height: 1.4;
}

.tz-aside-imgwrap {
  margin-top: 14px;
  width: 100%;
  height: 175px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tz-aside-imgwrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.tz-mega-footer {
  background: linear-gradient(90deg, #090D16 0%, #102560 100%);
  color: #FFFFFF;
  padding: 10px 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  flex-wrap: wrap;
}

.tz-mega-footer a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 500;
}

.tz-mega-footer a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.tz-mega-footer .sep {
  color: rgba(255, 255, 255, 0.28);
}

/* Gaveta Mobile */
.tz-mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(3, 26, 38, 0.6);
  backdrop-filter: blur(6px);
}

.tz-mobile-drawer.open {
  display: flex;
  justify-content: flex-end;
}

.tz-mobile-panel {
  width: 330px;
  max-width: 88vw;
  height: 100%;
  background: #FFFFFF;
  color: #09090B;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tz-mobile-panel a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: #18181B;
  text-decoration: none;
}

.tz-mobile-panel a:hover {
  background: #F4F4F5;
}

/* Modal Comercial Universal */
.tz-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(3, 26, 38, 0.72);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.tz-modal-overlay.open {
  display: flex;
}

.tz-modal-card {
  width: 100%;
  max-width: 460px;
  background: #031A26;
  color: #FFFFFF;
  border: 1.5px solid #B9915B;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  position: relative;
}

.tz-modal-card input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  color: #FFFFFF;
  font-size: 14px;
  margin-bottom: 10px;
}

/* Widgets Flutuantes */
.tz-floating-wa-left {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 800;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: #09090B;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
}

.tz-floating-sdr-right {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tz-sdr-pill {
  background: #09090B;
  color: #FFFFFF;
  border-radius: 9999px;
  padding: 5px 8px 5px 6px;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.tz-sdr-pill img {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  object-fit: cover;
}

.tz-sdr-call-btn {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: #FFFFFF;
  color: #09090B;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  border: none;
}

/* ==========================================================================
   CAMADA DESIGN SYSTEM G4 BUSINESS (.g4-theme)
   ========================================================================== */

.cnai-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cnai-brand-lockup img {
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  object-fit: cover;
  border: 1.5px solid #B9915B;
  background: #FFFFFF;
}

.cnai-brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
  text-align: left;
}

.cnai-brand-title strong {
  font-size: 13.5px;
  font-weight: 800;
  color: #09090B;
  letter-spacing: -0.02em;
}

.cnai-brand-title span {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #B9915B;
}

body.g4-theme {
  --g4-header-navy: #031A26;
  --g4-petrol-primary: #001F35;
  --g4-petrol-secondary: #184560;
  --g4-cream-editorial: #F5F4F3;
  --g4-camel-gold: #B9915B;
  --g4-camel-hover: #CFA66E;
  --g4-crimson: #842E20;
  --g4-charcoal: #2C2D33;

  background-color: var(--g4-cream-editorial);
  color: var(--g4-charcoal);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
}

body.g4-theme header[data-marketing-site-header="true"] > nav {
  background-color: var(--g4-header-navy) !important;
  border-bottom: 1px solid rgba(185, 145, 91, 0.3) !important;
}

body.g4-theme header[data-marketing-site-header="true"] > nav h3,
body.g4-theme header[data-marketing-site-header="true"] > nav svg.lucide-chevron-down,
body.g4-theme header[data-marketing-site-header="true"] > nav svg.lucide-menu {
  color: #F5F4F3 !important;
}

body.g4-theme .tz-nav-trigger:hover,
body.g4-theme .tz-nav-trigger.active {
  background-color: rgba(185, 145, 91, 0.18) !important;
}

body.g4-theme header .cnai-brand-title strong,
body.g4-theme footer .cnai-brand-title strong {
  color: #FFFFFF !important;
}

body.g4-theme #nav-pricing-btn {
  background-color: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  color: #FFFFFF !important;
  border-radius: 8px !important;
}

body.g4-theme #nav-pricing-btn:hover {
  border-color: var(--g4-camel-gold) !important;
  color: var(--g4-camel-gold) !important;
}

body.g4-theme #nav-commercial-btn,
body.g4-theme button.bg-black,
body.g4-theme a.bg-black,
body.g4-theme a.bg-primary {
  background-color: var(--g4-camel-gold) !important;
  color: var(--g4-header-navy) !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
}

body.g4-theme #nav-commercial-btn:hover,
body.g4-theme button.bg-black:hover,
body.g4-theme a.bg-black:hover,
body.g4-theme a.bg-primary:hover {
  background-color: var(--g4-camel-hover) !important;
}

body.g4-theme h1 .bg-clip-text,
body.g4-theme .tz-agent-typed {
  background-image: linear-gradient(90deg, #001F35 0%, #B9915B 55%, #842E20 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  font-family: 'Libre Baskerville', Georgia, serif !important;
  font-style: italic !important;
}

body.g4-theme .bg-black h1 .bg-clip-text,
body.g4-theme section.bg-black h1 span[style*="linear-gradient"] {
  background-image: linear-gradient(90deg, #F5F4F3 0%, #B9915B 65%, #FFCB00 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

body.g4-theme #agentes {
  background: linear-gradient(180deg, #001F35 0%, #0B2D45 55%, #031A26 100%) !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  width: 100vw !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
  padding-top: 36px !important;
  padding-bottom: 48px !important;
  color: #FFFFFF !important;
}

body.g4-theme #agentes .text-\[\#191A18\],
body.g4-theme #agentes .text-gray-900,
body.g4-theme #agentes .text-gray-700,
body.g4-theme #agentes .inline-block.text-3xl {
  color: #FFFFFF !important;
}

body.g4-theme #agentes .inline-block.text-3xl span {
  font-family: 'Libre Baskerville', Georgia, serif !important;
  font-style: italic !important;
  color: var(--g4-camel-gold) !important;
}

body.g4-theme #agentes p.text-gray-600,
body.g4-theme #agentes .text-gray-500 {
  color: #CBD5E1 !important;
}

body.g4-theme #agentes .agents-carousel-scroll button span.border {
  border-color: rgba(185, 145, 91, 0.45) !important;
  background-color: rgba(3, 26, 38, 0.65) !important;
  color: #F5F4F3 !important;
}

body.g4-theme .tz-mega-footer {
  background: linear-gradient(90deg, #031A26 0%, #001F35 100%) !important;
  border-top: 1px solid rgba(185, 145, 91, 0.35);
}

body.g4-theme footer {
  background-color: var(--g4-header-navy) !important;
  color: #CBD5E1 !important;
  border-top: 1px solid rgba(185, 145, 91, 0.32) !important;
}

body.g4-theme footer h3,
body.g4-theme footer span,
body.g4-theme footer a,
body.g4-theme footer p {
  color: #E2E8F0 !important;
}

body.g4-theme footer a:hover {
  color: var(--g4-camel-gold) !important;
}

body.g4-theme header img[alt="Toolzz Logo"],
body.g4-theme footer img[alt="Toolzz Logo"] {
  filter: brightness(0) invert(1) !important;
}

body.g4-theme .tz-sdr-pill {
  background: var(--g4-header-navy) !important;
  border-color: var(--g4-camel-gold) !important;
}

@media (max-width: 920px) {
  .tz-mega-body,
  .tz-superapp-grid,
  .tz-cols-wrap {
    grid-template-columns: 1fr;
  }
}
