/* ==========================================================================
   CSS DESIGN SYSTEM - FUSÃO MAISZAP & SOUAIA (GRUPO SOUAIA BRASIL)
   Paleta MaisZap: Verde Escuro (#052b1e), Verde Limão (#25d366 / #a3e635), Branco (#ffffff)
   Paleta SouAia: Azul SouAia (#0284c7 / #0ea5e9 / #38bdf8), Cyan Tech (#06b6d4), Dark Glass (#0b0f19)
   ========================================================================== */

:root {
  /* MaisZap Colors */
  --mz-dark: #062b1e;
  --mz-dark-deep: #031710;
  --mz-lime: #25d366;
  --mz-lime-bright: #a3e635;
  --mz-white: #ffffff;

  /* SouAia Colors (Azul SouAia & Cyan Tech) */
  --ai-blue: #0284c7;
  --ai-blue-bright: #0ea5e9;
  --ai-blue-light: #38bdf8;
  --ai-cyan: #06b6d4;
  --ai-dark-bg: #0b0f19;
  --ai-card-bg: rgba(12, 25, 44, 0.75);

  /* Shared Tokens */
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --border-glass: rgba(255, 255, 255, 0.12);
  --glass-bg: rgba(15, 23, 42, 0.65);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --transition-fast: 0.25s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--ai-dark-bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --------------------------------------------------------------------------
   BACKGROUND CANVA / FUSÃO 50/50 HORIZONTAL E DIAGONAL (VERDE X AZUL)
   -------------------------------------------------------------------------- */
.fusion-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.fusion-half {
  position: absolute;
  top: 0;
  width: 100%;
  height: 50vh;
  transition: all 0.5s ease;
}

.fusion-maiszap {
  top: 0;
  background: radial-gradient(circle at 20% 30%, rgba(37, 211, 102, 0.18) 0%, rgba(6, 43, 30, 0.95) 70%);
  border-bottom: 1px solid rgba(163, 230, 53, 0.15);
}

.fusion-souaia {
  bottom: 0;
  top: 50vh;
  background: radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.22) 0%, rgba(11, 15, 25, 0.98) 70%);
  border-top: 1px solid rgba(14, 165, 233, 0.2);
}

.fusion-interlace-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(135deg, rgba(6, 43, 30, 0.4) 0%, rgba(11, 15, 25, 0.8) 50%, rgba(14, 165, 233, 0.3) 100%),
    radial-gradient(ellipse at center, transparent 0%, var(--ai-dark-bg) 85%);
  backdrop-filter: blur(40px);
}

.fusion-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: floatGlow 12s infinite alternate ease-in-out;
}

.glow-1 {
  background: var(--mz-lime-bright);
  top: -100px;
  left: -100px;
}

.glow-2 {
  background: var(--ai-blue-bright);
  bottom: -150px;
  right: -100px;
  animation-delay: -6s;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-40px, 80px) scale(0.95); }
}

/* --------------------------------------------------------------------------
   HEADER & LOGO FUSÃO
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-fusion-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
}

.logo-text.maiszap {
  color: var(--mz-white);
}

.logo-text.maiszap .highlight {
  color: var(--mz-lime-bright);
}

.fusion-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.2), rgba(14, 165, 233, 0.25));
  border: 1px solid rgba(163, 230, 53, 0.4);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--mz-lime-bright);
  text-transform: uppercase;
}

.logo-text.souaia {
  color: var(--mz-white);
}

.logo-text.souaia .highlight-ai {
  background: linear-gradient(135deg, var(--ai-blue-light), var(--ai-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.divider-x {
  color: var(--text-muted);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--mz-white);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--mz-lime-bright) 0%, var(--mz-lime) 100%);
  color: var(--mz-dark-deep);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.btn-souaia {
  background: linear-gradient(135deg, var(--ai-blue) 0%, var(--ai-blue-bright) 100%);
  color: var(--mz-white);
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
}

.btn-souaia:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.6);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--mz-white);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.btn-xl {
  padding: 1.25rem 2.5rem;
  font-size: 1.15rem;
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 6rem 0 4rem 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.group-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: 50px;
  color: var(--mz-lime-bright);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.text-maiszap {
  color: var(--mz-lime-bright);
  text-shadow: 0 0 25px rgba(163, 230, 53, 0.3);
}

.text-souaia {
  background: linear-gradient(135deg, var(--ai-blue-light), var(--ai-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-description strong {
  color: var(--mz-white);
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-glass);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--mz-white);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 35px;
  background: var(--border-glass);
}

/* HERO VISUAL CARD (ENTRELAÇAMENTO A x B) */
.hero-visual-card {
  background: var(--ai-card-bg);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.fusion-card-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.2rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.brand-side {
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--border-glass);
}

.side-maiszap {
  background: linear-gradient(180deg, rgba(6, 43, 30, 0.8) 0%, rgba(3, 23, 16, 0.9) 100%);
  border-color: rgba(37, 211, 102, 0.3);
}

.side-souaia {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.15) 0%, rgba(15, 23, 42, 0.9) 100%);
  border-color: rgba(14, 165, 233, 0.4);
}

.side-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.side-maiszap .side-header {
  color: var(--mz-lime-bright);
}

.side-souaia .side-header {
  color: var(--ai-blue-light);
}

.side-list {
  list-style: none;
  font-size: 0.85rem;
}

.side-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  color: var(--text-main);
}

.side-list i {
  color: var(--mz-lime);
}

.side-souaia .side-list i {
  color: var(--ai-cyan);
}

.fusion-center-symbol {
  position: relative;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--mz-lime-bright), var(--ai-blue-bright));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.6);
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--mz-lime-bright);
  animation: pulseAnim 2s infinite ease-out;
}

@keyframes pulseAnim {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.card-footer-banner {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--border-glass);
  border-radius: 12px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--mz-lime-bright);
}

/* --------------------------------------------------------------------------
   SEÇÕES GERAIS
   -------------------------------------------------------------------------- */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.text-center {
  text-align: center;
}

.sub-title {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--mz-lime-bright);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* FUSION CARDS GRID */
.fusion-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--ai-card-bg);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 2.25rem;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 211, 102, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.icon-mz {
  background: rgba(37, 211, 102, 0.15);
  color: var(--mz-lime-bright);
  border: 1px solid rgba(37, 211, 102, 0.3);
}

.icon-ai {
  background: rgba(14, 165, 233, 0.15);
  color: var(--ai-blue-light);
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.icon-meta {
  background: rgba(59, 130, 246, 0.15);
  color: var(--ai-blue);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--mz-white);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   CONSTRUTOR NO-CODE & FLOW PREVIEW
   -------------------------------------------------------------------------- */
.section-tech {
  background: rgba(6, 43, 30, 0.25);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.tech-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.tech-info h2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.tech-info p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.tech-checklist {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.check-item {
  display: flex;
  gap: 1rem;
}

.check-icon {
  font-size: 1.4rem;
  color: var(--mz-lime-bright);
}

.check-item h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--mz-white);
  margin-bottom: 0.2rem;
}

.check-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.mt-4 {
  margin-top: 2rem;
}

/* FLOW WINDOW MOCKUP */
.tech-preview-window {
  background: #090d16;
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.window-bar {
  background: #111726;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
}

.window-dots {
  display: flex;
  gap: 6px;
  margin-right: 1rem;
}

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

.window-dots span:nth-child(2) { background: #ffbd2e; }
.window-dots span:nth-child(3) { background: #27c93f; }

.window-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: monospace;
}

.flow-canvas {
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.flow-node {
  width: 85%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  position: relative;
}

.node-badge {
  position: absolute;
  top: -10px;
  left: 15px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.node-trigger {
  border-color: rgba(37, 211, 102, 0.5);
}

.node-trigger .node-badge {
  background: var(--mz-lime);
  color: var(--mz-dark-deep);
}

.node-ai {
  border-color: rgba(14, 165, 233, 0.5);
}

.node-ai .node-badge {
  background: var(--ai-blue-bright);
  color: #fff;
}

.node-action {
  border-color: rgba(6, 182, 212, 0.5);
}

.node-action .node-badge {
  background: var(--ai-cyan);
  color: #000;
}

.node-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.flow-connector {
  width: 2px;
  height: 24px;
  background: linear-gradient(180deg, var(--mz-lime-bright), var(--ai-blue-bright));
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   INTEGRAÇÕES N8N & META
   -------------------------------------------------------------------------- */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.integration-card {
  background: var(--ai-card-bg);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition-fast);
}

.integration-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
}

.integ-icon-n8n {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  padding: 0.4rem 0.8rem;
  background: #ea4b71;
  color: #fff;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.integ-icon-meta {
  font-size: 2.4rem;
  color: #1877f2;
  margin-bottom: 0.8rem;
}

.integ-icon-webhook {
  font-size: 2.4rem;
  color: var(--mz-lime-bright);
  margin-bottom: 0.8rem;
}

.integ-icon-crm {
  font-size: 2.4rem;
  color: var(--ai-blue-light);
  margin-bottom: 0.8rem;
}

.integration-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.integration-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--ai-card-bg);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--mz-white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.3rem;
  color: var(--mz-lime-bright);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), padding 0.35s ease;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.active {
  border-color: rgba(14, 165, 233, 0.4);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem 1.5rem;
}

/* --------------------------------------------------------------------------
   CTA SECTION & FOOTER
   -------------------------------------------------------------------------- */
.section-cta {
  padding: 4rem 0 6rem 0;
}

.cta-card {
  background: linear-gradient(135deg, rgba(6, 43, 30, 0.9) 0%, rgba(14, 165, 233, 0.4) 100%);
  border: 1px solid rgba(163, 230, 53, 0.3);
  border-radius: 28px;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.cta-content {
  max-width: 650px;
  margin: 0 auto;
}

.cta-content h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-content p {
  color: #e5e7eb;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.site-footer {
  background: #070a11;
  border-top: 1px solid var(--border-glass);
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 450px;
  margin-top: 0.5rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}


/* --------------------------------------------------------------------------
   RESPONSIVIDADE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid, .tech-layout {
    grid-template-columns: 1fr;
  }
  .fusion-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .integrations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .fusion-cards-grid {
    grid-template-columns: 1fr;
  }
  .fusion-card-inner {
    grid-template-columns: 1fr;
  }
  .fusion-center-symbol {
    margin: 0 auto;
  }
}
