.ecosystem-page {
  overflow: hidden;
}

.ecosystem-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.ecosystem-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at 82% 25%, rgba(196, 30, 58, 0.17), transparent 35%),
    radial-gradient(ellipse at 12% 80%, rgba(212, 175, 55, 0.1), transparent 38%);
  content: "";
}

.ecosystem-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.ecosystem-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
  color: var(--gold-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.ecosystem-kicker::before {
  width: 2rem;
  height: 1px;
  background: var(--gold);
  content: "";
}

.ecosystem-hero h1 {
  max-width: 800px;
  margin-bottom: 1.2rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.6vw, 5.3rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.ecosystem-hero__copy > p {
  max-width: 680px;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.ecosystem-hero__actions,
.ecosystem-brand__actions,
.ecosystem-journey__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.ecosystem-hero__aside {
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid rgba(247, 210, 108, 0.27);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.1), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
}

.ecosystem-hero__aside strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.ecosystem-hero__aside p {
  color: var(--muted);
  line-height: 1.7;
}

.ecosystem-section {
  padding: clamp(4rem, 7vw, 6rem) 0;
}

.ecosystem-section--shade {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.025), rgba(212, 175, 55, 0.04), rgba(255, 255, 255, 0.02));
}

.ecosystem-section__intro {
  max-width: 820px;
  margin-bottom: 2rem;
}

.ecosystem-section__intro h2,
.ecosystem-journey h2 {
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.ecosystem-section__intro > p,
.ecosystem-map__note,
.ecosystem-entry__intro > p,
.ecosystem-journey__intro > p {
  color: var(--muted);
  line-height: 1.8;
}

.ecosystem-map {
  position: relative;
}

.ecosystem-map__mission {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 0 auto 2.8rem;
  padding: 0.9rem 1.5rem;
  border: 1px solid rgba(247, 210, 108, 0.4);
  border-radius: 999px;
  background: #11100d;
  text-align: center;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.ecosystem-map__mission span {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ecosystem-map__mission strong {
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.ecosystem-map__brands {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ecosystem-map__brands::before {
  position: absolute;
  top: -1.45rem;
  right: 16.66%;
  left: 16.66%;
  height: 1.45rem;
  border-top: 1px solid rgba(247, 210, 108, 0.45);
  border-right: 1px solid rgba(247, 210, 108, 0.45);
  border-left: 1px solid rgba(247, 210, 108, 0.45);
  content: "";
  pointer-events: none;
}

.ecosystem-brand {
  position: relative;
  min-width: 0;
  padding: clamp(1.2rem, 2.5vw, 1.7rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.ecosystem-brand::before {
  position: absolute;
  top: -1.46rem;
  left: 50%;
  width: 1px;
  height: 1.45rem;
  background: rgba(247, 210, 108, 0.55);
  content: "";
}

.ecosystem-brand--vision {
  border-color: rgba(247, 210, 108, 0.32);
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.09), rgba(255, 255, 255, 0.025));
}

.ecosystem-brand__kind {
  display: block;
  margin: 1rem 0 0.55rem;
  color: var(--gold-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ecosystem-brand h3 {
  margin-bottom: 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.2;
}

.ecosystem-brand > p {
  min-height: 5.3rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.ecosystem-brand__logo {
  display: grid;
  width: 100%;
  height: 76px;
  place-items: center;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
}

.ecosystem-brand__logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 58px;
  object-fit: contain;
}

.ecosystem-brand__logo--ekeji {
  background: #080808;
}

.ecosystem-platforms {
  margin: 1.8rem 0 1.3rem;
  padding: 1.2rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ecosystem-platforms h4 {
  margin-bottom: 0.9rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}

.ecosystem-platforms--grid .ecosystem-platforms__list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
}

.ecosystem-platforms__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  list-style: none;
}

.ecosystem-platforms__list a,
.ecosystem-brand__link {
  display: flex;
  min-height: 2.4rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.ecosystem-platforms--grid .ecosystem-platforms__list a {
  min-height: 7rem;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.8rem;
}

.ecosystem-platforms__type {
  color: var(--gold-soft);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ecosystem-platforms__list strong {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.35;
}

.ecosystem-platforms__list a:hover,
.ecosystem-platforms__list a:focus-visible,
.ecosystem-brand__link:hover,
.ecosystem-brand__link:focus-visible {
  border-color: rgba(247, 210, 108, 0.5);
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-soft);
}

.ecosystem-brand__actions {
  margin-top: 1.2rem;
}

.ecosystem-brand__actions .btn {
  flex: 1 1 auto;
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
}

.ecosystem-map__note {
  max-width: 760px;
  margin: 1rem auto 0;
  font-size: 0.82rem;
  text-align: center;
}

.ecosystem-access {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
  max-width: 850px;
  margin: 2rem auto 0;
  padding: 1.2rem 1.5rem;
  border: 1px dashed rgba(247, 210, 108, 0.45);
  border-radius: var(--radius);
  background: rgba(212, 175, 55, 0.055);
}

.ecosystem-access__mark {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 1px solid rgba(247, 210, 108, 0.34);
  border-radius: 50%;
  background: #11100d;
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.ecosystem-access__kind {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--gold-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ecosystem-access h3 {
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.ecosystem-access p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.ecosystem-access .btn {
  white-space: nowrap;
}

.ecosystem-entry__intro,
.ecosystem-journey__intro {
  max-width: 820px;
  margin-bottom: 2rem;
}

.ecosystem-entry__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.ecosystem-entry {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  transition: transform var(--transition), border-color var(--transition);
}

.ecosystem-entry:hover,
.ecosystem-entry:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(247, 210, 108, 0.5);
}

.ecosystem-entry__number {
  margin-bottom: auto;
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.ecosystem-entry h3 {
  margin: 1.7rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.ecosystem-entry p {
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.ecosystem-entry__link {
  color: var(--gold-soft);
  font-size: 0.8rem;
  font-weight: 600;
}

.ecosystem-journey {
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border: 1px solid rgba(247, 210, 108, 0.25);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0, rgba(196, 30, 58, 0.14), transparent 42%),
    rgba(255, 255, 255, 0.025);
}

.ecosystem-journey__disclaimer {
  display: inline-flex;
  margin-top: 0.9rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(247, 210, 108, 0.24);
  border-radius: 999px;
  color: var(--gold-soft);
  font-size: 0.76rem;
  font-weight: 600;
}

.ecosystem-journey__steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.8rem 0;
}

.ecosystem-journey__step {
  position: relative;
  min-width: 0;
  padding: 1rem;
  border-top: 1px solid rgba(247, 210, 108, 0.55);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.075), transparent);
}

.ecosystem-journey__step:not(:last-child)::after {
  position: absolute;
  top: 1rem;
  right: -0.65rem;
  color: var(--gold-soft);
  content: "→";
}

.ecosystem-journey__step span {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--gold-soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.ecosystem-journey__step h3 {
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.ecosystem-journey__step p {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.ecosystem-journey__actions {
  margin-top: 1rem;
}

.ecosystem-page :focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}

@media (max-width: 1050px) {
  .ecosystem-map__brands {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin: 0 auto;
  }

  .ecosystem-map__brands::before {
    top: -1.4rem;
    right: auto;
    left: 50%;
    width: 1px;
    height: 1.4rem;
    border: 0;
    background: rgba(247, 210, 108, 0.55);
  }

  .ecosystem-brand::before {
    display: none;
  }

  .ecosystem-brand > p {
    min-height: 0;
  }

  .ecosystem-brand__logo {
    max-width: 260px;
  }

  .ecosystem-entry__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ecosystem-platforms--grid .ecosystem-platforms__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ecosystem-journey__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ecosystem-hero__grid {
    grid-template-columns: 1fr;
  }

  .ecosystem-access {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ecosystem-access .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .ecosystem-hero {
    padding-top: 3.5rem;
  }

  .ecosystem-hero h1 {
    font-size: clamp(2.5rem, 12vw, 3.7rem);
  }

  .ecosystem-hero__actions,
  .ecosystem-brand__actions,
  .ecosystem-journey__actions {
    flex-direction: column;
  }

  .ecosystem-hero__actions .btn,
  .ecosystem-brand__actions .btn,
  .ecosystem-journey__actions .btn {
    width: 100%;
  }

  .ecosystem-platforms--grid .ecosystem-platforms__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ecosystem-access {
    grid-template-columns: 1fr;
  }

  .ecosystem-entry__grid,
  .ecosystem-journey__steps {
    grid-template-columns: 1fr;
  }

  .ecosystem-journey__step:not(:last-child)::after {
    top: auto;
    right: 1rem;
    bottom: -0.9rem;
    content: "↓";
  }
}

@media (max-width: 360px) {
  .ecosystem-platforms--grid .ecosystem-platforms__list {
    grid-template-columns: 1fr;
  }
}
