/* =========================================================
   CJL Consultoria — styles.css
   Padrão de consultoria de software profissional.
   Tipografia Inter (limpa, legível). Tema CLARO / "GELO":
   fundo gelo/cool claro, charcoal pro texto, dourado bronze
   SÓ em destaques. Sóbrio, premium, orientado a resultado.
   Referências: Netguru, Thoughtworks (versão light).
   Poppins fica SÓ no logo (SVG inline). Sem Space Grotesk.
   ========================================================= */

/* ---------- Design tokens (tema gelo/claro) ---------- */
:root {
  /* Gelo / cool claro — base, alternâncias e superfícies */
  --bg-900:    #f6f8fb;  /* base gelo */
  --bg-850:    #eef2f6;  /* seção alternada (mais fria) */
  --bg-800:    #e9eef4;  /* faixas/marquee */
  --surface:   #ffffff;  /* cards */
  --surface-2: #fbfcfe;  /* card hover (leve elevação) */

  /* Bordas / linhas — cinza gelo sutil */
  --line:      #e3e8ef;
  --line-2:    #d4dbe5;
  --line-gold: rgba(184, 137, 63, 0.45);

  /* Sombras pro claro (premium, suaves) */
  --shadow:    0 1px 2px rgba(21, 24, 29, 0.04), 0 6px 18px rgba(21, 24, 29, 0.05);
  --shadow-lg: 0 6px 14px rgba(21, 24, 29, 0.06), 0 18px 40px rgba(21, 24, 29, 0.09);

  /* Dourado / bronze (acento legível sobre o gelo) */
  --gold:      #a8782f;  /* dourado rico — destaque/headline (texto grande) */
  --gold-ink:  #8a6320;  /* dourado escuro — texto PEQUENO (AA ≥4.5) */
  --gold-2:    #b8893f;  /* bronze — linhas, ícones, hover */
  --gold-3:    #c19a4e;  /* dourado mais claro — detalhes */
  --gold-soft: rgba(184, 137, 63, 0.10);
  --gold-line: rgba(184, 137, 63, 0.55);

  /* Texto — charcoal pra contraste AA sobre o gelo */
  --text:      #15181d;
  --text-soft: #4a4f57;
  --text-dim:  #7a808a;

  --maxw: 1200px;
  --radius: 12px;
  --radius-sm: 9px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;

  /* Inter para títulos E corpo. Poppins só no logo SVG. */
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  --font-display: 'Inter', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, 'Courier New', monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    linear-gradient(180deg, #ffffff 0%, var(--bg-900) 420px),
    var(--bg-900);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
}
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }

/* Acento dourado contido — 1 palavra-chave por título */
.gold-text { color: var(--gold); }

/* Rótulo mono "// SEÇÃO" — minúsculo, parcimonioso */
.label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-ink);
}

/* =========================================================
   Fundo discreto — grid técnico estático e sutil
   ========================================================= */
.bg-grid {
  position: fixed; inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.7;
}
/* Vinheta leve (cool/gelo) para foco no conteúdo */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(125% 100% at 50% 0%, transparent 55%, rgba(210, 219, 229, 0.35) 100%);
}

/* Barra de progresso de scroll (dourada fina) */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--gold-2);
  z-index: 200;
  transition: width 0.08s linear;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: height 0.3s var(--ease), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  height: 62px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; }
.brand-lockup { display: block; height: 40px; width: auto; transition: transform 0.35s var(--ease); }
.brand:hover .brand-lockup { transform: translateY(-1px); }
.site-header.scrolled .brand-lockup { height: 36px; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 0.92rem; font-weight: 500;
  color: var(--text-soft);
  transition: color 0.25s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 1px; background: var(--gold-2);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--gold); }

.nav-cta {
  margin-left: 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--text) !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { border-color: var(--gold-line); color: var(--gold) !important; }

/* Hambúrguer */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.hamburger span { width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Botões
   ========================================================= */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0;
  transition: transform 0.25s var(--ease), border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn i { width: 18px; height: 18px; }
.btn-primary { background: var(--gold); color: #fff; box-shadow: 0 2px 8px rgba(168, 120, 47, 0.28); }
.btn-primary:hover { transform: translateY(-2px); background: #976a28; box-shadow: 0 6px 18px rgba(168, 120, 47, 0.32); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--gold-line); color: var(--gold); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 16px 30px; font-size: 1rem; }

/* =========================================================
   Hero — direto, confiante, muito respiro
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: var(--header-h);
}
/* Duas colunas no desktop: texto à esquerda, editor à direita */
.hero-inner {
  display: grid;
  grid-template-columns: 1.35fr 0.92fr;
  align-items: center;
  gap: clamp(36px, 5vw, 64px);
  padding-block: 64px;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; text-align: left; }
.hero-logo { width: clamp(110px, 13vw, 150px); height: auto; margin-bottom: 2px; }

.hero-eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-ink);
}
.hero-title {
  font-size: clamp(2.5rem, 6.2vw, 5rem);
  max-width: 16ch;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
}
.hero-sub {
  margin: 4px 0 0; max-width: 100%; width: 100%;
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  color: var(--text-soft); font-weight: 400; line-height: 1.6;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-start; align-items: center; margin-top: 16px; }
.btn-text {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-soft); font-weight: 500; font-size: 0.95rem;
  padding: 12px 8px;
  transition: color 0.25s ease;
}
.btn-text i { width: 17px; height: 17px; transition: transform 0.25s var(--ease); }
.btn-text:hover { color: var(--gold); }
.btn-text:hover i { transform: translateX(3px); }

/* Prova social / credibilidade abaixo do hero — alinhado à esquerda com o texto */
.hero-proof {
  margin-top: 34px; width: 100%; padding: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  text-align: left;
}
.hero-proof-label {
  margin: 0; padding: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-dim); line-height: 1.4;
}
.hero-proof-items {
  margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center;
  gap: 10px 18px;
}
.hero-proof-items span {
  font-weight: 600; font-size: 0.98rem; color: var(--text);
  letter-spacing: 0.2px;
}
.hero-proof-items .dot { color: var(--gold-3); font-weight: 700; }

.scroll-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: var(--text-dim);
  animation: bob 2.4s ease-in-out infinite;
}
.scroll-hint i { width: 24px; height: 24px; }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* =========================================================
   Hero — painel de IA / assistente CJL (card claro premium)
   ========================================================= */
.hero-ai { width: 100%; display: flex; justify-content: center; align-self: start; }
.ai-panel {
  position: relative;
  width: 100%;
  max-width: 540px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow:
    0 12px 28px rgba(21, 24, 29, 0.08),
    0 34px 70px rgba(21, 24, 29, 0.12);
  display: flex; flex-direction: column;
}
/* Glow dourado sutil no topo + leve neural ao fundo */
.ai-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(193, 154, 78, 0.12), transparent 60%),
    radial-gradient(90% 60% at 0% 100%, rgba(193, 154, 78, 0.07), transparent 60%);
}

/* Aura dourada respirando ao redor do painel (inovador, mas sóbrio) */
.ai-aura {
  content: ""; position: absolute; inset: -2px; z-index: 0; pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(80% 60% at 50% 0%, rgba(193, 154, 78, 0.22), transparent 70%);
  opacity: 0.6; filter: blur(8px);
  animation: ai-aura 5.5s ease-in-out infinite;
}
@keyframes ai-aura {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 0.75; }
}
.ai-neural {
  position: absolute; inset: 0; width: 100%; height: 100%;
  color: var(--gold-2); opacity: 0.16; z-index: 0; pointer-events: none;
}
.ai-neural-lines { opacity: 0.7; }
.ai-neural-nodes circle { animation: ai-node 3.6s ease-in-out infinite; }
.ai-neural-nodes circle:nth-child(2n) { animation-delay: 1.2s; }
.ai-neural-nodes circle:nth-child(3n) { animation-delay: 2.1s; }
@keyframes ai-node { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* Header do assistente */
.ai-head {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(251, 252, 254, 0.9), rgba(255, 255, 255, 0.6));
}
.ai-avatar {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--gold-soft); border: 1px solid var(--line-gold); color: var(--gold);
}
.ai-avatar i { width: 22px; height: 22px; }
.ai-id { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; }
.ai-name { font-weight: 700; font-size: 0.98rem; color: var(--text); letter-spacing: -0.01em; }
.ai-presence {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.4px;
  color: var(--text-dim); text-transform: lowercase;
}
.ai-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #4fae62;
  box-shadow: 0 0 0 0 rgba(79, 174, 98, 0.5);
  animation: ai-pulse 2s ease-in-out infinite;
}
@keyframes ai-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 174, 98, 0.45); }
  50%      { box-shadow: 0 0 0 5px rgba(79, 174, 98, 0); }
}
.ai-badge {
  margin-left: auto; flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--gold-ink);
  padding: 5px 9px; border: 1px solid var(--line-gold); border-radius: 6px;
  background: var(--gold-soft);
}
.ai-badge i { width: 12px; height: 12px; }

/* Corpo da conversa */
.ai-chat {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 12px;
  padding: 22px 20px;
  min-height: 232px;
  justify-content: flex-end;
}
.ai-msg {
  max-width: 86%;
  padding: 11px 14px;
  font-size: 0.9rem; line-height: 1.5;
  border-radius: 13px;
  animation: ai-msg-in 0.34s var(--ease) both;
}
@keyframes ai-msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* Bolha do usuário (direita) */
.ai-msg.user {
  align-self: flex-end;
  background: var(--text); color: #f3f5f8;
  border-bottom-right-radius: 5px;
}
/* Bolha da IA (esquerda) */
.ai-msg.bot {
  align-self: flex-start;
  background: var(--bg-850); color: var(--text);
  border: 1px solid var(--line); border-bottom-left-radius: 5px;
}
.ai-msg.bot .ai-check { color: var(--gold); font-weight: 700; }
/* Caret de digitação na resposta da IA */
.ai-caret {
  display: inline-block; width: 2px; height: 1em;
  margin-left: 1px; vertical-align: text-bottom;
  background: var(--gold); animation: code-blink 1.05s steps(2, start) infinite;
}
/* Indicador "digitando…" (3 pontinhos) */
.ai-typing {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 13px 15px;
  background: var(--bg-850); border: 1px solid var(--line);
  border-radius: 13px; border-bottom-left-radius: 5px;
  animation: ai-msg-in 0.34s var(--ease) both;
}
.ai-typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold-3);
  animation: ai-bounce 1.2s ease-in-out infinite;
}
.ai-typing span:nth-child(2) { animation-delay: 0.18s; }
.ai-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes ai-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40%           { transform: translateY(-4px); opacity: 1; }
}

/* =========================================================
   Painel de automações ao vivo (métricas + mini-fluxo Dados→IA→Ação)
   ========================================================= */
.ai-live {
  position: relative; z-index: 1;
  padding: 16px 18px 6px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}
.ai-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-bottom: 14px;
}
.ai-stat {
  padding: 11px 12px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
}
.ai-stat-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.32rem; line-height: 1; letter-spacing: -0.02em;
  color: var(--gold);
}
.ai-stat-label {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: 0.66rem; line-height: 1.25; color: var(--text-dim);
  overflow-wrap: anywhere; word-break: break-word; hyphens: auto;
}
.ai-stat-dot {
  flex: 0 0 auto; margin-top: 3px;
  width: 6px; height: 6px; border-radius: 50%; background: #3fae62;
  box-shadow: 0 0 0 0 rgba(63,174,98,0.5);
  animation: ai-pulse 2.4s ease-in-out infinite;
}
.ai-stat:nth-child(2) .ai-stat-dot { animation-delay: 0.5s; }
.ai-stat:nth-child(3) .ai-stat-dot { background: var(--gold-2); animation-delay: 1s; }

/* Mini-fluxo: Dados → IA → Ação com pulso percorrendo o link */
.ai-flow {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 2px 10px;
}
.ai-flow-node {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
  color: var(--text-soft);
  padding: 7px 10px; border-radius: 9px;
  border: 1px solid var(--line-2); background: var(--surface);
  white-space: nowrap;
}
.ai-flow-node i { width: 13px; height: 13px; color: var(--gold-2); }
.ai-flow-core {
  color: var(--gold-ink); border-color: var(--line-gold); background: var(--gold-soft);
  box-shadow: 0 0 0 0 rgba(193,154,78,0.45);
  animation: ai-core 2.6s ease-in-out infinite;
}
.ai-flow-core i { color: var(--gold); }
@keyframes ai-core {
  0%, 100% { box-shadow: 0 0 0 0 rgba(193,154,78,0.4); }
  50%      { box-shadow: 0 0 0 5px rgba(193,154,78,0); }
}
.ai-flow-link {
  position: relative; flex: 1 1 auto; height: 2px;
  background: var(--line-2); border-radius: 2px; overflow: hidden; min-width: 14px;
}
.ai-flow-pulse {
  position: absolute; top: 0; left: 0; height: 100%; width: 45%;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: ai-flow-run 1.8s var(--ease) infinite;
}
@keyframes ai-flow-run {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

/* Rodapé com barra de processamento */
.ai-foot {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.ai-foot-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--text-dim); white-space: nowrap;
}
.ai-foot-label i { width: 13px; height: 13px; color: var(--gold-2); }
.ai-progress {
  flex: 1 1 auto; height: 6px; border-radius: 4px;
  background: var(--bg-800); overflow: hidden;
}
.ai-progress-bar {
  display: block; height: 100%; width: 35%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-3), var(--gold));
  animation: ai-load 1.9s var(--ease) infinite;
}
@keyframes ai-load {
  0%   { transform: translateX(-120%); width: 45%; }
  50%  { width: 65%; }
  100% { transform: translateX(320%); width: 45%; }
}

/* =========================================================
   Engenharia — seção com editor de código (lado a lado)
   ========================================================= */
.eng-inner {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
.eng-text .section-title { text-align: left; margin-top: 4px; }
.eng-text .section-lead { margin-top: 18px; }
.eng-points { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.eng-points li {
  display: flex; align-items: center; gap: 11px;
  color: var(--text-soft); font-size: 0.97rem; font-weight: 500;
}
.eng-points i {
  width: 18px; height: 18px; color: var(--gold); flex: 0 0 auto;
}

/* =========================================================
   Editor de código animado (card escuro de contraste)
   ========================================================= */
.hero-editor { width: 100%; display: flex; justify-content: center; }
.code-window {
  width: 100%;
  max-width: 560px;
  border-radius: 14px;
  overflow: hidden;
  background: #15181d;
  border: 1px solid #2a2f38;
  box-shadow:
    0 10px 24px rgba(21, 24, 29, 0.14),
    0 30px 64px rgba(21, 24, 29, 0.20);
  font-family: var(--font-mono);
}
/* Chrome da janela */
.code-chrome {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  background: #1c1f26;
  border-bottom: 1px solid #2a2f38;
}
.code-dots { display: inline-flex; gap: 7px; flex: 0 0 auto; }
.code-dots .cd { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.cd-red   { background: #e0604f; }
.cd-amber { background: #e6b150; }
.cd-green { background: #5cbf6e; }
.code-tab {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.3px;
  color: #cdd2db;
  padding: 4px 12px;
  background: #15181d;
  border: 1px solid #2a2f38;
  border-radius: 7px 7px 0 0;
  border-bottom: 0;
  position: relative; top: 1px;
}
.code-badge {
  margin-left: auto;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 1.5px;
  color: var(--gold-3);
  padding: 3px 9px;
  border: 1px solid rgba(193, 154, 78, 0.4);
  border-radius: 5px;
}
/* Corpo: código com syntax highlight */
.code-body {
  padding: 16px 18px;
  min-height: 280px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(193, 154, 78, 0.05), transparent 60%),
    #15181d;
}
.code-pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.85;
  color: #d7dce4;
  white-space: pre-wrap;
  word-break: break-word;
  tab-size: 2;
}
.code-pre code { font-family: inherit; }
/* Número de linha à esquerda */
.code-pre .ln {
  display: inline-block;
  width: 1.6em;
  margin-right: 1.1em;
  text-align: right;
  color: #4a515e;
  user-select: none;
}
/* Tokens de syntax highlight */
.tok-key { color: var(--gold-3); }
.tok-str { color: #88c08a; }
.tok-com { color: #6b7280; font-style: italic; }
.tok-num { color: #d6a25c; }
.tok-fn  { color: #cfd6e0; }
.tok-punc{ color: #8a909c; }
.tok-anno{ color: #c9a96a; }
/* Cursor piscando */
.code-cursor {
  display: inline-block;
  width: 8px; height: 1.05em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--gold-3);
  animation: code-blink 1.05s steps(2, start) infinite;
}
@keyframes code-blink { 50% { opacity: 0; } }
/* Rodapé do editor */
.code-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 16px;
  background: #1c1f26;
  border-top: 1px solid #2a2f38;
  font-size: 0.68rem; letter-spacing: 0.4px;
}
.code-status { display: inline-flex; align-items: center; gap: 8px; color: #9aa1ac; }
.code-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #5cbf6e;
  box-shadow: 0 0 0 0 rgba(92, 191, 110, 0.5);
  animation: code-pulse 2s ease-in-out infinite;
}
@keyframes code-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(92, 191, 110, 0.45); }
  50%      { box-shadow: 0 0 0 5px rgba(92, 191, 110, 0); }
}
.code-deploy { color: var(--gold-3); font-weight: 700; }

/* =========================================================
   Marquee de tecnologias — discreto, lento, baixa opacidade
   ========================================================= */
.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  background: var(--bg-850);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.marquee-track { display: flex; gap: 52px; width: max-content; animation: marquee 55s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.8rem; font-weight: 400; letter-spacing: 1px;
  color: var(--text-dim); text-transform: uppercase;
}
.marquee-item::before { content: "/"; color: var(--gold-3); opacity: 0.6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   Seções genéricas
   ========================================================= */
.section { position: relative; padding: clamp(80px, 12vh, 144px) 0; }
.section-alt { background: var(--bg-850); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto clamp(48px, 6vw, 72px); }
.section-head.center { text-align: center; }
.section-kicker { margin-bottom: 16px; }
.section-title { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 800; letter-spacing: -0.03em; }
.section-lead { margin-top: 18px; color: var(--text-soft); font-size: 1.1rem; max-width: 62ch; line-height: 1.6; }
.section-head.center .section-lead { margin-inline: auto; }

/* =========================================================
   Cards de serviços — hover sóbrio (linha dourada superior)
   ========================================================= */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  position: relative;
  padding: 34px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.service-card::before { /* linha dourada superior no hover */
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--gold-2);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-gold);
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before { transform: scaleX(1); }
.service-num {
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 700;
  color: var(--gold-ink); letter-spacing: 1px; margin-bottom: 20px; display: block;
}
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-bottom: 18px;
  border-radius: 11px;
  background: var(--gold-soft);
  border: 1px solid var(--line);
  color: var(--gold);
  transition: border-color 0.3s ease;
}
.service-card:hover .service-icon { border-color: var(--line-gold); }
.service-icon i { width: 23px; height: 23px; }
.service-name { font-size: 1.28rem; margin-bottom: 10px; color: var(--text); letter-spacing: -0.01em; }
.service-desc { color: var(--text-soft); font-size: 0.97rem; line-height: 1.6; }
/* Card de serviço clicável → "Saiba mais" */
.service-card { cursor: pointer; }
.service-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-size: 0.84rem; font-weight: 600; color: var(--gold);
  letter-spacing: 0.2px;
}
.service-more i { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.service-card:hover .service-more i,
.service-card:focus-visible .service-more i { transform: translateX(3px); }

/* =========================================================
   Modal de serviço — reutilizável, claro/gelo, dourado de acento
   ========================================================= */
body.modal-lock { overflow: hidden; }

.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(21, 24, 29, 0.46);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;          /* fechado: invisível */
  pointer-events: none;        /* fechado: NÃO captura cliques (corrige "links não funcionam") */
  transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease);
}
.modal-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }

.modal {
  position: relative;
  width: 100%; max-width: 640px;
  max-height: calc(100vh - 2 * clamp(16px, 4vw, 48px));
  max-height: calc(100dvh - 2 * clamp(16px, 4vw, 48px));
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(14px) scale(0.97);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.modal-overlay.open .modal { transform: none; opacity: 1; }

/* Header com ícone + título + fechar */
.modal-header {
  display: flex; align-items: center; gap: 16px;
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 100% at 0% 0%, var(--gold-soft), transparent 60%),
    var(--surface);
}
.modal-head-icon {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 13px;
  background: var(--gold-soft); border: 1px solid var(--line-gold);
  color: var(--gold);
}
.modal-head-icon i { width: 26px; height: 26px; }
.modal-title { flex: 1 1 auto; font-size: clamp(1.35rem, 3vw, 1.7rem); letter-spacing: -0.02em; }
.modal-close {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 9px;
  background: var(--bg-850); border: 1px solid var(--line-2); color: var(--text-soft);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.modal-close:hover { border-color: var(--gold-line); color: var(--gold); background: var(--surface-2); }
.modal-close i { width: 20px; height: 20px; }

/* Corpo rolável */
.modal-body {
  padding: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0; /* permite o corpo encolher e rolar dentro do flex column */
}
.modal-header, .modal-footer { flex: 0 0 auto; }
.modal-intro { margin: 0 0 22px; color: var(--text-soft); font-size: 1.02rem; line-height: 1.65; }
.modal-section { margin-top: 24px; }
.modal-section:first-child { margin-top: 0; }
.modal-subtitle {
  display: flex; align-items: center; gap: 9px;
  font-size: 1.02rem; color: var(--text); margin-bottom: 14px; letter-spacing: -0.01em;
}
.modal-subtitle i { width: 18px; height: 18px; color: var(--gold-2); flex: 0 0 auto; }

/* Como fazemos — passos numerados */
.modal-steps { display: flex; flex-direction: column; gap: 12px; }
.modal-steps li { display: flex; align-items: flex-start; gap: 14px; color: var(--text-soft); font-size: 0.96rem; line-height: 1.55; }
.modal-step-num {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 700;
  background: var(--gold-soft); border: 1px solid var(--line); color: var(--gold-ink);
}

/* O que entregamos — bullets com check */
.modal-deliverables { display: flex; flex-direction: column; gap: 10px; }
.modal-deliverables li {
  position: relative; padding-left: 28px;
  color: var(--text-soft); font-size: 0.96rem; line-height: 1.5;
}
.modal-deliverables li::before {
  content: ""; position: absolute; left: 0; top: 0.18em;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--gold-soft); border: 1px solid var(--line-gold);
}
.modal-deliverables li::after {
  content: ""; position: absolute; left: 5px; top: 0.42em;
  width: 7px; height: 4px;
  border-left: 1.6px solid var(--gold); border-bottom: 1.6px solid var(--gold);
  transform: rotate(-45deg);
}

/* Tecnologias — chips */
.modal-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.modal-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.4px;
  color: var(--text-soft);
  padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 7px;
  background: var(--bg-850);
}

/* Footer com CTA */
.modal-footer {
  padding: 18px 24px 22px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.modal-footer .btn { width: 100%; justify-content: center; }

/* Stagger leve nas entradas do conteúdo */
.modal-overlay.open .modal-stagger {
  animation: modal-rise 0.42s var(--ease) both;
}
.modal-overlay.open .modal-stagger:nth-child(1) { animation-delay: 0.06s; }
.modal-overlay.open .modal-stagger:nth-child(2) { animation-delay: 0.12s; }
.modal-overlay.open .modal-stagger:nth-child(3) { animation-delay: 0.18s; }
.modal-overlay.open .modal-stagger:nth-child(4) { animation-delay: 0.24s; }
@keyframes modal-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* =========================================================
   Produtos / cases — hover sóbrio, apresentados como entregas
   ========================================================= */
/* 2 cases → 2 colunas centralizadas, sem esticar demais */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 760px;
  margin-inline: auto;
}
.product-card {
  position: relative;
  padding: 32px 28px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.product-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--gold-2);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.product-card:hover { transform: translateY(-4px); border-color: var(--line-gold); background: var(--surface-2); box-shadow: var(--shadow-lg); }
.product-card:hover::before { transform: scaleX(1); }
.product-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.product-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 11px;
  background: var(--gold-soft); border: 1px solid var(--line); color: var(--gold);
}
.product-icon i { width: 23px; height: 23px; }
.product-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--gold-ink);
  padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 6px;
}
.product-name { font-size: 1.42rem; color: var(--text); margin-bottom: 8px; letter-spacing: -0.02em; }
.product-result {
  font-size: 0.82rem; font-weight: 600; color: var(--gold-ink);
  margin-bottom: 12px; letter-spacing: 0.2px;
}
.product-desc { color: var(--text-soft); font-size: 0.95rem; line-height: 1.58; margin-bottom: 18px; flex: 1; }
.product-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.product-meta li {
  font-family: var(--font-mono);
  font-size: 0.66rem; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--text-dim); padding: 4px 10px;
  border: 1px solid var(--line); border-radius: 6px;
}

/* =========================================================
   Produtos — showcase organizado por STATUS (live / dev / soon)
   ========================================================= */
.status-group { max-width: 880px; margin: 0 auto; }
.status-group + .status-group { margin-top: clamp(40px, 6vw, 64px); }

.status-group-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding-bottom: 14px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.status-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-ink);
}
.status-bullet {
  width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto;
}
.status-bullet.st-live { background: #3fae62; box-shadow: 0 0 0 3px rgba(63,174,98,0.16); }
.status-bullet.st-dev  { background: var(--gold-2); box-shadow: 0 0 0 3px rgba(184,137,63,0.16); }
.status-bullet.st-soon { background: var(--text-dim); box-shadow: 0 0 0 3px rgba(122,128,138,0.14); }

.status-badge {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; border: 1px solid transparent;
}
.status-badge.st-live { color: #2f7d49; background: rgba(63,174,98,0.10); border-color: rgba(63,174,98,0.30); }
.status-badge.st-dev  { color: var(--gold-ink); background: var(--gold-soft); border-color: var(--line-gold); }
.status-badge.st-soon { color: var(--text-dim); background: rgba(122,128,138,0.07); border-color: var(--line-2); }

.status-group-note {
  margin: -6px 0 18px; color: var(--text-dim);
  font-size: 0.92rem; line-height: 1.5;
}

.status-list { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Planos: Sites & Sistemas ---------- */
.plans-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  align-items: stretch;
}
@media (max-width: 940px) { .plans-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 26px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}
.plan:hover { transform: translateY(-4px); border-color: var(--line-gold); box-shadow: var(--shadow-lg); }

.plan-featured {
  border-color: var(--gold-line); border-width: 1.5px;
  box-shadow: 0 10px 34px rgba(168,120,47,0.16);
}
.plan-featured::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-3), var(--gold));
  border-radius: var(--radius) var(--radius) 0 0;
}
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  color: #fff; background: var(--gold);
  padding: 5px 14px; border-radius: 999px;
  box-shadow: 0 3px 10px rgba(168,120,47,0.32);
  white-space: nowrap;
}

.plan-top { margin-bottom: 16px; }
.plan-name { display: block; font-size: 1.16rem; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.plan-tagline { display: block; margin-top: 3px; font-size: 0.85rem; color: var(--text-dim); }

.plan-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-amount { font-size: 2rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.plan-featured .plan-amount { color: var(--gold); }
.plan-period { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-dim); }

/* preço de mercado riscado + economia (promoção) */
.plan-old {
  font-size: 1.05rem; font-weight: 600; color: var(--text-dim);
  text-decoration: line-through; text-decoration-color: var(--gold-2);
  margin-right: 2px;
}
.plan-save {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.3px;
  color: #2f7d49; background: rgba(63,174,98,0.10); border: 1px solid rgba(63,174,98,0.30);
  padding: 5px 11px; border-radius: 999px; align-self: flex-start;
}
.plan-save i { width: 13px; height: 13px; }
.plan-badge.is-promo {
  background: #3fae62; box-shadow: 0 3px 10px rgba(63,174,98,0.32);
}

.plan-host {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 12px;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--gold-ink);
  background: var(--gold-soft); border: 1px solid var(--line-gold);
  padding: 6px 11px; border-radius: 999px; align-self: flex-start;
}
.plan-host i { width: 13px; height: 13px; }

.plan-feats { list-style: none; margin: 20px 0 24px; display: flex; flex-direction: column; gap: 11px; flex: 1 1 auto; }
.plan-feats li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.9rem; color: var(--text-soft); line-height: 1.45; }
.plan-feats i { width: 16px; height: 16px; color: #3fae62; flex: 0 0 auto; margin-top: 2px; }
.plan-feats li:first-child { font-weight: 600; color: var(--text); }

.plan .btn-block { margin-top: auto; }

.plans-foot {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin-top: 26px; text-align: center;
  font-size: 0.9rem; color: var(--text-dim);
}
.plans-foot i { width: 17px; height: 17px; color: var(--gold-2); flex: 0 0 auto; }

/* ---------- Destaque de lançamento: Zelo (teste grátis) ---------- */
.zelo-spot {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 34px;
  padding: 26px 30px;
  border: 1.5px solid var(--line-gold);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 130% at 0% 0%, var(--gold-soft), transparent 62%),
    var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, border-color 0.25s ease;
}
.zelo-spot:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--gold-line); }
.zelo-spot-glow {
  position: absolute; right: -60px; top: -80px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,137,63,0.16), transparent 70%);
  pointer-events: none;
}
.zelo-spot-left { display: flex; align-items: center; gap: 20px; flex: 1 1 380px; min-width: 0; position: relative; }
.zelo-spot-logo { flex: 0 0 auto; width: 56px; height: 56px; filter: drop-shadow(0 4px 12px rgba(168,120,47,0.28)); }
.zelo-spot-logo svg { display: block; width: 100%; height: 100%; }
.zelo-spot-text { min-width: 0; }
.zelo-spot-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 8px;
}
.zelo-spot-newdot {
  width: 7px; height: 7px; border-radius: 50%; background: #3fae62;
  box-shadow: 0 0 0 3px rgba(63,174,98,0.18);
  animation: zelo-pulse 1.8s ease-in-out infinite;
}
@keyframes zelo-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.zelo-spot-name {
  font-size: 1.32rem; color: var(--text); letter-spacing: -0.01em; margin: 0 0 6px; line-height: 1.15;
}
.zelo-spot-name span { font-size: 0.86rem; font-weight: 500; color: var(--text-dim); letter-spacing: 0; }
.zelo-spot-desc { color: var(--text-soft); font-size: 0.95rem; line-height: 1.55; margin: 0; max-width: 62ch; }
.zelo-spot-desc strong { color: var(--gold-ink); }
.zelo-spot-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 0 0 auto; position: relative; }
.zelo-spot-note {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-dim);
}
.zelo-spot-note i { width: 13px; height: 13px; color: #3fae62; }
@media (max-width: 720px) {
  .zelo-spot { padding: 22px; gap: 20px; }
  .zelo-spot-actions { width: 100%; }
  .zelo-spot-actions .btn { width: 100%; justify-content: center; }
}

/* Item = linha-card: ícone + nome/desc + pill de status */
.status-item {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 22px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
/* Faixa de cor à esquerda por status (revelada sutil) */
.status-item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  transform: scaleY(0.35); transform-origin: center;
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
  opacity: 0.55;
}
.status-item.st-live-item::before { background: #3fae62; }
.status-item.st-dev-item::before  { background: var(--gold-2); }
.status-item.st-soon-item::before { background: var(--text-dim); }
.status-item:hover {
  transform: translateY(-3px); border-color: var(--line-gold);
  background: var(--surface-2); box-shadow: var(--shadow-lg);
}
.status-item:hover::before { transform: scaleY(1); opacity: 1; }

.status-item-icon {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 11px;
  background: var(--gold-soft); border: 1px solid var(--line); color: var(--gold);
  transition: border-color 0.3s ease;
}
.status-item:hover .status-item-icon { border-color: var(--line-gold); }
.status-item-icon i { width: 22px; height: 22px; }

.status-item-body { flex: 1 1 auto; min-width: 0; }
.status-item-name {
  font-size: 1.12rem; color: var(--text); letter-spacing: -0.01em; margin: 0 0 4px;
}
.status-item-desc {
  color: var(--text-soft); font-size: 0.93rem; line-height: 1.5; margin: 0;
}

/* Link "Acesse aqui" nos cards em produção */
.status-item-link {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.4px;
  color: var(--gold-ink); text-decoration: none;
  transition: gap 0.2s var(--ease), color 0.2s ease;
}
.status-item-link i { width: 14px; height: 14px; }
.status-item-link:hover { color: var(--gold); gap: 9px; }

.status-pill {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; border: 1px solid transparent;
  white-space: nowrap;
}
.status-pill.st-live { color: #2f7d49; background: rgba(63,174,98,0.10); border-color: rgba(63,174,98,0.28); }
.status-pill.st-dev  { color: var(--gold-ink); background: var(--gold-soft); border-color: var(--line-gold); }
.status-pill.st-soon { color: var(--text-dim); background: rgba(122,128,138,0.06); border-color: var(--line-2); }
.status-pill .status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #3fae62;
  box-shadow: 0 0 0 0 rgba(63,174,98,0.5);
  animation: ai-pulse 2s ease-in-out infinite;
}

/* Grupo "em breve" — visual mais leve / tracejado / discreto */
.st-soon-group { opacity: 0.92; }
.status-item.st-soon-item {
  background: transparent;
  border-style: dashed; border-color: var(--line-2);
  box-shadow: none;
}
.status-item.st-soon-item .status-item-icon {
  background: rgba(122,128,138,0.06); color: var(--text-dim);
  border-style: dashed;
}
.status-item.st-soon-item .status-item-name { color: var(--text-soft); }
.status-item.st-soon-item:hover {
  background: var(--surface-2); border-color: var(--line-gold);
  box-shadow: var(--shadow);
}

/* =========================================================
   Números (contadores)
   ========================================================= */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  text-align: left; padding: 36px 28px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease);
}
.stat:hover { border-color: var(--line-gold); background: var(--surface-2); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.stat-num {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -0.03em;
  color: var(--gold);
}
.stat-label { display: block; margin-top: 14px; font-size: 0.9rem; color: var(--text-soft); line-height: 1.4; }

/* =========================================================
   Processo (timeline)
   ========================================================= */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 12px; }
.timeline::before {
  content: ""; position: absolute; left: 35px; top: 10px; bottom: 10px;
  width: 1px; background: linear-gradient(180deg, var(--line-gold), var(--line));
}
.timeline-item { position: relative; display: flex; gap: 26px; padding: 0 0 40px 0; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: relative; z-index: 1; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--gold);
  box-shadow: 0 0 0 6px var(--bg-850), var(--shadow);
}
.timeline-dot i { width: 20px; height: 20px; }
.timeline-body { padding-top: 4px; }
.timeline-body .step-num { font-family: var(--font-mono); font-size: 0.72rem; color: var(--gold-ink); letter-spacing: 1px; }
.timeline-body h3 { font-size: 1.24rem; color: var(--text); margin: 4px 0 6px; letter-spacing: -0.01em; }
.timeline-body p { color: var(--text-soft); font-size: 0.97rem; line-height: 1.58; }

/* =========================================================
   Sobre
   ========================================================= */
.about-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }
.about-text p { color: var(--text-soft); margin: 18px 0 0; font-size: 1.05rem; line-height: 1.65; }
.about-text strong { color: var(--text); font-weight: 600; }
.about-text .section-title { text-align: left; margin-top: 12px; }
.about-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--text-soft); font-size: 0.88rem; font-weight: 500;
}
.pill i { width: 16px; height: 16px; color: var(--gold-2); }
.about-emblem { display: flex; justify-content: center; }
.about-logo { width: clamp(170px, 24vw, 280px); opacity: 0.95; }

/* =========================================================
   CTA final
   ========================================================= */
.cta-band { text-align: center; }
.cta-band .section-title { max-width: 18ch; margin: 0 auto 16px; }
.cta-band .section-lead { margin: 0 auto 30px; }

/* =========================================================
   Contato
   ========================================================= */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-text .section-title { text-align: left; }
.contact-list { margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; color: var(--text-soft); }
.contact-list i { width: 19px; height: 19px; color: var(--gold-2); flex: 0 0 auto; }
.contact-list a { transition: color 0.25s ease; }
.contact-list a:hover { color: var(--gold); }

.contact-form {
  padding: 32px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); font-weight: 700; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px;
  background: var(--bg-850); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  color: var(--text); font-family: inherit; font-size: 0.97rem; resize: vertical;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-line); box-shadow: 0 0 0 3px var(--gold-soft); }
.field.invalid input, .field.invalid textarea { border-color: #b5563a; box-shadow: 0 0 0 3px rgba(181,86,58,0.12); }
.form-note { margin: 4px 0 0; font-size: 0.88rem; color: var(--gold-ink); min-height: 1.2em; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-850); padding-top: 48px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: center; padding-bottom: 36px; }
.footer-brand { display: flex; align-items: center; }
.footer-lockup { display: block; height: 46px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { color: var(--text-soft); font-size: 0.92rem; transition: color 0.25s ease; }
.footer-nav a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid var(--line); color: var(--text-soft);
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.footer-social a:hover { transform: translateY(-3px); border-color: var(--gold-line); color: var(--gold); }
.footer-social i { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0; text-align: center; }
.footer-bottom p { margin: 0; color: var(--text-dim); font-size: 0.86rem; }

/* =========================================================
   Back to top
   ========================================================= */
.back-to-top {
  position: fixed; bottom: 26px; right: 26px; z-index: 90;
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--surface); color: var(--gold); border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease), visibility 0.3s, border-color 0.25s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); border-color: var(--gold-line); }
.back-to-top i { width: 20px; height: 20px; }

/* =========================================================
   Reveal on scroll — suave
   ========================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* Stagger leve para grids */
.cards-grid .reveal:nth-child(2), .products-grid .reveal:nth-child(2), .stats-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.cards-grid .reveal:nth-child(3), .products-grid .reveal:nth-child(3), .stats-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.stats-grid .reveal:nth-child(4) { transition-delay: 0.18s; }

/* =========================================================
   Brand lockups — hexágono "desenhando" no load (sóbrio)
   ========================================================= */
.lk-hex { stroke-linecap: round; }

.brand-stacked .lk-hex {
  stroke-dasharray: 760;
  stroke-dashoffset: 760;
  animation: lk-draw 1.5s var(--ease) 0.15s forwards;
}
.brand-stacked .lk-rule {
  transform-box: fill-box; transform-origin: center;
  transform: scaleX(0);
  animation: lk-rule-in 0.6s var(--ease) 1.0s forwards;
}
.brand-lockup .lk-hex, .footer-lockup .lk-hex {
  stroke-dasharray: 110;
  stroke-dashoffset: 110;
  animation: lk-draw 1.1s var(--ease) 0.2s forwards;
}
@keyframes lk-draw { to { stroke-dashoffset: 0; } }
@keyframes lk-rule-in { to { transform: scaleX(1); } }

/* =========================================================
   Case de cliente (Vortex Combat)
   ========================================================= */
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 3vw, 40px);
  box-shadow: 0 1px 2px rgba(21,24,29,0.04), 0 18px 44px rgba(21,24,29,0.06); }
.case:hover { border-color: var(--line-gold); }

/* mockup do navegador com o site do cliente (tema preto+vermelho do Vortex) */
.case-visual { display: flex; justify-content: center; }
.case-browser { width: 100%; max-width: 380px; border-radius: 14px; overflow: hidden; border: 1px solid #26262e;
  box-shadow: 0 24px 50px rgba(21,24,29,0.22); background: #0a0a0b; }
.case-browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #16161b; border-bottom: 1px solid #26262e; }
.cb-dot { width: 9px; height: 9px; border-radius: 50%; background: #3a3a42; }
.cb-dot:nth-child(1) { background: #ef4444; } .cb-dot:nth-child(2) { background: #eab308; } .cb-dot:nth-child(3) { background: #22c55e; }
.case-browser-url { margin-left: 10px; font-family: 'Space Mono', monospace; font-size: 11px; color: #8a8a92; letter-spacing: .3px; }
.case-screen { position: relative; padding: 30px 24px 26px; text-align: center; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 0%, rgba(194,7,9,0.28), transparent 62%), linear-gradient(180deg, #141418, #0a0a0b); }
.cs-badge { display: inline-block; font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 2px; color: #ef8a8a; margin-bottom: 14px; }
.cs-title { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 34px; line-height: .96; letter-spacing: 1px; color: #fff; margin: 0; text-transform: uppercase; }
.cs-sub { font-size: 12.5px; color: #b6b6be; margin: 12px 0 16px; }
.cs-belts { display: flex; justify-content: center; gap: 6px; margin-bottom: 18px; }
.cs-belts span { width: 30px; height: 8px; border-radius: 3px; box-shadow: 0 0 8px rgba(0,0,0,0.4); }
.cs-cta { display: inline-block; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 12px; color: #fff;
  background: linear-gradient(180deg, #c20709, #8e0507); padding: 9px 18px; border-radius: 999px; box-shadow: 0 6px 18px rgba(194,7,9,0.4); }

/* corpo do case */
.case-eyebrow { font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 1px; color: var(--gold-ink); text-transform: uppercase; }
.case-name { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); margin: 8px 0 12px; color: var(--text); }
.case-desc { color: var(--text-soft); line-height: 1.6; margin: 0 0 20px; }
.case-desc strong { color: var(--gold-ink); }
.case-feats { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.case-feats li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-soft); }
.case-feats i { width: 17px; height: 17px; color: var(--gold-2); flex: none; }
.case-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.case-stack span { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--text-dim); padding: 4px 11px; border: 1px solid var(--line-2); border-radius: 999px; }
.case-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 980px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 44px; }
  .about-emblem { order: -1; }

  /* Hero empilha: texto (centralizado) em cima, painel IA embaixo */
  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-block: 56px 72px; }
  .hero-copy { align-items: center; text-align: center; }
  .hero-cta, .hero-proof, .hero-proof-items { align-items: center; justify-content: center; }
  .hero-ai { order: 1; }
  .ai-panel { max-width: 520px; }
  .code-window { max-width: 520px; }

  /* Engenharia empilha: texto em cima, editor embaixo */
  .eng-inner { grid-template-columns: 1fr; gap: 40px; }
  .eng-text { text-align: center; }
  .eng-text .section-title, .eng-text .section-lead { text-align: center; margin-inline: auto; }
  .eng-points { align-items: center; max-width: 360px; margin-inline: auto; }
  .hero-editor { order: 1; }
}
@media (max-width: 880px) {
  /* Backdrop escondido no mobile: o menu é tela-cheia branca e opaca, então o
     backdrop (que vivia no <body>, acima do header) só acinzentava o menu e
     roubava os cliques dos links. Sem ele, o menu fica limpo e clicável. */
  .nav-backdrop, .nav-backdrop.show { display: none !important; }

  /* IMPORTANTE: backdrop-filter no header cria "containing block" e prende o
     position:fixed do menu dentro do header (76px). Removendo no mobile, o
     menu full-screen passa a se posicionar pela viewport. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,0.96); }

  /* Menu mobile: overlay full-screen limpo (links empilhados do topo) */
  .nav {
    position: fixed; inset: 0; width: 100%;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    background: #ffffff;
    padding: calc(var(--header-h) + 18px) clamp(24px, 7vw, 40px) 40px;
    transform: translateX(100%); transition: transform 0.35s var(--ease);
    z-index: 108; overflow-y: auto;
  }
  .nav.open { transform: translateX(0); }
  /* Logo e hambúrguer (X) acima do painel para não serem cobertos */
  .brand { position: relative; z-index: 109; }
  .hamburger { display: flex; z-index: 110; }
  .brand-lockup { height: 36px; }

  .nav-link {
    padding: 18px 4px; font-size: 1.2rem; font-weight: 600;
    color: var(--text); border-bottom: 1px solid var(--line);
  }
  .nav-link::after { display: none; }
  .nav-link.active { color: var(--gold); }
  .nav-cta {
    margin: 28px 0 0; text-align: center; padding: 16px;
    background: var(--gold); color: #fff !important; border: 0; border-radius: 8px;
    font-weight: 600; box-shadow: 0 2px 8px rgba(168, 120, 47, 0.28);
  }
  .nav-cta:hover { background: #976a28; color: #fff !important; }
}
@media (max-width: 380px) {
  .brand-lockup { height: 30px; }
  .header-inner { gap: 12px; }
}
@media (max-width: 560px) {
  .cards-grid, .products-grid, .stats-grid { grid-template-columns: 1fr; }
  .hero-cta .btn, .cta-band .btn { width: 100%; justify-content: center; }

  /* Painel IA: métricas e fluxo reduzem com elegância (sem cortar) */
  .ai-stats { gap: 8px; }
  .ai-stat { padding: 10px; }
  .ai-stat-num { font-size: 1.15rem; }
  .ai-stat-label { font-size: 0.6rem; }
  .ai-flow-node { font-size: 0.58rem; padding: 6px 8px; }
  .ai-flow-node span.lbl { display: inline; }

  /* Item de status empilha o pill abaixo do conteúdo em telas estreitas */
  .status-item { flex-wrap: wrap; gap: 14px 16px; padding: 16px 18px; }
  .status-item-body { flex-basis: calc(100% - 62px); }
  .status-pill { margin-left: 64px; }
  .status-group-head { gap: 10px; }
  .hero-cta { width: 100%; flex-direction: column; align-items: stretch; }
  .hero-cta .btn-text { justify-content: center; }
  .timeline::before { left: 23px; }

  /* Inputs ≥16px evitam zoom automático no iOS; alvo de toque confortável */
  .field input, .field textarea { font-size: 16px; padding: 14px 15px; }
  .field textarea { min-height: 120px; }
  .btn { padding: 15px 24px; }            /* altura de toque ≥44px */
  .contact-form { padding: 24px; }

  /* Editor de código: fonte/altura controladas + scroll horizontal interno */
  .code-body { min-height: 0; padding: 14px 14px; }
  .code-pre { font-size: 0.74rem; line-height: 1.7; }
  .code-window { max-width: 100%; }
  .code-chrome { gap: 10px; padding: 11px 13px; }
  .code-tab { font-size: 0.72rem; padding: 4px 9px; }

  /* Footer empilha de forma limpa */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
}

/* Modal vira full-screen / bottom-sheet em telas pequenas */
@media (max-width: 600px) {
  .modal-overlay { padding: 0; align-items: stretch; }
  .modal {
    max-width: 100%;
    max-height: 100vh; max-height: 100dvh;
    height: 100%;
    border-radius: 0; border: 0;
    transform: translateY(24px);
  }
  .modal-overlay.open .modal { transform: translateY(0); }
  .modal-header { padding: 18px 18px 16px; gap: 12px; }
  .modal-head-icon { width: 46px; height: 46px; }
  .modal-body { padding: 20px 18px; }
  .modal-footer { padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); }
}

@media (max-width: 414px) {
  .container { padding-inline: 18px; }
  .hero-title { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .code-pre { font-size: 0.68rem; }
  .stat { padding: 28px 22px; }
  .service-card { padding: 28px 24px; }
}

/* =========================================================
   prefers-reduced-motion — desliga fundo/transições
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.001ms !important; }
  .bg-grid { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .lk-hex { stroke-dashoffset: 0 !important; stroke-dasharray: none !important; }
  .lk-rule { transform: none !important; }
  /* Editor estático: sem cursor piscando, sem pulse */
  .code-cursor { display: none !important; }
  .code-status-dot { box-shadow: none !important; }
  /* Painel de IA estático: sem caret, sem barra de loading, nós fixos */
  .ai-caret { display: none !important; }
  .ai-progress-bar { animation: none !important; transform: none !important; width: 60% !important; }
  .ai-neural-nodes circle { opacity: 0.6 !important; }
  .ai-dot { box-shadow: none !important; }
  /* Automações ao vivo estáticas: aura fixa, pulso parado, fluxo legível */
  .ai-aura { animation: none !important; opacity: 0.5 !important; }
  .ai-flow-pulse { animation: none !important; opacity: 0.55 !important; transform: translateX(60%) !important; }
  .ai-flow-core { animation: none !important; box-shadow: none !important; }
  .ai-stat-dot { box-shadow: none !important; }
  .status-pill .status-dot { box-shadow: none !important; }
}

/* Case de cliente — responsivo */
@media (max-width: 880px) {
  .case { grid-template-columns: 1fr; gap: 30px; }
  .case-visual { order: -1; }
}
@media (max-width: 460px) {
  .case-feats { grid-template-columns: 1fr; }
  .cs-title { font-size: 28px; }
}
