/* ==========================================================================
   D.SYSTEMS — site institucional
   Base clara + acento monocromático (identidade/logotipo.md, giro 2026-08-23:
   fora o DS Blue como cor de acento, dentro preto/branco puro — mesma virada
   que já tirou o azul/cromado do logotipo).
   Fonte: Archivo (display/UI/corpo) + Geist Mono (assinatura técnica).
   Exceção: o HERO é a única seção de contraste escuro da página (permitido
   por colors.md — "uma seção de contraste por peça longa").
   ========================================================================== */

:root {
  /* ---------- cor: fundo e superfície — base clara (brand-guide §3) ---------- */
  --bg: #F7F8FA;
  --bg-2: #EEF1F5;
  --surface: #FFFFFF;
  --surface-elevated: #F1F2F5;

  /* ---------- cor: texto ---------- */
  --text: #0B0E14;
  --text-2: #545D6E;
  --text-muted: #8791A0;
  --white: #FFFFFF;

  /* ---------- cor: acento — preto/branco puro, sem matiz (giro 2026-08-23,
     mesma decisão que trocou o logotipo cromado/azul pela onça vetorizada
     preto e branco, ver identidade/logotipo.md). Um par só, que se inverte
     sozinho: --accent quase-preto sobre fundo claro, quase-branco dentro de
     .theme-dark/.hero/.cta-card — mesma mecânica de retematização local que
     já existia pra --bg/--text, aplicada agora ao acento. --accent-contrast
     é a cor de texto/ícone que precisa ler sobre um bloco preenchido com
     --accent (ex: texto do botão primário). ---------- */
  --accent: #0B0E14;
  --accent-contrast: #FFFFFF;

  /* ---------- seções escuras — a marca intercala claro/escuro (colors.md) ---------- */
  --dark: #0B0E14;
  --dark-2: #05070A;

  /* ---------- bordas ---------- */
  --border: rgba(11, 14, 20, 0.08);
  --border-strong: rgba(11, 14, 20, 0.14);
  --border-active: var(--accent);

  /* ---------- radius (§10) ---------- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* ---------- sombra — sempre preta, baixa opacidade sobre fundo claro (§12) ---------- */
  --shadow-sm: 0 1px 2px rgba(11, 14, 20, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 14, 20, 0.10);
  --shadow-lg: 0 24px 64px rgba(11, 14, 20, 0.16);

  /* ---------- glass — claro (padrão) e escuro (só sobre foto/vídeo escuro) (§14) ---------- */
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(11, 14, 20, 0.08);
  --glass-blur: 24px;
  --glass-dark-bg: rgba(6, 7, 10, 0.5);
  --glass-dark-border: rgba(255, 255, 255, 0.14);

  /* ---------- tipografia — Archivo (Google Fonts) + Geist Mono ---------- */
  --font-sans: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --text-display-xl: clamp(2.75rem, 2rem + 3.5vw, 5.5rem);
  --text-display-l: clamp(2.25rem, 1.8rem + 2.2vw, 4rem);
  --text-h1: clamp(2rem, 1.6rem + 1.6vw, 3rem);
  --text-h2: clamp(1.5rem, 1.3rem + 1vw, 2.25rem);
  --text-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.75rem);
  --text-h4: clamp(1.125rem, 1rem + 0.3vw, 1.25rem);
  --text-body-lg: 1.125rem;
  --text-body: 1rem;
  --text-body-sm: 0.875rem;
  --text-label: 0.8125rem;
  --text-caption: 0.75rem;
  --text-micro: 0.6875rem;

  --tracking-tight: -0.02em;
  --tracking-tighter: -0.03em;

  /* ---------- spacing — base 4px, 12 degraus (§9) ---------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 5rem;
  --space-10: 6rem;
  --space-11: 8rem;
  --space-12: 10rem;

  --container: 1240px;

  /* ---------- motion (identidade/motion.md) ---------- */
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --dur-fast: 150ms;
  --dur-base: 300ms;
  --dur-slow: 600ms;
  --reveal-distance: 24px;
  --scale-hover: 1.02;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; overflow-x: hidden; } /* Lenis assume a suavização — ver script.js. overflow-x
  também aqui (não só no body, linha abaixo): sem isso, telas ≤360px sofriam ~13-30px de overflow
  horizontal fantasma (scrollWidth > clientWidth sem nenhum elemento individual excedendo a viewport —
  mesmo padrão de bug já visto e corrigido no site da JN Multimarcas). */

/* Boilerplate recomendado da própria Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

img, picture { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }
@media (min-width: 1024px) { .container { padding: 0 64px; } }

h1, h2, h3, h4 { font-family: var(--font-sans); color: var(--text); }

/* Sem azul, o destaque de "no máx. 1 palavra/linha por headline" (typography.md)
   vira sublinhado em vez de cor — funciona igual sobre claro ou escuro,
   `color: inherit` garante que nunca compete com o preto/branco do resto
   da frase. */
.text-accent { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* grão sutil — evita "flat"/aparência de IA (anti-ai.md), opacidade quase imperceptível */
.noise-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: 0.03; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- eyebrow / label mono (§Label da escala tipográfica) ---------- */
.mono-tag {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap; /* frase longa (typewriter do hero) precisa poder quebrar em tela estreita */
  gap: 6px 10px;
  max-width: 100%;
}
.mono-tag > span { min-width: 0; } /* item de flex não força a linha a estourar por causa do texto */
.mono-tag.small { font-size: var(--text-caption); }
/* variante "ao vivo" — ponto pulsando, só usado dentro do hero (sempre
   escuro), por isso branco fixo em vez de var(--accent) */
.mono-tag--live .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 8px 1px rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
  animation: dot-pulse 2.4s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.4); }
  50% { box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.3), 0 0 18px 4px rgba(255, 255, 255, 0.35); }
}
.cursor { display: inline-block; color: var(--white); animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- linha desenhada — assinatura recorrente, discreta ---------- */
.draw-line { display: block; margin: 16px 0 4px; }
.draw-line line { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 64; stroke-dashoffset: 64; transition: stroke-dashoffset var(--dur-slow) var(--ease-standard) 0.1s; }
.reveal.in-view .draw-line line { stroke-dashoffset: 0; }

/* ---------- foco de teclado (§32 acessibilidade) ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 4px; border-radius: var(--radius-md); }

/* ---------- botões (§23 — tabela exata do guia) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: 700; font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-standard), opacity var(--dur-fast) var(--ease-standard), background var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
  white-space: nowrap;
}
/* Preto sobre claro, branco sobre escuro — var(--accent)/var(--accent-contrast)
   se invertem sozinhos dentro de .theme-dark/.hero/.cta-card, então o botão
   nunca precisa de uma regra própria por seção (mesma lógica de --bg/--text). */
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { opacity: 0.82; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 0.85rem; }
.btn-arrow { display: inline-block; transition: transform var(--dur-fast) var(--ease-standard); }
.btn:hover .btn-arrow { transform: translateX(4px); }
@media (max-width: 767px) { .btn { height: 44px; } }

/* ==========================================================================
   HEADER — glass claro fixo (§30)
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(247, 248, 250, 0.7);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header.scrolled { background: rgba(247, 248, 250, 0.9); border-bottom-color: var(--border-strong); }
/* backdrop-filter desligado aqui de propósito: um ancestral com backdrop-filter vira containing
   block dos descendentes position:fixed (mesmo bug já visto e corrigido no site da JN Multimarcas).
   Com o menu mobile aberto, isso fazia o botão "Falar com a gente" (bottom:20px) grudar no topo da
   tela em vez do rodapé, e o blur aninhado (header + dropdown) deixava a onça do hero vazar atrás
   das últimas linhas do menu. Sem falta real: o painel do menu já é opaco o bastante sem o blur. */
.site-header.menu-open { background: rgba(247, 248, 250, 0.97); backdrop-filter: none; -webkit-backdrop-filter: none; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.06em; font-size: 0.95rem; color: var(--text); }
/* mix-blend-mode: multiply "apaga" o fundo branco do PNG exportado do Canva
   (a conta free não exporta PNG transparente) contra o header/footer claros
   por trás — branco × qualquer coisa = qualquer coisa, preto fica preto */
.brand-icon { width: 30px; height: 30px; object-fit: contain; mix-blend-mode: multiply; }
.main-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; margin-right: 32px; }
.main-nav a {
  font-family: var(--font-mono); font-size: var(--text-micro); font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2);
  transition: color var(--dur-fast) var(--ease-standard);
}
.main-nav a:hover { color: var(--text); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
}
.nav-toggle span { height: 1.5px; background: var(--text); width: 18px; margin: 0 auto; transition: transform var(--dur-base) var(--ease-standard), opacity var(--dur-fast) var(--ease-standard); }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1023px) {
  .main-nav { display: none; }
  .header-row .btn-sm { display: none; }
  .nav-toggle { display: flex; }
  .site-header.menu-open .main-nav {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: fixed; top: 76px; left: 0; right: 0;
    padding: 8px 20px 28px; margin: 0;
    background: rgb(247, 248, 250);
    border-bottom: 1px solid var(--border-strong);
    max-height: calc(100svh - 76px); overflow-y: auto;
  }
  .site-header.menu-open .main-nav a { width: 100%; padding: 13px 4px; border-bottom: 1px solid var(--border); }
  .site-header.menu-open .header-row .btn-sm {
    display: inline-flex;
    position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 101;
    justify-content: center;
  }
}

/* ==========================================================================
   HERO — a única seção de contraste escuro da página (colors.md, exceção
   controlada). Imagem de fundo em tela cheia (a onça), texto claro por cima.
   ========================================================================== */
.hero {
  /* escuro "na mão" (não usa .theme-dark), então redefine --accent aqui
     também — sem isso o botão primário do hero saía preto sobre fundo
     preto */
  --accent: var(--white);
  --accent-contrast: var(--dark-2);
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--dark);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  transform: scale(1.06); /* folga pro parallax não expor borda */
}
.hero-bg-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,7,10,0.35) 0%, rgba(5,7,10,0.55) 55%, rgba(5,7,10,0.85) 100%),
    linear-gradient(90deg, rgba(5,7,10,0.55) 0%, rgba(5,7,10,0.15) 45%, transparent 70%);
}

/* padding-top/bottom em longhand (não shorthand) de propósito: .hero-inner
   divide o elemento com .container (mesma div, "class=container hero-inner")
   — um shorthand aqui zeraria o padding horizontal que .container define. */
.hero-inner { position: relative; z-index: 1; width: 100%; padding-top: 140px; padding-bottom: 96px; }
.hero-copy { max-width: 760px; }
.hero-copy .mono-tag { color: rgba(255, 255, 255, 0.72); }
/* Mesma ideia da JN Multimarcas (outro site da casa): 1 clamp fluido só,
   sem degrau por breakpoint (foi um degrau exatamente assim que deixou
   "CONSTRUÍMOS" cortando no meio da palavra numa faixa de largura sem
   cobertura). Medi a largura real de "CONSTRUÍMOS" em Archivo 900
   uppercase (7.95em num teste isolado) e calibrei a curva com margem de
   sobra (~25-40% de folga) pra cobrir inclusive a fonte de fallback
   (caso a Archivo não carregue a tempo/seja bloqueada) — sem depender de
   max-width em `ch` (não é confiável entre fontes/pesos diferentes). */
.hero-copy h1 {
  font-family: var(--font-sans); font-weight: 900; color: var(--white);
  /* Máximo recalibrado: 6.5rem deixava "CONSTRUÍMOS" (7.95em de largura
     real, ver nota acima) ultrapassar os 760px de .hero-copy em telas
     largas (quebrava em 2 linhas a partir de ~1769px de viewport, ex:
     1920px — resolução de monitor comum). 5.6rem × 7.95 ≈ 712px, com
     folga segura dentro do teto de 760px em qualquer largura. */
  font-size: clamp(1.9rem, 1rem + 4.5vw, 5.6rem);
  line-height: 0.92; letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-top: 20px;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
  overflow-wrap: break-word; /* rede de segurança de último caso — não deve disparar na faixa normal */
}
.hero-lede { color: rgba(255, 255, 255, 0.78); margin-top: 22px; font-size: var(--text-body-lg); max-width: 460px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-actions .btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.32); }
.hero-actions .btn-ghost:hover { border-color: var(--white); color: var(--white); }

.hero-badge {
  position: absolute; left: 24px; bottom: 24px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: var(--glass-dark-bg); border: 1px solid var(--glass-dark-border);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  font-family: var(--font-mono); font-size: var(--text-micro); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85);
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2;
  width: 22px; height: 36px; border: 1.5px solid rgba(255, 255, 255, 0.35); border-radius: var(--radius-pill);
  display: flex; justify-content: center; padding-top: 7px;
}
.scroll-cue span { width: 3px; height: 8px; border-radius: 2px; background: rgba(255, 255, 255, 0.8); animation: scroll-cue-move 1.8s ease-in-out infinite; }
@keyframes scroll-cue-move { 0%, 100% { opacity: 1; transform: translateY(0); } 50% { opacity: 0.3; transform: translateY(8px); } }

@media (max-width: 767px) {
  .hero-inner { padding-top: 128px; padding-bottom: 72px; }
  .hero-copy { max-width: 100%; }
  .scroll-cue { display: none; }
}

/* ==========================================================================
   MARQUEE — as 4 frentes do posicionamento oficial (§28), tempero recorrente
   ========================================================================== */
.pillars-marquee { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.marquee-track {
  display: flex; width: max-content; gap: 0;
  animation: marquee-x 26s linear infinite;
  padding: 22px 0;
}
.pillars-marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: var(--text-label); font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2);
  padding: 0 28px; white-space: nowrap;
}
.marquee-item .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
@keyframes marquee-x { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ==========================================================================
   SEÇÕES — ritmo por alternância de fundo (§30), nunca linha divisória em tudo
   ========================================================================== */
section { padding: var(--space-11) 0; }
@media (max-width: 767px) { section { padding: var(--space-8) 0; } }

.bg-2 { background: var(--bg-2); }

/* Seção de contraste escuro — a marca intercala claro/escuro (colors.md,
   giro 2026-08-22: "fundo escuro é recurso pontual pra UMA seção de
   contraste, não mais a base padrão" — aqui vira um RITMO recorrente, não
   uma exceção única). Redefine os tokens semânticos localmente: todo
   componente que já usa var(--bg)/var(--text)/var(--surface)/var(--border)
   se re-tema sozinho, sem precisar de regra própria por componente. */
.theme-dark {
  --bg: var(--dark-2);
  --bg-2: #11141C;
  --surface: #12151D;
  --surface-elevated: #1A1E29;
  --text: #F5F6F8;
  --text-2: #A7AEBD;
  --text-muted: #6B7280;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --glass-bg: var(--glass-dark-bg);
  --glass-border: var(--glass-dark-border);
  --accent: var(--white);
  --accent-contrast: var(--dark-2);
  background: var(--bg);
  color: var(--text);
}

.section-head { max-width: 640px; }
.section-head h2 {
  font-weight: 700; font-size: var(--text-display-l);
  line-height: 1.02; letter-spacing: var(--tracking-tighter);
  margin-top: 8px;
  overflow-wrap: break-word;
}
.section-head-center { max-width: 720px; margin: 0 auto; text-align: center; }
.section-head-center .draw-line { margin-left: auto; margin-right: auto; }
.section-lede { color: var(--text-2); font-size: var(--text-body-lg); margin-top: 18px; max-width: 520px; }
.section-head-center .section-lede { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   MANIFESTO / PROBLEMA
   ========================================================================== */
.manifesto-text {
  font-size: var(--text-display-l); font-weight: 700;
  line-height: 1.08; letter-spacing: var(--tracking-tighter);
  max-width: 820px;
  overflow-wrap: break-word;
}
.manifesto-text + .manifesto-text {
  margin-top: 28px; font-size: var(--text-h3); font-weight: 400; color: var(--text-2);
  line-height: 1.5; letter-spacing: 0; max-width: 640px;
}
.triad { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; margin-top: var(--space-9); background: var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.triad-item { background: var(--surface); padding: var(--space-6) var(--space-5); }
.triad-item-strong .triad-label { font-size: var(--text-h4); font-weight: 700; color: var(--text-2); }
.triad-label { font-family: var(--font-mono); font-size: var(--text-label); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); display: block; }
.triad-item p { color: var(--text-2); margin-top: 10px; font-size: var(--text-body-sm); }

/* ---------- comparação sem/com sistema (referência hiasgroup.com: duas
   colunas de estado confrontadas, numeradas — ver nota no index.html) ---------- */
.compare { margin-top: var(--space-9); max-width: 720px; }
.compare-head {
  display: grid; grid-template-columns: 32px 1fr 1fr; gap: 0 var(--space-5);
  padding-bottom: 12px; border-bottom: 1px solid var(--border-strong);
}
.compare-head-label {
  font-family: var(--font-mono); font-size: var(--text-caption);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.compare-head-label-off { grid-column: 2; color: var(--text-muted); }
.compare-head-label-on { grid-column: 3; color: var(--text); }
.compare-row {
  display: grid; grid-template-columns: 32px 1fr 1fr; gap: 4px var(--space-5);
  align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--border);
}
.compare-num { font-family: var(--font-mono); font-size: var(--text-caption); color: var(--text-muted); }
.compare-off { color: var(--text-muted); text-decoration: line-through; text-decoration-color: var(--border-strong); font-size: var(--text-body-sm); }
.compare-on { color: var(--text); font-weight: 700; font-size: var(--text-body-sm); }

@media (max-width: 640px) {
  .compare-head { grid-template-columns: 1fr 1fr; padding-left: 44px; }
  .compare-head-label-off { grid-column: 1; }
  .compare-head-label-on { grid-column: 2; }
  .compare-row { grid-template-columns: 32px 1fr; row-gap: 4px; }
  .compare-off, .compare-on { grid-column: 2; }
}

/* ==========================================================================
   SISTEMA — transição problema → ecossistema
   ========================================================================== */
.system-flow-steps { list-style: none; margin-top: var(--space-8); max-width: 620px; counter-reset: step; }
.system-flow-steps li {
  position: relative; padding: 18px 0 18px 36px;
  font-size: var(--text-h4); color: var(--text);
  border-top: 1px solid var(--border);
  counter-increment: step;
}
.system-flow-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 18px;
  font-family: var(--font-mono); font-size: var(--text-caption); color: var(--text);
}
.system-flow-steps li:last-child { border-bottom: 1px solid var(--border); }
.system-flow-close { margin-top: var(--space-8); font-size: var(--text-h3); font-weight: 700; color: var(--text-2); max-width: 640px; letter-spacing: var(--tracking-tight); }

/* ==========================================================================
   SERVIÇOS / ECOSSISTEMA — globo (objeto semântico aprovado, §18)
   ========================================================================== */
.globe-showcase { display: flex; justify-content: center; margin: var(--space-9) 0; }
.globe-scene { position: relative; width: min(420px, 78vw); aspect-ratio: 1; }
.globe-atmosphere {
  position: absolute; inset: -14%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.14), transparent 72%);
  filter: blur(20px);
}
.globe-sphere {
  position: absolute; inset: 0; border-radius: 50%;
  background-image: url("assets/globe-earth.jpg");
  background-size: cover; background-position: center;
  box-shadow: inset -22px -18px 60px rgba(0,0,0,0.65), 0 0 0 1px var(--border), var(--shadow-lg);
}
.globe-orbit { position: absolute; inset: 0; }
.globe-marker {
  position: absolute; top: 50%; left: 50%;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: var(--radius-pill);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
  font-family: var(--font-mono); font-size: var(--text-micro); letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text); white-space: nowrap; max-width: 190px; overflow: hidden; text-overflow: ellipsis;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur-fast) var(--ease-standard);
  will-change: transform;
}
.globe-marker:hover { border-color: var(--accent); }
.globe-marker-num { color: var(--text); margin-right: 2px; }
.services-close { margin-top: var(--space-8); font-size: var(--text-h3); font-weight: 700; color: var(--text-2); max-width: 640px; letter-spacing: var(--tracking-tight); }

/* ==========================================================================
   MÉTODO — grid de passos com card terminal (mesmo padrão visual de
   .journey-step, classes próprias pra manter a seção independente)
   ========================================================================== */
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); margin-top: var(--space-9); }
.method-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-5); transition: border-color var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard); }
.method-step:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.method-step-number { font-family: var(--font-mono); font-size: var(--text-caption); color: var(--text); }
.method-step-terminal { margin: 14px 0 18px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-2); overflow: hidden; }
.method-step-terminal-body { font-family: var(--font-mono); font-size: var(--text-caption); padding: 10px 12px; color: var(--text-2); line-height: 1.6; }
.method-step h3 { font-size: var(--text-h4); font-weight: 700; }
.method-step p { color: var(--text-2); font-size: var(--text-body-sm); margin-top: 8px; }
@media (max-width: 900px) { .method-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .method-grid { grid-template-columns: 1fr; } }
.process-cursor-line { align-items: center; }

/* ==========================================================================
   CASES — carrossel automático (marquee de cards), pausa no hover (§30)
   ========================================================================== */
.projects-marquee { overflow: hidden; margin-top: var(--space-9); }
.projects-track {
  display: flex; gap: 24px; width: max-content;
  animation: projects-x 55s linear infinite;
}
.projects-marquee:hover .projects-track { animation-play-state: paused; }
.projects-set { display: contents; } /* não cria caixa própria — os cards viram itens diretos do flex */
@keyframes projects-x { to { transform: translateX(-50%); } }

.project-card {
  width: 360px; flex-shrink: 0;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard);
}
.project-card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.project-card-media { position: relative; width: 100%; background: var(--bg-2); aspect-ratio: 16/10; }
.project-card-media img { width: 100%; height: 100%; object-fit: cover; }
.project-card-body { padding: var(--space-6) var(--space-5); display: flex; flex-direction: column; flex: 1; }
.project-card-category { font-family: var(--font-mono); font-size: var(--text-micro); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.project-card-body h3 { font-size: var(--text-h3); font-weight: 700; letter-spacing: var(--tracking-tighter); margin-top: 6px; }
.project-card-desc { color: var(--text-2); font-size: var(--text-body-sm); margin-top: 12px; line-height: 1.55; }
.project-card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { font-family: var(--font-mono); font-size: var(--text-micro); text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-2); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 5px 12px; }
.project-card-body .btn { margin-top: 20px; align-self: flex-start; }
.project-card-pending {
  margin-top: 20px; align-self: flex-start;
  font-family: var(--font-mono); font-size: var(--text-micro); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); border: 1px dashed var(--border-strong); border-radius: var(--radius-pill); padding: 12px 20px;
}

@media (prefers-reduced-motion: reduce) {
  .projects-track { animation: none; width: 100%; flex-wrap: wrap; padding: 0 20px; }
  .projects-set[aria-hidden="true"] { display: none; }
}
@media (max-width: 480px) {
  .project-card { width: 84vw; }
}

/* ==========================================================================
   FUNDADORES — o único pin real da página (regra "máx. 1 pin")
   ========================================================================== */
.founders-track { position: relative; height: 300vh; }
.founders-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.founders-spotlight {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(11, 14, 20, 0.06), transparent 45%);
}
.founders-stage { position: relative; z-index: 1; width: min(460px, 86vw); height: min(620px, 68vh); }
.founder-card {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--surface);
  overflow: hidden; box-shadow: var(--shadow-md);
  transition: transform var(--dur-fast) linear;
}
.founder-card.is-active { border-color: var(--border-strong); }
.founder-card-photo { position: relative; flex: 1 1 auto; overflow: hidden; }
.founder-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-standard); }
.founder-card.is-active .founder-card-photo img { transform: scale(1.02); }
.founder-card-index { position: absolute; top: 16px; left: 16px; z-index: 2; font-family: var(--font-mono); font-size: var(--text-micro); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.9); background: var(--glass-dark-bg); border: 1px solid var(--glass-dark-border); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); padding: 6px 11px; border-radius: var(--radius-pill); }
.founder-card-body { padding: var(--space-6); flex-shrink: 0; }
.founder-role-pill { display: inline-block; font-family: var(--font-mono); font-size: var(--text-micro); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.founder-name { font-size: var(--text-h2); font-weight: 700; letter-spacing: var(--tracking-tight); margin-top: 8px; }
.founder-desc { color: var(--text-2); font-size: var(--text-body-sm); margin-top: 10px; }
.founders-progress { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.founders-progress-count { font-family: var(--font-mono); font-size: var(--text-micro); letter-spacing: 0.06em; color: var(--text-2); }
.founders-progress-line { width: 140px; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.founders-progress-line span { display: block; height: 100%; background: var(--accent); transition: width 0.1s linear; }
.founders-progress-mobile { display: none; }

@media (max-width: 900px) {
  .founders-track { height: auto; }
  .founders-sticky { position: static; height: auto; padding: 0 0 8px; }
  .founders-spotlight { display: none; }
  .founders-stage {
    display: flex; gap: 16px; width: 100%; height: auto;
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 4px;
    margin: 0 -20px;
  }
  .founder-card { position: relative; inset: auto; flex: 0 0 86%; height: 480px; scroll-snap-align: center; }
  .founders-progress { display: none; }
  .founders-progress-mobile { display: block; text-align: center; margin-top: 18px; font-family: var(--font-mono); font-size: var(--text-micro); letter-spacing: 0.06em; color: var(--text-2); }
}

@media (prefers-reduced-motion: reduce) {
  .founders-track { height: auto; }
  .founders-sticky { position: static; height: auto; }
  .founders-spotlight { display: none; }
  .founders-stage { display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 460px; height: auto; margin: 0 auto; }
  .founder-card { position: relative; inset: auto; height: 560px; }
  .founders-progress, .founders-progress-mobile { display: none; }
}

/* ==========================================================================
   JORNADA COMERCIAL
   ========================================================================== */
.journey-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); margin-top: var(--space-9); }
.journey-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-5); transition: border-color var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard); }
.journey-step:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.journey-step-number { font-family: var(--font-mono); font-size: var(--text-caption); color: var(--text); }
.journey-step-terminal { margin: 14px 0 18px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-2); overflow: hidden; }
.terminal-bar-mini { display: flex; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.terminal-bar-mini span { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); }
.journey-step-terminal-body { font-family: var(--font-mono); font-size: var(--text-caption); padding: 10px 12px; color: var(--text-2); line-height: 1.6; }
.journey-step h3 { font-size: var(--text-h4); font-weight: 700; }
.journey-step p { color: var(--text-2); font-size: var(--text-body-sm); margin-top: 8px; }
@media (max-width: 900px) { .journey-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .journey-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   CTA FINAL — bloco sólido preto (giro 2026-08-23: era o único lugar com
   fundo 100% DS Blue; agora é o mesmo preto do hero — o "momento de
   contraste" continua existindo, só que sem cor)
   ========================================================================== */
.cta-card {
  /* escuro "na mão", mesma redefinição local de --accent do .hero */
  --accent: var(--white);
  --accent-contrast: var(--dark-2);
  position: relative;
  background: var(--dark-2); color: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  max-width: 760px; margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.cta-card .mono-tag { color: rgba(255, 255, 255, 0.72); }
.cta-card h2 { color: var(--white); font-size: var(--text-display-l); font-weight: 700; letter-spacing: var(--tracking-tighter); line-height: 1.05; margin-top: 8px; max-width: 520px; overflow-wrap: break-word; }
.cta-lede { color: rgba(255, 255, 255, 0.82); margin-top: 18px; max-width: 480px; font-size: var(--text-body); }

.cta-form { margin-top: var(--space-7); display: flex; flex-direction: column; gap: 16px; }
.cta-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cta-form-field { display: flex; flex-direction: column; gap: 8px; font-size: var(--text-body-sm); color: rgba(255, 255, 255, 0.85); }
.cta-form-field input, .cta-form-field select {
  background: var(--white); border: 1px solid transparent; border-radius: var(--radius-md);
  color: var(--text); padding: 13px 14px; font-family: var(--font-sans); font-size: var(--text-body-sm);
  transition: box-shadow var(--dur-fast) var(--ease-standard);
}
.cta-form-field input:focus, .cta-form-field select:focus {
  outline: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}
/* .btn-primary genérico já resolve certo aqui — usa --accent/--accent-contrast
   locais do .cta-card (branco de fundo, preto no texto), sem regra própria */
.cta-form-honeypot { position: absolute; left: -9999px; opacity: 0; }
.cta-form-submit { margin-top: 6px; }
.cta-form-status { margin-top: 16px; font-size: var(--text-body-sm); color: var(--white); }
.cta-form-status.is-success { color: var(--white); }
.cta-form-status.is-error { color: #FFE1D6; }
.cta-note { margin-top: 22px; font-family: var(--font-mono); font-size: var(--text-micro); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); }

@media (max-width: 640px) {
  .cta-card { padding: var(--space-8) var(--space-5); }
  .cta-form-row { grid-template-columns: 1fr; }
  .cta-form-submit { width: 100%; }
}

/* ==========================================================================
   FOOTER — background-secondary (§30)
   ========================================================================== */
.site-footer { background: var(--bg-2); padding: var(--space-8) 0 var(--space-6); border-top: 1px solid var(--border); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { font-family: var(--font-mono); font-size: var(--text-caption); color: var(--text-2); }
.footer-nav a:hover { color: var(--text); }
.footer-social { display: flex; align-items: center; gap: 20px; }
.footer-social a { font-size: var(--text-body-sm); color: var(--text-2); }
.footer-social a:hover { color: var(--text); }
.footer-copy { font-size: var(--text-caption); color: var(--text-muted); }
.footer-tagline { margin-top: var(--space-6); font-family: var(--font-mono); font-size: var(--text-micro); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }

/* ==========================================================================
   REVEAL — fade + translate, stagger (motion.md)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(var(--reveal-distance)); transition: opacity var(--dur-slow) var(--ease-standard), transform var(--dur-slow) var(--ease-standard); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.qa-mode .reveal { opacity: 1; transform: translateY(0); }
.qa-mode .hero { min-height: auto; padding-bottom: 40px; }
/* QA (?qa=1): mesma simplificação estática do reduced-motion pro carrossel
   dos fundadores — captura de página inteira num viewport sintético não
   reproduz scroll real, então o pin de 300vh (correto em navegador de
   verdade) precisa virar layout estático só pra essa captura. */
.qa-mode .founders-track { height: auto; }
.qa-mode .founders-sticky { position: static; height: auto; }
.qa-mode .founders-spotlight { display: none; }
.qa-mode .founders-stage { display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 460px; height: auto; margin: 0 auto; }
.qa-mode .founder-card { position: relative; inset: auto; height: 560px; }
.qa-mode .founders-progress, .qa-mode .founders-progress-mobile { display: none; }

/* ==========================================================================
   PÁGINAS INTERNAS (blog) — mesmo sistema de marca
   ========================================================================== */
.page-hero { padding: 168px 0 64px; background: var(--bg); }
.page-hero h1 { font-size: var(--text-display-l); font-weight: 900; letter-spacing: var(--tracking-tighter); line-height: 1.02; margin-top: 10px; }
.page-lede { color: var(--text-2); font-size: var(--text-body-lg); margin-top: 18px; max-width: 560px; }
@media (max-width: 767px) { .page-hero { padding: 140px 0 40px; } }

.blog-list { padding-top: 0; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-6); }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); transition: border-color var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard); }
.blog-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.blog-card-meta { font-family: var(--font-mono); font-size: var(--text-micro); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.blog-card h2 { font-size: var(--text-h3); font-weight: 700; margin-top: 10px; letter-spacing: var(--tracking-tight); }
.blog-card p { color: var(--text-2); font-size: var(--text-body-sm); margin-top: 10px; }
.btn-arrow-inline { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--text); font-weight: 600; font-size: var(--text-body-sm); }

.article-container { max-width: 720px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .article-container { padding: 0 32px; } }
.article-breadcrumb { margin-bottom: var(--space-7); }
.article-breadcrumb a { font-family: var(--font-mono); font-size: var(--text-caption); color: var(--text-2); }
.article-breadcrumb a:hover { color: var(--text); }
.article-body { font-size: var(--text-body-lg); color: var(--text-2); line-height: 1.75; }
.article-body p { margin-bottom: 20px; }
.article-body h2 { font-size: var(--text-h2); font-weight: 700; color: var(--text); letter-spacing: var(--tracking-tight); margin: var(--space-8) 0 16px; }
.article-body ul { margin: 0 0 20px; padding-left: 22px; }
.article-body li { margin-bottom: 10px; }
.article-cta { margin-top: var(--space-9); padding: var(--space-7) var(--space-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.article-cta h3 { font-size: var(--text-h2); font-weight: 700; letter-spacing: var(--tracking-tight); }
.article-cta p { color: var(--text-2); margin: 12px 0 22px; }
.article-share { margin-top: var(--space-7); font-family: var(--font-mono); font-size: var(--text-caption); color: var(--text-muted); }
.article-share a { color: var(--text-2); }
.article-share a:hover { color: var(--text); }
