/* ===== Fênix — Hub de Sistema ===== */

:root {
  --preto: #0b1220;
  --preto-alt: #111a2e;
  --carvao: #16213a;
  --carvao-borda: #2a3655;
  /* Paleta Marinho & Champagne — substituiu o ciano/holográfico em 2026-07-26
     (o ciano só durou de 2026-07-19 a 2026-07-26; o cliente achou feio e
     pediu troca, ver identidade/design-guide.md). Mantive os nomes de
     variável --dourado* pra não precisar reescrever as ~40 regras que já
     as usam — o valor por trás é que mudou de novo. */
  --dourado: #c9a961;
  --dourado-claro: #e4d6a8;
  --dourado-escuro: #8a7038;
  --branco: #f5f3ec;
  --cinza-texto: #adb3c4;
  --fonte-titulo: 'Playfair Display', Georgia, serif;
  --fonte-corpo: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 4px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Reserva o espaço da barra de rolagem permanentemente. Sem isso,
     o `overflow:hidden` do body ao abrir o diagnóstico remove a
     barra, a página fica mais larga, o texto rearranja e o scroll
     "pula" de posição quando o modal fecha e a barra volta. */
  scrollbar-gutter: stable;
}

::selection { background: var(--dourado); color: #17130a; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--preto); }
::-webkit-scrollbar-thumb { background: var(--carvao-borda); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--dourado-escuro); }

body {
  margin: 0;
  background: var(--preto);
  color: var(--branco);
  font-family: var(--fonte-corpo);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* subtle grain so flat dark sections don't look dead */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  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");
  mix-blend-mode: overlay;
}

/* ---------- Cursor espacial ---------- */
.cursor-field {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}
.cursor-dot,
.cursor-ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  transform: translate3d(-9999px, -9999px, 0);
}
.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--dourado-claro);
  box-shadow: 0 0 6px 1px rgba(201, 169, 97, 0.6);
}
.cursor-ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(201, 169, 97, 0.5);
  transition: width 0.25s ease, height 0.25s ease, margin 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}
.cursor-field.is-hover .cursor-ring {
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  box-shadow: 0 0 24px rgba(201, 169, 97, 0.5);
  border-color: var(--dourado-claro);
}
.cursor-field.is-active .cursor-ring {
  transition: width 0.12s ease, height 0.12s ease, margin 0.12s ease;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
}
body.custom-cursor-active,
body.custom-cursor-active a,
body.custom-cursor-active button,
body.custom-cursor-active .glass-card,
body.custom-cursor-active input {
  cursor: none;
}
@media (pointer: coarse) {
  .cursor-field { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-field { display: none; }
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dourado);
  font-weight: 600;
  margin: 0 0 12px;
}
.eyebrow.center { text-align: center; }

h1, h2, h3, h4 {
  font-family: var(--fonte-titulo);
  font-weight: 600;
  color: var(--branco);
  margin: 0 0 16px;
}

h1 em { color: var(--dourado); font-style: normal; }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  max-width: 720px;
}
.section-title.center { margin-left: auto; margin-right: auto; text-align: center; }

p { color: var(--cinza-texto); }

.section { padding: 96px 0; position: relative; z-index: 2; }
.section-alt { background: var(--preto-alt); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-family: var(--fonte-corpo);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}
.btn:hover::after { left: 130%; }

.btn-primary {
  background: linear-gradient(135deg, var(--dourado-claro), var(--dourado-escuro));
  color: #17130a;
}
.btn-primary:hover { box-shadow: 0 8px 24px rgba(201, 169, 97, 0.28); }

.btn-ghost {
  background: transparent;
  border-color: var(--carvao-borda);
  color: var(--branco);
}
.btn-ghost:hover { border-color: var(--dourado); color: var(--dourado-claro); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.55);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(201, 169, 97, 0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--dourado-escuro);
}
.brand-name {
  font-family: var(--fonte-titulo);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--branco);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-sub {
  font-family: var(--fonte-corpo);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dourado);
  font-weight: 600;
}
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  font-size: 0.9rem;
  color: var(--cinza-texto);
  font-weight: 500;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--dourado-claro); }
.nav-cta {
  background: var(--dourado);
  color: #17130a !important;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--branco); }

/* ---------- Hero ---------- */
.hero {
  padding: 28px 0 28px;
  position: relative;
  z-index: 2;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% -10%, rgba(201, 169, 97, 0.12), transparent 55%),
    radial-gradient(ellipse at 100% 10%, rgba(79, 139, 255, 0.08), transparent 50%),
    var(--preto);
  border-bottom: 1px solid rgba(201, 169, 97, 0.18);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 30%), rgba(201, 169, 97, 0.10), transparent 60%);
  transition: background 0.15s ease;
}
.hud-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(201, 169, 97, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 169, 97, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 20%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 20%, black 0%, transparent 75%);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}
.hero-orb-1 {
  width: 380px; height: 380px;
  top: -120px; right: -80px;
  background: radial-gradient(circle, rgba(201, 169, 97,0.35), transparent 70%);
  animation: orbFloat 14s ease-in-out infinite;
}
.hero-orb-2 {
  width: 280px; height: 280px;
  bottom: -100px; left: 10%;
  background: radial-gradient(circle, rgba(201, 169, 97,0.2), transparent 70%);
  animation: orbFloat 18s ease-in-out infinite reverse;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: none;
}
/* ---------- Intro (texto/CTA que era topo do hero, agora seção própria
   logo abaixo — a primeira tela é só o diagrama radial). ---------- */
/* Banda de intro genérica (topo de página) — usada no topo das páginas de
   seção/serviço que vieram do antigo single-page (header é sticky, ocupa
   espaço normal no fluxo, não precisa de padding extra pra compensar). */
.page-intro { padding: 56px 0 40px; position: relative; z-index: 2; }
.hero-copy { max-width: 680px; text-align: center; margin: 0 auto; }
.hero-copy h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.18;
}
.hero-lead {
  font-size: 1.08rem;
  max-width: 620px;
  margin: 0 auto 24px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }
.hero-note {
  margin-top: 18px;
  font-size: 0.82rem;
  color: #7d7a70;
}

/* Cantos estilo HUD/viewfinder — usado nos glass-card e no diag-modal-panel. */
.hud-corners { position: relative; }
.hud-corners::before,
.hud-corners::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--dourado);
  border-style: solid;
  opacity: 0.65;
  pointer-events: none;
}
.hud-corners::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.hud-corners::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* ---------- Diagrama radial de serviços do hero ----------
   Substituiu a parede holográfica ciano em 2026-07-26, depois recolorido
   de dourado-limão pra Marinho & Champagne no mesmo dia (o dourado forte
   do primeiro porte não agradou). Usa as mesmas --dourado* do resto do
   site (unificado, não é mais uma paleta isolada) + um azul-marinho
   próprio (--hr-azul*) só pra dar profundidade nos brilhos. JS
   (initHeroRadial em experience.js) monta os 11 cards a partir de
   `servicosRadiais` e aplica o tilt 3D por proximidade do cursor. Cada
   card é um link real pra sua própria página (sem popup, desde
   2026-07-26). Entrada é CSS puro (sem GSAP) — home ficou mais leve
   depois que o texto/CTA saiu da primeira tela. */
.hero-radial {
  --hr-dourado: var(--dourado);
  --hr-dourado-claro: var(--dourado-claro);
  --hr-dourado-escuro: var(--dourado-escuro);
  --hr-azul: #3a5a8c;
  --hr-azul-claro: #7fa0cf;
  --hr-carta: rgba(17, 26, 46, 0.66);
  --hr-carta-borda: rgba(255, 255, 255, 0.08);
  --hr-anel: rgba(201, 169, 97, 0.18);
  position: relative;
  width: 100%;
  min-height: 720px;
  margin-top: 4px;
  display: flex;
  justify-content: center;
  perspective: 1400px;
  animation: heroRadialEntrada 0.9s cubic-bezier(.2,.8,.2,1) 0.15s both;
}
@keyframes heroRadialEntrada {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-radial-palco {
  position: relative;
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  will-change: transform;
}
.hero-radial-aneis {
  position: absolute;
  width: min(680px, 66vw);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
}
.hero-radial-aneis::before,
.hero-radial-aneis::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--hr-anel);
}
.hero-radial-aneis::after { inset: 13%; border-color: rgba(58, 90, 140, 0.16); }

.hero-radial-orbita { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.hr-eixo { position: absolute; width: 1px; height: 1px; animation: hrGirar var(--hr-duracao, 14s) linear infinite; }
.hr-eixo.hr-reversa { animation-direction: reverse; }
.hr-ponto {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: var(--hr-dourado-claro);
  box-shadow: 0 0 12px 3px rgba(228, 214, 168, 0.85);
  transform: translate(140px, -50%);
}
.hr-ponto.hr-azul { background: var(--hr-azul-claro); box-shadow: 0 0 12px 3px rgba(127, 160, 207, 0.85); }
.hr-ponto.hr-pequeno { width: 4px; height: 4px; }
@keyframes hrGirar { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.hero-radial-hub {
  position: relative; width: clamp(170px, 19vw, 230px); aspect-ratio: 1; border-radius: 50%;
  pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(circle at 50% 38%, rgba(201, 169, 97, 0.22), rgba(11, 18, 32, 0.9) 68%);
  border: 1px solid rgba(201, 169, 97, 0.35);
  box-shadow: 0 0 60px 12px rgba(201, 169, 97, 0.16), 0 0 120px 30px rgba(58, 90, 140, 0.08), inset 0 0 40px rgba(201, 169, 97, 0.08);
  z-index: 3;
}
.hr-hub-nome { font-family: var(--fonte-titulo); font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: 0.03em; color: var(--branco); }
.hr-hub-sub { margin-top: 6px; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hr-dourado-claro); }

.hero-radial-nodes { position: absolute; inset: 0; }

.hr-node {
  position: absolute; width: 210px;
  transform-style: preserve-3d;
  animation: hrFlutuar 6.5s ease-in-out infinite;
  animation-delay: var(--hr-atraso, 0s);
}
@keyframes hrFlutuar { 0%, 100% { margin-top: 0; } 50% { margin-top: -8px; } }

.hr-node-tilt {
  background: var(--hr-carta);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--hr-carta-borda);
  border-radius: 14px;
  padding: 15px 17px;
  display: flex; align-items: flex-start; gap: 12px;
  box-shadow: -6px 8px 22px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.15s ease-out, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  will-change: transform;
}
.hr-node-tilt:hover, .hr-node-tilt:focus-visible {
  border-color: rgba(201, 169, 97, 0.4);
  box-shadow: -6px 10px 30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(201, 169, 97, 0.18), 0 0 32px rgba(58, 90, 140, 0.18);
  outline: none;
}
.hr-node-icone {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, rgba(201, 169, 97, 0.22), rgba(58, 90, 140, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.08); color: var(--hr-dourado-claro);
}
.hr-node-icone svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hr-node-titulo { font-size: 0.92rem; font-weight: 600; color: var(--branco); line-height: 1.25; font-family: var(--fonte-corpo); }
.hr-node-sub { margin-top: 3px; font-size: 0.78rem; color: var(--cinza-texto); line-height: 1.32; }

/* ---------- Conteúdo das páginas de serviço (servicos/*.html) ----------
   Reaproveita o visual que era do modal de detalhe (removido em
   2026-07-26 — cliente pediu página real em vez de popup por cima da
   mesma aba). `.servico-conteudo` é só o container de largura/centralização;
   o resto (ícone, título, resumo, corpo) é o mesmo estilo de antes. */
.servico-conteudo { max-width: 640px; margin: 0 auto; padding: 40px 24px 100px; }
.hrd-icone {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  background: linear-gradient(155deg, rgba(201, 169, 97, 0.24), rgba(58, 90, 140, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.08); color: var(--hr-dourado-claro);
}
.hrd-icone svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hrd-titulo { font-family: var(--fonte-titulo); font-size: clamp(1.5rem, 3vw, 2rem); color: var(--branco); margin: 0; }
.hrd-resumo { margin: 10px 0 0; color: var(--hr-dourado-claro); font-size: 0.95rem; }
.hrd-corpo { margin: 20px 0 0; color: var(--cinza-texto); font-size: 0.96rem; line-height: 1.7; max-width: 56ch; }
.hrd-corpo.is-placeholder { font-style: italic; opacity: 0.75; }
.hrd-cta { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal-group].is-visible > * { opacity: 1; transform: translateY(0); }
[data-reveal-group].is-visible > *:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-group].is-visible > *:nth-child(2) { transition-delay: 0.12s; }
[data-reveal-group].is-visible > *:nth-child(3) { transition-delay: 0.19s; }
[data-reveal-group].is-visible > *:nth-child(4) { transition-delay: 0.26s; }
[data-reveal-group].is-visible > *:nth-child(5) { transition-delay: 0.33s; }
[data-reveal-group].is-visible > *:nth-child(6) { transition-delay: 0.40s; }
[data-reveal-group].is-visible > *:nth-child(7) { transition-delay: 0.47s; }

/* ---------- Cartão de vidro reutilizável (base do "digital experience") ---------- */
.glass-card {
  position: relative;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--carvao-borda);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.glass-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 169, 97, 0.4);
  background: rgba(201, 169, 97, 0.035);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.glass-card:hover::before { opacity: 1; }

/* cantos HUD que só aparecem no hover, pra não poluir grids grandes */
.hud-corners-hover::before,
.hud-corners-hover::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--dourado);
  border-style: solid;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}
.hud-corners-hover::before { top: 8px; left: 8px; border-width: 1.5px 0 0 1.5px; }
.hud-corners-hover::after { bottom: 8px; right: 8px; border-width: 0 1.5px 1.5px 0; }
.hud-corners-hover:hover::before,
.hud-corners-hover:hover::after { opacity: 0.75; }

/* Cards com campo de profundidade: o JS aplica transform inline
   conforme a proximidade do cursor, então o container precisa de
   perspectiva real pro translateZ/rotate parecerem físicos. */
.hub-grid, .diag-choice-grid, .team-grid { perspective: 1000px; }
/* will-change fica a cargo do JS (initCardField), só enquanto o card
   está ativo no campo de proximidade — manter isso fixo aqui criaria
   uma camada de composição permanente em todo card da página. */
.glass-card { transform-style: preserve-3d; }

/* ---------- Hub grid ---------- */
.hub-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.hub-card {
  display: block;
  padding: 32px 26px;
}
.hub-card-wide { grid-column: span 3; }
.hub-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--dourado-escuro);
  margin-bottom: 16px;
  color: var(--dourado-claro);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.hub-card:hover .hub-icon {
  background: rgba(201, 169, 97, 0.14);
  border-color: var(--dourado);
  box-shadow: 0 0 22px rgba(201, 169, 97, 0.35);
  transform: scale(1.08) rotate(-4deg);
}
.hub-icon svg { width: 20px; height: 20px; }
.hub-num {
  display: block;
  font-family: var(--fonte-titulo);
  color: var(--dourado);
  font-size: 1.4rem;
  margin-bottom: 12px;
  opacity: 0.85;
}
.hub-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.hub-card p { font-size: 0.92rem; margin: 0; }

/* ---------- Steps ---------- */
.steps {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 24px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.35) 15%, rgba(201, 169, 97, 0.35) 85%, transparent);
  background-size: 200% 100%;
  animation: stepsFlow 4s linear infinite;
  z-index: 0;
}
@keyframes stepsFlow {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.step {
  text-align: center;
  padding: 28px 18px;
  position: relative;
  z-index: 1;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border: 1px solid var(--dourado);
  border-radius: 50%;
  color: var(--dourado);
  font-family: var(--fonte-titulo);
  font-size: 1.2rem;
  margin-bottom: 18px;
  background: var(--preto);
  box-shadow: 0 0 0 6px var(--preto), 0 0 18px rgba(201, 169, 97, 0.25);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.step:hover .step-num {
  box-shadow: 0 0 0 6px var(--preto), 0 0 28px rgba(201, 169, 97, 0.55);
  transform: scale(1.08);
}
.step h3 { font-size: 1.1rem; }
.step p { font-size: 0.92rem; }

/* ---------- Diagnostic choice cards ---------- */
.diag-choice-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.diag-choice-card {
  padding: 40px;
}
.diag-choice-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--dourado-escuro);
  color: var(--dourado-claro);
  margin-bottom: 20px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.diag-choice-icon svg { width: 24px; height: 24px; }
.diag-choice-card:hover .diag-choice-icon {
  border-color: var(--dourado);
  box-shadow: 0 0 22px rgba(201, 169, 97, 0.35);
}
.diag-choice-card h3 { font-size: 1.3rem; }
.diag-choice-card p { margin-bottom: 24px; min-height: 48px; }

/* ---------- Team ---------- */
.team-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 18px;
}
.team-card {
  text-align: center;
  padding: 28px 12px;
}
.team-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dourado-claro), var(--dourado-escuro));
  color: #17130a;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 12px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.team-card:hover .team-initial {
  box-shadow: 0 0 0 5px rgba(201, 169, 97, 0.12), 0 0 24px rgba(201, 169, 97, 0.4);
  transform: scale(1.06);
}
.team-card h4 { margin: 0 0 4px; font-size: 1rem; }
.team-card p { margin: 0; font-size: 0.82rem; }

/* ---------- CTA final ---------- */
.cta-final {
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 169, 97, 0.12), transparent 60%),
    var(--preto-alt);
  border-top: 1px solid var(--carvao-borda);
  border-bottom: 1px solid var(--carvao-borda);
}
.cta-final .hero-orb {
  opacity: 0.35;
}
.cta-final-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 48px 44px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(201, 169, 97, 0.18);
  border-radius: 16px;
}
.cta-final h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 0;
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(201, 169, 97, 0.02));
  border-top: 1px solid rgba(201, 169, 97, 0.08);
}
.footer-inner { text-align: center; }
.footer-logo { width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 16px; object-fit: cover; }
.footer-inner p { margin: 4px 0; font-size: 0.88rem; }
.footer-fine { color: #6a675e; font-size: 0.78rem; }
.footer-fine a { color: #8a8678; text-decoration: underline; }
.footer-fine a:hover { color: var(--dourado-claro); }

/* ================= Diagnostic modal — painel holográfico ================= */

/* Desfoque de profundidade: a página por trás "recua" opticamente
   quando o painel materializa na frente dela. */
.page-layer {
  transition: filter 0.4s ease, transform 0.4s ease;
  filter: blur(0px);
}
body.modal-open .page-layer {
  filter: blur(5px) brightness(0.7);
  transform: scale(0.99);
}

.diag-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  perspective: 1400px;
}
.diag-modal.is-open { display: block; }
.diag-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 7, 0.55);
  backdrop-filter: blur(2px);
}
.diag-modal-panel {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 6vh auto;
  max-height: 88vh;
  overflow-y: auto;
  background: rgba(20, 20, 22, 0.72);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(201, 169, 97, 0.28);
  border-radius: 8px;
  padding: 40px 36px 36px;
  animation: diagMaterialize 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    0 40px 100px rgba(0,0,0,0.6),
    0 0 60px rgba(201, 169, 97, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.06);
  transform-style: preserve-3d;
}
/* O painel "se desprende" da tela: começa afastado, girado e apagado,
   e avança em direção ao usuário até assentar no lugar — como se
   estivesse sendo projetado no ar, não simplesmente abrindo. */
@keyframes diagMaterialize {
  0% {
    opacity: 0;
    transform:
      translate(var(--origin-dx, 0px), var(--origin-dy, 26px))
      translateZ(var(--origin-tz, -140px))
      rotateX(var(--origin-rx, 10deg))
      rotateY(var(--origin-ry, 0deg))
      scale(var(--origin-scale, 0.88));
    filter: blur(6px);
  }
  60% {
    opacity: 1;
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) translateZ(0) rotateX(0deg) rotateY(0deg) scale(1);
    filter: blur(0px);
  }
}

/* O card clicado "se destaca da parede" enquanto o painel do
   diagnóstico está aberto — initCardField (experience.js) ignora
   cards com essa classe, pra não brigar pelo mesmo transform. */
.glass-card.is-detaching {
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .diag-modal-panel { animation: none !important; }
  .glass-card.is-detaching {
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
  }
}
.diag-modal.is-closing .diag-modal-panel {
  animation: diagDematerialize 0.28s ease-in forwards;
}
@keyframes diagDematerialize {
  to {
    opacity: 0;
    transform: translateZ(-100px) translateY(16px) rotateX(6deg) scale(0.92);
    filter: blur(4px);
  }
}

/* Faísca/partícula do clique que "voa" do botão até o painel materializar */
.diag-spark {
  position: fixed;
  z-index: 99;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dourado-claro);
  box-shadow: 0 0 8px 2px rgba(201, 169, 97, 0.7);
  pointer-events: none;
  animation: sparkFly 0.6s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}
@keyframes sparkFly {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--sx, 0), var(--sy, -60px)) scale(0.3); }
}

/* Conteúdo do painel entra em camadas (label -> título -> opções),
   como se estivesse sendo renderizado, não só trocado de golpe. */
.diag-body > * {
  animation: diagContentIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.diag-body > *:nth-child(1) { animation-delay: 0.02s; }
.diag-body > *:nth-child(2) { animation-delay: 0.07s; }
.diag-body > *:nth-child(3) { animation-delay: 0.12s; }
.diag-body > *:nth-child(4) { animation-delay: 0.17s; }
.diag-body > *:nth-child(5) { animation-delay: 0.22s; }
.diag-body > *:nth-child(6) { animation-delay: 0.27s; }
.diag-body > *:nth-child(7) { animation-delay: 0.32s; }
@keyframes diagContentIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.diag-close {
  position: absolute;
  top: 18px; right: 18px;
  background: none;
  border: none;
  color: var(--cinza-texto);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.diag-close:hover { color: var(--dourado); }

.diag-progress {
  height: 3px;
  background: var(--carvao-borda);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 24px;
}
.diag-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--dourado-escuro), var(--dourado-claro));
  transition: width 0.3s ease;
}

.diag-agent-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dourado);
  font-weight: 600;
  margin-bottom: 22px;
}
.diag-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--dourado);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.2);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(201, 169, 97, 0.08); }
}

.diag-body h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  line-height: 1.35;
}
.diag-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  margin-bottom: 10px;
  background: var(--preto);
  border: 1px solid var(--carvao-borda);
  border-radius: var(--radius);
  color: var(--branco);
  font-family: var(--fonte-corpo);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.diag-option:hover { border-color: var(--dourado); background: var(--carvao); }

.diag-field {
  margin-bottom: 16px;
}
.diag-field label {
  display: block;
  font-size: 0.82rem;
  color: var(--cinza-texto);
  margin-bottom: 6px;
}
.diag-field input {
  width: 100%;
  padding: 13px 14px;
  background: var(--preto);
  border: 1px solid var(--carvao-borda);
  border-radius: var(--radius);
  color: var(--branco);
  font-family: var(--fonte-corpo);
  font-size: 0.95rem;
}
.diag-field input:focus {
  outline: none;
  border-color: var(--dourado);
}

.diag-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--cinza-texto);
  line-height: 1.4;
  margin-bottom: 16px;
  cursor: pointer;
}
.diag-consent input { margin-top: 3px; accent-color: var(--dourado); flex-shrink: 0; }
.diag-consent a { color: var(--dourado-claro); text-decoration: underline; }

.diag-score {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  margin-bottom: 16px;
  border: 1px solid var(--carvao-borda);
  border-radius: var(--radius);
  background: var(--preto);
}
.diag-score-number {
  font-family: var(--fonte-titulo);
  font-size: 2.4rem;
  color: var(--dourado-claro);
  line-height: 1;
  white-space: nowrap;
}
.diag-score-number span {
  font-size: 1rem;
  color: var(--cinza-texto);
  font-family: var(--fonte-corpo);
}
.diag-score-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.diag-score-info strong {
  font-size: 1rem;
  color: var(--branco);
}
.diag-score-info span {
  font-size: 0.85rem;
  color: var(--cinza-texto);
}

.diag-result {
  padding: 20px;
  border: 1px solid var(--dourado-escuro);
  border-radius: var(--radius);
  background: rgba(201, 169, 97, 0.06);
  margin-bottom: 20px;
}
.diag-result h4 {
  color: var(--dourado-claro);
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.diag-result p { margin: 0; font-size: 0.92rem; }

.diag-score-nota {
  margin-top: 14px;
  font-size: 0.8rem;
  color: #7d7a70;
  text-align: center;
}

.diag-back {
  background: none;
  border: none;
  color: var(--cinza-texto);
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 4px;
  padding: 0;
}
.diag-back:hover { color: var(--dourado); }

/* ---------- Ícones nunca estáticos ----------
   Mesmos paths SVG de sempre, só ganham uma classe no wrapper. Ficam
   pausados fora da viewport (gating .in-view, aplicado via
   IntersectionObserver em experience.js) pra não gastar ciclo à toa. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes iconPulseScale { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
  @keyframes iconRotateSlow { to { transform: rotate(360deg); } }
  @keyframes iconDrift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
  @keyframes iconTwinkle { 0%, 100% { opacity: 0.8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
  @keyframes iconScan { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
  @keyframes iconDashBreathe { 0%, 100% { stroke-dashoffset: 0; } 50% { stroke-dashoffset: var(--path-len, 40); } }

  .icon-anim-pulse svg { animation: iconPulseScale 3.2s ease-in-out infinite; animation-play-state: paused; }
  .icon-anim-rotate svg { animation: iconRotateSlow 12s linear infinite; animation-play-state: paused; }
  .icon-anim-drift svg { animation: iconDrift 2.4s ease-in-out infinite; animation-play-state: paused; }
  .icon-anim-twinkle svg { animation: iconTwinkle 2.6s ease-in-out infinite alternate; animation-play-state: paused; }
  .icon-anim-scan svg { animation: iconScan 3s ease-in-out infinite alternate; animation-play-state: paused; }
  .icon-anim-draw svg path { animation: iconDashBreathe 4s ease-in-out infinite; animation-play-state: paused; }

  .in-view .icon-anim-pulse svg,
  .in-view .icon-anim-rotate svg,
  .in-view .icon-anim-drift svg,
  .in-view .icon-anim-twinkle svg,
  .in-view .icon-anim-scan svg,
  .in-view .icon-anim-draw svg path,
  .in-view .hero-orb-1,
  .in-view .hero-orb-2 { animation-play-state: running; }

  .hero-orb-1, .hero-orb-2 { animation-play-state: paused; }

  .steps::before { animation-play-state: paused; }
  .steps.is-revealed::before { animation-play-state: running; }

}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-radial { min-height: 0; }
}

@media (max-width: 860px) {
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-card-wide { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .diag-choice-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--preto-alt);
    border-bottom: 1px solid var(--carvao-borda);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }
  .main-nav.is-open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .hub-grid { grid-template-columns: 1fr; }
  .hero { padding: 76px 0 48px; }
  .section { padding: 64px 0; }
  .diag-modal-panel { margin: 0; max-height: 100vh; min-height: 100vh; border-radius: 0; }

  /* Diagrama radial não faz sentido em 3D no toque (sem hover, sem
     cursor) — vira uma grade empilhada normal, JS pula toda a lógica
     de posição/tilt/flutuação pra esse breakpoint (ver initHeroRadial
     em experience.js). */
  .hero-radial { min-height: 0; perspective: none; }
  .hero-radial-palco { flex-direction: column; gap: 24px; transform: none !important; }
  .hero-radial-aneis, .hero-radial-orbita { display: none; }
  .hero-radial-nodes {
    position: static; display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px; width: 100%;
  }
  .hr-node { position: static !important; width: auto; margin: 0 !important; animation: none; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .hr-node, .hr-eixo { animation: none !important; }
  .hr-node-tilt { transition: none !important; }
  .hero-radial { animation: none !important; opacity: 1 !important; }
}
