/* IFELL Premium CSS Stylesheet - V2 */

:root {
  /* Brand color identity from the corporate logo (Steel Blue) */
  --accent-primary: #235A88;
  --accent-primary-rgb: 35, 90, 136;
  --accent-hover: #3679B0;
  --accent-dark: #143550;

  /* Brand Typography */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Background colors (Deep Slate/Charcoal) */
  --bg-primary: #080b11;
  --bg-secondary: #0d121c;
  --bg-tertiary: #141c2c;

  --bg-glass: rgba(8, 11, 17, 0.85);
  --border-glass: rgba(255, 255, 255, 0.05);
  --border-glow: rgba(0, 210, 255, 0.25);
  --grid-line: rgba(255, 255, 255, 0.035);

  --accent-secondary: #FF7A00;
  /* Amber Energy */
  --accent-purple: #A61E69;
  /* Purple Connection */
  --accent-neon-blue: #00d2ff;
  --accent-neon-orange: #ff7a00;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;

  --success: #10b981;
  --error: #ef4444;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px rgba(0, 210, 255, 0.15);
  --shadow-neon-orange: 0 0 20px rgba(255, 122, 0, 0.4);
  --shadow-neon-blue: 0 0 20px rgba(0, 210, 255, 0.4);
  --shadow-neon-purple: 0 0 20px rgba(166, 30, 105, 0.4);

  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* @property for animated gradients (n8n-style) */
@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 135deg;
  inherits: false;
}

@property --bg-rotation {
  syntax: "<angle>";
  initial-value: 30deg;
  inherits: false;
}

@property --glow-opacity {
  syntax: "<number>";
  initial-value: 0;
  inherits: false;
}

/* Reset & Defaults */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: transparent;
  /* Permite visualizar o fundo dinâmico */
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  color: white;
}

p {
  font-family: var(--font-body);
  margin-bottom: 16px;
  line-height: 1.6;
}

p:last-child {
  margin-bottom: 0;
}

/* Background grid */
.tech-grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-primary);
  /* Fundo sólido transferido para cá */
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center center;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  /* Garantir que os brilhos não criem scrollbars */
}

.tech-grid-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, transparent 10%, var(--bg-primary) 75%);
  z-index: 1;
  /* Fica acima das esferas de brilho para suavizar */
}

/* Esferas de brilho dinâmico (Estilo Weave.ai - Otimizado sem filter: blur para compatibilidade) */
.glow-blob {
  position: absolute;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  /* Posiciona os brilhos à frente da overlay de z-index 1 */
}

#electron-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  /* Fica à frente dos brilhos e do gradiente de fundo */
}

.blob-1 {
  background: radial-gradient(circle, rgba(35, 90, 136, 0.45) 0%, rgba(35, 90, 136, 0.18) 45%, transparent 75%);
  /* var(--accent-primary) */
  top: -15%;
  left: -15%;
  animation: float-blob-1 25s infinite alternate ease-in-out;
}

.blob-2 {
  background: radial-gradient(circle, rgba(13, 110, 253, 0.4) 0%, rgba(13, 110, 253, 0.12) 45%, transparent 75%);
  /* Azul Elétrico Safira */
  bottom: -10%;
  right: -10%;
  animation: float-blob-2 32s infinite alternate ease-in-out;
}

.blob-3 {
  background: radial-gradient(circle, rgba(0, 210, 255, 0.35) 0%, rgba(0, 210, 255, 0.12) 45%, transparent 75%);
  /* var(--accent-neon-blue) */
  top: 35%;
  left: 55%;
  transform: translate(-50%, -50%);
  animation: float-blob-3 22s infinite alternate ease-in-out;
}

@keyframes float-blob-1 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }

  50% {
    transform: translate(120px, 90px) scale(1.15);
    opacity: 0.5;
  }

  100% {
    transform: translate(-60px, 160px) scale(0.9);
    opacity: 0.35;
  }
}

@keyframes float-blob-2 {
  0% {
    transform: translate(0, 0) scale(0.9);
    opacity: 0.35;
  }

  50% {
    transform: translate(-160px, -120px) scale(1.1);
    opacity: 0.48;
  }

  100% {
    transform: translate(60px, -60px) scale(1);
    opacity: 0.38;
  }
}

@keyframes float-blob-3 {
  0% {
    transform: translate(-50%, -50%) translate(-90px, 60px) scale(1.05);
    opacity: 0.3;
  }

  50% {
    transform: translate(-50%, -50%) translate(110px, -90px) scale(0.85);
    opacity: 0.42;
  }

  100% {
    transform: translate(-50%, -50%) translate(-30px, -20px) scale(1);
    opacity: 0.32;
  }
}

/* Helper Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.grid-2-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-16 {
  gap: 16px;
}

.text-gradient {
  background: linear-gradient(135deg, #4f8dc3 0%, var(--accent-primary) 50%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animated rainbow-like gradient text (n8n --white-rainbow style) */
.text-gradient-animated {
  background: linear-gradient(var(--gradient-angle),
      #60a5fa 0%,
      #38bdf8 25%,
      #22d3ee 50%,
      #38bdf8 75%,
      #60a5fa 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

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

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

.text-center-wrapper {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

/* Typography styles */
.section-subtitle {
  font-family: var(--font-headings);
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 12px;
  position: relative;
  padding-left: 15px;
}

.section-subtitle::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-primary);
}

.section-title {
  font-family: var(--font-headings);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-description {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.section-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

/* Buttons */
.btn {
  font-family: var(--font-headings);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-dark) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(var(--accent-primary-rgb), 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--accent-primary-rgb), 0.35), var(--shadow-glow);
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-primary) 100%);
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  color: white;
  border-color: var(--border-glass);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
  border-color: var(--accent-primary);
}

.btn-large {
  padding: 15px 32px;
  font-size: 1.05rem;
  border-radius: 10px;
}

.btn-full {
  width: 100%;
}

/* Premium button effects (n8n-style) */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease, --bg-rotation 0.3s ease;
}

.btn-primary .fa-arrow-right {
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary:hover .fa-arrow-right {
  transform: translateX(4px);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(var(--accent-primary-rgb), 0.35), 0 0 40px rgba(0, 210, 255, 0.15);
}

/* Header & Navigation */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  z-index: 100;
  transition: all var(--transition-fast) ease;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-icon {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-dark) 100%);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  box-shadow: 0 0 15px rgba(var(--accent-primary-rgb), 0.3);
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-title {
  font-family: var(--font-headings);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-subtitle {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--text-muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all var(--transition-fast) ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: all var(--transition-fast) ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 50%;
}

.nav-link:hover,
.nav-link.active {
  color: white;
  background-color: transparent;
}

.nav-link.active {
  color: var(--accent-hover);
}

/* Services Dropdown Menu */
.nav-item-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle-link i {
  font-size: 0.75rem;
  margin-left: 4px;
}

.dropdown-menu-box {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-md);
  border-radius: 12px;
  padding: 10px;
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
  z-index: 120;
}

.nav-item-dropdown:hover .dropdown-menu-box {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(5px);
}

.dropdown-item {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 10px 16px;
  border-radius: 8px;
  text-align: left;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition-fast) ease;
  text-decoration: none;
}

.dropdown-item i {
  color: var(--accent-primary);
  font-size: 0.95rem;
  width: 16px;
  text-align: center;
}

.dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: white;
}

.dropdown-header {
  font-family: var(--font-headings);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-primary);
  padding: 6px 16px 10px;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 6px;
}

.dropdown-menu-compact {
  min-width: 220px;
}

.nav-chevron {
  transition: transform var(--transition-fast) ease;
}

.nav-item-dropdown:hover .nav-chevron {
  transform: rotate(180deg);
}

.header-actions-desktop {
  margin-left: 15px;
}

.btn-cta-nav {
  font-family: var(--font-headings);
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-dark) 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(var(--accent-primary-rgb), 0.2);
  white-space: nowrap; /* Impede a quebra de texto */
}

.btn-cta-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--accent-primary-rgb), 0.35), var(--shadow-glow);
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-primary) 100%);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-cta-nav .fa-arrow-right {
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-cta-nav:hover .fa-arrow-right {
  transform: translateX(4px);
}

.nav-btn-mobile {
  display: none;
}

.mobile-toggle-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding: 170px 0 110px 0;
  position: relative;
  overflow: hidden;
}

/* Ocultar elementos para a animação de entrada sequencial (Motion One) */
.hero-content>*,
.hero-visual {
  opacity: 0;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.badge-premium {
  background-color: rgba(32, 95, 143, 0.1);
  border: 1px solid rgba(32, 95, 143, 0.2);
  color: #60a5fa;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-headings);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero-description {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  perspective: 1200px;
  /* Essential for 3D */
}

/* 3D Visual Card */
.visual-card-3d {
  position: relative;
  width: 320px;
  height: 380px;
  border-radius: 20px;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-md);
  overflow: visible;
  transform-style: preserve-3d;
  transition: transform var(--transition-normal);
}

.card-3d-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.card-3d-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(10, 13, 20, 0.1) 0%, rgba(10, 13, 20, 0.9) 100%);
  z-index: 2;
}

.card-3d-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 3;
  transform: translateZ(50px);
  /* Pushes elements outward in 3D */
}

.visual-badge-3d {
  background-color: rgba(10, 13, 20, 0.7);
  border: 1px solid var(--border-glass);
  color: white;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  width: max-content;
  backdrop-filter: blur(4px);
}

.card-3d-footer {
  display: flex;
  align-items: center;
  gap: 16px;
}

.visual-icon-3d {
  background-color: var(--accent-primary);
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
  box-shadow: 0 0 15px rgba(var(--accent-primary-rgb), 0.4);
}

.floating-badge-3d {
  position: absolute;
  top: 40px;
  right: -30px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--accent-primary);
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: var(--shadow-glow);
  z-index: 4;
  transform: translateZ(80px);
  /* Pushes further outward */
  display: flex;
  flex-direction: column;
}

.f-badge-val {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 6px;
}

.f-badge-val i {
  color: var(--success);
}

.f-badge-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Stats Section V3 (Glassmorphic Cards & Glowing Counters) */
.stats-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

@media (max-width: 992px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .stats-container {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: rgba(13, 18, 28, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 35px 24px;
  text-align: center;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(var(--accent-primary-rgb), 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.stat-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 210, 255, 0.25);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), var(--shadow-glow);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.15);
  color: var(--accent-neon-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all var(--transition-normal);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.05);
}

.stat-card:hover .stat-icon-wrapper {
  background: var(--accent-neon-blue);
  color: var(--text-dark);
  box-shadow: var(--shadow-neon-blue);
  transform: scale(1.1) rotate(5deg);
}

/* Custom icon colors for diversity */
.stat-card:nth-child(2) .stat-icon-wrapper {
  background: rgba(166, 30, 101, 0.08);
  border-color: rgba(166, 30, 101, 0.15);
  color: var(--accent-purple);
}

.stat-card:nth-child(2):hover .stat-icon-wrapper {
  background: var(--accent-purple);
  color: white;
  box-shadow: var(--shadow-neon-purple);
}

.stat-card:nth-child(3) .stat-icon-wrapper {
  background: rgba(255, 122, 0, 0.08);
  border-color: rgba(255, 122, 0, 0.15);
  color: var(--accent-neon-orange);
}

.stat-card:nth-child(3):hover .stat-icon-wrapper {
  background: var(--accent-neon-orange);
  color: var(--text-dark);
  box-shadow: var(--shadow-neon-orange);
}

.stat-card:nth-child(4) .stat-icon-wrapper {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.stat-card:nth-child(4):hover .stat-icon-wrapper {
  background: var(--success);
  color: var(--text-dark);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.stat-number-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-family: var(--font-headings);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
}

.stat-counter-number {
  background: linear-gradient(135deg, #ffffff 30%, #b4e3ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-card:hover .stat-counter-number {
  background: linear-gradient(135deg, #ffffff 10%, var(--accent-neon-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom text gradient on hover for other cards */
.stat-card:nth-child(2):hover .stat-counter-number {
  background: linear-gradient(135deg, #ffffff 10%, #ff4fa8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-card:nth-child(3):hover .stat-counter-number {
  background: linear-gradient(135deg, #ffffff 10%, var(--accent-neon-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-card:nth-child(4):hover .stat-counter-number {
  background: linear-gradient(135deg, #ffffff 10%, var(--success) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-suffix {
  color: var(--accent-neon-blue);
  font-size: 1.8rem;
  margin-left: 2px;
}

.stat-card:nth-child(2) .stat-suffix {
  color: var(--accent-purple);
}

.stat-card:nth-child(3) .stat-suffix {
  color: var(--accent-neon-orange);
}

.stat-card:nth-child(4) .stat-suffix {
  color: var(--success);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.4;
}

.stat-card:hover .stat-label {
  color: white;
}

/* About Section */
.about-section {
  padding: 100px 0;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-box {
  width: 100%;
  max-width: 440px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.tech-box::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.tech-box-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--success);
  border-radius: 50%;
  animation: pulse-ring 1.5s infinite ease-in-out;
}

.tech-box-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.tech-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tech-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 500;
}

.tech-list li i {
  font-size: 1.1rem;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.about-feature-item {
  display: flex;
  gap: 18px;
}

.feature-icon {
  background-color: rgba(var(--accent-primary-rgb), 0.08);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.15);
  color: var(--accent-hover);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.feature-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Services Section V2 (Rich Images & Structured layout) */
.services-section {
  padding: 100px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.services-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card-v2 {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--border-glass);
  height: 430px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  /* Ocultar inicialmente para animação de entrada sequencial */
}

.card-v2-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-slow);
  z-index: 1;
}

.card-v2-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(16, 21, 32, 0.1) 0%, rgba(16, 21, 32, 0.85) 45%, rgba(10, 13, 20, 0.98) 100%);
  z-index: 2;
  transition: background var(--transition-normal);
}

.card-v2-content {
  position: relative;
  z-index: 3;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.card-v2-icon {
  background-color: rgba(var(--accent-primary-rgb), 0.2);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.3);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.2);
  transition: all var(--transition-fast) ease;
}

.card-v2-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.card-v2-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 24px;
  height: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  transition: color var(--transition-fast) ease;
}

.service-card-v2:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--accent-primary-rgb), 0.4);
  box-shadow: var(--shadow-md);
}

.service-card-v2:hover .card-v2-img {
  transform: scale(1.08);
}

.service-card-v2:hover .card-v2-overlay {
  background: linear-gradient(180deg, rgba(16, 21, 32, 0.05) 0%, rgba(16, 21, 32, 0.8) 35%, rgba(10, 13, 20, 0.98) 100%);
}

.service-card-v2:hover .card-v2-icon {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(var(--accent-primary-rgb), 0.5);
}

.service-card-v2:hover .card-v2-desc {
  color: #e2e8f0;
}

/* Studies Section */
.studies-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.studies-glow-aura {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.08) 0%, rgba(35, 90, 136, 0.03) 55%, transparent 70%);
  pointer-events: none;
  filter: blur(100px);
  z-index: 0;
  animation: pulseGlow 12s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
    background: radial-gradient(circle, rgba(255, 122, 0, 0.05) 0%, rgba(35, 90, 136, 0.03) 55%, transparent 70%);
  }
}

.studies-carousel-container {
  position: relative;
  width: 100%;
  margin-top: 50px;
  z-index: 2;
}

.studies-carousel-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
  cursor: grab;
}

.studies-carousel-wrapper:active {
  cursor: grabbing;
}

.studies-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  color: rgba(255, 255, 255, 0.7);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  z-index: 2;
}

.carousel-btn:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: white;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.35);
  transform: scale(1.08);
}

.studies-carousel-track .study-card {
  flex: 0 0 calc((100% - (3 * 20px)) / 4);
  min-width: 270px;
}

@media (max-width: 1200px) {
  .studies-carousel-track .study-card {
    flex: 0 0 calc((100% - (2 * 20px)) / 3);
  }
}

@media (max-width: 900px) {
  .studies-carousel-track .study-card {
    flex: 0 0 calc((100% - (1 * 20px)) / 2);
  }
}

@media (max-width: 600px) {
  .studies-carousel-track .study-card {
    flex: 0 0 100%;
  }
}

.study-card {
  position: relative;
  background: linear-gradient(135deg, rgba(20, 28, 44, 0.8) 0%, rgba(13, 18, 28, 0.95) 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 380px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.4s ease, transform 0.1s ease-out, box-shadow 0.4s ease, background 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transform-style: preserve-3d;
  perspective: 1000px;
  z-index: 1;
}

.study-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-slow);
  z-index: 1;
}

.study-card:hover .study-card-img {
  transform: scale(1.08);
}

.study-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(16, 21, 32, 0.15) 0%, rgba(16, 21, 32, 0.75) 45%, rgba(10, 13, 20, 0.95) 100%);
  z-index: 2;
  transition: background var(--transition-normal);
}

.study-card:hover .study-card-overlay {
  background: linear-gradient(180deg, rgba(16, 21, 32, 0.05) 0%, rgba(16, 21, 32, 0.7) 35%, rgba(10, 13, 20, 0.95) 100%);
}

.study-card-content {
  position: relative;
  z-index: 4;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

/* Spotlight Radial Glow - Moved to z-index 3 to overlay the background image */
.study-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(280px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(0, 210, 255, 0.12),
      transparent 80%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 3;
}

/* Spotlight Border Glow - Moved to z-index 3 to overlay the background image */
.study-card::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: radial-gradient(200px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(0, 210, 255, 0.35),
      transparent 70%);
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 3;
}

.study-card:hover {
  border-color: rgba(0, 210, 255, 0.25);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 210, 255, 0.15);
}

.study-card:hover::before,
.study-card:hover::after {
  opacity: 1;
}

.study-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  transform: translateZ(20px);
  transition: transform 0.4s ease;
}

.study-badge {
  font-family: var(--font-headings);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 10px;
  border-radius: 6px;
  transition: all 0.4s ease;
}

.study-badge.badge-nbr {
  color: #ffa14a;
  border-color: rgba(255, 122, 0, 0.15);
  background: rgba(255, 122, 0, 0.03);
}

.study-badge.badge-ieee {
  color: #00d2ff;
  border-color: rgba(0, 210, 255, 0.15);
  background: rgba(0, 210, 255, 0.03);
}

.study-badge.badge-aneel {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.15);
  background: rgba(16, 185, 129, 0.03);
}

.study-card:hover .study-badge.badge-nbr {
  border-color: #ff7a00;
  box-shadow: 0 0 8px rgba(255, 122, 0, 0.25);
  background: rgba(255, 122, 0, 0.08);
}

.study-card:hover .study-badge.badge-ieee {
  border-color: #00d2ff;
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.25);
  background: rgba(0, 210, 255, 0.08);
}

.study-card:hover .study-badge.badge-aneel {
  border-color: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.08);
}

.study-header i {
  font-size: 1.2rem;
  color: rgba(0, 210, 255, 0.85);
  transition: all 0.4s ease;
}

.study-card:hover .study-header i {
  color: white;
  text-shadow: 0 0 10px rgba(0, 210, 255, 0.8);
  transform: scale(1.15) translateZ(30px);
}

.study-title {
  font-family: var(--font-headings);
  font-size: 1.08rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  line-height: 1.35;
  transform: translateZ(25px);
  transition: transform 0.4s ease;
}

.study-desc {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.55;
  margin-bottom: 24px;
  flex: 1;
  transform: translateZ(15px);
  transition: transform 0.4s ease;
}

.study-more {
  background: none;
  border: none;
  color: var(--accent-hover);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 0;
  width: max-content;
  transform: translateZ(20px);
  transition: all 0.4s ease;
}

.study-more i {
  transition: transform 0.3s ease;
}

.study-card:hover .study-more {
  color: #00d2ff;
}

.study-card:hover .study-more i {
  transform: translateX(4px);
}

/* Studies Carousel Progress Bar */
.studies-progress-container {
  width: 100%;
  max-width: 300px;
  margin: 32px auto 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.studies-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.studies-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-neon-blue) 100%);
  border-radius: 2px;
  transition: width 0.2s ease-out;
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.4);
}

/* Simulator Section */
.simulator-section {
  padding: 100px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.simulator-form-side {
  padding-right: 20px;
}

.simulator-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: white;
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast) ease;
  font-family: inherit;
}

.form-control:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(var(--accent-primary-rgb), 0.2);
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  padding-right: 48px;
}

.input-prefix-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 18px;
  color: var(--text-muted);
  font-weight: 600;
  pointer-events: none;
}

.input-prefix-wrapper .form-control {
  padding-left: 45px;
}

/* 3D Result Card */
.result-card-3d {
  perspective: 1000px;
}

.result-card-inner {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  position: relative;
  transform-style: preserve-3d;
  transition: transform var(--transition-normal);
}

.result-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-primary);
  border-radius: 20px 0 0 20px;
}

.result-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 16px;
  transform: translateZ(20px);
}

.result-indicator-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-secondary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-secondary);
}

.result-header h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 30px;
  transform: translateZ(30px);
}

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

.result-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
}

.result-lab {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.environmental-badge {
  background-color: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  transform: translateZ(25px);
}

.env-icon {
  color: var(--success);
  font-size: 1.5rem;
}

.env-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
}

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

.env-desc span {
  font-weight: 700;
  color: var(--success);
}

.result-disclaimer {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.4;
  transform: translateZ(10px);
}

/* Solar CTA Section (Landing Page replacement for the full simulator) */
.solar-cta-section {
  padding: 100px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  position: relative;
  overflow: hidden;
}

.solar-cta-card {
  background: linear-gradient(135deg, rgba(20, 28, 44, 0.85) 0%, rgba(13, 18, 28, 0.98) 100%);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.solar-cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-secondary);
  border-radius: 24px 0 0 24px;
}

.solar-cta-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.solar-cta-title {
  font-family: var(--font-headings);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: white;
  letter-spacing: -0.02em;
}

.solar-cta-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 600px;
}

.solar-cta-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.solar-glow-icon {
  font-size: 8rem;
  color: rgba(255, 122, 0, 0.15);
  filter: drop-shadow(0 0 30px rgba(255, 122, 0, 0.3));
  animation: float-icon 4s infinite alternate ease-in-out;
}

@keyframes float-icon {
  0% {
    transform: translateY(0) scale(1);
    color: rgba(255, 122, 0, 0.12);
  }
  100% {
    transform: translateY(-15px) scale(1.05);
    color: rgba(255, 122, 0, 0.22);
  }
}

@media (max-width: 992px) {
  .solar-cta-card {
    grid-template-columns: 1fr;
    padding: 40px;
    text-align: center;
  }
  .solar-cta-content {
    align-items: center;
  }
  .solar-cta-title {
    font-size: 1.8rem;
  }
  .solar-cta-visual {
    display: none;
  }
}

/* Clientes Section */
.clients-section {
  padding: 100px 0;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.sector-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: all var(--transition-normal);
}

.sector-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--accent-primary-rgb), 0.3);
  box-shadow: var(--shadow-sm);
}

.sector-icon {
  background-color: rgba(var(--accent-primary-rgb), 0.08);
  color: var(--accent-hover);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin: 0 auto 20px auto;
  border: 1px solid rgba(var(--accent-primary-rgb), 0.15);
  transition: all var(--transition-fast) ease;
}

.sector-card:hover .sector-icon {
  background-color: var(--accent-primary);
  color: white;
}

.sector-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.sector-card p {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Testimonials Slider */
.testimonials-slider {
  max-width: 800px;
  margin: 0 auto 60px auto;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 50px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.slider-wrapper {
  position: relative;
  height: auto;
  min-height: 180px;
  /* Flexível para acomodar textos mais longos */
}

.testimonial-slide {
  width: 100%;
  opacity: 0;
  display: none;
  transition: opacity 0.5s ease;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-slide.active {
  opacity: 1;
  display: flex;
}

.testimonial-content {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 24px;
  position: relative;
}

.testimonial-content::before {
  content: '“';
  font-family: serif;
  font-size: 5rem;
  color: rgba(var(--accent-primary-rgb), 0.15);
  position: absolute;
  top: -45px;
  left: -20px;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  background-color: var(--bg-tertiary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-hover);
  border: 1px solid var(--border-glass);
}

.testimonial-author h5 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
}

.testimonial-author span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: all var(--transition-fast) ease;
}

.slider-dot.active {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  width: 24px;
  border-radius: 10px;
}

/* Logos Board */
.logo-grid-board {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  opacity: 0.45;
  margin-top: 30px;
}

.simulated-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity var(--transition-fast) ease;
}

.simulated-logo:hover {
  opacity: 0.9;
  color: white;
}

/* Contact Section */
.contact-section {
  padding: 100px 0;
}

.contact-info-side {
  padding-right: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.contact-detail-item {
  display: flex;
  gap: 20px;
  align-items: center;
}

.detail-icon {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  color: var(--accent-hover);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.detail-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.detail-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: white;
}

.contact-form-side {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.contact-form-element {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Footer */
.main-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  padding: 80px 0 30px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast) ease;
  text-decoration: none;
}

.footer-socials a:hover {
  background-color: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.footer-links-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-column h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.footer-links-column a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast) ease;
}

.footer-links-column a:hover {
  color: white;
}

.compliance-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 30px;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Modal System */
.overlay-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(5, 8, 15, 0.8);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 24px;
}

.overlay-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: transform var(--transition-normal);
}

.overlay-modal.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast) ease;
  z-index: 10;
}

.modal-close:hover {
  color: white;
}

.modal-header {
  padding: 32px 40px 16px 40px;
  border-bottom: 1px solid var(--border-glass);
}

.modal-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-hover);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  margin-top: 4px;
}

.modal-body {
  padding: 32px 40px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 24px 40px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: flex-end;
}

/* Success Modal Details */
.success-card {
  max-width: 420px;
  padding: 40px;
  text-align: center;
  align-items: center;
}

.success-icon {
  color: var(--success);
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.success-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  margin-bottom: 10px;
}

.success-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 30px;
  line-height: 1.5;
}

/* Markdown styling inside Modal */
.markdown-body {
  line-height: 1.7;
  color: #cbd5e1;
}

.markdown-body h1 {
  display: none;
}

.markdown-body h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  color: white;
  margin-top: 28px;
  margin-bottom: 12px;
}

.markdown-body h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  color: #f1f5f9;
  margin-top: 20px;
  margin-bottom: 10px;
}

.markdown-body p {
  margin-bottom: 16px;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.markdown-body li {
  margin-bottom: 6px;
}

.markdown-body blockquote {
  border-left: 3px solid var(--accent-primary);
  background-color: rgba(var(--accent-primary-rgb), 0.04);
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 0 6px 6px 0;
  font-style: italic;
}

.markdown-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 16px 0;
  border: 1px solid var(--border-glass);
}

/* Animations */
@keyframes pulse-ring {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* FAQ Accordion Section (AEO/GEO Optimized) */
.faq-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-glass);
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
}

.faq-item:hover {
  border-color: rgba(var(--accent-primary-rgb), 0.5);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  padding: 22px 28px;
  text-align: left;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  outline: none;
}

.faq-question span {
  padding-right: 20px;
  line-height: 1.4;
}

.faq-question i {
  color: var(--accent-primary);
  font-size: 1rem;
  transition: transform var(--transition-normal), color var(--transition-fast) ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease, padding var(--transition-normal) ease;
  padding: 0 28px;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  padding-bottom: 22px;
}

/* Active FAQ Item */
.faq-item.active {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.faq-item.active .faq-question i {
  transform: rotate(45deg);
  color: var(--accent-secondary);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  /* Sufficent for 40-60 words answer */
}

/* Responsive / Breakpoints */
@media (max-width: 1024px) {
  .services-grid-new {
    grid-template-columns: repeat(2, 1fr);
  }

  .studies-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 768px) {
  .grid-2-col {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-description {
    margin: 0 auto 30px auto;
  }

  .hero-actions {
    justify-content: center;
  }

  /* Flow diagram: escalar e simplificar em tablet */
  .hero-visual-flow {
    height: 380px;
  }

  .flow-node-card {
    padding: 10px 12px;
  }

  .flow-node-title {
    font-size: 0.75rem;
  }

  .flow-node-label {
    font-size: 0.55rem;
  }

  .flow-node-icon {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }

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

  .services-grid-new {
    grid-template-columns: 1fr;
  }

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

  .sectors-grid {
    grid-template-columns: 1fr;
  }

  .logo-grid-board {
    justify-content: center;
  }

  .mobile-toggle-btn {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-glass);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-btn-mobile {
    display: inline-flex;
    width: 100%;
  }

  .header-actions-desktop {
    display: none;
  }

  .nav-item-dropdown:hover .dropdown-menu-box,
  .nav-item-dropdown.active .dropdown-menu-box {
    position: static;
    transform: none;
    display: flex;
    flex-direction: column;
    width: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background-color: rgba(255, 255, 255, 0.02);
    box-shadow: none;
    border: none;
    padding: 0;
    margin-top: 10px;
  }

  .dropdown-item {
    padding-left: 24px;
  }

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

  /* Centralização responsiva do cabeçalho da seção Sobre Nós no mobile */
  .about-content {
    text-align: center;
  }
  .about-content .section-subtitle,
  .about-content .section-title {
    text-align: center;
  }
  .about-content .section-text {
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  .about-features {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .studies-grid {
    grid-template-columns: 1fr;
  }

  .stats-container {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .testimonials-slider {
    padding: 30px 20px;
  }

  .slider-wrapper {
    height: auto;
    min-height: 240px;
    /* Flexível para telas pequenas */
  }

  /* Flow diagram: esconder em mobile, mostrar fallback */
  .hero-visual-flow {
    display: none;
  }

  .hero-visual {
    display: none;
  }

  .modal-card {
    padding: 0;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Infinite Logo Ticker (Carrossel Horizontal Premium) */
.logo-ticker-container {
  overflow: hidden;
  padding: 40px 0;
  width: 100%;
  position: relative;
  background-color: rgba(16, 21, 32, 0.4);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  border-radius: 12px;
  margin-top: 0;
  margin-bottom: 50px;
}

/* Máscara gradiente para esmaecimento lateral */
.logo-ticker-container::before,
.logo-ticker-container::after {
  content: "";
  height: 100%;
  position: absolute;
  top: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}

.logo-ticker-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary) 0%, transparent 100%);
}

.logo-ticker-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary) 0%, transparent 100%);
}

.logo-ticker-track {
  display: flex;
  width: calc(250px * 24);
  /* 12 itens duplicados = 24 itens */
  animation: logo-scroll 35s linear infinite;
}

/* Pausar animação no hover */
.logo-ticker-container:hover .logo-ticker-track {
  animation-play-state: paused;
}

.logo-item {
  width: 250px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 35px;
  flex-shrink: 0;
}

.logo-item img {
  max-width: 100%;
  max-height: 50px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.8);
  opacity: 0.4;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.logo-item img:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
  transform: scale(1.08);
}

/* Animação de Scroll */
@keyframes logo-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-250px * 12));
    /* Move o tamanho da metade da lista */
  }
}

/* ==========================================
   INTERACTIVE SYSTEM FLOW DIAGRAM (n8n Style)
   ========================================== */
.hero-visual-flow {
  position: relative;
  width: 100%;
  height: 480px;
  background-color: rgba(13, 18, 28, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(255, 255, 255, 0.02);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.hero-visual-flow::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 210, 255, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

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

.flow-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 2;
  transition: stroke var(--transition-normal);
}

.flow-line.active {
  stroke: var(--accent-neon-blue);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 4px var(--accent-neon-blue));
}

.flow-pulse {
  fill: none;
  stroke: var(--accent-neon-orange);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 10, 80;
  stroke-dashoffset: 90;
  animation: flow-pulse-anim 3s linear infinite;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.flow-pulse.active {
  opacity: 1;
}

.flow-pulse.solar-pulse {
  stroke: var(--accent-secondary);
  animation-duration: 2s;
}

@keyframes flow-pulse-anim {
  0% {
    stroke-dashoffset: 90;
  }

  100% {
    stroke-dashoffset: -90;
  }
}

/* Flow Nodes */
.flow-node {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform var(--transition-normal);
}

.flow-node-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(16, 22, 36, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  backdrop-filter: blur(8px);
  width: max-content;
}

.flow-node:hover .flow-node-card {
  transform: translateY(-4px) scale(1.02);
  background: var(--bg-tertiary);
}

.flow-node.active .flow-node-card {
  border-color: var(--accent-neon-blue);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.25);
}

.flow-node.orange-node.active .flow-node-card {
  border-color: var(--accent-neon-orange);
  box-shadow: 0 0 15px rgba(255, 122, 0, 0.25);
}

.flow-node.purple-node.active .flow-node-card {
  border-color: var(--accent-purple);
  box-shadow: 0 0 15px rgba(166, 30, 105, 0.25);
}

.flow-node-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: white;
  transition: all var(--transition-normal);
}

.flow-node.active .flow-node-icon {
  background: rgba(0, 210, 255, 0.1);
  color: var(--accent-neon-blue);
  border-color: rgba(0, 210, 255, 0.2);
}

.flow-node.orange-node.active .flow-node-icon {
  background: rgba(255, 122, 0, 0.1);
  color: var(--accent-neon-orange);
  border-color: rgba(255, 122, 0, 0.2);
}

.flow-node.purple-node.active .flow-node-icon {
  background: rgba(166, 30, 105, 0.1);
  color: var(--accent-purple);
  border-color: rgba(166, 30, 105, 0.2);
}

.flow-node-text {
  display: flex;
  flex-direction: column;
}

.flow-node-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 700;
}

.flow-node-title {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
}

/* Pulsing Status Dot on Nodes */
.flow-node-status {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-muted);
}

.flow-node.active .flow-node-status {
  background-color: var(--accent-neon-blue);
  box-shadow: 0 0 8px var(--accent-neon-blue);
  animation: node-pulse-anim 1.5s infinite;
}

.flow-node.orange-node.active .flow-node-status {
  background-color: var(--accent-neon-orange);
  box-shadow: 0 0 8px var(--accent-neon-orange);
  animation: node-pulse-orange-anim 1.5s infinite;
}

.flow-node.purple-node.active .flow-node-status {
  background-color: var(--accent-purple);
  box-shadow: 0 0 8px var(--accent-purple);
  animation: node-pulse-purple-anim 1.5s infinite;
}

@keyframes node-pulse-anim {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.7);
  }

  70% {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(0, 210, 255, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 210, 255, 0);
  }
}

@keyframes node-pulse-orange-anim {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.7);
  }

  70% {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(255, 122, 0, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 122, 0, 0);
  }
}

@keyframes node-pulse-purple-anim {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(166, 30, 105, 0.7);
  }

  70% {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(166, 30, 105, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(166, 30, 105, 0);
  }
}

/* Card Glow Corners */
.study-card,
.service-card-v2 {
  position: relative;
  overflow: hidden;
}

.study-card::before,
.service-card-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(255, 255, 255, 0.04), transparent 40%);
  z-index: 1;
  pointer-events: none;
}

/* ==========================================
   ANIMATED GRADIENT BORDERS (n8n-style)
   ========================================== */
@keyframes spin-gradient {
  0% {
    --gradient-angle: 0deg;
  }

  100% {
    --gradient-angle: 360deg;
  }
}

.study-card::after,
.service-card-v2::after,
.result-card-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--gradient-angle), var(--accent-neon-blue), var(--accent-purple), var(--accent-neon-orange), var(--accent-neon-blue)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-normal);
  animation: spin-gradient 4s linear infinite;
  z-index: 4;
}

.study-card:hover::after,
.service-card-v2:hover::after,
.result-card-inner:hover::after {
  opacity: 1;
}

.study-card,
.service-card-v2,
.result-card-inner {
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.study-card:hover {
  box-shadow: 0 12px 30px rgba(0, 210, 255, 0.12), 0 0 20px rgba(166, 30, 105, 0.1);
}

.service-card-v2:hover {
  box-shadow: 0 15px 40px rgba(0, 210, 255, 0.15), 0 0 25px rgba(255, 122, 0, 0.1);
}

.result-card-inner:hover {
  box-shadow: 0 15px 40px rgba(0, 210, 255, 0.15), 0 0 25px rgba(35, 90, 136, 0.15);
}

/* ==========================================
   SEÇÃO: POR QUE IFELL
   ========================================== */
.why-ifell-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.why-ifell-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.why-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 40px 30px;
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  z-index: 1;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(255, 255, 255, 0.04), transparent 40%);
  z-index: 1;
  pointer-events: none;
}

/* Borda gradiente interativa no hover */
.why-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--gradient-angle, 135deg), var(--accent-neon-blue), var(--accent-purple), var(--accent-neon-blue)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-normal);
  animation: spin-gradient 6s linear infinite;
  z-index: 4;
}

.why-card:hover::after {
  opacity: 1;
}

.why-card:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: 0 15px 35px rgba(0, 210, 255, 0.15), 0 0 25px rgba(166, 30, 101, 0.1);
}

.why-card-content {
  position: relative;
  z-index: 2;
}

.why-card-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.15) 0%, rgba(166, 30, 101, 0.15) 100%);
  border: 1px solid rgba(0, 210, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 1.8rem;
  color: var(--accent-neon-blue);
  transition: transform var(--transition-normal), color var(--transition-normal);
}

.why-card:hover .why-card-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  color: #fff;
  background: linear-gradient(135deg, var(--accent-neon-blue) 0%, var(--accent-purple) 100%);
  border-color: transparent;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.why-card-title {
  font-family: var(--font-headings);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.why-card-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Lista de diferenciais no Hero Solar */
.hero-features-list {
  list-style: none;
  padding: 0;
  margin: 25px 0 35px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.hero-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.hero-features-list li i {
  color: #2ecc71;
  font-size: 1.1rem;
  filter: drop-shadow(0 0 5px rgba(46, 204, 113, 0.4));
}

/* Responsividade */
@media (max-width: 992px) {
  .why-ifell-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .why-ifell-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .why-card {
    padding: 30px 20px;
  }

  .hero-features-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ==========================================
   BOTÃO FLUTUANTE DO WHATSAPP
   ========================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5);
  cursor: pointer;
  z-index: 9999;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background 0.3s ease;
}

.whatsapp-float i {
  transition: transform 0.3s ease;
}

/* Efeito sonar pulsante de onda expansiva */
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0;
  pointer-events: none;
  animation: whatsapp-pulse 2s infinite;
  z-index: -1;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* Efeito Hover Premium */
.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6), 0 0 20px rgba(37, 211, 102, 0.4);
  background: linear-gradient(135deg, #2ecc71 0%, #16a085 100%);
}

.whatsapp-float:hover i {
  transform: scale(1.1) rotate(10deg);
}

/* Responsividade Mobile */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    font-size: 1.8rem;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
  }

  .whatsapp-float::before {
    inset: -6px;
  }
}

/* ==========================================
   THEME SWITCHER & THEME SYSTEM OVERRIDES
   ========================================== */

/* Transição suave de temas no body e elementos principais */
body {
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

.tech-grid-bg {
  transition: background-color var(--transition-slow);
}

.main-header,
.logo,
.nav-link,
.stat-card,
.tech-box,
.why-card,
.service-card-v2,
.study-card,
.faq-item,
.form-control,
.result-card-inner,
.environmental-badge,
.modal-card,
.success-card,
.testimonials-slider,
.flow-node-card,
.flow-node-icon,
.flow-line {
  transition: background-color var(--transition-normal), border-color var(--transition-normal), color var(--transition-normal), stroke var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}

/* Theme switcher segmented control (segmented slider) */
.theme-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 30px;
  padding: 3px;
  position: relative;
  user-select: none;
  z-index: 105;
  transition: all var(--transition-fast) ease;
}

@media (min-width: 769px) {
  .theme-switcher {
    margin-left: auto;
    margin-right: 20px;
  }
}

@media (max-width: 768px) {
  .theme-switcher {
    margin-left: auto;
    margin-right: 12px;
  }
}

.theme-switcher-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-primary) 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-normal);
  z-index: 1;
}

.theme-switcher button {
  background: none;
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  z-index: 2;
  transition: color var(--transition-fast) ease;
  position: relative;
}

.theme-switcher button:hover {
  color: var(--text-main);
}

.theme-switcher button.active {
  color: #ffffff !important;
}

/* Active slider positions mapped to classes on body */
body.theme-white .theme-switcher-slider {
  transform: translateX(0);
}

body.theme-gray .theme-switcher-slider {
  transform: translateX(32px);
}

body.theme-black .theme-switcher-slider {
  transform: translateX(64px);
}

/* ------------------------------------------
   THEME 1: BLACK (Escuro Completo) - Variáveis padrão
   ------------------------------------------ */
body.theme-black {
  --bg-primary: #080b11;
  --bg-secondary: #0d121c;
  --bg-tertiary: #141c2c;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  --border-glass: rgba(255, 255, 255, 0.05);
  --bg-glass: rgba(8, 11, 17, 0.85);
  --grid-line: rgba(255, 255, 255, 0.035);
}

/* ------------------------------------------
   THEME 2: GRAY (Cinza Tecnológico)
   ------------------------------------------ */
body.theme-gray {
  --bg-primary: #1e293b;
  --bg-secondary: #0f172a;
  --bg-tertiary: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  --border-glass: rgba(255, 255, 255, 0.06);
  --bg-glass: rgba(30, 41, 59, 0.85);
  --grid-line: rgba(255, 255, 255, 0.04);
}

body.theme-gray .theme-switcher {
  background: rgba(255, 255, 255, 0.03);
}

/* ------------------------------------------
   THEME 3: WHITE (Claro Premium)
   ------------------------------------------ */
body.theme-white {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dark: #ffffff;
  --border-glass: rgba(15, 23, 42, 0.08);
  --bg-glass: rgba(255, 255, 255, 0.85);
  --grid-line: rgba(15, 23, 42, 0.04);
}

body.theme-white .theme-switcher {
  background: rgba(15, 23, 42, 0.05);
}

body.theme-white .glow-blob {
  opacity: 0.12;
  /* Suavizar brilhos no tema claro */
}

/* Ajustes de contraste para elementos específicos em Modo Claro */
body.theme-white .feature-title,
body.theme-white .why-card-title,
body.theme-white .card-v2-title,
body.theme-white .study-title,
body.theme-white .faq-question,
body.theme-white .testimonial-author h5,
body.theme-white .sector-card h4,
body.theme-white .detail-val,
body.theme-white .result-val,
body.theme-white .env-title,
body.theme-white .success-title,
body.theme-white .modal-title,
body.theme-white .modal-body,
body.theme-white .markdown-body h2,
body.theme-white .markdown-body h3,
body.theme-white .flow-node-title,
body.theme-white .carousel-btn {
  color: #0f172a !important;
}

body.theme-white .flow-node-label {
  color: #475569 !important;
}

body.theme-white .flow-line {
  stroke: rgba(15, 23, 42, 0.08) !important;
}

body.theme-white .flow-node-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

body.theme-white .flow-node-icon {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.05);
  color: #0f172a;
}

body.theme-white .form-control {
  background-color: var(--bg-secondary) !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
  color: #0f172a !important;
}

body.theme-white .form-control:focus {
  border-color: var(--accent-primary) !important;
}

body.theme-white select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") !important;
}

body.theme-white .stat-counter-number {
  background: linear-gradient(135deg, var(--accent-primary) 30%, var(--accent-dark) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

body.theme-white .stat-card:hover .stat-counter-number {
  background: linear-gradient(135deg, var(--accent-hover) 10%, var(--accent-primary) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

body.theme-white .stat-card,
body.theme-white .tech-box,
body.theme-white .why-card,
body.theme-white .service-card-v2,
body.theme-white .study-card,
body.theme-white .testimonial-slide,
body.theme-white .faq-item,
body.theme-white .simulator-form,
body.theme-white .contact-form-element,
body.theme-white .result-card-inner,
body.theme-white .modal-card,
body.theme-white .success-card,
body.theme-white .testimonials-slider,
body.theme-white .sector-card,
body.theme-white .logo-ticker-container {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  color: var(--text-main) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04) !important;
}

body.theme-white .carousel-btn {
  background: rgba(15, 23, 42, 0.03);
}

body.theme-white .carousel-btn:hover {
  background: var(--accent-primary);
  color: #ffffff !important;
}

body.theme-white .why-card-content,
body.theme-white .card-v2-content,
body.theme-white .study-card,
body.theme-white .modal-close {
  color: var(--text-main) !important;
}

body.theme-white .study-badge {
  background-color: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
}

body.theme-white .markdown-body blockquote {
  background-color: rgba(var(--accent-primary-rgb), 0.03);
}

body.theme-white .footer-links-column h4 {
  color: #0f172a !important;
}

body.theme-white .footer-links-column a:hover {
  color: var(--accent-hover) !important;
}

body.theme-white .logo-ticker-container::before {
  background: linear-gradient(to right, #ffffff 0%, transparent 100%) !important;
}

body.theme-white .logo-ticker-container::after {
  background: linear-gradient(to left, #ffffff 0%, transparent 100%) !important;
}

body.theme-white .logo-item img {
  filter: grayscale(100%) brightness(0.3);
  opacity: 0.35;
}

body.theme-white .logo-item img:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

body.theme-white .study-card::after,
body.theme-white .service-card-v2::after,
body.theme-white .result-card-inner::after,
body.theme-white .why-card::after {
  background: linear-gradient(var(--gradient-angle), var(--accent-hover), var(--accent-primary), var(--accent-hover)) border-box;
}

body.theme-white .environmental-badge {
  background-color: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.12);
}

/* --- AJUSTES ADICIONAIS DE CONTRASTE: TEMA CLARO (BRANCO) --- */
body.theme-white .nav-link {
  color: #334155 !important;
  /* Texto principal legível no fundo branco */
}

body.theme-white .nav-link:hover,
body.theme-white .nav-link.active {
  color: var(--accent-primary) !important;
  background-color: rgba(15, 23, 42, 0.05) !important;
}

body.theme-white .dropdown-menu-box {
  background-color: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1) !important;
}

body.theme-white .dropdown-item {
  color: #475569 !important;
}

body.theme-white .dropdown-item:hover {
  background-color: rgba(15, 23, 42, 0.04) !important;
  color: var(--accent-primary) !important;
}

body.theme-white .btn-secondary {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

body.theme-white .btn-secondary:hover {
  background-color: rgba(15, 23, 42, 0.05) !important;
  border-color: var(--accent-primary) !important;
  color: var(--accent-primary) !important;
}

body.theme-white .form-group label {
  color: #334155 !important;
}

body.theme-white .input-prefix {
  color: #475569 !important;
}

body.theme-white .mobile-toggle-btn {
  color: #0f172a !important;
}

body.theme-white .carousel-btn {
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  background: rgba(15, 23, 42, 0.03) !important;
}

body.theme-white .carousel-btn:hover {
  background: var(--accent-primary) !important;
  color: #ffffff !important;
  border-color: var(--accent-primary) !important;
}

body.theme-white .env-desc {
  color: #475569 !important;
}

body.theme-white .testimonial-content::before {
  color: rgba(35, 90, 136, 0.06) !important;
  /* Deixar aspas mais discretas em fundo branco */
}

/* Ajustes de contraste para o Modal de Detalhes em Modo Claro (Markdown) */
body.theme-white .markdown-body {
  color: #334155 !important;
}

body.theme-white .markdown-body h1,
body.theme-white .markdown-body h2,
body.theme-white .markdown-body h3,
body.theme-white .markdown-body h4,
body.theme-white .markdown-body h5,
body.theme-white .markdown-body h6 {
  color: #0f172a !important;
}

body.theme-white .markdown-body strong {
  color: #0f172a !important;
}

body.theme-white .markdown-body li {
  color: #334155 !important;
}

body.theme-white .markdown-body a {
  color: var(--accent-primary) !important;
  text-decoration: underline;
}

body.theme-white .markdown-body a:hover {
  color: var(--accent-hover) !important;
}

/* Preenchimento de fundo para seções no tema claro (exceto Serviços e Estudos) */
body.theme-white .stats-section,
body.theme-white .about-section,
body.theme-white .simulator-section,
body.theme-white .faq-section {
  background-color: #ffffff !important;
}

/* --- AJUSTES DE RESPONSIVIDADE E UX MOBILE --- */
@media (max-width: 768px) {
  /* Anulação de estilos de menu dropdown flutuante no tema claro */
  body.theme-white .nav-item-dropdown.active .dropdown-menu-box {
    background-color: rgba(15, 23, 42, 0.03) !important;
    box-shadow: none !important;
    border: none !important;
  }

  /* Redução do espaçamento vertical (paddings) das seções no mobile */
  .hero-section,
  .about-section,
  .why-ifell-section,
  .services-section,
  .studies-section,
  .simulator-section,
  .clients-section,
  .faq-section,
  .contact-section {
    padding: 60px 0 !important;
  }

  /* Ajuste de escala tipográfica de títulos no mobile */
  .section-title {
    font-size: 2.0rem !important;
  }
}

@media (max-width: 480px) {
  /* Ajuste tipográfico fino para o Hero em telas muito pequenas */
  .hero-title {
    font-size: 2.2rem !important;
  }
}

/* --- AJUSTES ADICIONAIS DE CONTRASTE: TEMA CINZA (SLATE) --- */
body.theme-gray .nav-link {
  color: #cbd5e1 !important;
}

body.theme-gray .nav-link:hover,
body.theme-gray .nav-link.active {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
}

body.theme-gray .dropdown-menu-box {
  background-color: rgba(15, 23, 42, 0.98) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body.theme-gray .dropdown-item {
  color: #cbd5e1 !important;
}

body.theme-gray .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.04) !important;
  color: #ffffff !important;
}

body.theme-gray .btn-secondary {
  background-color: #334155 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.theme-gray .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--accent-primary) !important;
}

body.theme-gray .mobile-toggle-btn {
  color: #ffffff !important;
}

/* --- AJUSTES DE LEGIBILIDADE DOS CARDS DE ESTUDOS E SERVIÇOS (TODOS OS TEMAS) --- */
/* Garante que o texto e títulos dentro dos cards com imagem de fundo escura permaneçam sempre claros */
.study-card,
.service-card-v2,
body.theme-white .study-card,
body.theme-white .service-card-v2 {
  color: #ffffff !important;
}

.study-title,
.card-v2-title,
body.theme-white .study-title,
body.theme-white .card-v2-title {
  color: #ffffff !important;
}

.study-desc,
.card-v2-desc,
body.theme-white .study-desc,
body.theme-white .card-v2-desc {
  color: #94a3b8 !important;
}

/* ==========================================
   BOTÃO WHATSAPP DO SIMULADOR SOLAR
   ========================================== */
@keyframes pulse-whatsapp {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
}

@keyframes slide-up-fade-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-simulator-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff !important;
  font-family: var(--font-headings);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  animation: slide-up-fade-in 0.5s ease forwards, pulse-whatsapp 2s ease-in-out 0.6s infinite;
  position: relative;
  overflow: hidden;
}

.btn-simulator-whatsapp::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.btn-simulator-whatsapp:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  filter: brightness(1.1);
  animation-play-state: paused;
}

.btn-simulator-whatsapp:active {
  transform: translateY(-1px) scale(0.99);
}

.btn-simulator-whatsapp .fa-whatsapp {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.btn-simulator-whatsapp .btn-arrow-icon {
  font-size: 0.85rem;
  margin-left: auto;
  transition: transform 0.25s ease;
}

.btn-simulator-whatsapp:hover .btn-arrow-icon {
  transform: translateX(4px);
}

@media (max-width: 576px) {
  .btn-simulator-whatsapp {
    font-size: 0.88rem;
    padding: 12px 16px;
    gap: 8px;
  }
}

/* ==========================================
   BLOCO DE COPYRIGHT LEGAL NO RODAPÉ (COMPACTO)
   ========================================== */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0;
}

.copyright-legal-block {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Faixa de aviso legal — compacta, tudo em linha */
.copyright-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 32px;
  font-size: 0.68rem;
  line-height: 1.5;
  color: #94a3b8;
}

.copyright-warning .fa-shield-halved {
  font-size: 0.85rem;
  color: #f97316;
  flex-shrink: 0;
}

.copyright-warning strong {
  color: #fca5a5;
}

/* Dados da empresa — tudo em linha única compacta */
.copyright-company-data {
  background: rgba(0, 0, 0, 0.18);
  padding: 8px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.copyright-info-row {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

/* Logo removido na versão compacta */
.copyright-logo-text {
  display: none;
}

.copyright-divider {
  display: none;
}

.copyright-details {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px 18px;
  flex: 1;
}

.copyright-details span {
  font-size: 0.68rem;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.copyright-details span i {
  color: var(--accent-secondary);
  font-size: 0.62rem;
  flex-shrink: 0;
}

.copyright-details strong {
  color: #94a3b8;
  font-weight: 600;
}

/* Linha final com © e tag de crime */
.copyright-final-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 32px;
  background: rgba(0, 0, 0, 0.22);
}

.copyright-final-line > span:first-child {
  font-size: 0.68rem;
  color: #475569;
}

.copyright-crime-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fca5a5 !important;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.28);
  border-radius: 4px;
  padding: 3px 8px;
  letter-spacing: 0.2px;
}

.copyright-crime-tag .fa-triangle-exclamation {
  color: #f97316;
  font-size: 0.7rem;
}

/* Tema Branco */
body.theme-white .copyright-warning {
  background: transparent;
  color: #6b7280;
}

body.theme-white .copyright-warning strong {
  color: #dc2626;
}

body.theme-white .copyright-company-data {
  background: rgba(0, 0, 0, 0.03);
}

body.theme-white .copyright-details span {
  color: #9ca3af;
}

body.theme-white .copyright-details strong {
  color: #4b5563;
}

body.theme-white .copyright-final-line {
  background: rgba(0, 0, 0, 0.04);
}

body.theme-white .copyright-final-line > span:first-child {
  color: #9ca3af;
}

/* Tema Cinza */
body.theme-gray .copyright-company-data {
  background: rgba(0, 0, 0, 0.12);
}

/* Responsivo mobile */
@media (max-width: 768px) {
  .copyright-warning,
  .copyright-company-data,
  .copyright-final-line {
    padding-left: 16px;
    padding-right: 16px;
  }

  .copyright-details {
    gap: 4px 12px;
  }

  .copyright-details span {
    font-size: 0.63rem;
  }

  .copyright-final-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ==========================================
   SEÇÃO DO SELO CREA-SP NO RODAPÉ
   ========================================== */
.footer-crea-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 40px auto 25px auto;
  padding: 0 24px;
}

.crea-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 15px;
}

.crea-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  max-width: 320px;
}

.crea-title-text {
  font-family: var(--font-headings);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.crea-logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
}

.crea-logo-link {
  display: inline-flex;
  background: #ffffff;
  padding: 12px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              border-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.crea-logo-img {
  max-height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}

.crea-logo-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(35, 90, 136, 0.35);
  border-color: rgba(35, 90, 136, 0.5);
}

/* Ajustes de Tema */
body.theme-white .crea-title-text {
  color: var(--text-dark);
}

body.theme-white .crea-line {
  background: rgba(0, 0, 0, 0.1);
}

body.theme-white .crea-logo-link {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.06);
}

body.theme-white .crea-logo-link:hover {
  box-shadow: 0 8px 20px rgba(35, 90, 136, 0.2);
}

body.theme-gray .crea-line {
  background: rgba(255, 255, 255, 0.1);
}

/* Responsivo */
@media (max-width: 768px) {
  .footer-crea-section {
    margin-top: 30px;
    margin-bottom: 20px;
  }
  .crea-line {
    max-width: 100px;
  }
  .crea-title-text {
    font-size: 0.85rem;
    letter-spacing: 1px;
  }
  .crea-logo-link {
    padding: 10px 20px;
  }
  .crea-logo-img {
    max-height: 42px;
  }
}