/* ───────── DESIGN SYSTEM & VARIÁVEIS ───────── */
:root {
  /* Cores Globais */
  --bg: #e7e3ff;
  /* Lavanda suave premium */
  --preto: #0e0a1b;
  /* Preto profundo levemente violeta */
  --preto-rgb: 14, 10, 27;
  --preto-glass: rgba(14, 10, 27, 0.75);

  --branco: #ffffff;
  --branco-rgb: 255, 255, 255;
  --branco-glass: rgba(255, 255, 255, 0.35);
  --branco-solid-glass: rgba(255, 255, 255, 0.85);

  --accent-purple: #7246ff;
  --accent-purple-glow: rgba(114, 70, 255, 0.4);
  --accent-cyan: #00e5ff;
  --accent-cyan-glow: rgba(0, 229, 255, 0.4);
  --accent-green: #00e676;

  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, #7246ff 0%, #00e5ff 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
  --gradient-dark-card: linear-gradient(180deg, rgba(30, 25, 50, 0.95) 0%, rgba(14, 10, 27, 0.98) 100%);

  /* Fontes */
  --font-outfit: 'Outfit', sans-serif;
  --font-poppins: 'Poppins', sans-serif;

  /* Paddings e Breakpoints */
  --padding: clamp(24px, 5vw, 64px);
  --border-radius: 28px;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Reset Geral */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-poppins);
  color: var(--preto);
  background-color: var(--bg);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ───────── PRELOADER (Webhub Inspired) ───────── */
#preloader {
  position: fixed;
  inset: 0;
  background: #06030c;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: all;
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.preloader-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, #1b0f3e 0%, #06030c 80%);
  opacity: 0.8;
  z-index: 1;
}

.preloader-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.preloader-logo {
  width: 120px;
  height: 120px;
  position: relative;
  filter: drop-shadow(0 0 16px var(--accent-purple-glow));
  animation: logoPulse 2s infinite ease-in-out;
}

.logo-svg {
  width: 100%;
  height: 100%;
}

.logo-fill {
  clip-path: inset(100% 0 0 0);
  /* Progressivamente revelado por JS */
  transition: clip-path 0.1s linear;
}

.preloader-percent {
  font-family: var(--font-outfit);
  font-size: 24px;
  font-weight: 600;
  color: var(--branco);
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  opacity: 0.9;
}

@keyframes logoPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* ───────── MENU FIXO E NAVEGAÇÃO ───────── */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px var(--padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 900;
  mix-blend-mode: difference;
  /* Inverte cores no scroll */
  color: var(--branco);
  /* Obrigatório #fff para diferença funcionar perfeitamente */
  transition: padding 0.3s ease;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: currentColor;
}

.logo-header-svg {
  width: 38px;
  height: 38px;
  fill: currentColor;
}

.logo-text {
  font-family: var(--font-outfit);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: lowercase;
}

/* Hambúrguer */
.menu-hamburguer {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: currentColor;
  position: relative;
  transition: background 0.3s ease;
}

.menu-hamburguer:hover {
  background: rgba(255, 255, 255, 0.1);
}

.line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  transition: var(--transition-smooth);
  will-change: transform, opacity;
}

/* Estados ativos do Hambúrguer */
.menu-hamburguer.active .line-top {
  transform: translateY(8px) rotate(45deg);
}

.menu-hamburguer.active .line-middle {
  opacity: 0;
  transform: scaleX(0);
}

.menu-hamburguer.active .line-bottom {
  transform: translateY(-8px) rotate(-45deg);
}

/* Fullscreen Menu Overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 850;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8vw var(--padding);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.menu-overlay-bg {
  position: absolute;
  inset: 0;
  background: rgba(14, 10, 27, 0.96);
  backdrop-filter: blur(20px);
  z-index: -1;
}

.menu-nav {
  margin-bottom: 40px;
}

.menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu-item {
  font-family: var(--font-outfit);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  color: var(--branco);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: var(--transition-smooth);
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
}

.menu-overlay.active .menu-item {
  opacity: 0.9;
  transform: translateY(0);
}

/* Stagger de entrada dos links */
.menu-overlay.active .menu-item:nth-child(1) {
  transition-delay: 0.1s;
}

.menu-overlay.active .menu-item:nth-child(2) {
  transition-delay: 0.2s;
}

.menu-overlay.active .menu-item:nth-child(3) {
  transition-delay: 0.3s;
}

.menu-overlay.active .menu-item:nth-child(4) {
  transition-delay: 0.4s;
}

.menu-overlay.active .menu-item:nth-child(5) {
  transition-delay: 0.5s;
}

.menu-overlay.active .menu-item:nth-child(6) {
  transition-delay: 0.6s;
}

.menu-overlay.active .menu-list li:nth-child(7) .menu-item {
  transition-delay: 0.7s;
}

.menu-item-acessar {
  color: var(--accent-cyan) !important;
  border-bottom: 2px dashed rgba(0, 229, 255, 0.3);
}

.menu-item-acessar:hover {
  color: var(--branco) !important;
  border-bottom-color: var(--branco);
}

.menu-item:hover {
  color: var(--accent-cyan);
  transform: translateX(12px);
}

.menu-footer {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* ───────── BOTÕES PREMIUM ───────── */
.botoes {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0 32px;
  border-radius: 30px;
  font-family: var(--font-outfit);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}

/* Botão com Expansão de Círculo (Inspiração Webhub) */
.botaoPrimario {
  position: relative;
  background: var(--preto);
  color: var(--branco);
  padding-right: 64px;
  overflow: hidden;
  z-index: 1;
}

.botaoPrimario span {
  display: inline-block;
  transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.botao-circulo {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: var(--branco);
  color: var(--preto);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), background 0.3s ease;
  z-index: -1;
}

.botao-circulo svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

/* Hover Animado */
.botaoPrimario:hover {
  color: var(--preto);
}

.botaoPrimario:hover span {
  opacity: 0;
  transform: translateX(-12px);
}

.botaoPrimario:hover .botao-circulo {
  width: calc(100% - 12px);
  background: var(--branco);
}

.botaoPrimario:hover .botao-circulo svg {
  transform: translateX(4px);
}

.botaoSecundario.transparente {
  background: rgba(255, 255, 255, 0.4);
  color: var(--preto);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
}

.botaoSecundario.transparente:hover {
  background: var(--preto);
  color: var(--branco);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(14, 10, 27, 0.15);
}

/* ───────── PADRÕES DE SEÇÃO ───────── */
section {
  width: 100%;
  padding: 100px var(--padding);
  position: relative;
  display: flex;
  flex-direction: column;
}

.section-header {
  margin-bottom: 60px;
  max-width: 700px;
}

.section-title {
  font-family: var(--font-outfit);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-top: 16px;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Badges Subtítulo */
.cardSubtitulo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 40px;
  background: rgba(114, 70, 255, 0.12);
  border: 1px solid rgba(114, 70, 255, 0.2);
  width: fit-content;
}

.cardSubtitulo img {
  width: 16px;
  height: 16px;
}

.cardSubtitulo h3 {
  font-family: var(--font-poppins);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-purple);
  letter-spacing: 0.05em;
}

.cardSubtitulo.bg-emerald {
  background: rgba(0, 229, 255, 0.1);
  border-color: rgba(0, 229, 255, 0.2);
}

.cardSubtitulo.bg-emerald h3 {
  color: #0097a7;
}

.cardSubtitulo.bg-gold {
  background: rgba(255, 179, 0, 0.12);
  border-color: rgba(255, 179, 0, 0.2);
}

.cardSubtitulo.bg-gold h3 {
  color: #b57c00;
}

/* ───────── 1. SEÇÃO HERO ───────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 140px;
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle at center, #f1edff 0%, var(--bg) 100%);
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.glow-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(114, 70, 255, 0.08) 0%, transparent 70%);
  z-index: 2;
  pointer-events: none;
}

.hero-container {
  max-width: 860px;
  width: 100%;
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

.hero-container .botoes {
  justify-content: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--branco-solid-glass);
  padding: 8px 16px;
  border-radius: 40px;
  font-family: var(--font-outfit);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 16px rgba(114, 70, 255, 0.06);
}

.tag-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  animation: beacon 1.8s infinite;
}

@keyframes beacon {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
  }

  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(0, 230, 118, 0);
  }

  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
  }
}

.hero-title {
  font-family: var(--font-outfit);
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--preto);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.6;
  color: rgba(14, 10, 27, 0.75);
  margin-bottom: 40px;
  max-width: 650px;
}

/* Dashboard Mini-Simulador */
.hero-dashboard {
  width: 100%;
  max-width: 600px;
  background: var(--gradient-dark-card);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 60px;
  box-shadow: 0 24px 64px rgba(14, 10, 27, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 5;
}

.dash-header {
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dots {
  display: flex;
  gap: 6px;
  margin-right: 20px;
}

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dots span.red {
  background: #ff5f56;
}

.dots span.yellow {
  background: #ffbd2e;
}

.dots span.green {
  background: #27c93f;
}

.dash-title {
  font-family: var(--font-outfit);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

.dash-body {
  padding: 24px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  color: #cfc9e2;
  line-height: 1.7;
}

.code-line {
  margin-bottom: 4px;
}

.code-line-indent {
  margin-left: 20px;
  margin-bottom: 4px;
}

.keyword {
  color: #ff79c6;
}

.variable {
  color: #f8f8f2;
}

.class {
  color: #50fa7b;
}

.function {
  color: #8be9fd;
}

.string {
  color: #f1fa8c;
}

.text-success {
  color: var(--accent-green);
}

/* ───────── 2. SEÇÃO SERVIÇOS (Inverted Curves Badge) ───────── */
.servicos {
  background-color: var(--bg);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 20px;
}

.card-item {
  background: var(--gradient-card);
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 12px 32px rgba(114, 70, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.card-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(114, 70, 255, 0.08);
}

.cardBordaInterna {
  padding: 40px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Badge com Curva Inversa (Inverted Curves Apple style) */
.cardBordaInterna .icone {
  position: absolute;
  right: 0;
  top: 0;
  background-color: var(--bg);
  /* Casca o fundo do card para combinar com o bg geral */
  width: 80px;
  height: 80px;
  border-radius: 0px 0px 0px 32px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.icone-badge {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--branco);
  box-shadow: 0 8px 20px rgba(14, 10, 27, 0.1);
}

/* Cores dos Badges */
.bg-wpp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.bg-email {
  background: linear-gradient(135deg, #ff4081 0%, #d81b60 100%);
}

.bg-tasks {
  background: linear-gradient(135deg, #00b0ff 0%, #0091ea 100%);
}

.bg-rec {
  background: linear-gradient(135deg, #7c4dff 0%, #6200ea 100%);
}

.bg-systems {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
}

.bg-outbound {
  background: linear-gradient(135deg, #ff9900 0%, #ff5500 100%);
}

.icone-badge svg {
  width: 28px;
  height: 28px;
}

/* Efeito Curva Inversa Superior Esquerda */
.cardBordaInterna:before {
  content: "";
  width: 32px;
  height: 32px;
  position: absolute;
  background-color: transparent;
  border-radius: 50%;
  right: 80px;
  top: 0;
  box-shadow: 16px -16px 0px var(--bg);
  pointer-events: none;
}

/* Efeito Curva Inversa Inferior Direita */
.cardBordaInterna:after {
  content: "";
  width: 32px;
  height: 32px;
  position: absolute;
  background-color: transparent;
  border-radius: 50%;
  right: 0px;
  top: 80px;
  box-shadow: 16px -16px 0px var(--bg);
  pointer-events: none;
}

.cardBordaInterna h3 {
  font-family: var(--font-outfit);
  font-size: 24px;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--preto);
}

.cardBordaInterna p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ───────── 3. SEÇÃO SIMULADORES INTERATIVOS ───────── */
.simuladores {
  background: var(--branco);
}

.simulador-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--bg);
  border: 1px solid rgba(114, 70, 255, 0.1);
  color: var(--preto);
  font-family: var(--font-outfit);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 40px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  transform: translateY(-2px);
}

.tab-btn.active {
  background: var(--preto);
  color: var(--branco);
  border-color: var(--preto);
  box-shadow: 0 8px 24px rgba(14, 10, 27, 0.15);
}

.simulador-canvas {
  width: 100%;
  min-height: 500px;
  background: var(--bg);
  border-radius: var(--border-radius);
  border: 1px solid rgba(114, 70, 255, 0.15);
  overflow: hidden;
  padding: 40px;
  position: relative;
}

.tab-content {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.tab-content.active {
  display: block;
  opacity: 1;
}

/* ───────── WORKFLOW AUTOMATION PREMIUM WORKSPACE ───────── */
.flow-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.flow-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-outfit);
}

.bg-wpp-tag {
  background: rgba(37, 211, 102, 0.12);
  color: #128c7e;
  border: 1px solid rgba(37, 211, 102, 0.25);
}

.bg-rec-tag {
  background: rgba(124, 77, 255, 0.12);
  color: #6200ea;
  border: 1px solid rgba(124, 77, 255, 0.25);
}

.bg-email-tag {
  background: rgba(255, 64, 129, 0.12);
  color: #d81b60;
  border: 1px solid rgba(255, 64, 129, 0.25);
}

.flow-metric {
  font-size: 13px;
  font-weight: 700;
  color: #0097a7;
  font-family: var(--font-outfit);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Painel de Payload do Agente IA (Extrações de IA em Tempo Real) */
.ai-payload-box {
  background: rgba(14, 10, 27, 0.03);
  border: 1px solid rgba(14, 10, 27, 0.06);
  border-radius: 18px;
  padding: 18px;
  font-family: var(--font-poppins);
  transition: var(--transition-smooth);
  min-height: 112px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
}

.ai-payload-box::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-purple);
  opacity: 0.7;
}

.payload-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-purple);
  letter-spacing: 0.06em;
}

.payload-body {
  font-size: 13px;
  line-height: 1.6;
  color: var(--preto);
}

.payload-placeholder {
  color: rgba(14, 10, 27, 0.45);
  font-style: italic;
}

.payload-item {
  margin-bottom: 6px;
  display: flex;
  gap: 8px;
  animation: payloadFadeIn 0.3s ease-out;
  min-width: 0;
}

@keyframes payloadFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.payload-key {
  font-weight: 600;
  color: var(--preto);
  flex-shrink: 0;
}

.payload-val {
  color: rgba(14, 10, 27, 0.85);
  word-break: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}

/* Painel de Metadados Lateral do Simulador */
.simulator-meta {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.simulator-meta h4 {
  font-family: var(--font-outfit);
  font-size: 26px;
  font-weight: 700;
  color: var(--preto);
}

.sim-meta-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.flow-interactive-control {
  margin-top: 5px;
  margin-bottom: 5px;
}

/* Outros Badges de cores auxiliares */
.bg-purple {
  background: linear-gradient(135deg, #9d7eff 0%, #7246ff 100%);
}

.bg-blue {
  background: linear-gradient(135deg, #00e5ff 0%, #00b0ff 100%);
}

/* SIMULADOR DE WORKFLOW MULTICANAL */
.flow-simulator {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.flow-canvas {
  width: 100%;
  height: 490px;
  background-image: radial-gradient(rgba(114, 70, 255, 0.06) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  background-color: var(--branco-solid-glass);
  border-radius: var(--border-radius);
  border: 1px solid rgba(114, 70, 255, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 32px;
  position: relative;
  box-shadow: 0 16px 48px rgba(14, 10, 27, 0.04);
  overflow: hidden;
}

.flow-node {
  width: 100%;
  max-width: 320px;
  background: var(--branco);
  padding: 14px 18px;
  border-radius: 18px;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(14, 10, 27, 0.02);
  transition: var(--transition-smooth);
  position: relative;
  z-index: 2;
  cursor: default;
}

.flow-node:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 10, 27, 0.04);
}

.flow-node.active {
  border-color: rgba(114, 70, 255, 0.4);
  box-shadow: 0 8px 24px rgba(114, 70, 255, 0.05);
}

.flow-node.running {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.35);
  transform: scale(1.04);
  z-index: 5;
}

.flow-node.success {
  border-color: var(--accent-green);
  box-shadow: 0 8px 24px rgba(0, 230, 118, 0.12);
}

.node-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--branco);
}

.node-icon svg {
  width: 22px;
  height: 22px;
}

.node-icon.bg-blue {
  background: #00b0ff;
}

.node-icon.bg-violet {
  background: #7c4dff;
}

.node-icon.bg-green {
  background: #00e676;
}

.node-details {
  display: flex;
  flex-direction: column;
}

.node-type {
  font-family: var(--font-outfit);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-purple);
}

.node-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--preto);
  margin-top: 2px;
}

.node-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(14, 10, 27, 0.15);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  transition: background 0.3s;
}

.flow-node.active .node-status-dot {
  background: rgba(114, 70, 255, 0.5);
}

.flow-node.running .node-status-dot {
  background: var(--accent-cyan);
  animation: beacon 1.2s infinite;
}

.flow-node.success .node-status-dot {
  background: var(--accent-green);
  animation: none;
}

/* Conectores */
.flow-connector {
  width: 2px;
  height: 40px;
  background: rgba(14, 10, 27, 0.1);
  position: relative;
}

.connector-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-purple);
  position: absolute;
  left: -2px;
  top: 0;
  opacity: 0;
}

.flow-connector.active .connector-pulse {
  opacity: 1;
  animation: slidePulse 1.2s infinite linear;
}

@keyframes slidePulse {
  0% {
    top: 0;
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}

/* Console Logs */
.flow-console {
  background: #06030c;
  border-radius: 16px;
  padding: 16px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  color: #8be9fd;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-height: 180px;
  overflow-y: auto;
  overflow-x: auto;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
  width: 100%;
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

.console-header {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 11px;
}

.log-row {
  margin-bottom: 4px;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

.log-row.info {
  color: rgba(255, 255, 255, 0.6);
}

.log-row.success {
  color: var(--accent-green);
}

.log-row.warning {
  color: #ffb86c;
}

/* ───────── 4. SEÇÃO CALCULADORA ROI ───────── */
.economia {
  background-color: var(--preto);
  color: var(--branco);
  overflow: hidden;
}

.glow-bg-radial {
  position: absolute;
  left: -10%;
  bottom: -20%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.12) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.economia-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 5;
}

.economia-text h2 {
  font-family: var(--font-outfit);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
  line-height: 1.15;
}

.economia-text p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
}

/* Sliders */
.sliders-box {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
}

.label-name {
  color: rgba(255, 255, 255, 0.85);
}

.label-val {
  color: var(--accent-cyan);
  font-family: var(--font-outfit);
  font-weight: 700;
  font-size: 16px;
}

/* Custom Range Input */
.range-input {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-cyan-glow);
  transition: transform 0.1s;
}

.range-input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Resultados da Economia */
.economia-results {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.result-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
  padding: 32px;
  transition: var(--transition-smooth);
}

.result-card.gradient-glow {
  background: linear-gradient(135deg, rgba(114, 70, 255, 0.15) 0%, rgba(0, 229, 255, 0.05) 100%);
  border-color: rgba(114, 70, 255, 0.25);
  box-shadow: 0 16px 40px rgba(114, 70, 255, 0.15);
}

.res-subtitle {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 8px;
}

.res-subtitle.text-light {
  color: var(--accent-cyan);
}

.res-title {
  font-family: var(--font-outfit);
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--branco);
  margin-bottom: 12px;
}

.res-title.text-light {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.res-description {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

.res-description.text-light {
  color: rgba(255, 255, 255, 0.8);
}

/* ───────── 5. SEÇÃO FAQ ───────── */
.faq {
  background: var(--bg);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--branco-solid-glass);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(114, 70, 255, 0.02);
  transition: var(--transition-smooth);
}

.faq-item:hover {
  box-shadow: 0 8px 24px rgba(114, 70, 255, 0.04);
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-family: var(--font-outfit);
  font-size: clamp(16px, 2.2vw, 19px);
  font-weight: 700;
  color: var(--preto);
  cursor: pointer;
}

.faq-icon {
  width: 28px;
  height: 28px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-poppins);
  font-size: 16px;
  font-weight: 500;
  transition: var(--transition-smooth);
  color: var(--accent-purple);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--preto);
  color: var(--branco);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-answer-inner {
  padding: 0 24px 24px 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ───────── 6. SEÇÃO CONTATO ───────── */
.contato {
  background: var(--branco);
}

.contato-card {
  width: 100%;
  background: var(--bg);
  border-radius: var(--border-radius);
  border: 1px solid rgba(114, 70, 255, 0.15);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(114, 70, 255, 0.05);
}

.contato-info {
  padding: 60px;
  background: radial-gradient(circle at 10% 10%, #f1edff 0%, var(--bg) 80%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contato-info h2 {
  font-family: var(--font-outfit);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.contato-info p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.contato-meta {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-item strong {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--accent-purple);
  letter-spacing: 0.05em;
}

.meta-item span {
  font-family: var(--font-outfit);
  font-size: 18px;
  font-weight: 600;
  color: var(--preto);
}

.contato-form-wrapper {
  padding: 60px;
  background: var(--branco);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contato-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Floating Labels Forms */
.form-group {
  position: relative;
  width: 100%;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(14, 10, 27, 0.12);
  border-radius: 14px;
  font-family: var(--font-poppins);
  font-size: 15px;
  background: var(--bg);
  transition: var(--transition-smooth);
  color: var(--preto);
}

.form-group textarea {
  resize: none;
}

.form-group label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition-smooth);
}

.form-group textarea~label {
  top: 24px;
  transform: none;
}

/* Floating Label Animation triggers */
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-purple);
  background: var(--branco);
  box-shadow: 0 8px 24px rgba(114, 70, 255, 0.05);
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
  top: -10px;
  left: 10px;
  transform: scale(0.85);
  background: var(--branco);
  padding: 0 8px;
  color: var(--accent-purple);
  font-weight: 600;
  border-radius: 4px;
}

.block-btn {
  width: 100%;
}

/* ───────── RODAPÉ ───────── */
footer {
  background: var(--preto);
  color: var(--branco);
  padding: 80px var(--padding) 40px var(--padding);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  margin-bottom: 60px;
  align-items: flex-start;
}

.footer-brand {
  max-width: 400px;
}

.footer-brand p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin-top: 20px;
}

.footer-newsletter h4 {
  font-family: var(--font-outfit);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-newsletter p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  margin-bottom: 24px;
}

.newsletter-input-group {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 6px;
  overflow: hidden;
  max-width: 500px;
}

.newsletter-input-group input {
  flex: 1;
  background: none;
  border: none;
  color: var(--branco);
  font-family: var(--font-poppins);
  font-size: 14px;
  padding: 0 16px;
}

.newsletter-input-group input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.newsletter-input-group button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--branco);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.newsletter-input-group button svg {
  width: 20px;
  height: 20px;
  color: var(--preto);
}

.newsletter-input-group button:hover {
  background: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 40px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* ───────── TOAST NOTIFICATIONS ───────── */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: var(--preto);
  color: var(--branco);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 24px;
  border-radius: 16px;
  font-family: var(--font-poppins);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastIn 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  transition: opacity 0.3s, transform 0.3s;
}

@keyframes toastIn {
  0% {
    transform: translateY(40px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.toast.success {
  border-left: 4px solid var(--accent-green);
}

.toast.error {
  border-left: 4px solid #ff5f56;
}

/* ───────── ANIMAÇÃO DO BANNER DE AUTOMAÇÃO ───────── */
.hero-automation-graphic {
  position: absolute;
  right: clamp(16px, 4vw, 80px);
  top: 38%;
  transform: translateY(-50%);
  width: 480px;
  height: 480px;
  z-index: 3;
  display: block;
  animation: heroFloat 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroFloat {

  0%,
  100% {
    transform: translateY(-50%) translateY(-15px) rotate(0deg);
  }

  50% {
    transform: translateY(-50%) translateY(15px) rotate(1deg);
  }
}

/* Animação dos caminhos laser */
.laser-path {
  stroke-dashoffset: 60;
  animation: flowLaser 3s linear infinite;
}

.path-openai {
  animation-duration: 2.2s;
}

.path-gemini {
  animation-duration: 2.5s;
}

.path-claude {
  animation-duration: 2.8s;
}

.path-email {
  animation-duration: 2.4s;
}

.path-wpp {
  animation-duration: 2.6s;
}

.path-n8n {
  animation-duration: 2.9s;
}

.path-make {
  animation-duration: 2.3s;
}

.path-python {
  animation-duration: 2.7s;
}

@keyframes flowLaser {
  to {
    stroke-dashoffset: 0;
  }
}

/* Animação dos anéis do núcleo e órbitas */
.core-ring-1 {
  transform-origin: center;
  animation: corePulse 3s infinite ease-in-out;
}

@keyframes corePulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
}

.core-ring-2 {
  transform-origin: 250px 250px;
  animation: spinRing 15s linear infinite;
}

.orbit-bg-1 {
  transform-origin: 250px 250px;
  animation: spinRing 40s linear infinite;
}

.orbit-bg-2 {
  transform-origin: 250px 250px;
  animation: spinRing 25s linear infinite reverse;
}

@keyframes spinRing {
  to {
    transform: rotate(360deg);
  }
}

/* Flutuações individuais dos nós periféricos do cérebro IA */
.node-group .node-float {
  transform-box: fill-box;
  transform-origin: center;
}

.node-openai .node-float {
  animation: floatY1 4.2s ease-in-out infinite;
}

.node-gemini .node-float {
  animation: floatY2 4.5s ease-in-out infinite;
}

.node-claude .node-float {
  animation: floatY3 4.8s ease-in-out infinite;
}

.node-email .node-float {
  animation: floatY4 4.3s ease-in-out infinite;
}

.node-wpp .node-float {
  animation: floatY1 3.9s ease-in-out infinite;
}

.node-n8n .node-float {
  animation: floatY2 4.6s ease-in-out infinite;
}

.node-make .node-float {
  animation: floatY3 4.1s ease-in-out infinite;
}

.node-python .node-float {
  animation: floatY4 4.4s ease-in-out infinite;
}

@keyframes floatY1 {

  0%,
  100% {
    transform: translateY(-5px);
  }

  50% {
    transform: translateY(5px);
  }
}

@keyframes floatY2 {

  0%,
  100% {
    transform: translateY(5px);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes floatY3 {

  0%,
  100% {
    transform: translateY(-3px);
  }

  50% {
    transform: translateY(3px);
  }
}

@keyframes floatY4 {

  0%,
  100% {
    transform: translateY(3px);
  }

  50% {
    transform: translateY(-3px);
  }
}

/* Ajustes de layout para telas menores (Media Queries adicionais para a animação) */
@media (max-width: 1200px) {
  .hero-automation-graphic {
    width: 380px;
    height: 380px;
    right: 20px;
  }
}

@media (max-width: 1024px) {
  .hero-automation-graphic {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin: 40px auto 0 auto;
    width: 320px;
    height: 320px;
    animation: heroFloatMobile 6s ease-in-out infinite;
  }

  @keyframes heroFloatMobile {

    0%,
    100% {
      transform: translateY(-8px);
    }

    50% {
      transform: translateY(8px);
    }
  }
}

/* ───────── RESPONSIVIDADE (MEDIA QUERIES) ───────── */
@media (max-width: 1024px) {
  .wpp-simulator {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .flow-simulator {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .economia-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contato-card {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  header {
    padding: 16px var(--padding);
  }

  .hero {
    padding-top: 120px;
  }

  .botao {
    width: 100%;
  }

  .contato-info,
  .contato-form-wrapper {
    padding: 40px 24px;
  }

  .simulador-canvas {
    padding: 20px 16px;
    min-height: auto;
  }

  .flow-canvas {
    padding: 24px 12px;
    height: auto;
    min-height: 400px;
  }

  .flow-node {
    max-width: 100%;
    padding: 12px 14px;
    gap: 12px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}