/* Owner12992: three connected tools, real UI and the approved ALO character. */
body.night-city.night-unified #alo-ecosystem {
  padding-block: clamp(64px, 7vw, 108px);
  scroll-margin-top: 80px;
}
.alo-ecosystem-heading { max-width: 1050px; }
.alo-ecosystem-loop {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(36px, 4.5vw, 64px);
  padding: 24px 0 92px;
}
.alo-ecosystem-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  color: var(--cyan);
}
.alo-ecosystem-links .alo-wire {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  opacity: .58;
}
.alo-ecosystem-links .alo-flow {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2.5;
  stroke-dasharray: 2 98;
  stroke-linecap: round;
  animation: alo-flow 9s linear infinite;
}
.alo-ecosystem-links .alo-flow:nth-of-type(2) { animation-delay: -3s; }
.alo-ecosystem-links .alo-flow:nth-of-type(3) { animation-delay: -6s; }
@keyframes alo-flow { to { stroke-dashoffset: -100; } }
.alo-tool {
  position: relative;
  min-width: 0;
  color: var(--paper);
}
.alo-tool-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(280px, 24vw, 320px);
  padding: 0;
  margin: 0 0 28px;
  border: 0;
  background: transparent;
  color: var(--paper);
}
button.alo-tool-visual { cursor: zoom-in; }
.alo-tool-visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 260ms cubic-bezier(.16,1,.3,1);
}
.alo-tool--program .alo-tool-visual img {
  height: auto;
  max-height: 100%;
  border: 1px solid rgba(92,224,218,.5);
}
.alo-tool--panel .alo-tool-visual img { width: auto; }
.alo-tool--agent .alo-tool-visual img {
  max-width: 320px;
  mask-image: linear-gradient(#000 80%, transparent);
}
button.alo-tool-visual:hover img { transform: translateY(-4px); }
button.alo-tool-visual:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 7px;
}
.alo-tool-zoom {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  font: 500 12px/1.3 "Onest", sans-serif;
  background: #070b0e;
  color: #d3e4e4;
  border: 1px solid rgba(92,224,218,.3);
  white-space: nowrap;
}
body.night-city.night-unified #alo-ecosystem .alo-tool h3 {
  margin: 0 0 16px;
  font: 650 clamp(21px, 1.85vw, 27px)/1.25 "Onest", sans-serif;
  letter-spacing: -.02em;
  text-transform: none;
  color: var(--paper);
}
.alo-tool p, .alo-tool li {
  margin: 0;
  font: 400 16px/1.65 "Onest", sans-serif;
  color: #deebeb;
  text-wrap: pretty;
}
.alo-tool p + p { margin-top: 10px; }
.alo-tool ul { margin: 10px 0 0; padding-left: 18px; }
.alo-tool li { padding-left: 1px; margin-bottom: 7px; }
.alo-tool li::marker { color: var(--cyan); }
.alo-ecosystem-mobile-return { display: none; }

.alo-preview {
  position: fixed;
  width: min(1200px, calc(100vw - 36px));
  max-width: none;
  max-height: calc(100dvh - 36px);
  padding: 18px;
  background: #091115;
  color: var(--paper);
  border: 1px solid var(--cyan);
  overflow: auto;
}
.alo-preview::backdrop { background: rgba(0,0,0,.86); }
.alo-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.alo-preview-head p { margin: 0; font: 600 16px/1.4 "Onest", sans-serif; }
.alo-preview-close {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #b8d5d5;
  background: transparent;
  color: var(--paper);
  font: 400 28px/1 sans-serif;
  cursor: pointer;
}
.alo-preview-close:hover { color: var(--cyan); border-color: var(--cyan); }
.alo-preview-close:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.alo-preview-image { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 150px); margin-inline: auto; object-fit: contain; }
html.alo-preview-open { overflow: hidden; }

@media (max-width: 900px) {
  .alo-ecosystem-loop {
    grid-template-columns: 1fr;
    gap: 64px;
    padding: 12px 0 24px 32px;
  }
  .alo-ecosystem-links { display: none; }
  .alo-ecosystem-loop::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 0;
    left: 0;
    width: 13px;
    border: 1px solid rgba(92,224,218,.52);
    border-right: 0;
    border-radius: 10px 0 0 10px;
  }
  .alo-tool::before {
    content: "";
    position: absolute;
    left: -36px;
    top: 155px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--cyan);
  }
  .alo-tool:not(:last-of-type)::after {
    content: "↓";
    position: absolute;
    bottom: -52px;
    left: 50%;
    color: var(--cyan);
    font: 400 30px/1 sans-serif;
  }
  .alo-tool-visual { height: 310px; margin-bottom: 24px; }
  .alo-tool--program .alo-tool-visual { height: auto; min-height: 180px; }
  .alo-tool--program .alo-tool-visual img { max-height: 310px; width: 100%; }
  .alo-tool--program .alo-tool-zoom { bottom: 8px; }
  .alo-tool--agent .alo-tool-visual { justify-content: flex-start; }
  .alo-tool--agent .alo-tool-visual img { width: auto; max-width: 100%; }
  .alo-tool--panel .alo-tool-visual { justify-content: flex-start; padding-left: 16px; }
  .alo-ecosystem-mobile-return {
    display: block;
    width: fit-content;
    margin: 22px 0 0;
    padding: 10px 0;
    color: var(--cyan);
    font: 500 14px/1.4 "Onest", sans-serif;
    text-decoration: none;
  }
  .alo-ecosystem-mobile-return:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .alo-ecosystem-links .alo-flow { animation: none; display: none; }
  .alo-tool-visual img { transition: none; }
  button.alo-tool-visual:hover img { transform: none; }
}
