/* ============================================================
   ECOSYSTEM SECTION
   ============================================================ */
.ecosystem {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

/* Subtle background pattern */
.ecosystem::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(201,168,76,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(201,168,76,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.ecosystem .section-label { color: var(--gold); }
.ecosystem .section-title { color: var(--white); }
.ecosystem .section-subtitle { color: rgba(255,255,255,0.60); }

/* Diagram */
.ecosystem-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 4rem;
}

/* Root node */
.eco-node-root {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.75rem 3rem;
  border: 1.5px solid rgba(201,168,76,0.40);
  border-radius: var(--radius-md);
  background: rgba(201,168,76,0.07);
  position: relative;
  min-width: 260px;
  text-align: center;
}

.eco-node-root-name {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

.eco-node-root-sub {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Connector line */
.eco-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(201,168,76,0.40), rgba(201,168,76,0.10));
  position: relative;
}

.eco-connector::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-right: 1.5px solid rgba(201,168,76,0.50);
  border-bottom: 1.5px solid rgba(201,168,76,0.50);
  transform: translateX(-50%) rotate(45deg);
}

/* Branch row */
.eco-branch-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
  position: relative;
  width: 100%;
  max-width: 720px;
}

.eco-branch-row-three {
  max-width: 960px;
}

/* Horizontal line connecting branches */
.eco-branch-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  height: 1px;
  background: rgba(201,168,76,0.20);
}

/* Individual branch */
.eco-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  flex: 1;
  max-width: 240px;
}

.eco-branch-line {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, rgba(201,168,76,0.20), rgba(201,168,76,0.40));
}

.eco-biz-node {
  width: 100%;
  padding: 1.5rem 1.75rem;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  text-align: center;
  transition: var(--transition-normal);
}

.eco-biz-node:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(201,168,76,0.30);
  transform: translateY(-2px);
}

.eco-biz-num {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.eco-biz-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.eco-biz-desc {
  font-size: 0.725rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
}

/* Bottom output nodes */
.eco-output-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  max-width: 600px;
  padding-top: 1rem;
}

.eco-output {
  padding: 0.625rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  transition: var(--transition-fast);
}

.eco-output:hover {
  border-color: rgba(201,168,76,0.30);
  color: var(--gold);
}

/* Growth node */
.eco-growth {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.5rem 3rem;
  background: var(--gold);
  border-radius: var(--radius-md);
  text-align: center;
}

.eco-growth-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(10,22,40,0.60);
}

.eco-growth-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

/* Responsive */
@media (max-width: 768px) {
  .eco-branch-row {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .eco-branch-row::before {
    display: none;
  }

  .eco-branch {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .eco-branch-row {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .eco-branch-row::before {
    display: none;
  }

  .eco-branch {
    max-width: 100%;
    width: 100%;
  }
}
