.home-page .ecosystem-section {
  align-items: center;
  height: auto;
  min-height: 100svh;
  background: #040d24;
}

.ecosystem-section > .scene-image {
  opacity: .1;
  filter: none;
}

.ecosystem-section > .scene-shade {
  background: linear-gradient(180deg, rgba(4, 13, 36, .68), rgba(4, 13, 36, .92));
}

.ecosystem-section > .scene-content {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 100px var(--edge) 116px;
}

.ecosystem-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(28px, 4vw, 70px);
}

.ecosystem-intro h2 {
  font-size: clamp(42px, 4.6vw, 72px);
  line-height: 1.02;
}

.ecosystem-intro .scene-description {
  max-width: 480px;
  margin-bottom: 22px;
}

.ecosystem-caption {
  max-width: 390px;
  margin: 0;
  padding-left: 16px;
  border-left: 2px solid #4578ed;
  color: #a9bcdf;
  font-size: 13px;
  line-height: 1.65;
}

.ecosystem-visual {
  min-width: 0;
}

.ecosystem-stage {
  --ecosystem-size: clamp(270px, 27vw, 360px);
  --ecosystem-pitch: 18deg;
  --ecosystem-yaw: -14deg;
  --ecosystem-spin: 0deg;
  --ecosystem-flow: 0;
  position: relative;
  width: 100%;
  max-width: 650px;
  min-height: 540px;
  margin: 0 auto;
  perspective: 1000px;
  perspective-origin: 50% 42%;
  transform-style: preserve-3d;
  background: radial-gradient(ellipse at center, rgba(21, 74, 224, .18), transparent 67%);
}

.ecosystem-stage::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 15%;
  height: 42px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, .65), transparent 70%);
  transform: rotateX(66deg);
  pointer-events: none;
}

.ecosystem-connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.ecosystem-connection,
.ecosystem-current {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.ecosystem-connection {
  stroke: #658fef;
  stroke-width: 1;
  opacity: .4;
}

.ecosystem-current {
  stroke: #b5d0ff;
  stroke-width: 2;
  stroke-dasharray: 2 36;
  stroke-dashoffset: var(--ecosystem-flow);
  opacity: .65;
}

.ecosystem-world {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--ecosystem-size);
  height: var(--ecosystem-size);
  transform: translate(-50%, -50%) rotateX(var(--ecosystem-pitch)) rotateY(var(--ecosystem-yaw));
  transform-style: preserve-3d;
  pointer-events: none;
}

.ecosystem-orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(125, 163, 248, .42);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(32, 94, 232, .09), inset 0 0 15px rgba(32, 94, 232, .08);
  transform-style: preserve-3d;
}

.ecosystem-orbit-one {
  transform: rotateX(66deg) rotateZ(calc(25deg + var(--ecosystem-spin)));
}

.ecosystem-orbit-two {
  transform: rotateY(67deg) rotateZ(calc(-25deg - var(--ecosystem-spin)));
  border-color: rgba(174, 199, 255, .25);
}

.ecosystem-orbit-three {
  inset: 13%;
  transform: rotateX(21deg) rotateY(-23deg) rotateZ(calc(80deg + var(--ecosystem-spin)));
  border-color: rgba(98, 135, 229, .32);
}

.ecosystem-orbit > span {
  position: absolute;
  top: 50%;
  right: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b8d5ff;
  box-shadow: 0 0 18px #6598ff;
  transform: translateY(-50%);
}

.ecosystem-orbit-two > span {
  width: 5px;
  height: 5px;
  right: -3px;
  background: #779fff;
}

.ecosystem-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 128px;
  height: 128px;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
}

.ecosystem-core-surface {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 29% 23%, #91bbff, #346be8 28%, #12348d 62%, #051534 89%);
  box-shadow: inset -18px -14px 25px rgba(0, 0, 0, .42), 0 0 54px rgba(41, 103, 240, .35);
  transform: rotateY(calc(-1 * var(--ecosystem-yaw))) rotateX(calc(-1 * var(--ecosystem-pitch)));
}

.ecosystem-core-wire {
  position: absolute;
  inset: -2px;
  border: 1px solid rgba(165, 199, 255, .27);
  border-radius: 50%;
}

.ecosystem-core-wire-one {
  transform: rotateY(calc(35deg + var(--ecosystem-spin)));
}

.ecosystem-core-wire-two {
  transform: rotateY(calc(80deg + var(--ecosystem-spin)));
}

.ecosystem-core-wire-three {
  transform: rotateY(calc(125deg + var(--ecosystem-spin)));
}

.ecosystem-core-wire-four {
  transform: rotateX(85deg);
}

.ecosystem-core-front {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  transform: rotateY(calc(-1 * var(--ecosystem-yaw))) rotateX(calc(-1 * var(--ecosystem-pitch))) translateZ(65px);
}

.ecosystem-core-front img {
  width: 34px;
  height: 34px;
  filter: brightness(0) invert(1);
}

.ecosystem-core-front > span {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-shadow: 0 1px 9px rgba(0, 0, 0, .4);
}

.ecosystem-node {
  --ecosystem-node-light: #afceff;
  --ecosystem-node-color: #376de6;
  position: absolute;
  top: 10%;
  width: 164px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 14px;
  padding: 8px;
  text-align: center;
  transform-style: preserve-3d;
  z-index: 2;
}

.ecosystem-node-intelligence {
  left: 2%;
  transform: translateZ(28px);
}

.ecosystem-node-capital {
  --ecosystem-node-light: #e0ebff;
  --ecosystem-node-color: #648fdb;
  right: 2%;
  transform: translateZ(-18px);
}

.ecosystem-node-technology {
  --ecosystem-node-light: #a8bfff;
  --ecosystem-node-color: #3454c5;
  top: auto;
  bottom: 0;
  left: calc(50% - 100px);
  width: 200px;
  transform: translateZ(38px);
}

.ecosystem-node-sphere {
  position: relative;
  display: block;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 28% 22%, var(--ecosystem-node-light), var(--ecosystem-node-color) 44%, #081735 84%);
  box-shadow: inset -8px -7px 14px rgba(0, 0, 0, .32), 0 0 28px rgba(87, 132, 242, .23);
  transform-style: preserve-3d;
  transition: box-shadow .25s ease;
}

.ecosystem-node-sphere::after,
.ecosystem-node-sphere > span {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid rgba(173, 202, 255, .42);
}

.ecosystem-node-sphere::after {
  transform: rotateY(58deg) rotateZ(18deg);
}

.ecosystem-node-sphere > span {
  transform: rotateX(64deg) rotateZ(-20deg);
}

.ecosystem-node-copy {
  position: relative;
  display: block;
}

.ecosystem-node-copy strong {
  display: block;
  color: #eaf1ff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.ecosystem-node-copy > span:not(.ecosystem-node-arrow) {
  display: block;
  margin-top: 5px;
  color: #a9bbda;
  font-size: 11px;
  line-height: 1.5;
}

.ecosystem-node-arrow {
  display: inline-block;
  margin-top: 5px;
  color: #94baff;
  font-size: 17px;
  line-height: 1;
}

.ecosystem-node:hover .ecosystem-node-sphere,
.ecosystem-node:focus-visible .ecosystem-node-sphere {
  box-shadow: inset -8px -7px 14px rgba(0, 0, 0, .25), 0 0 38px rgba(116, 165, 255, .57);
}

.ecosystem-node:hover .ecosystem-node-copy strong,
.ecosystem-node:focus-visible .ecosystem-node-copy strong {
  color: #aecdff;
}

.ecosystem-stage[data-ecosystem-active="intelligence"] .ecosystem-connection-intelligence,
.ecosystem-stage[data-ecosystem-active="capital"] .ecosystem-connection-capital,
.ecosystem-stage[data-ecosystem-active="technology"] .ecosystem-connection-technology {
  stroke: #c7dcff;
  opacity: .9;
  stroke-width: 2;
}

.ecosystem-stage[data-ecosystem-active="intelligence"] .ecosystem-current-intelligence,
.ecosystem-stage[data-ecosystem-active="capital"] .ecosystem-current-capital,
.ecosystem-stage[data-ecosystem-active="technology"] .ecosystem-current-technology {
  opacity: 1;
}

.ecosystem-summary {
  max-width: 900px;
  margin: 36px 0 0;
  color: #bdcbe2;
  font-size: 15px;
  line-height: 1.7;
}

.home-page .ecosystem-fronts {
  margin-top: 28px;
  gap: 20px;
}

.home-page .ecosystem-fronts > li {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(153, 184, 246, .22);
  background: rgba(12, 28, 62, .55);
}

.ecosystem-fronts strong {
  font-size: 14px;
}

.ecosystem-fronts li > span {
  font-size: 13px;
  line-height: 1.7;
  color: #bbc9e1;
}

.home-page .ecosystem-fronts .outline-button {
  margin-top: 25px;
  border-color: rgba(164, 193, 253, .65);
}

@media (max-width: 1100px) {
  .ecosystem-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ecosystem-intro {
    max-width: 720px;
  }

  .ecosystem-intro h2 {
    font-size: clamp(42px, 6vw, 64px);
  }

  .ecosystem-intro .scene-description {
    max-width: 650px;
  }

  .ecosystem-stage {
    --ecosystem-size: 340px;
    max-width: 600px;
  }

  .ecosystem-summary {
    margin-top: 20px;
  }
}

@media (max-width: 760px) {
  .ecosystem-section > .scene-content {
    padding-top: 74px;
    padding-bottom: 100px;
    max-width: none;
  }

  .ecosystem-intro h2 {
    font-size: clamp(34px, 8.2vw, 54px);
  }

  .ecosystem-intro .scene-description {
    font-size: 15px;
    line-height: 1.65;
  }

  .ecosystem-caption {
    font-size: 12px;
  }

  .ecosystem-stage {
    --ecosystem-size: min(280px, 65vw);
    min-height: 480px;
    perspective: 850px;
  }

  .ecosystem-core {
    width: 112px;
    height: 112px;
  }

  .ecosystem-core-front {
    transform: rotateY(calc(-1 * var(--ecosystem-yaw))) rotateX(calc(-1 * var(--ecosystem-pitch))) translateZ(57px);
  }

  .ecosystem-core-front img {
    width: 30px;
    height: 30px;
  }

  .ecosystem-core-front > span {
    font-size: 9px;
  }

  .ecosystem-node {
    width: 132px;
    gap: 11px;
    padding: 6px;
  }

  .ecosystem-node-intelligence {
    left: -2%;
    transform: translateZ(12px);
  }

  .ecosystem-node-capital {
    right: -2%;
    transform: translateZ(-10px);
  }

  .ecosystem-node-technology {
    left: calc(50% - 86px);
    width: 172px;
    transform: translateZ(18px);
  }

  .ecosystem-node-sphere {
    width: 52px;
    height: 52px;
  }

  .ecosystem-node-copy strong {
    font-size: 11px;
    letter-spacing: .035em;
  }

  .ecosystem-node-copy > span:not(.ecosystem-node-arrow) {
    font-size: 10px;
    line-height: 1.5;
  }

  .ecosystem-summary {
    font-size: 14px;
  }

  .home-page .ecosystem-fronts {
    gap: 20px;
  }

  .home-page .ecosystem-fronts > li {
    padding: 22px;
  }

  .home-page .ecosystem-fronts .outline-button {
    min-width: 0;
    align-self: stretch;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ecosystem-node-sphere {
    transition: none;
  }
}

@supports not (transform-style: preserve-3d) {
  .ecosystem-world {
    transform: translate(-50%, -50%);
  }

  .ecosystem-core-front,
  .ecosystem-core-surface {
    transform: none;
  }

  .ecosystem-core-wire {
    display: none;
  }
}
