/* Swarm Rebuild: a pagina inteira e "criada" por um enxame de cursores coloridos (ver swarm-rebuild.js).
   Visual de editor de design: caixa de selecao azul com medidas, retangulos cinza, texto digitado. */

/* Estado inicial: o topo fica escondido ate o enxame reconstruir.
   A classe sw-pending so e posta pelo script do head (e sempre removida por seguranca). */
html.sw-pending .site-header,
html.sw-pending .hero-text .eyebrow,
html.sw-pending .hero-text h1,
html.sw-pending .hero-text > p,
html.sw-pending .hero-text .hero-actions,
html.sw-pending .values-card .value-item {
  opacity: 0;
}
/* Cada pecinha fica assim ate um cursor "criar" */
.sw-hide {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.6s ease;
}

/* Camada em coordenadas da pagina: rola junto com o conteudo */
.sw-layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 3000;
  pointer-events: none;
  overflow: hidden;
}

/* Selecao azul, igual a de um editor de design */
.sw-box {
  position: absolute;
  border: 1px solid #18a0fb;
  background: rgba(24, 160, 251, 0.07);
  opacity: 0;
  transition: left 0.26s cubic-bezier(.2,.7,.2,1), top 0.26s cubic-bezier(.2,.7,.2,1),
              width 0.26s cubic-bezier(.2,.7,.2,1), height 0.26s cubic-bezier(.2,.7,.2,1),
              opacity 0.2s ease;
}
.sw-box.on { opacity: 1; }
.sw-box i {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #fff;
  border: 1px solid #18a0fb;
}
.sw-box i:nth-child(1) { left: -4px; top: -4px; }
.sw-box i:nth-child(2) { right: -4px; top: -4px; }
.sw-box i:nth-child(3) { left: -4px; bottom: -4px; }
.sw-box i:nth-child(4) { right: -4px; bottom: -4px; }
.sw-box b {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 7px);
  padding: 2px 6px;
  font: 600 11px/1.3 system-ui, sans-serif;
  color: #fff;
  background: #18a0fb;
  border-radius: 3px;
  white-space: nowrap;
}

/* Retangulo cinza no lugar do conteudo que ainda vai nascer */
.sw-ph {
  position: absolute;
  background: #d9d9d9;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.sw-ph.on { opacity: 0.92; }
.sw-ph.out { opacity: 0; transition-duration: 0.35s; }

/* Linhas-guia tracejadas */
.sw-guide {
  position: absolute;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.sw-guide.on { opacity: 1; }
.sw-guide.h { left: 0; width: 100%; height: 0; border-top: 1px dashed rgba(24, 160, 251, 0.55); }
.sw-guide.v { top: 0; width: 0; height: 100%; border-left: 1px dashed rgba(24, 160, 251, 0.55); }

/* Cursores: seta (gira para a direcao do voo), cruz e cursor de texto */
.sw-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  will-change: transform;
  transition: opacity 0.4s ease;
}
.sw-rot { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; transition: transform 0.25s ease; }
.sw-cursor svg { position: absolute; display: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35)); }
.sw-cursor[data-k="arrow"] .k-arrow,
.sw-cursor[data-k="plus"] .k-plus,
.sw-cursor[data-k="ibeam"] .k-ibeam { display: block; }
.k-arrow { left: -17px; top: -8px; width: 18px; height: 16px; }
.k-plus { left: -8px; top: -8px; width: 16px; height: 16px; }
.k-ibeam { left: -5px; top: -9px; width: 10px; height: 18px; }
.sw-cursor[data-k="move"] .k-move,
.sw-cursor[data-k="resize"] .k-resize { display: block; }
.k-move, .k-resize { left: -10px; top: -10px; width: 20px; height: 20px; }

/* Selecao de area (retangulo tracejado arrastado pelo cursor) */
.sw-marq {
  position: absolute;
  border: 1px dashed #18a0fb;
  background: rgba(24, 160, 251, 0.1);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.sw-marq.on { opacity: 1; }

/* Marca azul de texto selecionado */
.sw-hl {
  position: absolute;
  background: rgba(24, 160, 251, 0.3);
  border-radius: 2px;
  opacity: 0;
}
.sw-hl.on { opacity: 1; }

/* Onda do clique */
.sw-ripple {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  border: 2px solid #18a0fb;
  opacity: 0;
}

/* Tour (Ctrl + \): esconde o mouse de verdade, so os cursores do enxame aparecem */
html.sw-tour, html.sw-tour * { cursor: none !important; }
