/* ==========================================================================
   GAMBS — LANDING (consolidada: dark + light + i18n)
   Folha de estilos organizada em camadas:
   1. Tokens (variáveis CSS) — :root = dark; :root[data-theme="light"] override
   2. Reset
   3. Tipografia base
   4. Layout primitives (container, rule, scroll progress)
   5. Componentes (header/toggles, hero, manifesto, mrbur, contato, footer)
   6. Utilitários (eyebrow, badges, btn, reveal)
   7. Responsivo
   8. Acessibilidade (reduced-motion, focus)
   ========================================================================== */


/* ==========================================================================
   1. TOKENS — variáveis de design
   :root = paleta dark (default).
   :root[data-theme="light"] = override token-por-token para light editorial.
   ========================================================================== */
:root {
  /* Paleta DARK — preto/grafite com ouro patinado */
  --bg-base: #0B0B0C;
  --bg-elevated: #141416;
  --bg-high: #1C1C1F;

  --border-subtle: #26262A;
  --border-strong: #3A3A40;

  --text-primary: #F5F2EC;     /* off-white quente, nunca branco puro */
  --text-secondary: #9A968D;
  --text-muted: #807C73;       /* ~4.7:1 no bg dark (AA); antes #6B675F reprovava */

  --gold: #C9A24B;             /* ouro patinado — arte, bordas, fills decorativos */
  --gold-bright: #E0B95A;      /* hover/highlight */
  --gold-soft: rgba(201, 162, 75, 0.08);
  --gold-glow: rgba(201, 162, 75, 0.18);
  --gold-text: #C9A24B;        /* ouro como TEXTO/ícone (AA). No dark = mesmo tom (8:1) */

  /* Cor do texto sobre o fundo dourado (botão primário).
     Dark: bg-base preto; Light: continuamos com fundo escuro pra contraste AA. */
  --on-gold: #0B0B0C;

  /* Header sticky com blur — overlay tema-aware */
  --header-bg: rgba(11, 11, 12, 0.85);

  /* Tipografia — grotescos "construídos" (gambiarra), sem serifa de luxo.
     Bricolage Grotesque = "bricolagem/gambiarra" em formas desencontradas. */
  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;

  /* Escala fluida — saltos mais dramáticos no display */
  --fs-h1: clamp(2.5rem, 9vw, 7rem);
  --fs-h2: clamp(1.75rem, 3.2vw + 1rem, 3.5rem);
  --fs-h3: clamp(1.375rem, 0.8vw + 1rem, 1.75rem);
  --fs-body: 1.0625rem;
  --fs-body-lg: 1.125rem;
  --fs-eyebrow: 0.75rem;

  /* Espaçamento */
  --space-section: clamp(80px, 10vw, 160px);
  --space-section-top: clamp(32px, 4vw, 56px);
  --space-section-bottom: clamp(64px, 8vw, 120px);
  --container-max: 1240px;
  --container-pad: clamp(24px, 5vw, 64px);

  /* Curvas e timings */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 200ms;
  --dur-med: 400ms;
  --dur-slow: 800ms;

  /* Bordas e raios */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* Override LIGHT — recolor da MESMA estrutura editorial.
   Mantém composição/animações do dark; só muda paleta. */
:root[data-theme="light"] {
  --bg-base: #FAF7F0;          /* off-white quente */
  --bg-elevated: #F2EEE3;
  --bg-high: #ECE7D8;

  --border-subtle: #E0D9C7;
  --border-strong: #C9BFA6;

  --text-primary: #1A1A1A;     /* near-black p/ contraste AA */
  --text-secondary: #5A564E;
  --text-muted: #6E6A61;       /* ~5:1 no bg light (AA); antes #8C887F reprovava */

  --gold: #B8893F;             /* ouro decorativo — arte, bordas, fills */
  --gold-bright: #9A6F2C;      /* hover/highlight (mais escuro pra contraste) */
  --gold-soft: rgba(184, 137, 63, 0.08);
  --gold-glow: rgba(184, 137, 63, 0.22);
  --gold-text: #806020;        /* ouro como TEXTO/ícone no light: ~5:1 em todas as superfícies (AA) */

  /* Texto sobre fundo dourado (botão primário): escuro, p/ contraste real.
     #0B0B0C sobre --gold #B8893F ≈ 6.2:1 (AA). Antes era creme (~2.9:1, reprovava). */
  --on-gold: #0B0B0C;

  /* Header sticky com overlay claro */
  --header-bg: rgba(250, 247, 240, 0.85);
}


/* ==========================================================================
   2. RESET — normalização mínima
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Suaviza a transição entre temas */
  transition: background-color var(--dur-med) var(--ease-out),
              color var(--dur-med) var(--ease-out);
}

img, svg { display: block; max-width: 100%; }

/* Defesa contra palavras longas em telas estreitas */
h1, h2, h3, p, a, span, li {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

ul { list-style: none; padding: 0; margin: 0; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
a { color: inherit; text-decoration: none; }


/* ==========================================================================
   3. TIPOGRAFIA BASE — display, body e mono
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--fs-h1);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 96;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 72;
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.18;
  font-weight: 700;
  font-variation-settings: "opsz" 24;
}

p { margin: 0; color: var(--text-secondary); text-wrap: pretty; }


/* ==========================================================================
   4. LAYOUT PRIMITIVES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* Régua dourada fina entre seções */
.rule {
  border: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--border-subtle) 15%,
    var(--gold) 50%,
    var(--border-subtle) 85%,
    transparent 100%
  );
  opacity: 0.45;
  margin: 0 auto;
  max-width: var(--container-max);
}

/* Barra de progresso de scroll */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 1px;
  width: 0%;
  background: var(--gold);
  z-index: 200;
  transition: width 60ms linear;
  box-shadow: 0 0 8px var(--gold-glow);
}


/* ==========================================================================
   5. COMPONENTES
   ========================================================================== */

/* ---- Header / nav -------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out),
              backdrop-filter var(--dur-med) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border-subtle);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  display: inline-flex;
  align-items: baseline;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.brand:hover { opacity: 0.85; }
.brand-word { color: var(--text-primary); }
/* Ponto dourado: assinatura herdada do favicon */
.brand-word::after { content: "."; color: var(--gold-text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-left: auto; /* empurra para a direita; toggles ficam ao lado */
}
.nav-links a {
  position: relative;
  padding: 4px 2px;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-med) var(--ease-out);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-sep { color: var(--text-muted); user-select: none; }

/* ---- Hamburger button (mobile-only) -------------------------------------- */
/* Botão hamburger usa as mesmas medidas dos toggles (.toggle 36×36).
   3 barras desenhadas via ::before/::after sobre o span central.
   Ao abrir (aria-expanded=true), morpha para X dourado. */
.nav-burger {
  display: none; /* mostrado apenas no breakpoint mobile */
}
.burger-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: background var(--dur-fast) var(--ease-out);
}
.burger-bars::before,
.burger-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform var(--dur-med) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.burger-bars::before { top: -6px; }
.burger-bars::after  { top:  6px; }
.nav-burger[aria-expanded="true"] .burger-bars {
  background: transparent;
}
.nav-burger[aria-expanded="true"] .burger-bars::before {
  transform: translateY(6px) rotate(45deg);
  background: var(--gold);
}
.nav-burger[aria-expanded="true"] .burger-bars::after {
  transform: translateY(-6px) rotate(-45deg);
  background: var(--gold);
}

/* ---- Toggles compactos (tema + idioma) ----------------------------------- */
.nav-toggles {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Botão base dos toggles — quadrado compacto, borda sutil, hover dourado */
.toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  background: transparent;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.toggle:hover {
  color: var(--gold-text);
  border-color: var(--gold);
  background: var(--gold-soft);
}
.toggle:active { transform: translateY(1px); }

/* Toggle de tema: alterna SVGs sol/lua via [data-theme] do <html>.
   - Tema dark: mostra SOL (clique vai pro light)
   - Tema light: mostra LUA (clique vai pro dark)
   Trocar dois ícones em vez de morfar evita layout shift. */
.toggle-theme .icon { width: 16px; height: 16px; }
.toggle-theme .icon-sun { display: block; }
.toggle-theme .icon-moon { display: none; }
:root[data-theme="light"] .toggle-theme .icon-sun { display: none; }
:root[data-theme="light"] .toggle-theme .icon-moon { display: block; }

/* Toggle de idioma: texto compacto mono dourado (mostra o idioma ALVO) */
.toggle-lang { width: auto; min-width: 36px; padding: 0 10px; }
.toggle-lang-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
  line-height: 1;
}
.toggle-lang:hover .toggle-lang-label { color: var(--gold-text); }


/* ---- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  /* padding-top reduzido pra eyebrow + H1 caírem perto do header,
     não no centro do viewport */
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: var(--space-section);
  overflow: hidden;
}

/* Textura de pontos dourados muito sutis no hero */
.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, var(--gold-soft) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 50% 30%, rgba(0,0,0,0.6) 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, rgba(0,0,0,0.6) 0%, transparent 70%);
  opacity: 0.7;
}
/* No light, intensifica um pouco a textura para não desaparecer */
:root[data-theme="light"] .hero-grain {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(184, 137, 63, 0.18) 1px, transparent 0);
  opacity: 0.6;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.hero-copy {
  position: relative;
  max-width: 640px;
  min-width: 0;
}

/* ---- Marginália do hero (regra vertical + folio mono) ---- */
.hero-marginalia {
  position: absolute;
  left: -32px;
  top: 0;
  bottom: 0;
  width: 1px;
  pointer-events: none;
  z-index: 0;
}
.hero-marginalia::before {
  content: "";
  position: absolute;
  left: 0;
  top: 110px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--gold) 0%,
    var(--gold) 70%,
    transparent 100%
  );
  opacity: 0.55;
}
.hero-folio {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold-text);
  white-space: nowrap;
  padding: 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  line-height: 1;
}

.hero-title {
  margin-top: 22px;
  margin-bottom: 28px;
}
/* Cada palavra começa invisível e sobe; o JS ativa o reveal. */
.hero-title .word {
  display: inline-block;
  max-width: 100%;
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  transition: opacity 600ms var(--ease-out),
              transform 600ms var(--ease-out),
              filter 600ms var(--ease-out);
}
.hero-title.is-visible .word {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
/* Palavra(s) marcadas como acento → itálico dourado.
   Aplicado via classe .is-accent que o JS adiciona conforme o segmento.
   Fallback: span.hero-title-accent (placeholder no HTML). */
/* Acento = swipe de marca-texto dourado atrás da palavra (não itálico dourado).
   O texto permanece em --text-primary, então o contraste passa nos dois temas;
   o ouro vive atrás, como uma marcação feita à mão. */
.hero-title .word.is-accent,
.hero-title .hero-title-accent .word,
.hero-title-accent {
  color: var(--text-primary);
  background-image: linear-gradient(
    transparent 0 60%,
    var(--gold) 60% 92%,
    transparent 92%
  );
  background-repeat: no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.06em;
}

.hero-sub {
  font-size: var(--fs-body-lg);
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 32px;
  margin-bottom: 36px;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
  color: var(--gold-text);
  text-transform: lowercase;
}

/* Visual esquemático "gambiarra" */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 520px;
  min-width: 0;
  margin-left: auto;
}
.schematic { width: 100%; height: auto; max-width: 100%; }

/* Cores do esquemático tema-aware (sem hex hardcoded no SVG) */
.schematic-grid line { stroke: var(--border-subtle); }
.schematic-wires { stroke: var(--gold); }
.schematic .node-bg { fill: var(--bg-base); stroke: var(--gold); stroke-width: 1.5; }
.schematic .node-dot { fill: var(--gold); }
.schematic-labels text { fill: var(--text-secondary); }
.schematic-marks { stroke: var(--gold); }

/* Stops dos gradientes radiais (nodeGlow / mrburGlow) — tema-aware via CSS,
   já que o atributo SVG stop-color não interpreta var() consistentemente. */
.stop-gold { stop-color: var(--gold); }

/* Animações de "pulso" nos nós e fios */
.schematic .node .node-dot {
  animation: nodePulse 3.2s ease-in-out infinite;
  transform-origin: center;
}
.schematic .node-center .node-dot { animation-delay: 0.4s; }
.schematic .wire { stroke-dashoffset: 0; opacity: 0.85; }
.schematic .wire-2 { animation: wireGlow 4s ease-in-out infinite; }
.schematic .wire-4 { animation: wireGlow 4s ease-in-out 1.2s infinite; }

@keyframes nodePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.4); }
}
@keyframes wireGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}


/* ---- Faixa de sinais (prova de vida) ------------------------------------- */
.signal {
  padding: clamp(36px, 5vw, 56px) 0;
}
.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 48px);
}
.signal-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.signal-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.signal-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  line-height: 1.4;
}


/* ---- Manifesto ----------------------------------------------------------- */
/* padding-top menor pra eyebrow/título caírem perto do header em #anchor */
.manifesto {
  padding: var(--space-section-top) 0 var(--space-section-bottom);
  scroll-margin-top: 80px;
}
.manifesto-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px clamp(40px, 5vw, 80px);
  margin: 48px 0 96px;
  max-width: 980px;
}
.manifesto-body p {
  font-size: var(--fs-body-lg);
  color: var(--text-primary);
  line-height: 1.7;
}
.manifesto-body p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 3.75em;
  font-weight: 800;
  float: left;
  line-height: 0.78;
  margin: 0.04em 0.12em 0 -0.04em;
  color: var(--gold-text);
}

/* Pilares (3 colunas) */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.pillar {
  padding: 36px 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-med) var(--ease-out),
              transform var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out),
              background-color var(--dur-med) var(--ease-out);
  position: relative;
}
.pillar:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px -16px var(--gold-glow);
  background: var(--bg-high);
}
.pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--gold-text);
  margin-bottom: 24px;
  transition: transform var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out);
}
.pillar:hover .pillar-icon {
  transform: translateY(-2px);
  border-color: var(--gold);
}
.pillar-title { margin-bottom: 12px; }
.pillar-desc { color: var(--text-secondary); font-size: var(--fs-body); }


/* ---- MrBur (case vivo) --------------------------------------------------- */
.mrbur {
  padding: var(--space-section-top) 0 var(--space-section-bottom);
  scroll-margin-top: 80px;
}
.mrbur-intro {
  font-size: var(--fs-body-lg);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 32px 0 64px;
}
.mrbur-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}
.mrbur-card::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
}
.mrbur-meta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}
.mrbur-cta { margin-top: 20px; }
/* Citação: aspa dourada de abertura em vez de side-stripe (border-left banido) */
.mrbur-note {
  margin-top: 24px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--text-primary);
}
.mrbur-note::before {
  content: "\201C";
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 0.5;
  color: var(--gold-text);
  margin-bottom: 8px;
}
.mrbur-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  isolation: isolate;
}
.mrbur-visual::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110%;
  height: 110%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle at center,
    var(--gold-soft) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
}
.mrbur-visual svg {
  width: 100%;
  max-width: 520px;
  height: auto;
  filter: drop-shadow(0 12px 40px var(--gold-soft));
}

/* Cores tema-aware do SVG MrBur */
.mrbur-rings { stroke: var(--border-subtle); }
.mrbur-ticks { stroke: var(--gold); }
.mrbur-burger { stroke: var(--gold); }
.mrbur-burger .mrbur-fill { fill: var(--gold); }
.mrbur-controller { stroke: var(--gold); }
.mrbur-pixels rect { fill: var(--gold); }
.mrbur-text-muted { fill: var(--text-secondary); }
.mrbur-text-gold { fill: var(--gold); }


/* ---- Contato ------------------------------------------------------------- */
.contact {
  padding: var(--space-section-top) 0 var(--space-section-bottom);
  scroll-margin-top: 80px;
}
.contact-intro {
  font-size: var(--fs-body-lg);
  color: var(--text-secondary);
  max-width: 56ch;
  margin: 32px 0 40px;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
/* Fecho editorial (peak-end): um momento centrado, o último beat antes do
   footer. Texto em --text-primary (o ouro reprovaria AA no tema light). */
.contact-outro {
  max-width: 34ch;
  margin: clamp(56px, 8vw, 100px) auto 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.4vw + 1.1rem, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  text-wrap: balance;
}


/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  padding: 72px 0 56px;
}

/* Desktop: brand+tag à esquerda, social à direita.
   Alinhamento vertical centralizado para os dois blocos lerem como
   uma única banda editorial. */
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 520px; }
.brand--footer { font-size: 2rem; }
.footer-tag {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.45;
}
.footer-copy {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Bloco social: rótulo mono + linha de ícones em círculos dourados.
   Estrutura: .footer-social (wrapper) > .footer-social-label + .footer-social-items */
.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.footer-social-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--gold-text);
  text-transform: uppercase;
  margin: 0;
}
.footer-social-items {
  display: flex;
  gap: 14px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--gold-text);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  transition: color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.footer-social a:hover {
  background: var(--gold);
  color: var(--on-gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}


/* ==========================================================================
   6. UTILITÁRIOS
   ========================================================================== */

/* Eyebrow como anotação de projeto técnico: tick de cota dourado + rótulo.
   Substitui o kicker "// LABEL" (tell de IA) por um sistema de marcação
   deliberado. Rótulo em --text-secondary (legível, AA); ouro só no tick. */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
  flex: none;
}

.section-title { max-width: 880px; text-wrap: balance; }

/* Botão primário (CTA dourado) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  border-radius: 99px;
  transition: all var(--dur-fast) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  color: var(--on-gold);
  background: var(--gold);
  border: 1px solid var(--gold);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-bright);
  transform: translateX(-101%);
  transition: transform var(--dur-med) var(--ease-out);
  z-index: 0;
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover {
  box-shadow: 0 12px 32px -10px var(--gold-glow);
  transform: translateY(-1px);
}
.btn-primary svg { transition: transform var(--dur-fast) var(--ease-out); }
.btn-primary:hover svg { transform: translateX(3px); }

/* Link de texto (CTA secundário) */
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  border-bottom: 1px dotted var(--border-subtle);
  padding-bottom: 4px;
  transition: all var(--dur-fast) var(--ease-out);
}
.btn-link:hover {
  color: var(--gold-text);
  border-bottom-color: var(--gold);
  border-bottom-style: solid;
}
.btn-link svg { transition: transform var(--dur-fast) var(--ease-out); }
.btn-link:hover svg { transform: translateY(2px); }

/* Estado "Em breve": ação ainda não disponível (pré-lançamento).
   Elementos viram não-interativos; sinalizam claramente em vez de
   levar o visitante a uma home deslogada. */
.is-soon {
  cursor: default;
  pointer-events: none;
}
.btn.is-soon {
  background: var(--bg-high);
  color: var(--text-secondary);
  border-color: var(--border-strong);
}
.btn.is-soon::before { display: none; }   /* sem sweep de hover */
.soon-pill {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 99px;
  padding: 2px 8px;
  opacity: 0.8;
  white-space: nowrap;
}

/* Badge mono (metadados MrBur) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--text-secondary);
  padding: 7px 12px;
  background: var(--bg-high);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Reveal — estado inicial; o JS adiciona .is-visible */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease-out),
              transform 700ms var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}


/* ==========================================================================
   7. RESPONSIVO — breakpoints 1200, 960, 640
   ========================================================================== */

@media (max-width: 1200px) {
  .pillars { gap: 24px; }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .hero-visual {
    max-width: 420px;
    margin: 0 auto;
  }
  .manifesto-body {
    grid-template-columns: 1fr;
    margin-bottom: 64px;
  }
  .pillars {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .mrbur-card {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .mrbur-visual { order: -1; max-width: 380px; margin: 0 auto; }
  .mrbur-visual svg { max-width: 380px; }
}

/* Mobile (≤640px) */
@media (max-width: 640px) {
  /* Mobile mostra hamburger; nav-links vira painel deslizante a partir do topo.
     Toggles (tema/idioma) permanecem visíveis ao lado do hamburger. */
  .nav-burger { display: inline-flex; }
  .nav-shell { gap: 8px; }
  .nav-toggles { margin-left: auto; }

  /* Nav-links como painel fixo (drawer top-down) */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 88px 24px 28px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 16px 48px -16px var(--gold-glow);
    font-size: 1rem;
    z-index: 90; /* abaixo do header (z:100), acima do conteúdo */

    /* Estado fechado */
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity var(--dur-med) var(--ease-out),
                transform var(--dur-med) var(--ease-out),
                visibility 0s linear var(--dur-med);
  }
  .site-header[data-menu-open="true"] .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
    transition: opacity var(--dur-med) var(--ease-out),
                transform var(--dur-med) var(--ease-out),
                visibility 0s linear 0s;
  }

  /* Links no painel: tipografia editorial, divisores sutis */
  .nav-links a {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    padding: 18px 0;
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-links a:last-of-type { border-bottom: none; }
  .nav-links a::after { display: none; } /* hover-underline não cabe no drawer */
  .nav-sep { display: none; }

  .hero { padding-top: 48px; padding-bottom: clamp(64px, 12vw, 100px); }
  .hero-marginalia,
  .hero-folio { display: none; }
  .hero-copy { max-width: 100%; }

  .hero-title {
    letter-spacing: -0.015em;
    margin-top: 16px;
    margin-bottom: 22px;
  }

  .hero-actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .btn { width: 100%; justify-content: center; }
  .btn-link {
    width: auto;
    align-self: flex-start;
  }

  .manifesto-body p:first-child::first-letter {
    font-size: 2.6em;
  }

  .mrbur-card { padding: 28px 22px; }
  .mrbur-meta .badge { font-size: 10px; letter-spacing: 0.12em; }
  .mrbur-visual { max-width: 280px; }
  .mrbur-visual svg { max-width: 280px; }

  .contact-outro { font-size: clamp(1.375rem, 5vw, 1.75rem); }

  /* Footer mobile: tudo centralizado, brand acima e social abaixo */
  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
  }
  .footer-brand { max-width: 100%; }
  .footer-tag { font-size: 1rem; }
  .footer-social { align-items: center; }

  .pillar { padding: 28px 24px; }

  .signal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
}

/* Mobile pequeno (≤380px) — última rede de proteção contra overflow */
@media (max-width: 380px) {
  :root {
    --container-pad: 18px;
  }
  .hero-title { letter-spacing: -0.01em; }
}

/* Toque: alvos ≥44×44 só onde o ponteiro é grosso (dedo).
   Ponteiros precisos (mouse) mantêm os toggles compactos de 36px. */
@media (pointer: coarse) {
  .toggle { width: 44px; height: 44px; }
  .toggle-lang { min-width: 44px; padding: 0 12px; }
  .nav-toggles { gap: 10px; }
  .footer-social a { width: 44px; height: 44px; }
  .btn-link { padding-top: 10px; padding-bottom: 10px; }
}


/* ==========================================================================
   8. ACESSIBILIDADE
   ========================================================================== */

/* Foco visível dourado em todos elementos interativos */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Respeita usuários que pediram redução de movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .hero-title .word {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* Esconde visualmente mantendo acessível a leitores de tela */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Seleção dourada */
::selection {
  background: var(--gold);
  color: var(--on-gold);
}