/* ═══════════════════════════════════════════════════════════════
   HERO ORBIT — cards de uso do Atlas CRM orbitando o título
   Anel elíptico que gira devagar, acelera com o scroll e reage
   ao mouse (posições calculadas em hero-orbit.js).
═══════════════════════════════════════════════════════════════ */

/* ── Hero centralizado para o anel envolver o conteúdo ───────── */
@media (min-width: 901px) {
  .hero--orbit .hero-grid { justify-items: center; }
  .hero--orbit .hero-content {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
  }
  .hero--orbit .hero-desc { margin-left: auto; margin-right: auto; }
  .hero--orbit .hero-actions,
  .hero--orbit .hero-stats { justify-content: center; }
}

/* O anel substitui o globo e as speedlines como elemento decorativo */
.hero--orbit .retro-globe-wrap,
.hero--orbit .hero-speedlines { display: none; }

/* ── Palco do anel ───────────────────────────────────────────── */
.hero-orbit {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ── Logo no lugar do nome "Atlas" e cabeçalho sem logo ─────── */
.hero-logo-m { display: none; }

.hero-logo-d {
  display: block;
  width: clamp(240px, 22vw, 320px);
  height: auto;
  margin: 0 auto 30px;
  filter: drop-shadow(0 0 28px rgba(255,255,255,0.12));
}

/* nome "Atlas" sai da tela (a logo cumpre esse papel), mas fica acessível */
.hero--orbit .hero-name {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* a logo do hero substitui a do cabeçalho; menu centralizado no eixo do hero */
.nav-logo { display: none; }
.nav-inner { justify-content: center; }

@media (max-width: 768px) {
  .nav-inner { justify-content: flex-end; }   /* só o botão do menu, à direita */
}

/* Mobile: carrossel em órbita (elipse achatada em perspectiva) acima do título */
@media (max-width: 900px) {
  .hero-logo-m {
    display: block;
    position: relative;
    z-index: 2;
    width: min(140px, 40vw);
    height: auto;
    margin: 0 auto 4px;
  }
  .hero-logo-d { display: none; }
  .hero--orbit { padding-top: 96px; }
  .hero-orbit {
    position: relative;
    inset: auto;
    height: 250px;
    margin-bottom: 12px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  }
  /* cards opacos para o da frente não deixar ver os de trás */
  .hero-orbit .orb-win { background: #0b0b0b; backdrop-filter: none; -webkit-backdrop-filter: none; }
  /* trilho da órbita */
  .hero-orbit::before {
    content: "";
    position: absolute;
    left: 6%; right: 6%;
    top: 50%;
    height: 96px;
    transform: translateY(-50%);
    border: 1px dashed rgba(160,224,171,0.16);
    border-radius: 50%;
  }
}

/* ── Card ────────────────────────────────────────────────────── */
.orb-tile {
  --acc: #a0e0ab;
  position: absolute;
  top: 0; left: 0;
  width: 172px;
  margin: 0;
  opacity: 0;
  will-change: transform, opacity;
  pointer-events: auto;
}

.orb-win {
  background: rgba(10,10,10,0.82);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
  font-family: 'Share Tech Mono', monospace;
  color: rgba(255,255,255,0.85);
  transition: border-color 0.06s steps(1), box-shadow 0.06s steps(1);
}
.orb-tile:hover .orb-win {
  border-color: var(--acc);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.6), 0 0 24px color-mix(in srgb, var(--acc) 25%, transparent);
}

.orb-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 14%, transparent), transparent 70%);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
}
.orb-bar i {
  width: 5px; height: 5px;
  background: rgba(255,255,255,0.25);
}
.orb-bar i:first-child { background: var(--acc); }
.orb-bar span { margin-left: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.orb-body {
  height: 96px;
  padding: 9px 10px;
  font-size: 10px;
  line-height: 1.35;
  position: relative;
}

.orb-tile figcaption {
  margin-top: 8px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-align: center;
  opacity: var(--cap, 1);
}

/* ── Peças reutilizáveis ─────────────────────────────────────── */
.ob-row { display: flex; align-items: center; gap: 7px; }
.ob-row b { display: block; font-weight: 400; color: #fff; }
.ob-row small { display: block; font-size: 9px; color: rgba(255,255,255,0.45); }
.ob-av {
  width: 22px; height: 22px; flex: none;
  display: grid; place-items: center;
  font-size: 9px; color: #000;
  background: var(--acc);
}
.ob-muted { color: rgba(255,255,255,0.45); font-size: 9px; }
.ob-acc { color: var(--acc); }
.ob-big { font-size: 22px; color: #fff; letter-spacing: 0.02em; line-height: 1.1; }
.ob-badge {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--acc);
  color: var(--acc);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.ob-bubble {
  margin-top: 9px;
  padding: 6px 8px;
  background: rgba(255,255,255,0.06);
  border-left: 2px solid var(--acc);
  width: fit-content;
  max-width: 100%;
}
.ob-bubble--out { margin-left: auto; border-left: 0; border-right: 2px solid var(--acc); text-align: right; }

/* digitando… */
.ob-typing { display: inline-flex; gap: 2px; margin-left: 4px; vertical-align: middle; }
.ob-typing i { width: 3px; height: 3px; background: var(--acc); animation: obBlink 1.2s steps(1) infinite; }
.ob-typing i:nth-child(2) { animation-delay: 0.2s; }
.ob-typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes obBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.15; } }

/* ✓✓ ficando lido */
.ob-ticks { font-size: 9px; color: rgba(255,255,255,0.35); animation: obRead 4s steps(1) infinite; }
@keyframes obRead { 0%, 44% { color: rgba(255,255,255,0.35); } 45%, 100% { color: var(--acc); } }

/* Funil: card pulando de coluna */
.ob-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; height: 100%; }
.ob-col { border: 1px dashed rgba(255,255,255,0.12); padding: 4px; display: flex; flex-direction: column; gap: 4px; }
.ob-col em { font-style: normal; font-size: 8px; color: rgba(255,255,255,0.45); letter-spacing: 0.06em; }
.ob-sk { height: 9px; background: rgba(255,255,255,0.08); }
.ob-hop {
  position: absolute;
  left: 14px; top: 46px;
  width: calc((100% - 20px - 10px) / 3 - 8px);
  height: 14px;
  background: var(--acc);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
  animation: obHop 6s steps(1) infinite;
}
@keyframes obHop {
  0%, 32%   { transform: translateX(0); }
  33%, 65%  { transform: translateX(calc(100% + 13px)); }
  66%, 100% { transform: translateX(calc(200% + 26px)); }
}

/* Tarefas: checkbox marcando */
.ob-task { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.ob-box { width: 11px; height: 11px; flex: none; border: 1px solid rgba(255,255,255,0.4); position: relative; }
.ob-box--anim::after {
  content: ''; position: absolute; inset: 2px; background: var(--acc);
  animation: obCheck 5s steps(1) infinite;
}
.ob-box--done { border-color: var(--acc); background: var(--acc); }
.ob-task--done span { text-decoration: line-through; color: rgba(255,255,255,0.4); }
@keyframes obCheck { 0%, 39% { opacity: 0; } 40%, 100% { opacity: 1; } }

/* Relatório: barras crescendo */
.ob-bars { display: flex; align-items: flex-end; gap: 5px; height: 52px; margin-top: 6px; }
.ob-bars i {
  flex: 1; background: rgba(255,255,255,0.18);
  transform-origin: bottom;
  animation: obGrow 4s steps(5) infinite;
}
.ob-bars i:last-child { background: var(--acc); }
@keyframes obGrow { 0% { transform: scaleY(0.15); } 40%, 100% { transform: scaleY(1); } }

/* Inbox multicanal */
.ob-ch { display: flex; justify-content: space-between; align-items: center; padding: 2px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.ob-count { min-width: 14px; padding: 0 3px; text-align: center; background: var(--acc); color: #000; font-size: 9px; animation: obBlink 2.4s steps(1) infinite; }
.ob-ch:nth-child(2) .ob-count { animation-delay: 0.6s; }
.ob-ch:nth-child(3) .ob-count { animation-delay: 1.2s; }

/* Histórico: linhas aparecendo */
.ob-log { list-style: none; border-left: 1px solid rgba(255,255,255,0.15); padding-left: 9px; }
.ob-log li { position: relative; margin-bottom: 5px; animation: obLog 6s steps(1) infinite; }
.ob-log li::before { content: ''; position: absolute; left: -12px; top: 4px; width: 5px; height: 5px; background: var(--acc); }
.ob-log li:nth-child(2) { animation-delay: 0.8s; }
.ob-log li:nth-child(3) { animation-delay: 1.6s; }
@keyframes obLog { 0%, 9% { opacity: 0; } 10%, 100% { opacity: 1; } }

/* Automação: pixel percorrendo o fluxo */
.ob-flow { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; position: relative; }
.ob-node { padding: 4px 5px; border: 1px solid rgba(255,255,255,0.25); font-size: 9px; background: rgba(0,0,0,0.6); position: relative; z-index: 1; }
.ob-node:first-child { border-color: var(--acc); color: var(--acc); }
.ob-wire { position: absolute; left: 10%; right: 10%; top: 50%; height: 1px; background: rgba(255,255,255,0.2); }
.ob-wire::after {
  content: ''; position: absolute; top: -2px; left: 0; width: 5px; height: 5px; background: var(--acc);
  box-shadow: 0 0 8px var(--acc);
  animation: obRun 3s steps(12) infinite;
}
@keyframes obRun { from { left: 0; } to { left: calc(100% - 5px); } }

/* Meta: barra de progresso */
.ob-meter { height: 10px; border: 1px solid rgba(255,255,255,0.25); margin-top: 10px; padding: 1px; }
.ob-meter i { display: block; height: 100%; width: 78%; background: repeating-linear-gradient(90deg, var(--acc) 0 6px, transparent 6px 8px); animation: obFill 5s steps(10) infinite; }
@keyframes obFill { 0% { width: 8%; } 60%, 100% { width: 78%; } }

/* Proposta: olho piscando */
.ob-doc { width: 26px; height: 32px; border: 1px solid rgba(255,255,255,0.35); position: relative; flex: none; }
.ob-doc::before { content: ''; position: absolute; left: 4px; right: 4px; top: 7px; height: 12px; background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.25) 0 1px, transparent 1px 4px); }
.ob-seen { margin-top: 12px; display: flex; align-items: center; gap: 6px; }
.ob-eye { width: 8px; height: 8px; background: var(--acc); border-radius: 50%; animation: obBlink 1.6s steps(1) infinite; }

/* Equipe */
.ob-team { display: flex; gap: 4px; margin-bottom: 10px; }
.ob-team .ob-av { position: relative; background: rgba(255,255,255,0.85); }
.ob-team .ob-av::after { content: ''; position: absolute; right: -2px; bottom: -2px; width: 6px; height: 6px; background: #a0e0ab; border: 1px solid #000; }

/* ── Movimento reduzido: anel estático e sem micro-animações ─── */
@media (prefers-reduced-motion: reduce) {
  .orb-tile *, .orb-tile *::before, .orb-tile *::after { animation: none !important; }
}
