/* ==========================================
   ECOSYSTEM V2
   Replace only the HTML of the ecosystem block,
   and paste this CSS at the very end of core.css
   ========================================== */

/* reset old ecosystem rays only inside v2 */
#ecosystem .eco-map.eco-map--v2,
#ecosystem .eco-map.eco-map--v2 .eco-node,
#ecosystem .eco-map.eco-map--v2 .eco-hub{
  position: relative;
}

#ecosystem .eco-map.eco-map--v2 .eco-node::before,
#ecosystem .eco-map.eco-map--v2 .eco-node::after,
#ecosystem .eco-map.eco-map--v2 .eco-hub::before,
#ecosystem .eco-map.eco-map--v2 .eco-hub::after{
  content: none !important;
  display: none !important;
}

#ecosystem .eco-card--v2{
  padding: 26px 20px 18px;
}

#ecosystem .eco-map.eco-map--v2{
  background: linear-gradient(180deg, rgba(0,87,148,0.05), rgba(0,87,148,0.015)) !important;
  border: 1px solid rgba(0,87,148,0.12) !important;
  border-radius: 24px;
  padding: 18px;
  overflow: visible !important;
}

#ecosystem .eco-map.eco-map--v2 .eco-node{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

#ecosystem .eco-map.eco-map--v2 .eco-node > .timeline-card{
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,87,148,0.10), rgba(255,255,255,0.94)) !important;
  border: 1px solid rgba(0,87,148,0.14) !important;
  box-shadow: 0 14px 32px rgba(12,18,34,0.06) !important;
}

#ecosystem .eco-map.eco-map--v2 .eco-node--customs > .timeline-card{
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

#ecosystem .eco-map.eco-map--v2 .eco-node--customs .timeline-thumb{
  margin: 0;
}

#ecosystem .eco-map.eco-map--v2 .eco-node--customs .timeline-body{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#ecosystem .eco-map.eco-map--v2 .eco-node--customs .timeline-body h4{
  margin: 0;
}

#ecosystem .eco-map.eco-map--v2 .eco-hub--v2{
  grid-area: hub;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

#ecosystem .eco-map.eco-map--v2 .eco-hub-card{
  width: min(520px, 100%);
  min-height: 102px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 18px 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,209,0,0.70), rgba(255,255,255,0.96));
  border: 1px solid rgba(255,179,0,0.82);
  box-shadow: 0 14px 32px rgba(12,18,34,0.08);
  position: relative;
  z-index: 2;
}

#ecosystem .eco-map.eco-map--v2 .eco-hub-emblem{
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 18px;
  border: 1px dashed rgba(0,87,148,0.28);
  background: rgba(255,255,255,0.66);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

#ecosystem .eco-map.eco-map--v2 .eco-hub-copy{
  flex: 1 1 auto;
}

#ecosystem .eco-map.eco-map--v2 .eco-hub-badge{
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--dark);
}

#ecosystem .eco-map.eco-map--v2 .eco-connector{
  position: absolute;
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: stretch;
  z-index: 1;
}

#ecosystem .eco-map.eco-map--v2 .eco-line{
  position: relative;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0,87,148,0.30) 0%, rgba(255,209,0,0.9) 50%, rgba(0,87,148,0.30) 100%);
  box-shadow: 0 0 0 1px rgba(0,87,148,0.03), 0 0 10px rgba(255,209,0,0.16);
}

#ecosystem .eco-map.eco-map--v2 .eco-line::after{
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
}

#ecosystem .eco-map.eco-map--v2 .eco-line--down::after{
  bottom: -1px;
  border-top: 8px solid rgba(0,87,148,0.78);
}

#ecosystem .eco-map.eco-map--v2 .eco-line--up::after{
  top: -1px;
  border-bottom: 8px solid rgba(0,87,148,0.78);
}

@media (min-width: 900px){
  #ecosystem .eco-map.eco-map--v2{
    --eco-top-gap: 64px;
    --eco-bottom-gap: 54px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "log cons"
      "hub hub"
      "customs customs";
    column-gap: 28px;
    row-gap: 0;
    align-items: stretch;
  }

  #ecosystem .eco-map.eco-map--v2 .eco-node--log{ grid-area: log; }
  #ecosystem .eco-map.eco-map--v2 .eco-node--cons{ grid-area: cons; }

  #ecosystem .eco-map.eco-map--v2 .eco-hub--v2{
    padding-top: var(--eco-top-gap);
    padding-bottom: var(--eco-bottom-gap);
  }

  #ecosystem .eco-map.eco-map--v2 .eco-connector--left,
  #ecosystem .eco-map.eco-map--v2 .eco-connector--right{
    top: 0;
    height: var(--eco-top-gap);
  }

  #ecosystem .eco-map.eco-map--v2 .eco-connector--left{ left: 35%; transform: translateX(-50%); }
  #ecosystem .eco-map.eco-map--v2 .eco-connector--right{ left: 65%; transform: translateX(-50%); }

  #ecosystem .eco-map.eco-map--v2 .eco-connector--bottom{
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    height: var(--eco-bottom-gap);
  }

  #ecosystem .eco-map.eco-map--v2 .eco-node--customs{
    grid-area: customs;
    width: min(540px, 100%);
    justify-self: center;
  }
}

@media (max-width: 899px){
  #ecosystem .eco-map.eco-map--v2{
    display: grid;
    gap: 16px;
  }

  #ecosystem .eco-map.eco-map--v2 .eco-hub--v2{
    order: 2;
  }

  #ecosystem .eco-map.eco-map--v2 .eco-node--customs{
    order: 3;
  }

  #ecosystem .eco-map.eco-map--v2 .eco-connector{
    display: none;
  }

  #ecosystem .eco-map.eco-map--v2 .eco-hub-card{
    width: 100%;
    padding: 16px 18px;
    gap: 12px;
  }

  #ecosystem .eco-map.eco-map--v2 .eco-hub-emblem{
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-radius: 16px;
  }

  #ecosystem .eco-map.eco-map--v2 .eco-hub-badge{
    font-size: 15px;
  }

  #ecosystem .eco-map.eco-map--v2 .eco-node--customs > .timeline-card{
    justify-content: center;
    text-align: center;
  }
}
/* ==============================
   ECOSYSTEM V2 — MOBILE FIX
   ============================== */

@media (max-width: 899px){
  #ecosystem .eco-map.eco-map--v2{
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    padding: 14px !important;
  }

  #ecosystem .eco-map.eco-map--v2 .eco-node,
  #ecosystem .eco-map.eco-map--v2 .eco-hub--v2{
    width: 100% !important;
    min-width: 0 !important;
  }

  #ecosystem .eco-map.eco-map--v2 .eco-node--log,
  #ecosystem .eco-map.eco-map--v2 .eco-node--cons,
  #ecosystem .eco-map.eco-map--v2 .eco-node--customs,
  #ecosystem .eco-map.eco-map--v2 .eco-hub--v2{
    grid-area: auto !important;
    justify-self: stretch !important;
  }

  #ecosystem .eco-map.eco-map--v2 .eco-node > .timeline-card{
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: 52px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 14px !important;
    align-items: start !important;
  }

  #ecosystem .eco-map.eco-map--v2 .timeline-thumb{
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
  }

  #ecosystem .eco-map.eco-map--v2 .timeline-body,
  #ecosystem .eco-map.eco-map--v2 .timeline-body h4,
  #ecosystem .eco-map.eco-map--v2 .timeline-body p,
  #ecosystem .eco-map.eco-map--v2 .timeline-body li,
  #ecosystem .eco-map.eco-map--v2 .eco-hub-badge{
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  #ecosystem .eco-map.eco-map--v2 .timeline-body h4{
    font-size: 15px !important;
    line-height: 1.35 !important;
    margin-bottom: 6px !important;
  }

  #ecosystem .eco-map.eco-map--v2 .timeline-body p,
  #ecosystem .eco-map.eco-map--v2 .timeline-body li{
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  #ecosystem .eco-map.eco-map--v2 .timeline-body ul{
    margin: 0 0 10px 18px !important;
    padding: 0 !important;
  }

  #ecosystem .eco-map.eco-map--v2 .eco-hub-card{
    width: 100% !important;
    min-width: 0 !important;
    padding: 14px 16px !important;
    gap: 12px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  #ecosystem .eco-map.eco-map--v2 .eco-hub-emblem{
    width: 52px !important;
    height: 52px !important;
    flex: 0 0 52px !important;
  }

  #ecosystem .eco-map.eco-map--v2 .eco-hub-badge{
    font-size: 14px !important;
    line-height: 1.4 !important;
  }

  #ecosystem .eco-map.eco-map--v2 .eco-node--customs > .timeline-card{
    min-height: 0 !important;
    grid-template-columns: 52px minmax(0, 1fr) !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  #ecosystem .eco-map.eco-map--v2 .eco-node--customs .timeline-body{
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  #ecosystem .eco-map.eco-map--v2 .eco-node--customs .timeline-body h4{
    margin: 0 !important;
  }

  #ecosystem .eco-map.eco-map--v2 .eco-connector{
    display: none !important;
  }
}

@media (max-width: 575px){
  #ecosystem .eco-card--v2{
    padding: 18px 12px 14px !important;
  }

  #ecosystem .eco-map.eco-map--v2{
    border-radius: 18px !important;
  }

  #ecosystem .eco-map.eco-map--v2 .eco-node > .timeline-card,
  #ecosystem .eco-map.eco-map--v2 .eco-hub-card{
    border-radius: 18px !important;
  }

  #ecosystem .eco-benefits{
    gap: 8px !important;
  }

  #ecosystem .eco-pill{
    width: 100% !important;
    justify-content: center !important;
  }
}