:root {
  /* =========================================
     🎨 COLORS / DESIGN TOKENS
     ========================================= */
  
  /* Brand Foundations */
  --brand-blue: #0D0A2E;
  --brand-fuchsia: #FE0F62;

  /* Blue Scale (Derived) */
  --color-blue-900: #0D0A2E;
  --color-blue-800: #16124D;
  --color-blue-700: #221D70;
  --color-blue-600: #352FB0;
  --color-blue-500: #4B44D4;
  --color-blue-400: #736DE3;
  --color-blue-300: #9C97F0;
  --color-blue-200: #C5C2F8;
  --color-blue-100: #E3E2FB;
  --color-blue-50: #F2F2F9;

  /* Fuchsia Scale (Derived) */
  --color-fuchsia-900: #FE0F62;
  --color-fuchsia-800: #E00D57;
  --color-fuchsia-700: #C20B4C;
  --color-fuchsia-600: #A30941;
  --color-fuchsia-500: #FE2C79;
  --color-fuchsia-400: #FE5996;
  --color-fuchsia-300: #FE86B3;
  --color-fuchsia-200: #FEB3D1;
  --color-fuchsia-100: #FED0E4;
  --color-fuchsia-50: #F7F2F4;

  /* RGB Variants for Transparency */
  --rgb-blue: 13, 10, 46;
  --rgb-fuchsia: 254, 15, 98;

  /* Neutrals */
  --color-white: #FFFFFF;
  --color-gray-50: #F9FAFB;
  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-300: #D1D5DB;
  --color-gray-400: #9CA3AF;
  --color-gray-500: #6B7280;
  --color-gray-600: #4B5563;
  --color-gray-700: #374151;
  --color-gray-800: #1F2937;
  --color-gray-900: #111827;

  /* Functional */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;

  /* Semantic Mappings */
  --color-bg-body: var(--color-gray-50);
  --color-bg-surface: var(--color-white);
  --color-text-main: var(--color-gray-900);
  --color-text-muted: var(--color-gray-500);

  /* Alternative Dark surfaces */
  --color-dark-bg: var(--brand-blue);
  --color-dark-surface: #18153A;
  --color-dark-text-main: var(--color-gray-50);
  --color-dark-text-muted: var(--color-gray-400);

  /* =========================================
     📐 SPACING (8pt Grid)
     ========================================= */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* =========================================
     🔠 TYPOGRAPHY
     ========================================= */
  --font-family-base: 'IBM Plex Sans', sans-serif;
  
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 30px;
  --font-size-4xl: 36px;
  --font-size-5xl: 48px;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.2;
  --line-height-base: 1.5;
  --line-height-relaxed: 1.75;

  /* =========================================
     🟢 RADII (Estética Arredondada)
     ========================================= */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 40px;
  --radius-full: 9999px;

  /* =========================================
     🌟 SHADOWS (Premium Layered)
     ========================================= */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, 0.12);
  --shadow-elevated: 0 10px 30px rgba(0, 0, 0, 0.08), 0 1px 1px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(var(--rgb-fuchsia), 0.35);

  /* =========================================
     ⏱️ TRANSITIONS
     ========================================= */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   📦 SECTION: FEATURES (INTERACTIVE)
   ========================================= */
.section-features {
  background-color: #F8F9FC;
  padding: 120px 0 350px;
  color: var(--brand-blue);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: stretch; /* Casar altura das colunas */
}

.section-title {
  text-align: center;
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-20);
  width: 100%;
}

/* Feature List (Left) */
.feature-list {
  display: flex;
  flex-direction: column;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-4) 0; /* Espaçamento reduzido conforme referência */
  border-bottom: 1px solid rgba(13, 10, 46, 0.1);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.76, 0, 0.24, 1);
  position: relative;
}

.feature-item:first-child {
  border-top: 0;
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.4s ease;
  filter: grayscale(1);
  opacity: 0.3;
}

.feature-item.is-active .feature-icon-box,
.feature-item:hover .feature-icon-box {
  background: var(--brand-fuchsia);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(230, 24, 115, 0.3);
  filter: grayscale(0);
  opacity: 1;
}

.feature-content h3 {
  font-size: var(--font-size-xl);
  margin-bottom: 4px;
}

.feature-content p {
  font-size: var(--font-size-sm);
  color: var(--color-dark-text-muted);
  max-width: 420px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feature-item.is-active {
  transform: translateX(20px);
}

/* Feature Showcase (Right) */
.feature-showcase {
  position: sticky;
  top: 151px;
}

.showcase-card {
  background-color: var(--brand-blue);
  border-radius: var(--radius-2xl);
  height: 100%; /* Ocupar toda a altura da grid (casar com a lista) */
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centraliza verticalmente o conjunto */
  align-items: center;    /* Centraliza horizontalmente o conjunto */
  padding: var(--space-8);
}

/* Dynamic Notch (Corrigido para Cruzar a Borda) */
.showcase-notch {
  position: absolute;
  left: -20px; /* Bridge: 20px fora, o resto dentro */
  top: 0;
  width: 80px;
  height: 160px; 
  background-color: #F8F9FC; 
  transition: top 0.6s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.4s ease;
  /* Cria uma curva que entra no card escuro (começando no X=20 que é a borda) */
  clip-path: path('M20 0 L20 20 C20 40, 50 60, 50 80 C50 100, 20 120, 20 140 L20 160 L0 160 L0 0 Z');
  z-index: 10; 
  pointer-events: none;
}

.showcase-media {
  height: 380px; 
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* CRÍTICO: Garante que o vídeo seja cortado nas bordas arredondadas */
  width: 100%;
  border-radius: var(--radius-lg); /* Escala: Interno (20px) < Externo (40px) */
}

.showcase-media video,
.showcase-media img {
  height: 100%; 
  width: 100%; 
  object-fit: cover; /* Garantir que preencha e respeite o arredondamento do pai */
  transition: opacity 0.3s ease;
}

.showcase-caption {
  margin: var(--space-8) auto 0; /* Centraliza o bloco horizontalmente */
  color: var(--color-white);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  text-align: center;
  opacity: 0.8;
  max-width: 80%;
  width: 100%;
  display: block;
}

/* =========================================
   📦 SECTION: SHOWCASE REVEAL (GROW ON SCROLL)
   ========================================= */
.section-full-showcase {
  padding: 160px 0;
  color: var(--color-white);
  position: relative;
  overflow: visible;
  background-color: var(--brand-blue);
  border-radius: 48px 48px 0 0;
}

.showcase-title {
  color: var(--color-white);
  margin-bottom: var(--space-6); /* Reduzido para compactar com o card menor */
  text-align: center;
}

.showcase-reveal-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  perspective: 2000px;
}

.showcase-reveal-wrapper.overlap-ratio {
  margin-top: -240px; /* Recalculado: 1/3 de um card de ~720px de altura */
  position: relative;
  z-index: 10;
}

.showcase-reveal-card {
  width: 100%;
  max-width: 900px; /* Foco Total e visibilidade integral sem scroll */
  background-color: #16124D;
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: 0 50px 100px rgba(0,0,0,0.6);
  
  /* Estado Inicial */
  transform: scale(0.8) translateY(100px);
  opacity: 0;
  transition: transform 0.1s linear, opacity 0.1s linear;
  will-change: transform, opacity;
  display: flex;
  flex-direction: column;
  gap: var(--space-6); /* Compactado para manter tudo na tela */
}

.reveal-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: black;
}

.reveal-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================
   🔗 SECTION: INTEGRATION HUB (Scroll Reveal)
   ========================================= */
.section-integrations {
  background-color: var(--brand-blue);
  padding: 80px 0 160px;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  border-radius: 0 0 48px 48px; /* Só base — o topo continua da Seção 3 */
}

.integration-title {
  color: var(--color-white);
  text-align: center;
  margin-bottom: var(--space-16);
}

.hub-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 550px;
  margin: 0 auto;
}

.hub-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hub-lines line,
.hub-lines path {
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 1.5;
  fill: none;
}

.hub-center-node {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.hub-center-node img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.hub-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  z-index: 5;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  /* Estado inicial: escondido atrás do logo central */
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  will-change: transform, opacity;
  cursor: pointer;
}

.hub-node svg {
  width: 26px;
  height: 26px;
  color: var(--brand-blue);
  stroke: var(--brand-blue);
  flex-shrink: 0;
}

.hub-node span {
  font-size: 8px;
  font-weight: var(--font-weight-semibold);
  color: var(--brand-blue);
  text-align: center;
  line-height: 1;
  letter-spacing: 0.3px;
}

.hub-node.has-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* =========================================
   BASE RESET & STYLES
   ========================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text-main);
  background-color: #F8F9FC; /* Fundo claro para as seções escuras terem contraste nos cantos arredondados */
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-transform: lowercase;
}

/* Dark mode utility */
body.dark-mode {
  background-color: #F8F9FC;
  color: var(--color-dark-text-main);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
  margin-bottom: var(--space-4);
}

.text-muted {
  color: var(--color-text-muted);
}

.surface {
  background-color: var(--color-bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-gray-200);
}

/* =========================================
   🔘 COMPONENTS: BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  text-decoration: none;
  gap: var(--space-2);
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled,
.btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Icon (Arrow) Hover Animation */
.btn svg {
  transition: transform 200ms ease;
}
.btn:hover svg {
  transform: translateX(4px);
}

/* Primary Button (Hot Fuchsia) */
.btn-primary {
  background-color: var(--brand-fuchsia);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background-color: var(--color-fuchsia-800);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* Secondary Button (Blueberry / Brand Blue) */
.btn-secondary {
  background-color: var(--color-blue-600);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background-color: var(--color-blue-700);
  box-shadow: 0 10px 20px rgba(var(--rgb-blue), 0.2);
  transform: translateY(-2px);
}

/* Outline Button */
.btn-outline {
  background-color: transparent;
  border-color: var(--color-gray-300);
  color: inherit;
}
.btn-outline:hover {
  background-color: var(--color-gray-100);
  border-color: var(--color-gray-400);
}

/* Outline White (Borda Branca -> Preenchimento Branco com Texto Azul) */
.btn-outline-white {
  background-color: transparent;
  border: 1px solid var(--color-white);
  color: var(--color-white);
}
.btn-outline-white:hover {
  background-color: var(--color-white);
  color: var(--brand-blue);
  transform: translateY(-2px);
}

/* Outline Midnight (Borda Azul -> Preenchimento Azul com Texto Branco) */
.btn-outline-midnight {
  background-color: transparent;
  border: 1px solid var(--brand-blue);
  color: var(--brand-blue);
}
.btn-outline-midnight:hover {
  background-color: var(--brand-blue);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* =========================================
   📝 COMPONENTS: FORMS & INPUTS
   ========================================= */
.input-group {
  margin-bottom: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

/* LOGO BAR OVERLAP */
.logo-bar-container {
  position: absolute;
  bottom: -45px; /* Ligeiramente mais para baixo */
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  text-align: center;
  width: 100%;
}

.input-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-700);
}

.input-field {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text-main);
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.input-field:focus {
  outline: none;
  border-color: var(--color-blue-500);
  box-shadow: 0 0 0 3px rgba(var(--rgb-blue), 0.1);
}

/* =========================================
   🌐 LAYOUT & HERO COMPONENTS
   ========================================= */

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

#app {
  position: relative;
  z-index: 1;
}

.navbar-wrapper {
  position: fixed;
  top: var(--space-6);
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 1000;
  padding: 0 var(--space-4);
}

.navbar-pill {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: var(--space-10);
  box-shadow: var(--shadow-lg);
  transition: all 0.4s ease;
}

.navbar-pill.is-scrolled {
  background: var(--brand-blue); /* Fundo Midnight Blue ao rolar */
  border-color: rgba(255, 255, 255, 0.1);
  padding: var(--space-1) var(--space-4);
}

.nav-logo .logo-text {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xl);
  letter-spacing: -0.5px;
}
.nav-logo .logo-text span {
  color: var(--brand-fuchsia);
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: var(--space-6);
}

.nav-menu a {
  text-decoration: none;
  color: var(--color-dark-text-muted);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: var(--transition-fast);
}

.nav-menu a:hover {
  color: var(--color-dark-text-main);
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 180px;
  overflow: visible;
  position: relative;
  background-color: var(--brand-blue); /* Fundo escuro próprio */
  border-radius: 0 0 48px 48px;
}

.hero .container {
  position: relative;
  z-index: 1; /* Conteúdo acima do canvas da malha */
}

.container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.hero-grid {
  display: grid;
  grid-template-columns: 320px 1fr 320px;
  align-items: center;
  gap: var(--space-8);
  width: 100%;
}

.hero-visual {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.hero-main-content {
  text-align: center;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  margin-bottom: var(--space-6);
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-blue-300), var(--brand-fuchsia));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-dark-text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-10);
  line-height: var(--line-height-relaxed);
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}

/* VIDEO STACK LAYOUT */
.video-stack {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-card {
  position: absolute;
  background: #121029;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 280px;
  box-shadow: var(--shadow-premium);
  transition: transform var(--transition-normal);
}

.video-container {
  aspect-ratio: 4/3;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md); /* Menor que o card pai */
  overflow: hidden;
}

.video-card:nth-child(1) {
  z-index: 2;
  left: 0;
  bottom: 20px;
}

.video-card:nth-child(2) {
  z-index: 1;
  right: 0;
  top: 20px;
  opacity: 1; /* Opacidade total conforme solicitado */
}

.side-left .video-card:nth-child(1) { left: -20px; }
.side-left .video-card:nth-child(2) { right: -20px; }

.side-right .video-card:nth-child(1) { right: -20px; }
.side-right .video-card:nth-child(2) { left: -20px; }

.card-header {
  display: none; /* Barra superior removida para o vídeo preencher o card */
}

.card-header .dots {
  display: flex;
  gap: 4px;
}
.card-header .dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.video-container {
  aspect-ratio: 4/3;
  width: 100%;
  height: 100%;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Garantir que o vídeo preencha a caixa (crop) */
}

.video-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #18153A, #0D0A2E);
  position: relative;
}
.video-placeholder::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

/* LOGO BAR */
.logo-bar-container {
  margin-top: var(--space-16);
  text-align: center;
  width: 100%;
}

.logo-bar-label {
  font-size: var(--font-size-xs);
  text-transform: lowercase;
  color: var(--color-dark-text-muted);
  margin-bottom: var(--space-4);
  letter-spacing: 2px;
}

/* LOGO BAR (CLEAQ STYLE) */
.logo-pill-wide {
  display: inline-flex;
  background: #F2F2F9; /* Azul sutil/claro do design system */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(13, 10, 46, 0.1);
  border-radius: var(--radius-full);
  padding: 0 var(--space-12);
  height: 90px;
  width: auto;
  min-width: 65%; /* Largura reduzida para ser mais compacta */
  justify-content: center;
  overflow: hidden;
  gap: var(--space-20); /* Espaçamento aumentado entre logos */
  box-shadow: var(--shadow-sm);
}

.logo-column {
  height: 80px;
  overflow: hidden;
  position: relative;
}

.logo-reel {
  display: flex;
  flex-direction: column;
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

.logo-item {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.logo-item img {
  max-height: 45px; /* Logos maiores conforme solicitado */
  max-width: 150px;
  object-fit: contain;
  /* Filtro para converter logos coloridos para Midnight Blue (#0D0A2E) */
  filter: brightness(0) saturate(100%) invert(8%) sepia(34%) saturate(4174%) hue-rotate(224deg) brightness(91%) contrast(100%);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.logo-item:hover img {
  opacity: 1;
}

/* ANIMATIONS */
@keyframes float {
  0% { transform: translateY(0px) rotateX(0deg); }
  50% { transform: translateY(-15px) rotateX(2deg); }
  100% { transform: translateY(0px) rotateX(0deg); }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

.delay-1 {
  animation-delay: -3s;
}

/* RESPONSIVENESS */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  .side-left, .side-right {
    display: none; /* Hide sides on mobile for focus on text */
  }
  .hero-title {
    font-size: 2.5rem;
  }
}

/* =========================================
   📊 SECTION 5: CASES
   ========================================= */
.section-cases {
  background-color: #F8F9FC;
  padding: 120px 0 100px;
  color: var(--brand-blue);
  /* The pill-bridge hangs over the bottom, so padding can stay around 100px */
}

.cases-title {
  color: var(--brand-blue);
  margin-bottom: var(--space-16);
  text-align: center;
}

/* Base Wrapper for identical widths */
.cases-grid, .stats-row, .pill-bridge {
  max-width: 900px; /* Aumentado de 820px para 900px */
  margin-left: auto;
  margin-right: auto;
}

/* Case Cards */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-16);
}

.case-card {
  background-color: var(--brand-blue);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  min-height: 260px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.case-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 15, 98, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.case-card:hover {
  transform: translateY(-6px);
}

.case-metric {
  font-size: 3.5rem;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: var(--space-4);
  background: linear-gradient(135deg, var(--color-white) 60%, var(--brand-fuchsia));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.case-description {
  font-size: var(--font-size-sm);
  color: var(--color-dark-text-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.btn-outline-case {
  align-self: flex-start;
  padding: 8px 16px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: var(--space-6);
}

.btn-outline-case:hover {
  border-color: var(--brand-fuchsia);
  background-color: rgba(254, 15, 98, 0.1);
}

.case-card-footer {
  margin-top: auto;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.case-logo {
  height: 26px;
  max-width: 100px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.6;
}

/* Stats Row */
.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  background: transparent;
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-prefix {
  font-size: var(--font-size-sm);
  color: var(--brand-blue);
  font-weight: var(--font-weight-bold);
  margin-bottom: 2px;
}

.stat-big {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--brand-blue);
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--font-size-base); /* Aumentado de xs para base */
  color: var(--color-gray-500);
  line-height: var(--line-height-relaxed);
  margin-bottom: 0;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: var(--color-gray-300);
  flex-shrink: 0;
}

/* Pílula Bridge */
.pill-bridge {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
}

.cases-banner {
  background: var(--color-white);
  border-radius: var(--radius-full);
  padding: var(--space-4) 54px; /* Aumentado padding direito/esquerdo para 54px */
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  /* The width is controlled by pill-bridge max-width rule */
}

.cases-banner-text {
  font-size: 1.5rem; /* Aumentado de 1.1rem para 1.5rem */
  font-weight: var(--font-weight-bold);
  color: var(--brand-blue);
  line-height: 1.3;
  margin-bottom: 0;
}

.isg-badge-img {
  height: 120px; /* Aumentado de 40px para 120px */
  object-fit: contain;
}

/* =========================================
   📬 SECTION 6: CTA + FORMULÁRIO
   ========================================= */
.section-cta-form {
  background-color: var(--brand-blue);
  border-radius: 48px 48px 0 0;
  margin-top: -76px; /* Puxa o fundo escuro exatamento para a metade da pílula */
  padding: 156px 0 140px; /* 76px extra no topo pra compensar o margin negativo */
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  z-index: 1; /* Pílula tem z-index 10 para ficar sobreposta */
}

.section-cta-form::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 15, 98, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-form-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-20);
  align-items: center;
}

/* Left: texto */
.cta-form-left {
  max-width: 480px;
}

.cta-headline {
  font-size: 2.4rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: var(--space-8);
  letter-spacing: -0.5px;
}

.cta-subtext {
  font-size: var(--font-size-base);
  color: var(--color-dark-text-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-8); /* added extra margin since it felt tight */
}

/* Right: formulário */
.cta-form-right {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  backdrop-filter: blur(10px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-family-base);
  font-size: var(--font-size-sm);
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  transition: border-color 0.25s ease, background 0.25s ease;
  outline: none;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.form-input:focus {
  border-color: var(--brand-fuchsia);
  background: rgba(254, 15, 98, 0.05);
}

/* Consent checkbox */
.form-consent {
  margin-top: var(--space-2);
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
}

.consent-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-fuchsia);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.consent-text {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.45);
  line-height: var(--line-height-relaxed);
}

/* CTA button full-width */
.btn-form-cta {
  width: 100%;
  padding: var(--space-4) var(--space-6);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
  box-shadow: 0 8px 30px rgba(254, 15, 98, 0.35);
}

.btn-form-cta:hover {
  box-shadow: 0 12px 40px rgba(254, 15, 98, 0.5);
  transform: translateY(-3px);
}

/* Responsive Cases + Form */
@media (max-width: 900px) {
  .cases-grid { grid-template-columns: 1fr; }
  .stats-row { flex-direction: column; gap: var(--space-8); }
  .stat-divider { width: 60px; height: 1px; }
  .cases-banner { flex-direction: column; gap: var(--space-6); text-align: center; border-radius: var(--radius-2xl); }
  .cta-form-grid { grid-template-columns: 1fr; }
  .cta-form-left { max-width: 100%; }
  .cta-headline { font-size: 1.8rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* =========================================
   🏁 SECTION: FOOTER
   ========================================= */
.site-footer {
  background-color: var(--brand-blue);
  padding: 80px 0 40px; /* Adjusted since section 6 merges with footer visually */
  color: var(--color-white);
  border-top: 1px solid rgba(255,255,255,0.05); /* Separator from form section */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr min-content min-content; /* Coluna 1 pega espaço livre, 2 e 3 minimalistas */
  gap: 100px; /* Dá espaço entre a 2 e 3, e empurra tudo para direita graças ao 1fr na esquerda */
  margin-bottom: var(--space-16);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Alinhamento do logo e textos à esquerda */
  gap: var(--space-6);
}

.footer-logo {
  height: 100px;
  object-fit: contain;
  margin-left: -5px; /* Ajuste sutil para alinhar perfeitamente à borda dependendo do padding interno do SVG */
}

.footer-tagline {
  color: var(--color-dark-text-muted);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: var(--space-4);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: var(--brand-fuchsia);
  transform: translateY(-2px);
}

.footer-nav h4 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  margin-bottom: var(--space-6);
  letter-spacing: 0.5px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-nav a {
  color: var(--color-dark-text-muted);
  font-size: var(--font-size-sm);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--color-white);
}

/* Responsiveness adjustments for footer */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}
