/* As linhas e os símbolos usam a mesma caixa para manter os pontos conectados. */
.ecosystem {
  --network-accent: #00d0ff;
  padding-block: clamp(44px, 6vw, 84px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 76px;
}
.ecosystem-network {
  position: relative;
  isolation: isolate;
  max-width: 1000px;
  aspect-ratio: 2;
  margin: 0 auto;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--network-accent) 7%, transparent), transparent 60%);
}
.network-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.network-links-mobile { display: none; }
.network-link, .network-flow {
  fill: none;
  stroke: var(--line-2);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.network-flow {
  stroke: var(--network-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 60 940;
  animation: network-transfer 5.8s linear infinite;
  animation-play-state: paused;
}
.network-flow:nth-child(2) { animation-delay: -2.4s; animation-duration: 6.6s; }
.network-flow:nth-child(3) { animation-delay: -4.1s; }
.network-flow:nth-child(4) { animation-delay: -1.1s; animation-duration: 7s; animation-direction: reverse; }
.network-flow:nth-child(5) { animation-delay: -3.2s; animation-duration: 6.2s; animation-direction: reverse; }
.network-flow:nth-child(6) { animation-delay: -1.8s; }
.network-flow:nth-child(7) { animation-delay: -4.7s; animation-direction: reverse; }
@keyframes network-transfer { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
.ecosystem-network.is-visible:not(.is-paused) .network-flow { animation-play-state: running; }
.network-nodes { list-style: none; margin: 0; padding: 0; }
.network-node, .network-hub {
  position: absolute;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  background: var(--surface);
  border: 1px solid var(--line-2);
}
.network-node {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--shell) 72%, transparent);
}
.network-node img { display: block; width: 36px; height: 36px; object-fit: contain; }
.network-anthropic img { width: 43px; }
/* Margem transparente original do Blossom preservada. */
.network-openai img { width: 66px; height: 66px; }
.network-whatsapp { left: 14%; top: 30%; }
.network-gmail { left: 28%; top: 15%; }
.network-drive { left: 14%; top: 70%; }
.network-docs { left: 30%; top: 86%; }
.network-sheets { left: 51%; top: 90%; }
.network-anthropic { left: 79%; top: 26%; }
.network-openai { left: 85%; top: 68%; }
.network-hub {
  left: 50%; top: 50%;
  width: 116px; height: 116px;
  border-radius: 32px;
  border-color: color-mix(in srgb, var(--network-accent) 46%, transparent);
  background: var(--raised);
  box-shadow: 0 0 48px color-mix(in srgb, var(--network-accent) 10%, transparent);
}
.network-hub img { width: 58px; height: 58px; }
.network-hub::before, .network-hub::after {
  content: ''; position: absolute; pointer-events: none;
  inset: -18px; border-radius: 46px;
  border: 1px solid color-mix(in srgb, var(--network-accent) 10%, transparent);
}
.network-hub::after { inset: -38px; border-radius: 62px; opacity: .55; }
.network-control {
  position: absolute; bottom: 0; right: 0;
  display: none; place-items: center;
  width: 44px; height: 44px; padding: 0;
  background: transparent; color: var(--mute);
  border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
}
.is-ready .network-control { display: grid; }
.network-control:hover { color: var(--fg); border-color: var(--line-2); }
.network-control svg { width: 16px; height: 16px; }
.network-control .network-play { display: none; }
.is-paused .network-control .network-pause { display: none; }
.is-paused .network-control .network-play { display: block; }
@media (max-width: 700px) {
  .ecosystem-network { max-width: 440px; aspect-ratio: 360 / 520; }
  .network-links-desktop { display: none; }
  .network-links-mobile { display: block; }
  .network-node { width: 60px; height: 60px; border-radius: 18px; }
  .network-node img { width: 30px; height: 30px; }
  .network-anthropic img { width: 37px; }
  .network-openai img { width: 56px; height: 56px; }
  .network-hub { width: 90px; height: 90px; border-radius: 26px; }
  .network-hub img { width: 46px; height: 46px; }
  .network-hub::before { inset: -13px; border-radius: 37px; }
  .network-hub::after { inset: -26px; border-radius: 48px; }
  .network-whatsapp { left: 15%; top: 15.3846%; }
  .network-gmail { left: 50%; top: 8.6538%; }
  .network-drive { left: 85%; top: 19.2308%; }
  .network-docs { left: 15%; top: 53.8462%; }
  .network-sheets { left: 85%; top: 57.6923%; }
  .network-anthropic { left: 25%; top: 87.5%; }
  .network-openai { left: 77.7778%; top: 87.5%; }
  .network-control { bottom: -30px; right: -6px; }
}
@media (prefers-reduced-motion: reduce) {
  .network-flow { display: none; animation: none; }
  .is-ready .network-control { display: none; }
}
