/* ==========================================================================
   RAUL.OS — DESIGN SYSTEM v2.0 (Aprimorado)
   Ultra-Dark Neutral SaaS Interface — Sem Ciano
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;800&family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600&display=swap');

/* --------------------------------------------------------------------------
   DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Cores Neutras e Premium */
  --bg-primary:        #000000;
  --bg-card:           #0A0A0C;
  --bg-card-hover:     #0F0F12;
  --text-primary:      #F3F4F6;
  --text-secondary:    #9CA3AF;
  --text-muted:        #6B7280;
  --border-subtle:     #1F1F23;
  --border-light:      #2A2A30;
  --border-highlight:  #44444A;
  
  --cta-bg:            #FFFFFF;
  --cta-text:          #000000;
  
  --white-2:           rgba(255, 255, 255, 0.02);
  --white-5:           rgba(255, 255, 255, 0.05);
  --white-10:          rgba(255, 255, 255, 0.10);
  --white-20:          rgba(255, 255, 255, 0.20);

  /* Fontes da Identidade */
  --font-display:  'Plus Jakarta Sans', sans-serif;
  --font-serif:    'Instrument Serif', serif;
  --font-body:     'Inter', sans-serif;

  /* Espaçamento */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Bordas e Cantos */
  --radius-sm:  6px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --border-std: 1px solid var(--border-subtle);

  /* Transições */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  --container-max: 1200px;
  --nav-height:    76px;
}

/* --------------------------------------------------------------------------
   RESET & CONFIGURAÇÃO BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* --------------------------------------------------------------------------
   EFEITOS SAAS DE FUNDO (GRID + ORBS DE LUZ)
   -------------------------------------------------------------------------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.bg-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  height: 60vh;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
  filter: blur(100px);
}

.bg-glow-bottom {
  position: absolute;
  bottom: 10%;
  right: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.015) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
}

/* --------------------------------------------------------------------------
   UTILITÁRIOS E TEXTO
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.section {
  padding: var(--space-32) 0;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.section-label::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  background: var(--text-primary);
  border-radius: 50%;
}

.section-header {
  margin-bottom: var(--space-16);
  max-width: 650px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05em;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   ELEMENTOS DE BOTÃO
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}

.btn--primary {
  background: var(--cta-bg);
  color: var(--cta-text);
  border: 1px solid var(--cta-bg);
}

.btn--primary:hover {
  background: #E5E7EB;
  border-color: #E5E7EB;
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.08);
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn--secondary:hover {
  border-color: var(--text-primary);
  background: var(--white-5);
}

.btn--lg {
  padding: 1rem 2.2rem;
  font-size: 1rem;
}

.btn-arrow {
  display: inline-block;
  transition: transform var(--transition-base);
}

.btn--primary:hover .btn-arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Navegação (Header)
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  border-bottom: var(--border-std);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav .container {
  width: 100%;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--space-6); /* Garante espaçamento mínimo entre logo e menu */
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-mark {
  width: 32px;
  height: 32px;
  background: var(--text-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav__logo-mark svg {
  width: 18px;
  height: 18px;
}

.nav__logo-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-decoration: none;
}

/* Badge de identificação do módulo (ex: Sales.OS) */
.module-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white-10);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 0.15em 0.55em;
  letter-spacing: 0.04em;
  vertical-align: middle;
  margin-left: 0.35rem;
  white-space: nowrap;
}

/* OBS abaixo da grid de módulos */
.modules-obs {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-10);
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--white-2);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.modules-obs__icon {
  font-size: 1.1rem;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 0.1em;
}

.modules-obs p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.modules-obs strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Variante Growth (verde) */
.module-badge.growth-badge {
  color: #73C991;
  background: rgba(115, 201, 145, 0.08);
  border-color: rgba(115, 201, 145, 0.25);
}

/* Variante Tech (azul) */
.module-badge.tech-badge {
  color: #60A5FA;
  background: rgba(96, 165, 250, 0.08);
  border-color: rgba(96, 165, 250, 0.25);
}

/* Bloco de destaque da seção "time inteiro" */
.modules-obs--highlight {
  max-width: 680px;
  background: var(--white-2);
  border-color: var(--border-subtle);
}

.modules-obs--highlight .modules-obs__icon {
  color: #9CA3AF;
  font-size: 1rem;
}



.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* --------------------------------------------------------------------------
   HERO COM DUAS COLUNAS & ROBÔ
   -------------------------------------------------------------------------- */
.hero {
  padding-top: calc(var(--nav-height) + var(--space-20));
  padding-bottom: var(--space-24);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-12);
  align-items: center;
}

.hero__content {
  text-align: left;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.4rem 1rem;
  border: var(--border-std);
  border-radius: 100px;
  background: var(--bg-card);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-primary);
  box-shadow: 0 0 6px var(--text-primary);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 580px;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-16);
}

/* Coluna Direita: Imagem do Robô e Glow */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__visual-glow {
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 65%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.hero__image {
  position: relative;
  z-index: 1;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 98%);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 98%);
  filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.05));
  animation: float-robo 6s ease-in-out infinite;
}

@keyframes float-robo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Métricas na Hero */
.hero__metrics {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  padding-top: var(--space-8);
  border-top: var(--border-std);
  max-width: 100%;
}

.hero__metric {
  text-align: left;
}

.hero__metric-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.hero__metric-value span {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: var(--space-1);
}

.hero__metric-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: var(--space-2);
}

.hero__metric-divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
}

/* --------------------------------------------------------------------------
   MOCKUP DE IDE VIRTUAL (VS Code/Claude Code Style)
   -------------------------------------------------------------------------- */
.ide-showcase {
  padding: var(--space-16) 0 0;
}

/* --------------------------------------------------------------------------
   BRAIN NEURAL VIDEO SHOWCASE
   -------------------------------------------------------------------------- */
.brain-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brain-video {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: contain;
  display: block;
  mix-blend-mode: screen;
}

.ide-window {
  background: var(--bg-card);
  border: var(--border-std);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  height: 560px;
  position: relative;
}

/* Header da IDE */
.ide-header {
  height: 40px;
  background: #0D0D10;
  border-bottom: var(--border-std);
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
  justify-content: space-between;
}

.ide-dots {
  display: flex;
  gap: 6px;
}

.ide-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2A2A30;
}

.ide-dot:nth-child(1) { background: #FF5F56; }
.ide-dot:nth-child(2) { background: #FFBD2E; }
.ide-dot:nth-child(3) { background: #27C93F; }

.ide-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.ide-title svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

.ide-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Corpo da IDE */
.ide-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  flex: 1;
  overflow: hidden;
}

/* Barra Lateral da IDE */
.ide-sidebar {
  background: #070709;
  border-right: var(--border-std);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  padding: var(--space-3) var(--space-4);
  text-transform: uppercase;
  border-bottom: var(--border-std);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.folder-tree {
  padding: var(--space-3) 0;
  font-family: Consolas, Monaco, 'Courier New', monospace;
  font-size: 0.75rem;
}

.tree-item {
  display: flex;
  align-items: center;
  padding: 4px var(--space-4);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition-fast);
  user-select: none;
}

.tree-item:hover {
  background: var(--white-2);
  color: var(--text-primary);
}

.tree-item--active {
  background: var(--white-5);
  color: var(--text-primary);
  border-left: 2px solid var(--text-primary);
}

.tree-item.indent-1 { padding-left: calc(var(--space-4) + 12px); }
.tree-item.indent-2 { padding-left: calc(var(--space-4) + 24px); }

.tree-icon {
  margin-right: 6px;
  font-size: 0.875rem;
  display: inline-block;
  width: 14px;
  text-align: center;
}

.tree-arrow {
  font-size: 0.55rem;
  margin-right: 4px;
  opacity: 0.5;
  transition: transform var(--transition-base);
}

.tree-arrow.open {
  transform: rotate(90deg);
}

.tree-mod {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1;
}

.tree-mod--m { color: #E2B36E; }
.tree-mod--a { color: #73C991; }

/* Editor de Código da IDE */
.ide-editor {
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.editor-tabs {
  height: 35px;
  background: #070709;
  border-bottom: var(--border-std);
  display: flex;
}

.editor-tab {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-4);
  font-size: 0.75rem;
  color: var(--text-muted);
  border-right: var(--border-std);
  background: #09090C;
  cursor: pointer;
  user-select: none;
}

.editor-tab.active {
  background: var(--bg-primary);
  color: var(--text-primary);
  border-top: 1px solid var(--text-primary);
  height: 35px;
}

.editor-tab-close {
  font-size: 0.65rem;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.editor-tab-close:hover { opacity: 1; }

.editor-content {
  flex: 1;
  padding: var(--space-6);
  font-family: Consolas, Monaco, 'Courier New', monospace;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  overflow-y: auto;
  line-height: 1.5;
}

/* Estilo do Terminal embutido */
.editor-terminal {
  border-top: var(--border-std);
  background: #060608;
  height: 150px;
  display: flex;
  flex-direction: column;
}

.terminal-header {
  height: 30px;
  background: #09090C;
  border-bottom: var(--border-std);
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.terminal-body {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  font-family: Consolas, Monaco, 'Courier New', monospace;
  font-size: 0.75rem;
  color: #73C991;
  overflow-y: auto;
}

.terminal-prompt {
  color: var(--text-primary);
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

.terminal-cursor {
  display: inline-block;
  width: 6px;
  height: 13px;
  background: var(--text-primary);
  animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {
  from, to { background-color: transparent }
  50% { background-color: var(--text-primary); }
}

/* Sintaxe do Code View */
.code-line { display: flex; }
.code-num { width: 30px; color: var(--text-muted); text-align: right; margin-right: 15px; user-select: none; }
.code-txt { white-space: pre; }
.t-keyword { color: #E5C07B; }
.t-string { color: #98C379; }
.t-comment { color: var(--text-muted); }
.t-tag { color: #E06C75; }
.t-attr { color: #D19A66; }

/* --------------------------------------------------------------------------
   SEÇÃO DOS AGENTES (COLABORADORES DIGITAIS)
   -------------------------------------------------------------------------- */
.agents {
  padding: var(--space-8) 0 var(--space-24);
}

.pillars-pills-container {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  padding: 0 10px;
}

.pill-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 12px 24px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  border-radius: 30px;
}

.pill-tab:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.pill-tab.active {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-highlight);
  color: var(--text-primary);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.pill-icon {
  color: var(--text-muted);
  transition: color var(--transition-base);
}

.pill-tab.active .pill-icon {
  color: var(--text-primary);
}

.bento-container {
  width: 100%;
}

.bento-panel {
  display: none;
  animation: bentoFadeIn 0.4s ease forwards;
}

.bento-panel.active {
  display: block;
}

@keyframes bentoFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-section-header {
  margin-bottom: 32px;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.panel-section-header h4 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
}

.panel-section-header p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.bento-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-base);
}

.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.bento-card-bg-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.bento-card:hover .bento-card-bg-glow {
  opacity: 1;
}

/* Novo Layout de Pilares — Premium Redesign */
.pillars-hero-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: stretch;
}

/* ---- Card Base ---- */
.pillar-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 20px 32px;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0.008) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pillar-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 220px 180px at 50% 0%, rgba(255,255,255,0.06) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.pillar-card:hover {
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-6px);
  box-shadow:
    0 20px 50px rgba(0,0,0,0.3),
    0 0 0 1px rgba(255,255,255,0.08) inset;
}

.pillar-card:hover::before {
  opacity: 1;
}

/* ---- Icon Ring ---- */
.pillar-card__icon-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
  transition: all 0.4s ease;
  flex-shrink: 0;
}

.pillar-card:hover .pillar-card__icon-ring {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.04) 100%);
  border-color: rgba(255,255,255,0.20);
  box-shadow: 0 0 24px rgba(255,255,255,0.06);
}

/* ---- Number ---- */
.pillar-card__number {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.22);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.pillar-card:hover .pillar-card__number {
  color: rgba(255,255,255,0.45);
}

/* ---- Title ---- */
.pillar-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 14px 0;
  letter-spacing: -0.01em;
}

/* ---- Divider ---- */
.pillar-card__divider {
  width: 32px;
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin-bottom: 16px;
  transition: all 0.4s ease;
}

.pillar-card:hover .pillar-card__divider {
  width: 48px;
  background: rgba(255,255,255,0.30);
}

/* ---- Description ---- */
.pillar-card__desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
  flex-grow: 1;
  transition: color 0.3s ease;
}

.pillar-card:hover .pillar-card__desc {
  color: rgba(255,255,255,0.80);
}

/* ---- Featured Card (Escala) — Máximo Destaque ---- */
.pillar-card--featured {
  border-color: rgba(255,255,255,0.16);
  background:
    linear-gradient(160deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.015) 100%);
  position: relative;
}

.pillar-card--featured::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 50%, rgba(255,255,255,0.08));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.pillar-card--featured:hover::after {
  opacity: 1;
}

.pillar-card--featured .pillar-card__icon-ring {
  border-color: rgba(255,255,255,0.22);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.04) 100%);
  box-shadow: 0 0 20px rgba(255,255,255,0.04);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255,255,255,0.04); }
  50% { box-shadow: 0 0 32px rgba(255,255,255,0.10); }
}

.pillar-card--featured .pillar-card__divider {
  width: 40px;
  background: rgba(255,255,255,0.22);
}

.pillar-card--featured:hover .pillar-card__divider {
  width: 56px;
  background: rgba(255,255,255,0.40);
}

.pillar-card--featured .pillar-card__desc {
  color: rgba(255,255,255,0.65);
}

.pillar-card--featured:hover {
  border-color: rgba(255,255,255,0.28);
  box-shadow:
    0 24px 64px rgba(0,0,0,0.4),
    0 0 48px rgba(255,255,255,0.04),
    0 0 0 1px rgba(255,255,255,0.12) inset;
}

/* ---- Badge "Resultado Final" ---- */
.pillar-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.80);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 100px;
  padding: 4px 12px;
  line-height: 1;
}

/* ---- Observação (Pillar Obs) ---- */
.pillar-obs {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 28px;
  padding: 20px 24px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  transition: border-color 0.3s ease;
}

.pillar-obs:hover {
  border-color: rgba(255,255,255,0.12);
}

.pillar-obs__icon {
  flex-shrink: 0;
  color: rgba(255,255,255,0.35);
  margin-top: 1px;
}

.pillar-obs__content {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.pillar-obs__content strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Exclusivo para expandir os pilares e fluxograma dando mais espaço aos textos */
.agents .container {
  max-width: 1360px;
}

/* --------------------------------------------------------------------------
   FLUXOGRAMA LOOP CONTÍNUO RAUL.OS
   -------------------------------------------------------------------------- */
.loop-flowchart {
  margin: 32px auto 56px auto;
  width: 100%;
}

.flowchart-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}

.flowchart-step {
  position: relative;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition-base);
  min-height: 136px;
}

.flowchart-step:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Conector de Fluxo com Luz Animada */
.flowchart-step:not(:last-of-type)::after {
  content: '';
  position: absolute;
  right: -17px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(115, 201, 145, 0.7), rgba(255, 255, 255, 0.05));
  background-size: 200% 100%;
  animation: flowLight 1.5s infinite linear;
  z-index: 10;
  pointer-events: none;
}

@keyframes flowLight {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.flowchart-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: 12px;
  transition: all var(--transition-fast);
}

.flowchart-step:hover .flowchart-icon {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.flowchart-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.flowchart-name {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}

.flowchart-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.45;
  transition: color 0.3s ease;
}

.flowchart-step:hover .flowchart-desc {
  color: #FFFFFF;
}

/* Destaque do Ajusta Sozinho (Etapa IA) */
.flowchart-step--highlight {
  border-color: rgba(115, 201, 145, 0.25) !important;
  background: rgba(115, 201, 145, 0.02) !important;
}

.flowchart-step--highlight .flowchart-icon {
  background: rgba(115, 201, 145, 0.08) !important;
  border-color: rgba(115, 201, 145, 0.3) !important;
  color: #73C991 !important;
  box-shadow: 0 0 10px rgba(115, 201, 145, 0.15);
}

.flowchart-step--highlight:hover {
  border-color: rgba(115, 201, 145, 0.5) !important;
  background: rgba(115, 201, 145, 0.04) !important;
}

/* Responsividade Unificada para o Fluxograma e Grid de Pilares (Abaixo de 1024px) */
@media (max-width: 1023px) {
  .flowchart-steps {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .pillars-hero-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px;
  }
  
  .flowchart-step:not(:last-of-type)::after {
    display: none;
  }

  .flowchart-step {
    min-height: auto;
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 16px 20px;
    gap: 16px;
  }

  .flowchart-icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .flowchart-meta {
    align-items: flex-start;
  }

  .pillar-card {
    padding: 28px 18px 24px;
  }
}

@media (max-width: 640px) {
  .pillars-hero-grid {
    grid-template-columns: 1fr !important;
  }
}

/* --------------------------------------------------------------------------
   SEÇÃO COMPARATIVA — Raul.OS VS Mercado
   -------------------------------------------------------------------------- */
.vs-section {
  padding: var(--space-24) 0;
  position: relative;
}

/* Bloco de destaque: Sócio de Crescimento */
.vs-integrated-block {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.vs-integrated-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.vs-integrated-block:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.vs-integrated-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.vs-integrated-text h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.vs-integrated-text p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  max-width: 720px;
}

/* Wrapper da tabela */
.vs-table-wrapper {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 48px;
}

/* Header da tabela */
.vs-table-header {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1.6fr;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 24px;
  gap: 16px;
  align-items: center;
}

.vs-col-label {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.vs-col-label--feature { color: var(--text-muted); }

.vs-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.vs-badge--bad {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #F87171;
}

.vs-badge--good {
  background: rgba(115, 201, 145, 0.08);
  border: 1px solid rgba(115, 201, 145, 0.25);
  color: #73C991;
}

/* Corpo da tabela */
.vs-table-body {
  display: flex;
  flex-direction: column;
}

.vs-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1.6fr;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
  transition: background 0.2s ease;
}

.vs-row:last-child {
  border-bottom: none;
}

.vs-row:hover {
  background: rgba(255, 255, 255, 0.015);
}

.vs-cell {
  font-size: 0.875rem;
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.vs-cell--feature {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  align-items: center;
}

.vs-cell--bad {
  color: #9CA3AF;
}

.vs-cell--good {
  color: var(--text-secondary);
}

.vs-x {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 800;
  color: #F87171;
  margin-top: 2px;
  opacity: 0.85;
}

.vs-check {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 2px;
}

/* CTA inline */
.vs-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 18px 28px;
  flex-wrap: nowrap;
}

.vs-cta__text {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
}

.vs-cta__btn {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0.85rem;
  padding: 0.6rem 1.2rem;
}

/* Responsividade */
@media (max-width: 1023px) {
  .vs-table-header,
  .vs-row {
    grid-template-columns: 1fr 1fr;
  }

  .vs-col-label--feature,
  .vs-cell--feature {
    display: none;
  }
}

@media (max-width: 767px) {
  .vs-integrated-block {
    flex-direction: column;
    padding: 28px 24px;
    gap: 20px;
  }

  .vs-table-header,
  .vs-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .vs-col-label--bad,
  .vs-col-label--good {
    display: none;
  }

  .vs-row {
    padding: 20px 20px;
  }

  .vs-cell--bad {
    padding: 12px 14px;
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-md);
  }

  .vs-cell--good {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
  }

  .vs-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    gap: 16px;
  }
}

/* --------------------------------------------------------------------------
   SEÇÃO DOS SERVIÇOS
   -------------------------------------------------------------------------- */
.services {
  padding: var(--space-24) 0;
  background: var(--bg-card);
  border-top: var(--border-std);
  border-bottom: var(--border-std);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
}

.service-card {
  background: var(--bg-primary);
  border: var(--border-std);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  transition: all var(--transition-base);
}

.service-card:hover {
  border-color: var(--border-highlight);
  box-shadow: 0 10px 30px var(--white-5);
  transform: translateY(-2px);
}

.service-card__number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.service-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-5);
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--white-5);
  border: var(--border-std);
  border-radius: 4px;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq {
  padding: var(--space-24) 0;
}

.faq__layout {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: var(--space-16);
  align-items: start;
}

.faq-list {
  display: flex;
  flex-direction: column;
  border: var(--border-std);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item {
  border-bottom: var(--border-std);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  background: var(--bg-card);
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: background var(--transition-fast);
  cursor: pointer;
  gap: var(--space-4);
}

.faq-question:hover,
.faq-item.open .faq-question {
  background: var(--bg-card-hover);
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base), border-color var(--transition-base), color var(--transition-base);
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
  background: var(--bg-primary);
}

.faq-answer-inner {
  padding: 0 var(--space-6) var(--space-5);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

/* --------------------------------------------------------------------------
   FORMULÁRIO E CAPTURA B2B
   -------------------------------------------------------------------------- */
.cta-form {
  padding: var(--space-24) 0;
  background: var(--bg-card);
  border-top: var(--border-std);
}

.cta-form__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-16);
  align-items: center;
}

.cta-form__copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.cta-form__copy p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.cta-form__trust {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.trust-item::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  background: var(--text-secondary);
  border-radius: 50%;
}

/* Estilos de inputs técnicos */
.form {
  background: var(--bg-primary);
  border: var(--border-std);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-label .optional {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.75rem;
}

.form-input,
.form-textarea,
.form-select {
  background: var(--bg-card);
  border: var(--border-std);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: var(--text-primary);
  font-size: 0.9375rem;
  width: 100%;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  outline: none;
}

.form-select {
  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='%239CA3AF'%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 1rem center;
  background-size: 1.2rem;
  padding-right: 2.5rem;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  margin-top: var(--space-2);
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-8);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
  border-top: var(--border-std);
  padding: var(--space-12) 0;
  background: #020202;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--text-primary);
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
  word-break: break-word;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.footer__link {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   SCROLL ANIMATIONS
   -------------------------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 60ms; }
.fade-up:nth-child(3) { transition-delay: 120ms; }
.fade-up:nth-child(4) { transition-delay: 180ms; }

/* --------------------------------------------------------------------------
   RESPONSIVIDADE E AJUSTES DE LAYOUT
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
    text-align: center;
  }

  .hero__content {
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__ctas {
    justify-content: center;
  }

  .hero__metrics {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

  .hero__visual {
    margin: var(--space-4) auto 0;
    max-width: 440px;
    width: 100%;
  }

  .ide-body {
    grid-template-columns: 1fr;
  }
  
  .ide-sidebar {
    height: 180px;
    border-right: none;
    border-bottom: var(--border-std);
  }

  .faq__layout {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .cta-form__inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 var(--space-5);
  }

  .nav__actions .btn--secondary {
    display: none;
  }

  .hero {
    padding-top: calc(var(--nav-height) + var(--space-12));
    padding-bottom: var(--space-16);
  }

  .hero__metrics {
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    text-align: center;
  }

  .hero__metric {
    text-align: center;
  }

  .hero-terminal {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: var(--space-3) var(--space-4);
  }

  .hero__metric-divider {
    display: none;
  }

  .agents-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

::selection {
  background: var(--white-10);
  color: var(--text-primary);
}

:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 3px;
  border-radius: 3px;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-highlight);
}

/* ==========================================================================
   IDE VIRTUAL — Estilos complementares adicionados
   ========================================================================== */

.ide-window {
  background: var(--bg-card);
  border: var(--border-std);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
  height: 560px;
  position: relative;
}

.ide-header {
  height: 40px;
  background: #060608;
  border-bottom: var(--border-std);
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
  justify-content: space-between;
  flex-shrink: 0;
}

.ide-dots { display: flex; gap: 6px; }
.ide-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2A2A30;
}
.ide-dot:nth-child(1) { background: #FF5F56; }
.ide-dot:nth-child(2) { background: #FFBD2E; }
.ide-dot:nth-child(3) { background: #27C93F; }

.ide-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.ide-title svg { opacity: 0.5; }
.ide-meta { font-size: 0.7rem; color: var(--text-muted); }

.ide-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  flex: 1;
  overflow: hidden;
}

/* Sidebar */
.ide-sidebar {
  background: #06060A;
  border-right: var(--border-std);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  padding: var(--space-3) var(--space-4);
  text-transform: uppercase;
  border-bottom: var(--border-std);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.folder-tree {
  padding: var(--space-2) 0;
  font-family: Consolas, Monaco, 'Courier New', monospace;
  font-size: 0.75rem;
  overflow-y: auto;
}

.tree-item {
  display: flex;
  align-items: center;
  padding: 3px var(--space-3);
  color: var(--text-secondary);
  cursor: default;
  user-select: none;
  gap: 4px;
}

.tree-item--folder { font-weight: 600; }

.tree-item--active {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border-left: 2px solid var(--text-primary);
}

.tree-item.indent-1 { padding-left: calc(var(--space-3) + 14px); }
.tree-item.indent-2 { padding-left: calc(var(--space-3) + 28px); }

.tree-icon-svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.tree-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tree-comment { color: var(--text-muted); font-size: 0.7rem; margin-left: auto; white-space: nowrap; padding-left: 6px; }
.tree-arrow { font-size: 0.55rem; opacity: 0.5; flex-shrink: 0; width: 10px; }

.tree-mod {
  margin-left: auto;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1.4;
  white-space: nowrap;
}
.tree-mod--m { color: #E2B36E; }
.tree-mod--a { color: #73C991; }

/* Editor */
.ide-editor {
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.editor-tabs {
  height: 35px;
  background: #060608;
  border-bottom: var(--border-std);
  display: flex;
  flex-shrink: 0;
}

.editor-tab {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-4);
  font-size: 0.75rem;
  color: var(--text-muted);
  border-right: var(--border-std);
  background: #08080C;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-body);
}

.editor-tab.active {
  background: var(--bg-primary);
  color: var(--text-primary);
  border-top: 1px solid var(--text-primary);
}

.editor-tab-close { font-size: 0.65rem; opacity: 0.4; }

.editor-content {
  flex: 1;
  padding: var(--space-5) var(--space-6);
  font-family: Consolas, Monaco, 'Courier New', monospace;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  overflow-y: auto;
  line-height: 1.7;
}

.code-line { display: flex; gap: 12px; min-height: 1.5em; }
.code-num { min-width: 24px; color: var(--text-muted); text-align: right; user-select: none; font-size: 0.75rem; }
.code-txt { white-space: pre-wrap; }
.t-keyword { color: #E5C07B; }
.t-string { color: #98C379; }
.t-comment { color: #6B7280; }

/* Terminal */
.editor-terminal {
  border-top: var(--border-std);
  background: #05050A;
  height: 145px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.terminal-header {
  height: 30px;
  background: #08080C;
  border-bottom: var(--border-std);
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
}

.terminal-body {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  font-family: Consolas, Monaco, 'Courier New', monospace;
  font-size: 0.75rem;
  overflow-y: auto;
  line-height: 1.5;
}

.terminal-prompt {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  margin-top: var(--space-2);
}

.terminal-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--text-primary);
  animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {
  from, to { background-color: transparent }
  50% { background-color: var(--text-primary); }
}

/* Status bar */
.code-status {
  height: 24px;
  background: #1A1A1F;
  border-top: var(--border-std);
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
  gap: var(--space-3);
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  flex-shrink: 0;
}

.status-item { white-space: nowrap; }
.status-divider { opacity: 0.3; }

@media (max-width: 900px) {
  .ide-body { grid-template-columns: 1fr; }
  .ide-sidebar {
    height: 200px;
    border-right: none;
    border-bottom: var(--border-std);
  }
  .ide-window { height: auto; min-height: 500px; }
}

/* --------------------------------------------------------------------------
   LOGO PNG — Nav e Footer
   -------------------------------------------------------------------------- */
.nav__logo-img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  flex-shrink: 0;
  /* Inverte o preto para branco no tema escuro */
  filter: invert(1);
  transition: opacity var(--transition-base);
}

.nav__logo-img:hover {
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   SCROLL REVEAL — Sistema de animações de entrada
   -------------------------------------------------------------------------- */

/* Estado inicial: invisível */
.reveal-up,
.reveal-fade,
.reveal-scale,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up    { transform: translateY(40px); }
.reveal-fade  { transform: translateY(12px); }
.reveal-scale { transform: scale(0.96) translateY(20px); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

/* Estado visível: aplica classe .is-visible via JS */
.reveal-up.is-visible,
.reveal-fade.is-visible,
.reveal-scale.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: none;
}

/* Delays escalonados para cards em grid */
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* Desabilita animações pra quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  .reveal-up, .reveal-fade, .reveal-scale, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   NOVOS EFEITOS DE MODERNIZAÇÃO UI/UX (app.js)
   ========================================================================== */

/* 1. Cursor Spotlight Glow */
.bg-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50vw) var(--mouse-y, 30vh), 
    rgba(255, 255, 255, 0.035) 0%, 
    transparent 70%
  );
  z-index: -1;
  pointer-events: none;
}

/* 2. Border Beam Card (Luz rotativa de dados nas bordas) */
.border-beam-card {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.border-beam-card::before {
  content: '';
  position: absolute;
  width: 250%;
  height: 250%;
  top: -75%;
  left: -75%;
  background: conic-gradient(
    from 0deg,
    transparent 35%,
    rgba(255, 255, 255, 0.15) 48%,
    #FFFFFF 50%,
    rgba(255, 255, 255, 0.15) 52%,
    transparent 65%
  );
  animation: border-beam-rotate 6s linear infinite;
  z-index: -2;
  pointer-events: none;
}

.border-beam-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: #050508; /* Combina com o interior escuro */
  border-radius: inherit;
  z-index: -1;
}

@keyframes border-beam-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 3. IDE Interativa (Feedback de abas) */
.editor-tab {
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  user-select: none;
}

.editor-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

.editor-tab.active {
  background: #0A0A0C !important;
  color: var(--text-primary) !important;
  border-top: 2px solid #FFFFFF;
}

/* Efeito de fade nas linhas quando muda de aba */
.editor-content .code-line {
  animation: code-line-reveal 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(3px);
}

@keyframes code-line-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 4. Terminal Minimalista do Hero */
.hero-terminal {
  background: #030305;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  font-family: Consolas, Monaco, 'Courier New', monospace;
  font-size: 0.775rem;
  line-height: 1.6;
  max-width: 480px;
  width: 100%;
  margin-top: var(--space-8);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border-left: 2px solid var(--border-light);
  text-align: left;
}

.hero-terminal-header {
  display: flex;
  gap: 5px;
  margin-bottom: var(--space-2);
}

.hero-terminal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1F1F23;
}

.hero-terminal-body {
  color: var(--text-secondary);
}

.hero-terminal-prompt {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

.hero-terminal-cursor {
  display: inline-block;
  width: 6px;
  height: 11px;
  background: var(--text-primary);
  animation: blink-cursor 1.1s step-end infinite;
}

/* ============================================================
   PIPELINE DE IMPLEMENTAÇÃO — Tech Journey
   ============================================================ */

.pipeline-section {
  padding: var(--space-20) 0 var(--space-24);
  position: relative;
}

.pipeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: var(--space-8) 0 var(--space-4);
}

/* Spine (linha central) */
.pipeline__spine {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  width: 1px;
  background: linear-gradient(to bottom, transparent 0%, var(--border-subtle) 15%, var(--border-subtle) 85%, transparent 100%);
  z-index: 0;
}

.pipeline__spine-fill {
  width: 1px;
  height: 0%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
  transition: height 2s cubic-bezier(0.4,0,0.2,1);
  position: absolute;
  top: 0; left: 0;
}

.pipeline-section.is-visible .pipeline__spine-fill {
  height: 100%;
}

/* STEP */
.pipeline__step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 52px 1fr;
  align-items: start;
  gap: 0 var(--space-6);
  margin-bottom: var(--space-14);
  z-index: 1;
}

/* NODE */
.pipeline__node {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pipeline__node-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  background: #060608;
  transition: border-color 0.4s, box-shadow 0.4s;
}

.pipeline__node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  position: relative;
  z-index: 1;
  transition: background 0.3s, box-shadow 0.3s;
}

.pipeline__node--final .pipeline__node-dot {
  background: #73C991;
  box-shadow: 0 0 10px rgba(115,201,145,0.5);
}

.pipeline__node-pulse {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(115,201,145,0.18);
  animation: pipe-pulse 2.5s ease-out infinite;
}

@keyframes pipe-pulse {
  0%   { opacity: 1; transform: scale(1); }
  80%  { opacity: 0; transform: scale(1.8); }
  100% { opacity: 0; }
}

.pipeline__step:hover .pipeline__node-ring {
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 0 24px rgba(255,255,255,0.05);
}

.pipeline__step:hover .pipeline__node-dot {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 14px rgba(255,255,255,0.4);
}

/* CONTENT */
.pipeline__content {
  padding: var(--space-5) var(--space-6);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.015);
  position: relative;
  transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
}

.pipeline__content--left {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
}

.pipeline__content--right {
  grid-column: 3;
  grid-row: 1;
  text-align: left;
}

/* Connector lines (left panel → spine) */
.pipeline__content--left::after {
  content: '';
  position: absolute;
  top: 24px; right: -24px;
  width: 24px; height: 1px;
  background: rgba(255,255,255,0.06);
  transition: background 0.4s;
}

.pipeline__content--right::before {
  content: '';
  position: absolute;
  top: 24px; left: -24px;
  width: 24px; height: 1px;
  background: rgba(255,255,255,0.06);
  transition: background 0.4s;
}

.pipeline__step:hover .pipeline__content {
  border-color: rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 0 40px rgba(255,255,255,0.02);
}

.pipeline__step:hover .pipeline__content--left::after,
.pipeline__step:hover .pipeline__content--right::before {
  background: rgba(255,255,255,0.18);
}

/* STEP LABEL (terminal style) */
.pipeline__step-label {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  opacity: 0.6;
}

.pipeline__step-prefix {
  color: rgba(255,255,255,0.15);
}

.pipeline__loop-badge {
  display: inline-block;
  font-size: 0.58rem;
  color: #73C991;
  border: 1px solid rgba(115,201,145,0.22);
  border-radius: 20px;
  padding: 0.1em 0.5em;
  margin-left: 0.5em;
  letter-spacing: 0.07em;
  vertical-align: middle;
  animation: loop-badge-glow 3s ease-in-out infinite;
}

@keyframes loop-badge-glow {
  0%, 100% { box-shadow: none; }
  50%       { box-shadow: 0 0 8px rgba(115,201,145,0.3); }
}

/* STEP TITLE */
.pipeline__step-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

/* STEP DESC */
.pipeline__step-desc {
  font-size: 0.865rem;
  color: var(--text-secondary);
  line-height: 1.68;
  margin-bottom: var(--space-4);
}

/* PIPELINE TAGS */
.pipeline__tags {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pipeline__content--left .pipeline__tags { align-items: flex-end; }
.pipeline__content--right .pipeline__tags { align-items: flex-start; }

.pipeline__tags li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.28);
  padding: 0.25em 0.65em;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 4px;
  letter-spacing: 0.01em;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
  white-space: nowrap;
}

.pipeline__tags li::before {
  content: '✓ ';
  color: rgba(115,201,145,0.35);
  font-size: 0.62rem;
}

.pipeline__step:hover .pipeline__tags li {
  color: var(--text-secondary);
  border-color: rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.04);
}

/* MOBILE */
@media (max-width: 720px) {
  .pipeline__spine {
    left: 22px;
    transform: none;
  }

  .pipeline__step,
  .pipeline__step--right {
    grid-template-columns: 52px 1fr;
  }

  .pipeline__step-spacer {
    display: none !important;
  }

  .pipeline__node { grid-column: 1; grid-row: 1; }

  .pipeline__content--left,
  .pipeline__content--right {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
  }

  .pipeline__content--left::after { display: none; }
  .pipeline__content--right::before { display: none; }

  .pipeline__content--left .pipeline__tags,
  .pipeline__content--right .pipeline__tags { align-items: flex-start; }
}
