:root {
  --ecosystem-line: rgba(255, 255, 255, 0.12);
  --ecosystem-panel-soft: rgba(255, 255, 255, 0.05);
  --ecosystem-text: #f5f8ff;
  --ecosystem-text-soft: rgba(231, 238, 255, 0.76);
  --ecosystem-accent: #8bd5ff;
  --ecosystem-accent-warm: #ffd07a;
  --ecosystem-shadow: 0 28px 70px rgba(5, 10, 24, 0.32);
}

.ecosystem-ribbon {
  border-bottom: 1px solid var(--ecosystem-line);
  background:
    radial-gradient(circle at 15% 50%, rgba(139, 213, 255, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(7, 13, 24, 0.98), rgba(9, 16, 30, 0.94));
}

.ecosystem-ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  min-height: 3rem;
  color: var(--ecosystem-text-soft);
  font-size: 0.9rem;
}

.ecosystem-ribbon strong {
  color: var(--ecosystem-text);
}

.ecosystem-ribbon a {
  color: var(--ecosystem-accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(139, 213, 255, 0.55);
  text-underline-offset: 0.18em;
}

.ecosystem-band {
  position: relative;
  overflow: hidden;
  margin: 0 0 2rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--ecosystem-line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 16% 18%, rgba(139, 213, 255, 0.12), transparent 22%),
    radial-gradient(circle at 84% 20%, rgba(255, 208, 122, 0.1), transparent 20%),
    linear-gradient(180deg, rgba(8, 14, 27, 0.98), rgba(11, 19, 34, 0.94));
  box-shadow: var(--ecosystem-shadow);
  color: var(--ecosystem-text);
}

.ecosystem-band::before,
.ecosystem-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  pointer-events: none;
}

.ecosystem-band::before {
  inset: -4rem auto auto -4rem;
  width: 10rem;
  height: 10rem;
  background: radial-gradient(circle, rgba(139, 213, 255, 0.18), transparent 72%);
}

.ecosystem-band::after {
  inset: auto -4rem -5rem auto;
  width: 12rem;
  height: 12rem;
  background: radial-gradient(circle, rgba(255, 208, 122, 0.14), transparent 72%);
}

.ecosystem-intro,
.ecosystem-grid,
.shared-footer {
  position: relative;
  z-index: 1;
}

.ecosystem-intro {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
  max-width: 62rem;
}

.ecosystem-kicker {
  display: inline-flex;
  margin: 0;
  color: var(--ecosystem-accent-warm);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
}

.ecosystem-intro h2 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.04;
}

.ecosystem-intro p {
  margin: 0;
  max-width: 60ch;
  color: var(--ecosystem-text-soft);
  line-height: 1.7;
}

.ecosystem-grid {
  display: grid;
  gap: 0.9rem;
}

.ecosystem-card {
  display: grid;
  gap: 0.7rem;
  min-height: 11rem;
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--ecosystem-panel-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.ecosystem-card:hover,
.ecosystem-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(139, 213, 255, 0.34);
  background: rgba(255, 255, 255, 0.07);
}

.ecosystem-card.is-current {
  border-color: rgba(255, 208, 122, 0.34);
  background:
    radial-gradient(circle at top right, rgba(255, 208, 122, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.08);
}

.ecosystem-card strong {
  font-size: 1.12rem;
  line-height: 1.1;
}

.ecosystem-card p {
  margin: 0;
  color: var(--ecosystem-text-soft);
  font-size: 0.94rem;
  line-height: 1.65;
}

.ecosystem-state,
.orb-state {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.3rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ecosystem-text);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.orb-state {
  position: relative;
  z-index: 1;
}

.ecosystem-card-core .ecosystem-state {
  background: rgba(139, 213, 255, 0.14);
}

.shared-footer {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0 0 1.8rem;
  color: rgba(214, 226, 248, 0.76);
  font-size: 0.93rem;
}

.shared-footer p {
  margin: 0;
}

.shared-footer .container {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.shared-footer a {
  color: var(--ecosystem-accent);
  text-decoration: underline;
  text-decoration-color: rgba(139, 213, 255, 0.55);
  text-underline-offset: 0.18em;
}

.shared-footer a:hover,
.shared-footer a:focus-visible,
.ecosystem-ribbon a:hover,
.ecosystem-ribbon a:focus-visible {
  color: #ffffff;
}

.portal-footer {
  padding-top: 1.4rem;
}

@media (min-width: 760px) {
  .ecosystem-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shared-footer {
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
  }

  .shared-footer .container {
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
  }
}

@media (max-width: 759px) {
  .ecosystem-ribbon-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 0.6rem 0;
  }
}
