/* =========================================================
   VIMBreLab — Ecosystem Section
   ========================================================= */

.ecosystem-section {
  position: relative;
  padding: 170px 40px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 116, 99, 0.10), transparent 34rem),
    radial-gradient(circle at 90% 55%, rgba(232, 163, 33, 0.06), transparent 28rem);
}

.ecosystem-shell {
  width: min(100%, 1280px);
  margin: 0 auto;
}

.ecosystem-title {
  max-width: 1050px;
  margin-bottom: 70px;
  font-size: clamp(2.4rem, 5.4vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.ecosystem-map {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 36px;
  border: 1px solid rgba(255,255,255,0.075);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02)),
    rgba(255,255,255,0.025);
  box-shadow:
    0 28px 90px rgba(0,0,0,0.42),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.ecosystem-node {
  position: relative;
  width: min(100%, 420px);
  min-height: 170px;
  padding: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025)),
    rgba(3,5,4,0.42);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 24px 70px rgba(0,0,0,0.36);
  transition:
    transform 240ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease;
}

.ecosystem-node:hover {
  transform: translateY(-4px);
  border-color: rgba(0,185,156,0.34);
  box-shadow:
    0 30px 90px rgba(0,0,0,0.48),
    0 0 54px rgba(0,116,99,0.14);
}

.ecosystem-node img {
  max-width: 78%;
  max-height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.32));
}

.ecosystem-node--primary {
  border-color: rgba(255,255,255,0.12);
}

.ecosystem-node--featured {
  border-color: rgba(0,185,156,0.36);
  box-shadow:
    0 24px 70px rgba(0,0,0,0.38),
    0 0 48px rgba(0,185,156,0.10);
}

.ecosystem-node--featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 0%, rgba(0,185,156,0.22), transparent 42%),
    radial-gradient(circle at 100% 28%, rgba(232,163,33,0.16), transparent 38%);
  opacity: 0.7;
  pointer-events: none;
}

.ecosystem-branches {
  width: min(100%, 920px);
  display: grid;
  justify-items: center;
}

.ecosystem-connector {
  width: 1px;
  height: 46px;
  background:
    linear-gradient(
      to bottom,
      rgba(0,185,156,0.05),
      rgba(0,185,156,0.58),
      rgba(232,163,33,0.38)
    );
}

.ecosystem-children {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding-top: 42px;
}

.ecosystem-children::before {
  content: "";
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      rgba(0,185,156,0.42),
      rgba(255,255,255,0.10),
      rgba(232,163,33,0.42)
    );
}

.ecosystem-children .ecosystem-node::before {
  z-index: 0;
}

.ecosystem-children .ecosystem-node img {
  position: relative;
  z-index: 1;
}

/* Responsive */

@media (max-width: 900px) {
  .ecosystem-section {
    padding: 130px 24px;
  }

  .ecosystem-title {
    margin-bottom: 52px;
    font-size: clamp(2.1rem, 8vw, 4rem);
  }

  .ecosystem-map {
    padding: 24px;
    border-radius: 28px;
  }

  .ecosystem-children {
    gap: 16px;
  }

  .ecosystem-node {
    min-height: 150px;
    padding: 22px;
  }

  .ecosystem-node img {
    max-width: 86%;
    max-height: 78px;
  }
}

@media (max-width: 560px) {
  .ecosystem-section {
    padding: 110px 18px;
  }

  .ecosystem-title {
    line-height: 1.03;
    letter-spacing: -0.055em;
  }

  .ecosystem-map {
    padding: 18px;
  }

  .ecosystem-children {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-top: 34px;
  }

  .ecosystem-node {
    min-height: 128px;
    padding: 16px 12px;
    border-radius: 22px;
  }

  .ecosystem-node img {
    max-width: 94%;
    max-height: 58px;
  }

  .ecosystem-connector {
    height: 34px;
  }
}