/* ============================================================
   Diagrama de ecossistema — 2026-09-20
   ------------------------------------------------------------
   Substitui os cartões de sistema por um arranjo radial: a marca
   no centro, as frentes em órbita, ligadas por linhas.
   Estrutura de composição inspirada na referência aprovada pelo
   usuário; a paleta é a DELE (verde #22F26E sobre preto), que é
   a marca e não se mexe.

   Sem imagem: tudo é CSS + SVG, então escala em qualquer tela e
   não pesa no carregamento.
   ============================================================ */

.eco {
  position: relative;
  overflow: visible;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 1;
  margin: 34px auto 0;
  display: grid;
  place-items: center;
}

/* brilho de fundo, mesmo verde da marca */
.eco::before {
  content: '';
  position: absolute;
  width: 62%; height: 62%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 242, 110, .13), transparent 68%);
  filter: blur(26px);
}

/* anéis de órbita */
.eco__anel {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .07);
}
.eco__anel--1 { width: 47%; height: 47%; animation: ecoRespira 5.5s ease-in-out infinite; }
.eco__anel--2 { width: 78%; height: 78%; border-style: dashed; border-color: rgba(255,255,255,.07); animation: ecoGira 68s linear infinite; }

.eco__linhas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.eco__linhas line {
  stroke: rgba(34, 242, 110, .16);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

/* pulsos de dado correndo do centro para cada frente */
.eco__linhas .fluxo line {
  stroke: rgba(34, 242, 110, .85);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 2 20;
  stroke-linecap: round;
  animation: ecoFluxo 3.4s linear infinite;
}
.eco__linhas .fluxo line:nth-child(2) { animation-delay: -.42s }
.eco__linhas .fluxo line:nth-child(3) { animation-delay: -.85s }
.eco__linhas .fluxo line:nth-child(4) { animation-delay: -1.27s }
.eco__linhas .fluxo line:nth-child(5) { animation-delay: -1.7s }
.eco__linhas .fluxo line:nth-child(6) { animation-delay: -2.12s }
.eco__linhas .fluxo line:nth-child(7) { animation-delay: -2.55s }
.eco__linhas .fluxo line:nth-child(8) { animation-delay: -2.97s }

@keyframes ecoFluxo {
  from { stroke-dashoffset: 0 }
  to   { stroke-dashoffset: -22 }
}

/* núcleo com a marca */
.eco__centro {
  position: relative;
  z-index: 3;
  width: 88px; height: 88px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #0E1C2A, #060A10);
  border: 1px solid rgba(34, 242, 110, .34);
  box-shadow: 0 0 0 8px rgba(34, 242, 110, .05), 0 22px 50px -20px rgba(0, 0, 0, .9);
}
.eco__centro img { width: 46px; height: auto; display: block; }

/* nós em órbita — posição por variáveis, para ficar simples de ajustar */
.eco__no {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px 9px 10px;
  border-radius: 999px;
  background: rgba(10, 17, 25, .94);
  border: 1px solid rgba(255, 255, 255, .11);
  color: var(--txt, #EAF1F7);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  transition: border-color .18s, transform .18s, box-shadow .18s;
  left: var(--l);
  top: var(--t);
  transform: translate(-50%, -50%);
}
a.eco__no:hover {
  border-color: rgba(34, 242, 110, .55);
  transform: translate(-50%, -50%) scale(1.045);
  box-shadow: 0 14px 34px -14px rgba(34, 242, 110, .3);
}

.eco__ico {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(34, 242, 110, .11);
  border: 1px solid rgba(34, 242, 110, .26);
  flex: 0 0 auto;
}
.eco__ico svg { width: 14px; height: 14px; stroke: #22F26E; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* nós secundários (canais) ficam mais discretos que as soluções */
.eco__no--canal {
  font-size: 12px;
  font-weight: 500;
  padding: 7px 12px;
  color: var(--txt-2, #AAB6C2);
  background: rgba(8, 13, 20, .9);
}
.eco__no--canal .eco__ico {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(34, 242, 110, .55);
  border: none;
}

@media (max-width: 860px) {
  .eco { max-width: 460px; margin-top: 26px; }
  .eco__no { font-size: 12px; padding: 7px 11px 7px 8px; gap: 7px; }
  .eco__ico { width: 22px; height: 22px; }
  .eco__ico svg { width: 12px; height: 12px; }
  .eco__centro { width: 68px; height: 68px; border-radius: 19px; }
  .eco__centro img { width: 36px; }
  .eco__no--canal { display: none; }
}

@keyframes ecoGira { to { transform: rotate(360deg) } }
@keyframes ecoRespira {
  0%, 100% { transform: scale(1);    border-color: rgba(255,255,255,.07) }
  50%      { transform: scale(1.035); border-color: rgba(34,242,110,.2) }
}
@keyframes ecoNucleo {
  0%, 100% { box-shadow: 0 0 0 8px rgba(34,242,110,.05), 0 22px 50px -20px rgba(0,0,0,.9) }
  50%      { box-shadow: 0 0 0 15px rgba(34,242,110,.035), 0 22px 50px -20px rgba(0,0,0,.9) }
}

@media (prefers-reduced-motion: no-preference) {
  .eco__centro { animation: ecoNucleo 4.5s ease-in-out infinite }
}

@media (prefers-reduced-motion: reduce) {
  .eco__linhas .fluxo line, .eco__anel--1, .eco__anel--2, .eco__centro { animation: none }
  .eco__linhas .fluxo { display: none }
}