/* -------------------------------------------------------------
   1. VARIÁVEIS & DESIGN SYSTEM (TEMA ESCURO PADRÃO)
   ------------------------------------------------------------- */
:root {
  --bg-color: #17121F;
  --bg-card: #261C33;
  --bg-card-hover: rgba(38, 28, 51, 0.8);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(196, 58, 110, 0.4);
  
  --text-primary: #F5EFEA;
  --text-secondary: #A99BB4;
  --text-muted: #92859E;
  
  --accent-orange: #EE5333;
  --accent-pink: #C43A6E;
  --accent-purple: #7B3ABE;
  --accent-yellow: #F5A542;
  --accent-indigo: #4638C8;
  
  --grad-primary: linear-gradient(135deg, #F0703A, #C43A6E);
  --grad-purple: linear-gradient(135deg, #C43A6E, #7B3ABE);
  --grad-aurora: linear-gradient(160deg, #F6A63F, #EE5333 30%, #D8415B 48%, #A93884 66%, #4336C9);
  --grad-glow: radial-gradient(circle, rgba(123, 58, 190, 0.15) 0%, rgba(245, 165, 66, 0.05) 60%, transparent 100%);
  
  --font-title: 'Space Grotesk', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-brand: 'Outfit', sans-serif;
  --font-accent: 'Sora', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --header-bg: rgba(23, 18, 31, 0.8);
  --footer-bg: #17121F;
}

/* -------------------------------------------------------------
   1.2. VARIÁVEIS & DESIGN SYSTEM (TEMA CLARO OVERRIDES)
   ------------------------------------------------------------- */
[data-theme="light"] {
  --bg-color: #FAF8F5;
  --bg-card: #FFFFFF;
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --border-color: #E2DAD4;
  --border-hover: rgba(196, 58, 110, 0.4);
  
  --text-primary: #1F1A17;
  --text-secondary: #4A423D;
  --text-muted: #6B615C;
  --color-sutil: #9A8F88;
  
  --grad-primary: linear-gradient(135deg, #F0703A, #C43A6E);
  --grad-purple: linear-gradient(135deg, #C43A6E, #7B3ABE);
  --grad-glow: radial-gradient(circle, rgba(123, 58, 190, 0.08) 0%, rgba(245, 165, 66, 0.03) 60%, transparent 100%);
  --header-bg: rgba(250, 248, 245, 0.8);
  --footer-bg: #FAF8F5;
}

/* -------------------------------------------------------------
   2. RESETS & LAYOUT GERAL
   ------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-color);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Scrollbar Estilizada */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Utilitários */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.badge-section {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 16px;
  background: rgba(255, 94, 58, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 94, 58, 0.15);
  transition: var(--transition-smooth);
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 48px;
}

/* -------------------------------------------------------------
   PARTICULAS & GLOWS DE FUNDO
   ------------------------------------------------------------- */
#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.65;
}

.bg-glow-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  background: var(--grad-glow);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  opacity: 0.8;
  transition: background 0.4s ease;
}

/* -------------------------------------------------------------
   HEADER / NAV
   ------------------------------------------------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 100;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  height: 70px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

header.scrolled .logo-text {
  color: #0f172a;
}

header.scrolled .header-logo-img {
  /* Mantém a cor original do gradiente aurora */
}

header.scrolled .header-nav a {
  color: rgba(15, 23, 42, 0.7);
}

header.scrolled .header-nav a:hover {
  color: #ff5e3a;
}

header.scrolled .btn-header-cta {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

header.scrolled .btn-header-cta:hover {
  background: #ff5e3a;
  border-color: #ff5e3a;
  color: #ffffff;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s ease;
}

.header-nav a:hover {
  color: #ff5e3a;
}

@media (max-width: 992px) {
  .header-nav {
    display: none;
  }
}

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

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

.header-logo-img {
  height: 32px;
  display: block;
  transition: filter 0.4s ease;
}

.footer-logo-img {
  height: 32px;
  display: block;
  transition: filter 0.4s ease;
}

.logo-text {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  transition: color 0.4s ease;
}

.btn-header-cta {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: 99px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-header-cta:hover {
  background: var(--text-primary);
  color: var(--bg-color);
  border-color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* -------------------------------------------------------------
   BOTAO DE TEMA CLARO/ESCURO
   ------------------------------------------------------------- */
.btn-theme-toggle {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  outline: none;
}

.btn-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.btn-theme-toggle svg {
  transition: transform 0.5s ease, color 0.4s ease;
}

.btn-theme-toggle:hover svg {
  transform: rotate(30deg);
}

/* Regras de ícones baseadas no tema */
.btn-theme-toggle .sun-icon {
  display: block;
}
.btn-theme-toggle .moon-icon {
  display: none;
}

[data-theme="light"] .btn-theme-toggle .sun-icon {
  display: none;
}
[data-theme="light"] .btn-theme-toggle .moon-icon {
  display: block;
}

/* -------------------------------------------------------------
   HERO SECTION
   ------------------------------------------------------------- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  padding-bottom: 140px; /* espaco extra para a onda */
  position: relative;
  overflow: hidden;
  background-color: var(--bg-color);
  transition: background-color 0.4s ease;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
  width: 100%;
  position: relative;
  z-index: 2;
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 3;
}

@media (max-width: 992px) {
  .hero-content {
    align-items: center;
  }
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 520px;
  position: relative;
  z-index: 3;
}

@media (max-width: 992px) {
  .hero-visual {
    height: 380px;
  }
}

.hero-separator {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 5;
  pointer-events: none;
  line-height: 0;
  overflow: hidden;
}

.hero-separator svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-separator path {
  fill: #ffffff;
  transition: fill 0.4s ease;
}

html[data-site-theme="inverted"] .hero-separator path {
  fill: var(--bg-color) !important;
}

.hero-badge-top {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 24px;
  opacity: 0.8;
  transition: color 0.4s ease;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(34px, 5.5vw, 62px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 680px;
  margin-bottom: 20px;
  text-align: left;
  background: linear-gradient(180deg, #ffffff 50%, #A99BB4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 992px) {
  .hero-title {
    text-align: center;
  }
}

[data-theme="light"] .hero-title {
  background: linear-gradient(180deg, #1F1A17 50%, #4A423D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-site-theme="inverted"] .hero-title {
  background: linear-gradient(180deg, #1F1A17 50%, #4A423D 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.hero-desc {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 36px;
  line-height: 1.5;
  text-align: left;
  transition: color 0.4s ease;
}

@media (max-width: 992px) {
  .hero-desc {
    text-align: center;
  }
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

@media (max-width: 992px) {
  .hero-ctas {
    justify-content: center;
  }
}

.btn-primary {
  background: var(--grad-primary);
  color: var(--text-primary);
  border: none;
  padding: 16px 32px;
  border-radius: 99px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 0 30px rgba(255, 94, 58, 0.2);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(255, 94, 58, 0.4);
}

.btn-secondary {
  background: rgba(3, 6, 16, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 16px 32px;
  border-radius: 99px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

/* Indicador de Scroll */
.hero-scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
  animation: bounce 2s infinite;
  cursor: pointer;
  text-decoration: none;
  z-index: 10;
}

.hero-scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hero-scroll-indicator svg {
  color: var(--text-muted);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -8px); }
  60% { transform: translate(-50%, -4px); }
}

/* -------------------------------------------------------------
   SEÇÃO QUEM SOMOS
   ------------------------------------------------------------- */
#quem-somos .grid-two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 860px) {
  #quem-somos .grid-two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

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

.qs-stats {
  display: flex;
  gap: 48px;
  margin-top: 32px;
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
  width: 100%;
  transition: border-color 0.4s ease;
}

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

.qs-stat-num {
  font-family: var(--font-title);
  font-size: 40px;
  font-weight: 800;
  color: var(--accent-orange);
  line-height: 1;
  margin-bottom: 8px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.qs-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.4s ease;
}

/* Card Gráfico Interativo */
.qs-visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.02);
  transition: var(--transition-smooth);
}

.qs-visual-card::before {
  content: '';
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle at center, rgba(255, 94, 58, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.interactive-engine {
  width: 80%;
  height: 80%;
  max-width: 320px;
}

/* CSS Keyframes de Rotação */
.engine-dashed-circle {
  transform-origin: center;
  animation: rotate-clockwise 40s linear infinite;
  transition: stroke 0.4s ease;
}

.engine-triangle {
  transform-origin: center;
  animation: rotate-counter 60s linear infinite;
}

.engine-core {
  transform-origin: center;
  animation: core-pulse 4s ease-in-out infinite;
}

.engine-core circle:first-child {
  transition: fill 0.4s ease, stroke 0.4s ease;
}

.engine-core path {
  transition: stroke 0.4s ease;
}

.engine-vertex {
  transform-origin: center;
  animation: vertex-glow 3s ease-in-out infinite;
}

@keyframes rotate-clockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotate-counter {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@keyframes core-pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; filter: drop-shadow(0 0 10px rgba(14, 165, 233, 0.4)); }
  50% { transform: scale(1.08); opacity: 1; filter: drop-shadow(0 0 25px rgba(14, 165, 233, 0.7)); }
}

@keyframes vertex-glow {
  0%, 100% { fill: #0ea5e9; filter: drop-shadow(0 0 4px #0ea5e9); }
  50% { fill: #38bdf8; filter: drop-shadow(0 0 10px #38bdf8); }
}

/* -------------------------------------------------------------
   SEÇÃO NOSSOS PILARES
   ------------------------------------------------------------- */
#pilares {
  background: linear-gradient(180deg, var(--bg-color) 0%, rgba(5, 8, 22, 0.6) 50%, var(--bg-color) 100%);
}

.pilares-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.pilar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pilar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 10%, rgba(255, 94, 58, 0.1) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.pilar-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(255, 94, 58, 0.05);
  background: var(--bg-card-hover);
}

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

.pilar-icon-box {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  transition: var(--transition-smooth);
}

.pilar-card:hover .pilar-icon-box {
  background: var(--grad-primary);
  color: var(--text-primary);
  border-color: transparent;
  box-shadow: 0 0 15px rgba(255, 94, 58, 0.3);
}

.pilar-card h3 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.pilar-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  transition: color 0.4s ease;
}

/* -------------------------------------------------------------
   SEÇÃO COMO CONSTRUÍMOS (METODOLOGIA)
   ------------------------------------------------------------- */
.timeline-container {
  position: relative;
  margin: 60px auto 0;
  max-width: 900px;
  padding: 40px 0;
}

/* Linha base e Linha de Progresso */
.timeline-track {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(-50%);
  transition: background 0.4s ease;
}

.timeline-progress-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-orange), var(--accent-pink), var(--accent-purple));
  transform: translateX(-50%);
  height: 0%; /* Controlado pelo GSAP */
  box-shadow: 0 0 12px rgba(255, 42, 109, 0.6);
}

.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 80px;
  width: 100%;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

/* Nós da Timeline */
.timeline-node {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--bg-color);
  border: 2px solid rgba(255, 255, 255, 0.15);
  transform: translate(-50%, -50%);
  z-index: 10;
  transition: all 0.3s ease;
}

.timeline-step.active .timeline-node {
  background-color: var(--accent-orange);
  border-color: #ffffff;
  box-shadow: 0 0 15px var(--accent-orange), 0 0 5px #ffffff;
}

/* Conteúdo das Etapas */
.timeline-content-box {
  padding: 0 40px;
  opacity: 0.15;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-step.active .timeline-content-box {
  opacity: 1;
  transform: translateY(0);
}

.timeline-step:nth-child(odd) .timeline-content-box {
  grid-column: 2;
  text-align: left;
}

.timeline-step:nth-child(even) .timeline-content-box {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color 0.4s ease;
}

.timeline-step.active .step-number {
  color: var(--accent-orange);
}

.step-title {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 360px;
  transition: color 0.4s ease;
}

.timeline-step:nth-child(even) .step-desc {
  margin-left: auto;
}

@media (max-width: 768px) {
  .timeline-track, .timeline-progress-line, .timeline-node {
    left: 20px;
    transform: none;
  }
  .timeline-progress-line {
    left: 20px;
  }
  .timeline-step {
    grid-template-columns: 1fr;
    padding-left: 50px;
    margin-bottom: 48px;
  }
  .timeline-step:nth-child(odd) .timeline-content-box,
  .timeline-step:nth-child(even) .timeline-content-box {
    grid-column: 1;
    text-align: left;
    padding: 0;
  }
  .timeline-step:nth-child(even) .step-desc {
    margin-left: 0;
  }
  .timeline-node {
    left: 20px;
    top: 8px;
    transform: translate(-50%, 0);
  }
}

/* -------------------------------------------------------------
   SEÇÃO STACK TECNOLÓGICO
   ------------------------------------------------------------- */
.marquee-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
  overflow: hidden;
  width: 100%;
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee-left 30s linear infinite;
}

.marquee-track.reverse {
  animation: marquee-right 30s linear infinite;
}

.marquee-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 10px 24px;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
}

.marquee-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-orange);
  display: inline-block;
}

.marquee-track.reverse .marquee-pill::before {
  background: var(--accent-pink);
}

@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* -------------------------------------------------------------
   SEÇÃO RESULTADOS REAIS
   ------------------------------------------------------------- */
.resultados-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: flex-start;
  margin-top: 60px;
}

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

@media (max-width: 520px) {
  .resultados-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.result-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.result-val {
  font-family: var(--font-title);
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}

.result-val.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Phrase Stat Styling */
.result-val.text-phrase {
  font-size: clamp(24px, 3vw, 36px);
  white-space: nowrap;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.result-label {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 200px;
  line-height: 1.4;
  transition: color 0.4s ease;
}

/* -------------------------------------------------------------
   SEÇÃO POR QUE VERTTEN?
   ------------------------------------------------------------- */
.porque-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

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

.pq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px;
  transition: var(--transition-smooth);
}

.pq-card:hover {
  transform: translateY(-4px);
  border-color: rgba(158, 0, 255, 0.3);
  box-shadow: 0 10px 24px rgba(158, 0, 255, 0.03);
}

.pq-icon {
  color: var(--accent-orange);
  margin-bottom: 16px;
}

.pq-card h3 {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.pq-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  transition: color 0.4s ease;
}

/* -------------------------------------------------------------
   SEÇÃO CTA FINAL
   ------------------------------------------------------------- */
#cta-final {
  padding: 120px 0;
}

.cta-box {
  background: radial-gradient(circle at top right, rgba(158, 0, 255, 0.08) 0%, rgba(255, 94, 58, 0.03) 70%);
  border: 1px solid var(--border-color);
  border-radius: 32px;
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 42, 109, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-title);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 36px;
  transition: color 0.4s ease;
}

.btn-gradient-cta {
  background: linear-gradient(135deg, #ff2a6d 0%, #9e00ff 100%);
  color: var(--text-primary);
  border: none;
  padding: 18px 36px;
  border-radius: 99px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 0 30px rgba(158, 0, 255, 0.3);
}

.btn-gradient-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(158, 0, 255, 0.5);
}

.btn-gradient-cta svg {
  transition: transform 0.3s ease;
}

.btn-gradient-cta:hover svg {
  transform: translateX(4px);
}

/* -------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px;
  background-color: var(--footer-bg);
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

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

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 280px;
  line-height: 1.5;
  transition: color 0.4s ease;
}

.footer-col h4 {
  font-family: var(--font-title);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 20px;
  transition: color 0.4s ease;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul li a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-col ul li a:hover {
  color: var(--accent-orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  transition: border-color 0.4s ease;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.4s ease;
}

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

.footer-socials a {
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.footer-socials a:hover {
  color: var(--accent-orange);
  transform: translateY(-2px);
}

.footer-contact-email {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-contact-email:hover {
  color: var(--accent-orange);
}

@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* -------------------------------------------------------------
   TEMA CLARO OVERRIDES ESPECÍFICOS DE SEÇÃO
   ------------------------------------------------------------- */
[data-theme="light"] .hero-title {
  background: linear-gradient(180deg, #0f172a 50%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .btn-secondary {
  background: rgba(255, 255, 255, 0.8);
}
[data-theme="light"] .btn-secondary:hover {
  background: rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .pilar-card, 
[data-theme="light"] .pq-card,
[data-theme="light"] .qs-visual-card {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .pilar-card:hover, 
[data-theme="light"] .pq-card:hover {
  box-shadow: 0 12px 30px rgba(255, 94, 58, 0.08);
}

[data-theme="light"] .engine-dashed-circle {
  stroke: rgba(15, 23, 42, 0.1);
}
[data-theme="light"] .engine-core circle:first-child {
  fill: #ffffff;
  stroke: rgba(255, 94, 58, 0.4);
}
[data-theme="light"] .engine-core path {
  stroke: #0f172a;
}

[data-theme="light"] .timeline-track {
  background: rgba(15, 23, 42, 0.06);
}
[data-theme="light"] .timeline-node {
  border-color: rgba(15, 23, 42, 0.15);
}
[data-theme="light"] .timeline-step.active .timeline-node {
  border-color: #ffffff;
}

[data-theme="light"] .marquee-pill {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}


[data-theme="light"] .btn-theme-toggle {
  background: rgba(15, 23, 42, 0.03);
}
[data-theme="light"] .btn-theme-toggle:hover {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.15);
}

[data-theme="light"] .header-logo-img,
[data-theme="light"] .footer-logo-img {
  /* Mantém a cor original do gradiente aurora nos logos vetoriais */
}

/* =============================================================
   MERGED LIGHT SECTIONS (FLOW-STYLE MIXED LAYOUT)
   ============================================================= */
#quem-somos, #pilares, #metodologia, #stack, #porque-vertten {
  background: #FAF8F5 !important;
  color: #1F1A17 !important;
  transition: background 0.4s ease, color 0.4s ease;
}

/* Titles and subtitle overrides */
#quem-somos .section-title,
#pilares .section-title,
#metodologia .section-title,
#stack .section-title,
#porque-vertten .section-title {
  color: #1F1A17 !important;
}

#quem-somos .section-subtitle,
#pilares .section-subtitle,
#metodologia .section-subtitle,
#stack .section-subtitle,
#porque-vertten .section-subtitle {
  color: #4A423D !important;
}

#quem-somos .badge-section,
#pilares .badge-section,
#metodologia .badge-section,
#stack .badge-section,
#porque-vertten .badge-section {
  background: rgba(196, 58, 110, 0.1) !important;
  color: #C43A6E !important;
  border: 1px solid rgba(196, 58, 110, 0.15) !important;
}

/* Card Styling in Light Sections */
#pilares .pilar-card {
  background: #FFFFFF !important;
  border: 1px solid #E2DAD4 !important;
  box-shadow: 0 4px 20px rgba(31, 26, 23, 0.02) !important;
}
#pilares .pilar-card:hover {
  border-color: rgba(196, 58, 110, 0.4) !important;
  box-shadow: 0 10px 30px rgba(196, 58, 110, 0.08) !important;
}
#pilares .pilar-card h3 {
  color: #1F1A17 !important;
}
#pilares .pilar-card p {
  color: #4A423D !important;
}
#pilares .pilar-icon-box {
  background: rgba(196, 58, 110, 0.1) !important;
  color: #C43A6E !important;
}

#quem-somos .qs-visual-card {
  background: #FFFFFF !important;
  border: 1px solid #E2DAD4 !important;
  box-shadow: 0 4px 20px rgba(31, 26, 23, 0.02) !important;
}

/* Metodologia (Timeline) in Light Section */
#metodologia .timeline-track {
  background: #E2DAD4 !important;
}
#metodologia .timeline-node {
  background: #FFFFFF !important;
  border-color: #E2DAD4 !important;
}
#metodologia .timeline-step.active .timeline-node {
  border-color: #C43A6E !important;
  background: #C43A6E !important;
  box-shadow: 0 0 15px rgba(196, 58, 110, 0.5) !important;
}
#metodologia .timeline-content-box {
  background: #FFFFFF !important;
  border: 1px solid #E2DAD4 !important;
  color: #1F1A17 !important;
}
#metodologia .timeline-step.active .timeline-content-box {
  border-color: rgba(196, 58, 110, 0.2) !important;
  box-shadow: 0 10px 30px rgba(196, 58, 110, 0.05) !important;
}
#metodologia .timeline-step h3 {
  color: #1F1A17 !important;
}
#metodologia .timeline-step p {
  color: #4A423D !important;
}
#metodologia .step-number {
  color: #9A8F88 !important;
}
#metodologia .timeline-step.active .step-number {
  color: #C43A6E !important;
}

/* Stack Tecnológico pills in Light Section */
#stack .marquee-pill {
  background: #FFFFFF !important;
  color: #1F1A17 !important;
  border: 1px solid #E2DAD4 !important;
  box-shadow: 0 4px 12px rgba(31, 26, 23, 0.02) !important;
}

/* Por Que Vertten in Light Section */
#porque-vertten .pq-card {
  background: #FFFFFF !important;
  border: 1px solid #E2DAD4 !important;
  box-shadow: 0 4px 20px rgba(31, 26, 23, 0.02) !important;
}
#porque-vertten .pq-card:hover {
  border-color: rgba(196, 58, 110, 0.4) !important;
  box-shadow: 0 10px 30px rgba(196, 58, 110, 0.08) !important;
}
#porque-vertten .pq-card h3 {
  color: #1F1A17 !important;
}
#porque-vertten .pq-card p {
  color: #4A423D !important;
}
#porque-vertten .pq-icon {
  background: rgba(123, 58, 190, 0.1) !important;
  color: #7B3ABE !important;
}

/* Quem Somos overrides */
#quem-somos .qs-stat-num {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
#quem-somos .qs-stat-label {
  color: #4A423D !important;
}
#quem-somos .engine-dashed-circle {
  stroke: rgba(123, 58, 190, 0.15) !important;
}
#quem-somos .engine-core circle:first-child {
  fill: #FFFFFF !important;
  stroke: #E2DAD4 !important;
}
#quem-somos .engine-triangle path {
  stroke: rgba(123, 58, 190, 0.12) !important;
}
#quem-somos .engine-logo {
  filter: none !important;
  transition: filter 0.4s ease;
}

/* =============================================================
   PURE INVERTED MODE OVERRIDES (data-site-theme="inverted")
   ============================================================= */
html[data-site-theme="inverted"] #quem-somos,
html[data-site-theme="inverted"] #pilares,
html[data-site-theme="inverted"] #metodologia,
html[data-site-theme="inverted"] #stack,
html[data-site-theme="inverted"] #porque-vertten {
  background: #17121F !important;
  color: #F5EFEA !important;
}

html[data-site-theme="inverted"] #quem-somos .section-title,
html[data-site-theme="inverted"] #pilares .section-title,
html[data-site-theme="inverted"] #metodologia .section-title,
html[data-site-theme="inverted"] #stack .section-title,
html[data-site-theme="inverted"] #porque-vertten .section-title {
  color: #F5EFEA !important;
}

html[data-site-theme="inverted"] #quem-somos .section-subtitle,
html[data-site-theme="inverted"] #pilares .section-subtitle,
html[data-site-theme="inverted"] #metodologia .section-subtitle,
html[data-site-theme="inverted"] #stack .section-subtitle,
html[data-site-theme="inverted"] #porque-vertten .section-subtitle {
  color: #A99BB4 !important;
}

html[data-site-theme="inverted"] #quem-somos .badge-section,
html[data-site-theme="inverted"] #pilares .badge-section,
html[data-site-theme="inverted"] #metodologia .badge-section,
html[data-site-theme="inverted"] #stack .badge-section,
html[data-site-theme="inverted"] #porque-vertten .badge-section {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #EE5333 !important;
  border-color: rgba(255, 94, 58, 0.15) !important;
}

/* Card Styling in Inverted Mode */
html[data-site-theme="inverted"] #pilares .pilar-card {
  background: #261C33 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}
html[data-site-theme="inverted"] #pilares .pilar-card:hover {
  border-color: rgba(196, 58, 110, 0.4) !important;
  box-shadow: 0 10px 30px rgba(196, 58, 110, 0.08) !important;
}
html[data-site-theme="inverted"] #pilares .pilar-card h3 {
  color: #F5EFEA !important;
}
html[data-site-theme="inverted"] #pilares .pilar-card p {
  color: #A99BB4 !important;
}
html[data-site-theme="inverted"] #pilares .pilar-icon-box {
  background: rgba(196, 58, 110, 0.08) !important;
  color: #C43A6E !important;
}

/* Metodologia in Inverted Mode */
html[data-site-theme="inverted"] #metodologia .timeline-track {
  background: rgba(255, 255, 255, 0.05) !important;
}
html[data-site-theme="inverted"] #metodologia .timeline-node {
  background: #17121F !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
html[data-site-theme="inverted"] #metodologia .timeline-step.active .timeline-node {
  border-color: #C43A6E !important;
  background: #C43A6E !important;
}
html[data-site-theme="inverted"] #metodologia .timeline-content-box {
  background: #261C33 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #F5EFEA !important;
}
html[data-site-theme="inverted"] #metodologia .timeline-step h3 {
  color: #F5EFEA !important;
}
html[data-site-theme="inverted"] #metodologia .timeline-step p {
  color: #A99BB4 !important;
}
html[data-site-theme="inverted"] #metodologia .step-number {
  color: rgba(255, 255, 255, 0.05) !important;
}

/* Stack Tecnológico pills in Inverted Mode */
html[data-site-theme="inverted"] #stack .marquee-pill {
  background: #261C33 !important;
  color: #F5EFEA !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Por Que Vertten in Inverted Mode */
html[data-site-theme="inverted"] #porque-vertten .pq-card {
  background: #261C33 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}
html[data-site-theme="inverted"] #porque-vertten .pq-card:hover {
  border-color: rgba(196, 58, 110, 0.4) !important;
  box-shadow: 0 10px 30px rgba(196, 58, 110, 0.08) !important;
}
html[data-site-theme="inverted"] #porque-vertten .pq-card h3 {
  color: #F5EFEA !important;
}
html[data-site-theme="inverted"] #porque-vertten .pq-card p {
  color: #A99BB4 !important;
}
html[data-site-theme="inverted"] #porque-vertten .pq-icon {
  background: rgba(123, 58, 190, 0.1) !important;
  color: #7B3ABE !important;
}

/* Quem Somos in Inverted Mode */
html[data-site-theme="inverted"] #quem-somos .qs-stat-label {
  color: #A99BB4 !important;
}
html[data-site-theme="inverted"] #quem-somos .qs-visual-card {
  background: #261C33 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}
html[data-site-theme="inverted"] #quem-somos .engine-dashed-circle {
  stroke: rgba(255, 255, 255, 0.1) !important;
}
html[data-site-theme="inverted"] #quem-somos .engine-core circle:first-child {
  fill: #261C33 !important;
  stroke: rgba(255, 255, 255, 0.1) !important;
}
html[data-site-theme="inverted"] #quem-somos .engine-triangle path {
  stroke: rgba(255, 255, 255, 0.15) !important;
}
html[data-site-theme="inverted"] #quem-somos .engine-logo {
  filter: none !important;
}

/* INVERTING DARK SECTIONS TO LIGHT */
html[data-site-theme="inverted"] #hero,
html[data-site-theme="inverted"] #resultados,
html[data-site-theme="inverted"] #cta-final,
html[data-site-theme="inverted"] footer {
  background: #FAF8F5 !important;
  color: #1F1A17 !important;
}

html[data-site-theme="inverted"] #hero .hero-badge-top,
html[data-site-theme="inverted"] #hero p,
html[data-site-theme="inverted"] #resultados p,
html[data-site-theme="inverted"] #cta-final p {
  color: #4A423D !important;
}

html[data-site-theme="inverted"] #hero .hero-title {
  background: linear-gradient(180deg, #1F1A17 50%, #4A423D 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
html[data-site-theme="inverted"] #resultados .section-title,
html[data-site-theme="inverted"] #cta-final .section-title,
html[data-site-theme="inverted"] #resultados h2,
html[data-site-theme="inverted"] #cta-final h2 {
  color: #1F1A17 !important;
}

html[data-site-theme="inverted"] #hero .hero-logo-glow {
  background: radial-gradient(circle, rgba(123, 58, 190, 0.15) 0%, rgba(245, 165, 66, 0.05) 60%, transparent 100%) !important;
}

/* Invert buttons in Hero when it becomes light */
html[data-site-theme="inverted"] #hero .btn-secondary {
  border-color: #E2DAD4 !important;
  color: #1F1A17 !important;
  background: transparent !important;
}
html[data-site-theme="inverted"] #hero .btn-secondary:hover {
  background: rgba(31, 26, 23, 0.05) !important;
}
html[data-site-theme="inverted"] #hero .hero-scroll-indicator {
  color: #6B615C !important;
}

/* Invert metric values in resultados section to match light mode */
html[data-site-theme="inverted"] #resultados .result-card {
  background: #FFFFFF !important;
  border: 1px solid #E2DAD4 !important;
  box-shadow: 0 4px 20px rgba(31, 26, 23, 0.02) !important;
}
html[data-site-theme="inverted"] #resultados .result-card p {
  color: #4A423D !important;
}
html[data-site-theme="inverted"] #resultados .result-card h3 {
  color: #1F1A17 !important;
}
html[data-site-theme="inverted"] #resultados .badge-section {
  background: rgba(196, 58, 110, 0.1) !important;
  color: #C43A6E !important;
}

/* Invert CTA final buttons and structure */
html[data-site-theme="inverted"] #cta-final .cta-wrapper {
  background: #FFFFFF !important;
  border: 1px solid #E2DAD4 !important;
  box-shadow: 0 10px 40px rgba(31, 26, 23, 0.02) !important;
}

html[data-site-theme="inverted"] footer {
  border-top: 1px solid #E2DAD4 !important;
}
html[data-site-theme="inverted"] footer .footer-logo-img {
  filter: none !important;
}
html[data-site-theme="inverted"] footer .footer-links a,
html[data-site-theme="inverted"] footer .footer-bottom p {
  color: #4A423D !important;
}
html[data-site-theme="inverted"] footer .footer-links a:hover {
  color: #C43A6E !important;
}

/* Header static in Inverted Mode (Over light Hero) */
html[data-site-theme="inverted"] header:not(.scrolled) .logo-text {
  color: #1F1A17 !important;
}
html[data-site-theme="inverted"] header:not(.scrolled) .header-logo-img {
  filter: none !important;
}
html[data-site-theme="inverted"] header:not(.scrolled) .header-nav a {
  color: rgba(31, 26, 23, 0.75) !important;
}
html[data-site-theme="inverted"] header:not(.scrolled) .header-nav a:hover {
  color: #C43A6E !important;
}
html[data-site-theme="inverted"] header:not(.scrolled) .btn-header-cta {
  background: #1F1A17 !important;
  color: #ffffff !important;
  border-color: #1F1A17 !important;
}
html[data-site-theme="inverted"] header:not(.scrolled) .btn-header-cta:hover {
  background: #C43A6E !important;
  border-color: #C43A6E !important;
  color: #ffffff !important;
}
html[data-site-theme="inverted"] header:not(.scrolled) .btn-theme-toggle {
  color: #1F1A17 !important;
  border-color: #E2DAD4 !important;
}
html[data-site-theme="inverted"] header:not(.scrolled) .btn-theme-toggle:hover {
  background: rgba(31, 26, 23, 0.05) !important;
}

/* Scrolled Header in Inverted Mode (Over dark sections) */
html[data-site-theme="inverted"] header.scrolled {
  background: rgba(23, 18, 31, 0.96) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
}
html[data-site-theme="inverted"] header.scrolled .logo-text {
  color: #F5EFEA !important;
}
html[data-site-theme="inverted"] header.scrolled .header-logo-img {
  filter: none !important;
}
html[data-site-theme="inverted"] header.scrolled .header-nav a {
  color: rgba(255, 255, 255, 0.7) !important;
}
html[data-site-theme="inverted"] header.scrolled .header-nav a:hover {
  color: #C43A6E !important;
}
html[data-site-theme="inverted"] header.scrolled .btn-header-cta {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #F5EFEA !important;
}
html[data-site-theme="inverted"] header.scrolled .btn-header-cta:hover {
  background: var(--grad-primary) !important;
  border-color: transparent !important;
}
html[data-site-theme="inverted"] header.scrolled .btn-theme-toggle {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}
html[data-site-theme="inverted"] header.scrolled .btn-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

/* Theme Toggle Button base adapts */
.btn-theme-toggle {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}
header.scrolled .btn-theme-toggle {
  background: rgba(31, 26, 23, 0.03);
  border-color: #E2DAD4;
  color: #1F1A17;
}
header.scrolled .btn-theme-toggle:hover {
  background: rgba(31, 26, 23, 0.08);
}

/* Sun/Moon Toggle Display */
.btn-theme-toggle .sun-icon {
  display: none;
}
.btn-theme-toggle .moon-icon {
  display: block;
}
html[data-site-theme="inverted"] .btn-theme-toggle .sun-icon {
  display: block;
}
html[data-site-theme="inverted"] .btn-theme-toggle .moon-icon {
  display: none;
}

/* Inversão dos frames de animação do Hero no Modo Invertido (Claro) */
html[data-site-theme="inverted"] .hero-bg-frames {
  filter: invert(1) !important;
  mix-blend-mode: normal !important; /* Desativa screen blend para manter o fundo branco gerado por invert(1) */
  opacity: 0.25; /* Suaviza as linhas escuras para manter alta legibilidade do texto */
}
