/* ERDVES GEOMETRIJA · ecosystem router V1 · 2026-10-08 */
.ecosystem-map-v1 {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 12%, rgba(215, 178, 121, .12), transparent 28%),
    linear-gradient(180deg, #eeebe3 0%, #f7f4ee 100%);
  border-block: 1px solid rgba(17, 18, 15, .08);
}

.ecosystem-map-v1::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(17,18,15,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,18,15,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 62%);
}

.ecosystem-map-v1 .section-shell {
  position: relative;
  z-index: 1;
}

.ecosystem-map-v1__head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, .85fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(1.75rem, 4vw, 3.4rem);
}

.ecosystem-map-v1__head h2 {
  max-width: 16ch;
  margin: 0;
  color: #11120f;
  font-size: clamp(2.25rem, 5vw, 5.15rem);
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.ecosystem-map-v1__head > p {
  margin: 0;
  color: #56594f;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.72;
}

.ecosystem-map-v1__figure {
  margin: 0;
  padding: clamp(.7rem, 1.6vw, 1.15rem);
  overflow: hidden;
  border: 1px solid rgba(215, 178, 121, .32);
  border-radius: clamp(1.2rem, 2.4vw, 2rem);
  background: #101712;
  box-shadow: 0 28px 80px rgba(18, 25, 20, .16);
}

.ecosystem-map-v1__viewport {
  overflow: hidden;
  border: 1px solid rgba(226, 216, 186, .12);
  border-radius: 1.15rem;
  background: #0c120e;
}

.ecosystem-map-v1__viewport img {
  display: block;
  width: 100%;
  height: auto;
}

.ecosystem-map-v1__figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  padding: .95rem .45rem .15rem;
  color: #8fa095;
  font-size: .76rem;
  line-height: 1.55;
}

.ecosystem-map-v1__figure figcaption strong {
  flex: 0 0 auto;
  color: #d8c694;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.ecosystem-map-v1__families {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.ecosystem-family-v1 {
  min-width: 0;
  padding: clamp(1.2rem, 2.4vw, 1.75rem);
  border: 1px solid rgba(17, 18, 15, .1);
  border-radius: 1.35rem;
  background: rgba(255,255,255,.68);
  box-shadow: 0 16px 42px rgba(22, 27, 23, .06);
}

.ecosystem-family-v1 > span,
.ecosystem-gate-v1 > span {
  display: block;
  margin-bottom: .7rem;
  color: #98703d;
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ecosystem-family-v1 h3 {
  margin: 0 0 .7rem;
  color: #171914;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  letter-spacing: -.03em;
}

.ecosystem-family-v1 p {
  margin: 0 0 1rem;
  color: #65685f;
  font-size: .9rem;
  line-height: 1.62;
}

.ecosystem-family-v1__links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.ecosystem-family-v1__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
  padding: .48rem .72rem;
  border: 1px solid rgba(17, 18, 15, .12);
  border-radius: 999px;
  background: #f6f3ec;
  color: #252820;
  font-size: .76rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.ecosystem-family-v1__links a:hover,
.ecosystem-family-v1__links a:focus-visible {
  transform: translateY(-2px);
  border-color: #b88b52;
  background: #fff;
}

.ecosystem-map-v1__gates {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.ecosystem-gate-v1 {
  position: relative;
  display: flex;
  min-height: 13.25rem;
  flex-direction: column;
  padding: 1.35rem;
  overflow: hidden;
  border: 1px solid rgba(226, 216, 186, .16);
  border-radius: 1.35rem;
  background: linear-gradient(145deg, #17211a, #0f1611);
  color: #eef3eb;
}

.ecosystem-gate-v1::after {
  content: attr(data-step);
  position: absolute;
  right: .9rem;
  bottom: -.42rem;
  color: rgba(215, 178, 121, .1);
  font-size: 5.2rem;
  font-weight: 700;
  line-height: 1;
}

.ecosystem-gate-v1 h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 .65rem;
  color: #f5f2ea;
  font-size: 1.18rem;
  letter-spacing: -.02em;
}

.ecosystem-gate-v1 p {
  position: relative;
  z-index: 1;
  margin: 0 0 1rem;
  color: #aab8ae;
  font-size: .84rem;
  line-height: 1.55;
}

.ecosystem-gate-v1__links {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: auto;
}

.ecosystem-gate-v1 a {
  color: #dfc58f;
  font-size: .76rem;
  font-weight: 700;
  text-decoration: none;
}

.ecosystem-gate-v1 a:hover,
.ecosystem-gate-v1 a:focus-visible {
  color: #fff0c8;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.ecosystem-map-v1__boundary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
  padding: 1.15rem 1.3rem;
  border-left: 3px solid #b98c52;
  border-radius: 0 1rem 1rem 0;
  background: rgba(215, 178, 121, .12);
  color: #50544c;
  font-size: .85rem;
  line-height: 1.6;
}

.ecosystem-map-v1__boundary strong {
  color: #181a16;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .ecosystem-map-v1__head { grid-template-columns: 1fr; }
  .ecosystem-map-v1__families { grid-template-columns: 1fr; }
  .ecosystem-map-v1__gates { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .ecosystem-map-v1__viewport {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }
  .ecosystem-map-v1__viewport img {
    width: 980px;
    max-width: none;
  }
  .ecosystem-map-v1__figure figcaption,
  .ecosystem-map-v1__boundary {
    display: block;
  }
  .ecosystem-map-v1__figure figcaption strong,
  .ecosystem-map-v1__boundary strong {
    display: block;
    margin-bottom: .35rem;
  }
  .ecosystem-map-v1__gates { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ecosystem-family-v1__links a { transition: none; }
}
