/* =====================================================================
   IMPROVEAI — STYLESHEET PRINCIPAL
   Arquivo: main.css
   Descrição: Estilos globais do site institucional da ImproveAI.
   Organização por seções: variáveis → reset → tipografia → layout
   global → nav → hero → robot scene → sections → components → footer
   ===================================================================== */

/* =====================================================================
   1. DESIGN TOKENS (variáveis CSS globais)
   Centraliza todas as cores e referências visuais do sistema de design.
   ===================================================================== */

/* ── Fallbacks ajustados para reduzir CLS enquanto as fontes carregam ──
   size-adjust aproxima o tamanho do fallback ao da fonte real,
   evitando o "pulo" de layout quando a fonte customizada chegar.      */
@font-face {
  font-family: 'Clash Display Fallback';
  src: local('Arial');
  ascent-override:  92%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 108%;
}

@font-face {
  font-family: 'Satoshi Fallback';
  src: local('Arial');
  ascent-override:  94%;
  descent-override: 24%;
  line-gap-override: 0%;
  size-adjust: 103%;
}

:root {
  /* Cores de fundo — do mais escuro ao mais claro */
  --color-bg-deepest:  #060912;   /* fundo principal da página */
  --color-bg-dark:     #0c1322;   /* painel secondary */
  --color-bg-panel:    #101c33;   /* cartões e superfícies elevadas */

  /* Paleta de destaque */
  --color-accent-cyan:   #22d3ee;
  --color-accent-sky:    #0ea5e9;
  --color-accent-indigo: #6366f1;
  --color-accent-violet: #8b5cf6;
  --color-accent-mint:   #5eead4;
  --color-accent-amber:  #f59e0b;

  /* Texto e bordas */
  --color-text-primary:  #eef4fc;
  --color-text-muted:    #8294b4;  /* texto secundário, labels */
  --color-text-faint:    #566a88;  /* texto terciário, notas de rodapé */
  --color-border-subtle: rgba(120, 160, 220, .13); /* bordas suaves */

  /* Famílias tipográficas */
  --font-display: 'Clash Display', 'Clash Display Fallback', sans-serif;
  --font-body:    'Satoshi', 'Satoshi Fallback', sans-serif;
  --font-mono:    'Space Mono', monospace;
}


/* =====================================================================
   2. RESET E BASE GLOBAL
   ===================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg-deepest);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Tipografia — headings usam a fonte display */
h1, h2, h3, .text-display {
  font-family: var(--font-display);
}

/* Classe utilitária para fonte monospace */
.text-mono {
  font-family: var(--font-mono);
}


/* =====================================================================
   3. DECORAÇÃO DE FUNDO (grid e glows animados)
   Elementos fixos puramente visuais, sem interação.
   ===================================================================== */

/* Grade pontilhada sutil ao fundo */
.page-bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 160, 220, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 220, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000, transparent 75%);
}

/* Brilho roxo — canto superior direito */
.page-glow--primary {
  position: fixed;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  filter: blur(130px);
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(99, 102, 241, .28), transparent 70%);
  top: -22vw;
  right: -12vw;
  animation: anim-breathe 16s ease-in-out infinite;
}

/* Brilho ciano — canto inferior esquerdo */
.page-glow--secondary {
  position: fixed;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(130px);
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(34, 211, 238, .2), transparent 70%);
  bottom: -16vw;
  left: -10vw;
  animation: anim-breathe 20s ease-in-out infinite;
}

/* Animação de pulsação suave dos glows */
@keyframes anim-breathe {
  0%, 100% { opacity: .55; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.12); }
}

/* Container principal acima dos elementos de fundo */
main {
  position: relative;
  z-index: 2;
  overflow-x: hidden; /* corta qualquer elemento que vaze lateralmente */
}


/* =====================================================================
   4. NAVEGAÇÃO PRINCIPAL
   Barra fixa no topo com blur de fundo e encolhimento ao rolar.
   ===================================================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* FIXED: era 2vw, o JS reduzia para 2vw ao rolar — estado inicial correto é 3vw */
  padding: 10px 3vw;
  backdrop-filter: blur(16px);
  background: rgba(6, 9, 18, .5);
  border-bottom: 1px solid var(--color-border-subtle);
  transition: padding .3s;
}

.site-nav--scrolled {
  padding: 10px 2vw;
}

/* Logotipo: ícone + texto */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 22px;
  font-family: var(--font-display);
}

/* Ícone decorativo do logo (robozinho em CSS puro) */
.brand-logo__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-accent-cyan), var(--color-accent-indigo));
  position: relative;
  flex: none;
}
.brand-logo__icon::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a5f3fc;
  top: 7px;
  left: 14px;
}
.brand-logo__icon::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 15px;
  border-radius: 3px;
  background: #fff;
  top: 14px;
  left: 14.5px;
}

/* Destaque "AI" no nome */
.brand-logo b {
  color: var(--color-accent-cyan);
}

/* Links de navegação */

.nav-actions {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover {
  color: var(--color-text-primary);
}

/* Botão hambúrguer — oculto no desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* Animação X quando menu está aberto */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile — oculto por padrão com visibility para que a
   transição de opacidade funcione corretamente */
.nav-mobile {
  position: fixed;
  top: 57px;
  left: 0;
  right: 0;
  z-index: 49;
  background: rgba(6, 9, 18, .97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border-subtle);
  padding: 24px 6vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .25s, transform .25s, visibility .25s;
}

.nav-mobile--open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.nav-mobile a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  transition: color .2s;
}

.nav-mobile a:hover { color: var(--color-text-primary); }

.nav-mobile .btn { align-self: flex-start; }

/* Em mobile: esconde os links do desktop e o CTA da nav,
   mostra o hambúrguer */
@media (max-width: 820px) {
  .nav-links  { display: none; }
  .nav-cta    { display: none; }
  .nav-toggle { display: flex; }
}

/* Garante que o menu mobile não apareça em desktop */
@media (min-width: 821px) {
  .nav-mobile { display: none !important; }
}


/* =====================================================================
   5. BOTÕES GLOBAIS
   ===================================================================== */

/* Modificador: botão de largura total (era inline style no formulário) */
.btn--full {
  width: 100%;
  text-align: center;
  font-size: 17px;
  padding: 16px;
}

/* Botão primário — gradiente ciano→índigo */
.btn {
  background: linear-gradient(135deg, var(--color-accent-cyan), var(--color-accent-indigo));
  color: #04121e;
  font-weight: 700;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 15px;
  text-decoration: none;
  display: inline-block;
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(34, 211, 238, .45);
}

/* Botão secundário — contorno translúcido */
.btn-outline {
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-primary);
  padding: 12px 26px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: border-color .25s, color .25s;
  background: rgba(255, 255, 255, .02);
}
.btn-outline:hover {
  border-color: var(--color-accent-cyan);
  color: var(--color-accent-cyan);
}


/* =====================================================================
   6. HERO SECTION
   Seção principal de abertura da página.
   A altura da cena do robô é controlada pela variável --scene-h,
   que escala proporcionalmente ao viewport em todos os breakpoints.
   ===================================================================== */

/*
  Variáveis da cena do robô — definidas no :root por breakpoint.
  Tudo que depende de tamanho físico (chão, estações, robô) usa
  essas variáveis para manter proporcionalidade em qualquer tela.

  --scene-h        : altura total do container da cena
  --ground-bottom  : distância do chão até a base do container
  --station-size   : largura e altura de cada estação
  --station-bottom : distância das estações até a base do container
  --robot-w        : largura do SVG do robô
  --robot-h        : altura do SVG do robô
  --robot-bottom   : distância do robô até a base do container
*/
:root {
  --scene-h:        28vh;
  --ground-bottom:  6vh;
  --station-size:   5.5vw;
  --station-bottom: 7vh;
  --robot-w:        4vw;
  --robot-h:        5vw;
  --robot-bottom:   7vh;
}

/* Tela média: tablets e notebooks pequenos */
@media (max-width: 1024px) {
  :root {
    --scene-h:        24vh;
    --ground-bottom:  5.5vh;
    --station-size:   7vw;
    --station-bottom: 6.5vh;
    --robot-w:        5.5vw;
    --robot-h:        7vw;
    --robot-bottom:   6.5vh;
  }
}

/* Tela pequena: celulares e tablets em portrait */
@media (max-width: 640px) {
  :root {
    --scene-h:        20vh;
    --ground-bottom:  5vh;
    --station-size:   11vw;
    --station-bottom: 6vh;
    --robot-w:        9vw;
    --robot-h:        11vw;
    --robot-bottom:   6vh;
  }
}

/* Conteúdo textual do hero (era inline style no HTML) */
.hero-content {
  position: relative;
  z-index: 5;
  margin-top: 5%;
}

/* Hero ocupa a viewport menos a nav; padding inferior reserva
   espaço para a cena do robô não sobrepor o texto.
   svh = Small Viewport Height — ignora a barra de endereço do browser mobile,
   evitando o salto de altura que acontece com 100vh em celulares. */
.hero-section {
  min-height: 15svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(72px, 10vh, 140px) 6vw calc(var(--scene-h) + 2vh);
  position: relative;
  overflow: hidden;
}

/* Em celular `justify-content: center` distribui o espaço vazio
   acima e abaixo do conteúdo, criando um gap enorme no topo por causa
   da nav fixa. Trocamos para flex-start com padding-top explícito. */
@media (max-width: 640px) {
  .hero-section {
    justify-content: flex-start;
    padding-top: clamp(72px, 14vw, 96px);
  }
}

/* Badge "Software sob medida" */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  border: 1px solid var(--color-accent-cyan);
  color: var(--color-accent-cyan);
  padding: 7px 16px;
  border-radius: 30px;
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 600;
  margin-bottom: clamp(16px, 2.5vh, 28px);
}

/* Ponto pulsante dentro do badge */
.hero-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent-mint);
  animation: anim-pulse 1.6s infinite;
}

@keyframes anim-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(94, 234, 212, .5); }
  50%       { opacity: .6; box-shadow: 0 0 0 8px rgba(94, 234, 212, 0); }
}

/* Headline principal */
.hero-section h1 {
  font-size: clamp(36px, 6.5vw, 96px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -2px;
  max-width: 15ch;
}

/* Trecho com gradiente animado na headline */
.hero-section h1 .text-gradient {
  background: linear-gradient(120deg, var(--color-accent-cyan), var(--color-accent-violet) 60%, var(--color-accent-mint));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: anim-shimmer 4s linear infinite;
}

@keyframes anim-shimmer {
  to { background-position: 200% center; }
}

/* Subtítulo do hero */
.hero-section p {
  color: var(--color-text-muted);
  font-size: clamp(15px, 1.8vw, 21px);
  max-width: 54ch;
  margin: clamp(16px, 2.5vh, 30px) 0 0 clamp(0px, 2.5vw, 40px);
}

/* Grupo de CTAs do hero */
.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(24px, 3vh, 36px);
}


/* =====================================================================
   7. ROBOT SCENE (animação do robô no hero)
   Toda a geometria usa as variáveis CSS de --scene-h, --station-size
   etc., declaradas acima. Nenhum valor fixo em px aqui.
   ===================================================================== */

/* Container da cena — ocupa exatamente --scene-h na base do hero */
.robot-scene {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--scene-h);
  width: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: .75;
  overflow: hidden; /* garante que estações/robô não vazem para fora */
}

/* Esconde a cena em telas muito pequenas onde ela ficaria
   demasiado densa — o hero ainda funciona sem ela */
@media (max-width: 380px) {
  .robot-scene { display: none; }
}

/* Linha do chão — fica a --ground-bottom da base do container */
.robot-scene__ground {
  position: absolute;
  bottom: var(--ground-bottom);
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(120, 160, 220, .22) 20%,
    rgba(120, 160, 220, .22) 80%,
    transparent
  );
}

/* Reflexo de glow abaixo da linha do chão */
.robot-scene__ground::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--ground-bottom); /* mesmo valor, cresce junto */
  background: linear-gradient(transparent, rgba(34, 211, 238, .03));
}

/* ── Estações de trabalho ── */
.work-station {
  position: absolute;
  bottom: var(--station-bottom);
  width: var(--station-size);
  height: var(--station-size);
  /* border-radius proporcional: ~22% do tamanho da estação */
  border-radius: calc(var(--station-size) * 0.22);
  background: rgba(12, 19, 34, .85);
  border: 1.5px solid var(--color-border-subtle);
  display: grid;
  /* Centraliza a estação no ponto de left sem usar margin negativo
     (margin negativo vaza para fora do container e empurra o layout) */
  transform: translateX(-50%);
  place-items: center;
  transition: border-color .5s, box-shadow .5s;
}

/* Ícone SVG dentro da estação — 50% do tamanho da estação */
.work-station__icon {
  width: calc(var(--station-size) * 0.50);
  height: calc(var(--station-size) * 0.50);
  color: var(--color-text-muted);
  transition: color .5s;
}

/* Badge de status — posicionado no canto superior direito */
.work-station__status {
  position: absolute;
  top:   calc(var(--station-size) * -0.14);
  right: calc(var(--station-size) * -0.14);
  width:  calc(var(--station-size) * 0.28);
  height: calc(var(--station-size) * 0.28);
  border-radius: 50%;
  background: var(--color-accent-amber);
  display: grid;
  place-items: center;
  transition: background .4s;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, .5);
  animation: anim-pending 1.4s infinite;
}

@keyframes anim-pending {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .5); }
  50%       { box-shadow: 0 0 0 7px rgba(245, 158, 11, 0); }
}

/* Check icon dentro do badge */
.work-station__status svg {
  width:  calc(var(--station-size) * 0.17);
  height: calc(var(--station-size) * 0.17);
  color: #04121e;
  opacity: 0;
  transition: opacity .3s;
}

/* Estado: estação resolvida */
.work-station--solved {
  border-color: rgba(94, 234, 212, .6);
  box-shadow: 0 0 24px rgba(94, 234, 212, .2);
}
.work-station--solved .work-station__icon   { color: var(--color-accent-mint); }
.work-station--solved .work-station__status { background: var(--color-accent-mint); animation: none; }
.work-station--solved .work-station__status svg { opacity: 1; }

/*
  Posições horizontais das estações em %.
  O robô para exatamente sobre elas, então os valores de left
  devem estar alinhados com os keyframes de anim-robot-walk.
  A estação fica centrada no robô: left da estação ≈ left do robô
  no keyframe correspondente + metade da largura do robô.
*/
.work-station--1 { left: 18%; }
.work-station--2 { left: 40%; }
.work-station--3 { left: 62%; }
.work-station--4 { left: 84%; }

/* ── Robô SVG ── */
.robot-character {
  position: absolute;
  bottom: var(--robot-bottom);
  width:  var(--robot-w);
  height: var(--robot-h);
  /* min/max para não ficar minúsculo em celular nem gigante em TV */
  min-width:  28px;
  max-width:  72px;
  min-height: 35px;
  max-height: 88px;
  z-index: 2;
  left: 0;
  animation: anim-robot-walk 16s linear infinite;
}

/* O SVG interno ocupa 100% do container do robô */
.robot-character svg {
  width: 100%;
  height: 100%;
}

/* Partes animadas do robô */
.robot-character .body  { animation: anim-bob .5s ease-in-out infinite; }
.robot-character .leg-l { transform-origin: top center; animation: anim-leg-left  .5s ease-in-out infinite; }
.robot-character .leg-r { transform-origin: top center; animation: anim-leg-right .5s ease-in-out infinite; }

@keyframes anim-bob       { 0%, 100% { transform: translateY(0); }   50% { transform: translateY(-2px); } }
@keyframes anim-leg-left  { 0%, 100% { transform: rotate(14deg); }   50% { transform: rotate(-14deg); } }
@keyframes anim-leg-right { 0%, 100% { transform: rotate(-14deg); }  50% { transform: rotate(14deg); } }

/*
  Keyframes de caminhada — valores em % são relativos à largura
  do container (.robot-scene), que é sempre 100% do viewport.
  As posições de pausa coincidem com os `left` das estações acima.
*/
@keyframes anim-robot-walk {
  0%   { left: -8%; }
  14%  { left: 16%; }   /* chega estação 1 */
  22%  { left: 16%; }   /* pausa estação 1 */
  36%  { left: 38%; }   /* chega estação 2 */
  44%  { left: 38%; }   /* pausa estação 2 */
  58%  { left: 60%; }   /* chega estação 3 */
  66%  { left: 60%; }   /* pausa estação 3 */
  80%  { left: 80%; }   /* chega estação 4 */
  88%  { left: 80%; }   /* pausa estação 4 */
  100% { left: 108%; }  /* sai pela direita */
}

/* Pausa as animações de movimento enquanto o robô trabalha */
.robot-character--working .leg-l,
.robot-character--working .leg-r,
.robot-character--working .body {
  animation-play-state: paused;
}

/* Faíscas — visíveis apenas quando o robô está trabalhando */
.robot-character .spark { opacity: 0; }
.robot-character--working .spark {
  animation: anim-spark .6s ease-in-out infinite;
}

@keyframes anim-spark {
  0%, 100% { opacity: 0; transform: translateY(0)    scale(.6); }
  50%       { opacity: 1; transform: translateY(-6px) scale(1); }
}


/* =====================================================================
   8. ANIMAÇÃO DE ENTRADA (scroll reveal)
   Elementos entram suavemente ao aparecer na viewport.
   ===================================================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1),
              transform .8s cubic-bezier(.2, .7, .2, 1);
}
.scroll-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}


/* =====================================================================
   9. SEÇÕES GENÉRICAS
   Espaçamento e tipografia comum a todas as seções de conteúdo.
   ===================================================================== */
section {
  padding: 30px 6vw;
}

/* Em mobile o padding lateral sobe para 5vw mínimo (20px) para
   garantir que cartões e painéis não grudem nas bordas da tela */
@media (max-width: 640px) {
  section {
    padding-left:  max(16px, 5vw);
    padding-right: max(16px, 5vw);
  }
}

/* Label colorida acima do título (ex.: "O QUE FAZEMOS") */
.section-kicker {
  color: var(--color-accent-cyan);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* Título de seção (h2) */
.section-heading {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -1px;
  max-width: 18ch;
  line-height: 1.08;
}

/* Variante menor — usada no comparativo antes/depois (era inline style) */
.section-heading--sm {
  font-size: clamp(24px, 3.5vw, 36px);
}

/* Subtítulo descritivo abaixo do título */
.section-subheading {
  color: var(--color-text-muted);
  font-size: 18px;
  max-width: 58ch;
  margin-top: 10px;
}


/* =====================================================================
   10. SEÇÃO DE IMPACTO
   Grid com métricas animadas (count-up + barra de progresso).
   ===================================================================== */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 50px;
}

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

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

/* Cartão individual de métrica */
.impact-card {
  background: linear-gradient(160deg, var(--color-bg-panel), var(--color-bg-dark));
  border: 1px solid var(--color-border-subtle);
  border-radius: 20px;
  padding: 32px;
  transition: transform .35s, border-color .35s;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.impact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, .4);
}

/* Número grande animado (count-up) */
.impact-card__metric {
  font-size: 54px;
  font-weight: 700;
  font-family: var(--font-mono);
  background: linear-gradient(120deg, var(--color-accent-cyan), var(--color-accent-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Título curto da métrica */
.impact-card__label {
  color: var(--color-text-primary);
  font-size: 18px;
  font-weight: 600;
  margin: 6px 0 4px;
}

/* Descrição complementar da métrica */
.impact-card__description {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 18px;
}

/* Trilha de progresso (fundo cinza da barra) */
.progress-track {
  height: 8px;
  background: rgba(120, 160, 220, .12);
  border-radius: 4px;
  overflow: hidden;
}

/* Preenchimento animado da barra de progresso */
.progress-track__fill {
  height: 100%;
  width: 0; /* controlado via JS */
  border-radius: 4px;
  background: linear-gradient(90deg, var(--color-accent-cyan), var(--color-accent-indigo));
  transition: width 1.6s cubic-bezier(.2, .8, .2, 1);
}


/* =====================================================================
   11. COMPARATIVO ANTES/DEPOIS
   Gráfico de barras horizontais mostrando o antes e depois da automação.
   ===================================================================== */
.comparison-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 50px;
}

@media (max-width: 900px) {
  .comparison-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Painel que contém as barras comparativas */
.comparison-panel {
  background: linear-gradient(160deg, var(--color-bg-panel), var(--color-bg-dark));
  border: 1px solid var(--color-border-subtle);
  border-radius: 22px;
  padding: 34px;
  /* Garante que o painel nunca ultrapasse a largura disponível */
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .comparison-panel {
    padding: 20px 16px;
  }
}

/* Linha de uma comparação (antes ou depois) */
.comparison-row {
  margin-bottom: 26px;
}

.comparison-row--last {
  margin-bottom: 0;
}

/* Cabeçalho da linha: título + label antes/depois */
.comparison-row__header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 8px;
}
.comparison-row__header b    { color: var(--color-text-primary); }
.comparison-row__header span { color: var(--color-text-muted); font-family: var(--font-mono); }

/* Trilha das barras comparativas */
.comparison-bar-track {
  height: 14px;
  border-radius: 7px;
  background: rgba(120, 160, 220, .1);
  overflow: hidden;
}

/* Barra animada dentro da trilha */
.comparison-bar-fill {
  height: 100%;
  width: 0; /* controlado via JS */
  border-radius: 7px;
  transition: width 1.5s cubic-bezier(.2, .8, .2, 1);
}

/* Variante negativa (antes — laranja/vermelho) */
.comparison-bar-fill--negative {
  background: linear-gradient(90deg, #f59e0b, #d85a30);
}

/* Variante positiva (depois — ciano/mint) */
.comparison-bar-fill--positive {
  background: linear-gradient(90deg, var(--color-accent-cyan), var(--color-accent-mint));
}


/* =====================================================================
   12. SEÇÃO DE SERVIÇOS
   Grade de cartões com efeito de spotlight no hover.
   ===================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 50px;
}

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

/* Cartão de serviço individual */
.service-card {
  background: linear-gradient(160deg, rgba(16, 28, 51, .8), rgba(12, 19, 34, .5));
  border: 1px solid var(--color-border-subtle);
  border-radius: 20px;
  padding: 32px;
  transition: transform .35s, border-color .35s;
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Spotlight radial que segue o cursor (posição via JS com --mx / --my) */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px circle at var(--mx, 50%) var(--my, 0%),
    rgba(34, 211, 238, .12),
    transparent 60%
  );
  opacity: 0;
  transition: opacity .4s;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, .45);
}
.service-card:hover::before { opacity: 1; }

/* Ícone do serviço */
.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-bg-deepest), var(--color-bg-dark));
  border: 1px solid var(--color-accent-cyan);
  display: grid;
  place-items: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 15px;
  margin-bottom: 18px;
}

/* Lista de integrações / apps relacionados */
.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Tag individual de integração */
.service-card__tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent-mint);
  background: rgba(94, 234, 212, .08);
  border: 1px solid rgba(94, 234, 212, .2);
  padding: 5px 12px;
  border-radius: 20px;
}


/* =====================================================================
   13. SEÇÃO DE FLUXO (como o agente funciona)
   Animação de pipeline com passos destacados em sequência.
   ===================================================================== */
.flow-container {
  background: linear-gradient(160deg, var(--color-bg-panel), var(--color-bg-dark));
  border: 1px solid var(--color-border-subtle);
  border-radius: 24px;
  padding: 46px;
  margin-top: 50px;
}

/* Linha horizontal com os passos e conectores */
.flow-steps-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* Passo individual do fluxo */
.flow-step {
  background: rgba(6, 9, 18, .6);
  border: 1px solid var(--color-border-subtle);
  border-radius: 16px;
  padding: 22px;
  width: 170px;
  text-align: center;
  transition: border-color .4s, box-shadow .4s, transform .4s;
}

/* Estado ativo — destacado em ciano */
.flow-step--active {
  border-color: var(--color-accent-cyan);
  box-shadow: 0 0 30px rgba(34, 211, 238, .25);
  transform: translateY(-4px);
}

/* Ícone do passo */
.flow-step__icon {
  font-size: 30px;
  margin-bottom: 8px;
}

.flow-step b     { font-size: 15px; display: block; }
.flow-step small { color: var(--color-text-muted); font-size: 12px; }

/* Conector animado entre passos */
.flow-connector {
  width: 54px;
  height: 3px;
  background: var(--color-border-subtle);
  position: relative;
  overflow: hidden;
  border-radius: 3px;
}

/* Luz que percorre o conector */
.flow-connector__light {
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--color-accent-cyan), transparent);
  animation: anim-flow-light 2s linear infinite;
}

@keyframes anim-flow-light { to { left: 130%; } }

/* Layout vertical em telas pequenas */
@media (max-width: 760px) {
  .flow-steps-row      { flex-direction: column; }
  .flow-connector      { width: 3px; height: 36px; }
  .flow-connector__light {
    top: -30%;
    left: 0;
    width: 100%;
    height: 30%;
    animation: anim-flow-light-vertical 2s linear infinite;
  }
}

@keyframes anim-flow-light-vertical { to { top: 130%; } }


/* =====================================================================
   14. SEÇÃO DE CONTATO (CTA)
   Formulário de contato centralizado com estado de confirmação.
   ===================================================================== */
.cta-section {
  text-align: center;
  padding: 50px 6vw;
}

.cta-section h2 {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 600;
  letter-spacing: -1.5px;
  max-width: 18ch;
  margin: 0 auto 24px;
}

/* Subtítulo na seção CTA fica centralizado com margem inferior menor */
.cta-section .section-subheading {
  margin: 0 auto 8px;
}

/* Trecho em gradiente no título do CTA */
.cta-section .text-gradient {
  background: linear-gradient(120deg, var(--color-accent-cyan), var(--color-accent-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Container do formulário */
.contact-form-wrapper {
  max-width: 580px;
  margin: 40px auto 0;
  text-align: left;
}

/* Grid de duas colunas para nome + contato */
.contact-form__row-double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .contact-form__row-double { grid-template-columns: 1fr; }
}

/* Campo de formulário (label + input/select/textarea) */
.contact-form__field {
  margin-bottom: 16px;
}

.contact-form__field label {
  display: block;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 7px;
  font-weight: 500;
}

/* Inputs, selects e textareas com estilo unificado */
.contact-form__field input,
.contact-form__field textarea,
.contact-form__field select {
  width: 100%;
  background: rgba(16, 28, 51, .6);
  border: 1px solid var(--color-border-subtle);
  border-radius: 12px;
  padding: 15px 16px;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color .2s, background .2s;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: var(--color-text-faint);
}

.contact-form__field input:focus,
.contact-form__field textarea:focus,
.contact-form__field select:focus {
  outline: none;
  border-color: var(--color-accent-cyan);
  background: rgba(16, 28, 51, .95);
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form__field select {
  appearance: none;
  cursor: pointer;
}

/* Nota de rodapé abaixo do botão de envio */
.contact-form__note {
  font-size: 13px;
  color: var(--color-text-faint);
  text-align: center;
  margin-top: 14px;
}

/* Asterisco de campo obrigatório */
.contact-form__required {
  color: var(--color-accent-cyan);
  margin-left: 3px;
  font-weight: 700;
}

/* Label "(opcional)" ao lado do e-mail */
.contact-form__optional {
  color: var(--color-text-faint);
  font-size: 12px;
  font-weight: 400;
  margin-left: 5px;
}

/* Mensagem de erro inline abaixo do campo */
.contact-form__error {
  display: block;
  font-size: 12px;
  color: #f87171; /* vermelho suave, legível no fundo escuro */
  margin-top: 5px;
  min-height: 16px; /* reserva espaço para não pular layout ao aparecer */
}

/* Borda vermelha no input com erro */
.contact-form__field--error input,
.contact-form__field--error textarea,
.contact-form__field--error select {
  border-color: #f87171;
  background: rgba(248, 113, 113, .05);
}

/* Borda verde no input válido e focado */
.contact-form__field--valid input,
.contact-form__field--valid textarea {
  border-color: var(--color-accent-mint);
}

/* Estado de confirmação após envio */
.contact-success {
  display: none;
  text-align: center;
  padding: 50px 20px;
}

/* Ícone de check circular */
.contact-success__icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(94, 234, 212, .12);
  border: 2px solid var(--color-accent-mint);
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}

.contact-success h3 { font-size: 26px; margin-bottom: 10px; }
.contact-success p  { color: var(--color-text-muted); font-size: 16px; }


/* =====================================================================
   16. REDUCED MOTION
   Desativa todas as animações e transições para usuários que
   preferirem menos movimento (acessibilidade / sensibilidade visual).
   scroll-behavior: auto impede o scroll suave do html.
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}


/* =====================================================================
   17. RODAPÉ
   ===================================================================== */
.site-footer {
  border-top: 1px solid var(--color-border-subtle);
  padding: 40px 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--color-text-faint);
  font-size: 14px;
  position: relative;
  z-index: 2;
}