.ecosystem-slide {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #050505;
  isolation: isolate;
}

.ecosystem-slide__bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/6.png");
  background-size: cover;
  background-position: center center;
  transform: scale(1.03);
  filter: saturate(0.88) brightness(0.56);
}

.ecosystem-slide__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ecosystem-slide__overlay--base {
  background: rgba(0, 0, 0, 0.24);
}

.ecosystem-slide__overlay--shade {
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.10) 0%,
      rgba(0, 0, 0, 0.16) 22%,
      rgba(0, 0, 0, 0.42) 58%,
      rgba(0, 0, 0, 0.84) 100%
    );
}

.ecosystem-slide__overlay--accent {
  background:
    radial-gradient(circle at 16% 20%, rgba(168, 28, 44, 0.18), transparent 22%),
    radial-gradient(circle at 84% 18%, rgba(150, 24, 40, 0.14), transparent 20%),
    radial-gradient(circle at 78% 78%, rgba(170, 28, 44, 0.10), transparent 20%);
  mix-blend-mode: screen;
}

.ecosystem-slide__inner {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding: 48px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* HEADER */
.ecosystem-slide__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.ecosystem-slide__eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid rgba(132, 24, 38, 0.54);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.26);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ecosystem-slide__intro {
  max-width: 980px;
  padding-left: 0;
}

.ecosystem-slide__title {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(34px, 4.8vw, 80px);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
  text-wrap: balance;
}

.ecosystem-slide__lead {
  margin: 16px 0 0;
  max-width: 760px;
  font-size: clamp(15px, 1.05vw, 19px);
  line-height: 1.6;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}

/* BIG CASE BANNER */
.ecosystem-case {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 22px;
  align-items: center;
  min-height: 300px;
  padding: 26px 26px 22px;
  border: 1px solid rgba(136, 26, 41, 0.42);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(18, 8, 12, 0.84), rgba(8, 8, 8, 0.74) 48%, rgba(22, 8, 12, 0.82));
  backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 22px 54px rgba(0, 0, 0, 0.30);
  overflow: hidden;
}

.ecosystem-case::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(170, 28, 44, 0.10), transparent 28%, transparent 72%, rgba(170, 28, 44, 0.10));
  pointer-events: none;
}

.ecosystem-case::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 36%, rgba(170, 28, 44, 0.18), transparent 24%),
    radial-gradient(circle at 24% 72%, rgba(170, 28, 44, 0.10), transparent 22%);
  pointer-events: none;
}

.ecosystem-case__info,
.ecosystem-case__result {
  position: relative;
  z-index: 2;
}

.ecosystem-case__visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.ecosystem-case__label {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(128, 24, 38, 0.36);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.30);
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ecosystem-case__title {
  margin: 16px 0 0;
  max-width: 640px;
  font-size: clamp(28px, 2.5vw, 46px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.98);
}

.ecosystem-case__text {
  margin: 14px 0 0;
  max-width: 620px;
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.76);
}

.ecosystem-case__icon {
  width: min(520px, 40vw);
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0.20;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.30));
  transform: translateY(6px);
}

.ecosystem-case__result {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.ecosystem-case__value {
  font-size: clamp(56px, 7vw, 130px);
  line-height: 0.88;
  font-weight: 700;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.98);
  text-align: right;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.ecosystem-case__caption {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  text-align: right;
}

/* BOTTOM */
.ecosystem-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.ecosystem-system,
.ecosystem-cases {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(110, 17, 29, 0.42);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(12, 10, 12, 0.42), rgba(10, 10, 10, 0.34));
  backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 42px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.ecosystem-system::before,
.ecosystem-cases::before,
.ecosystem-card::before,
.ecosystem-mini-case::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(150, 24, 40, 0.12), transparent 42%, rgba(150, 24, 40, 0.05));
  pointer-events: none;
}

.ecosystem-system__title,
.ecosystem-cases__title,
.ecosystem-grid,
.ecosystem-cases__stack {
  position: relative;
  z-index: 1;
}

.ecosystem-system__title,
.ecosystem-cases__title {
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.64);
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ecosystem-card {
  position: relative;
  min-height: 210px;
  padding: 20px;
  border: 1px solid rgba(110, 17, 29, 0.34);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(14, 10, 12, 0.44), rgba(10, 10, 10, 0.34));
  overflow: hidden;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.ecosystem-card::after,
.ecosystem-mini-case::after {
  content: "";
  position: absolute;
  top: -140%;
  left: -36%;
  width: 38%;
  height: 330%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 18%,
    rgba(255, 255, 255, 0.14) 52%,
    rgba(255, 255, 255, 0.03) 82%,
    transparent 100%
  );
  transform: rotate(22deg);
  animation: ecosystemShine 8s ease-in-out infinite;
  pointer-events: none;
}

.ecosystem-card:nth-child(2)::after { animation-delay: 0.8s; }
.ecosystem-card:nth-child(3)::after { animation-delay: 1.6s; }
.ecosystem-card:nth-child(4)::after { animation-delay: 2.4s; }

.ecosystem-card:hover,
.ecosystem-mini-case:hover {
  transform: translateY(-5px);
  border-color: rgba(152, 28, 44, 0.50);
  box-shadow:
    0 0 0 1px rgba(152, 28, 44, 0.14),
    0 22px 48px rgba(0, 0, 0, 0.30);
}

.ecosystem-card__label,
.ecosystem-card__title,
.ecosystem-card__text {
  position: relative;
  z-index: 1;
}

.ecosystem-card__label {
  display: inline-flex;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.46);
}

.ecosystem-card__title {
  margin: 0;
  font-size: clamp(20px, 1.6vw, 28px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.97);
}

.ecosystem-card__text {
  margin: 14px 0 0;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.ecosystem-cases__stack {
  display: grid;
  gap: 14px;
}

.ecosystem-mini-case {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(110, 17, 29, 0.34);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(14, 10, 12, 0.42), rgba(10, 10, 10, 0.30));
  overflow: hidden;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.ecosystem-mini-case__name,
.ecosystem-mini-case__text {
  position: relative;
  z-index: 1;
}

.ecosystem-mini-case__name {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.96);
}

.ecosystem-mini-case__text {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

@keyframes ecosystemShine {
  0% {
    transform: translateX(-180%) rotate(22deg);
    opacity: 0;
  }
  10% {
    opacity: 0.18;
  }
  36% {
    opacity: 0.24;
  }
  58% {
    transform: translateX(420%) rotate(22deg);
    opacity: 0;
  }
  100% {
    transform: translateX(420%) rotate(22deg);
    opacity: 0;
  }
}

@media (max-width: 1400px) {
  .ecosystem-slide__title {
    max-width: 12ch;
    font-size: clamp(32px, 4.2vw, 68px);
  }

  .ecosystem-slide__lead {
    max-width: 700px;
  }
}

@media (max-width: 1280px) {
  .ecosystem-case {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .ecosystem-case__visual {
    justify-content: flex-start;
    min-height: 180px;
  }

  .ecosystem-case__icon {
    width: min(360px, 55vw);
  }

  .ecosystem-case__result {
    align-items: flex-start;
  }

  .ecosystem-case__value,
  .ecosystem-case__caption {
    text-align: left;
  }

  .ecosystem-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .ecosystem-slide__inner {
    padding: 40px 18px 22px;
  }

  .ecosystem-slide__title {
    font-size: clamp(32px, 6vw, 58px);
  }
}

@media (max-width: 820px) {
  .ecosystem-slide__inner {
    padding: 26px 14px 16px;
    gap: 16px;
  }

  .ecosystem-slide__title {
    max-width: 100%;
    font-size: clamp(30px, 8vw, 48px);
    line-height: 0.98;
  }

  .ecosystem-slide__lead {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.55;
  }

  .ecosystem-case__visual {
    display: none;
  }

  .ecosystem-case {
    grid-template-columns: 1fr;
  }

  .ecosystem-case,
  .ecosystem-system,
  .ecosystem-cases {
    padding: 18px;
    border-radius: 24px;
  }

  .ecosystem-case__title {
    font-size: clamp(24px, 7vw, 36px);
  }

  .ecosystem-case__text,
  .ecosystem-card__text,
  .ecosystem-mini-case__text {
    font-size: 14px;
  }

  .ecosystem-case__value {
    font-size: clamp(42px, 11vw, 72px);
  }

  .ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .ecosystem-card {
    min-height: auto;
    padding: 18px;
    border-radius: 22px;
  }
}

@media (max-width: 520px) {
  .ecosystem-slide__inner {
    padding: 22px 10px 14px;
  }

  .ecosystem-slide__eyebrow {
    min-height: 36px;
    padding: 8px 14px;
    font-size: 10px;
  }

  .ecosystem-case,
  .ecosystem-system,
  .ecosystem-cases,
  .ecosystem-card,
  .ecosystem-mini-case {
    border-radius: 18px;
  }

  .ecosystem-case,
  .ecosystem-system,
  .ecosystem-cases,
  .ecosystem-card,
  .ecosystem-mini-case {
    padding: 14px;
  }

  .ecosystem-case__caption,
  .ecosystem-card__text,
  .ecosystem-mini-case__text {
    font-size: 13px;
  }

  .ecosystem-card__title,
  .ecosystem-mini-case__name {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ecosystem-card::after,
  .ecosystem-mini-case::after {
    animation: none !important;
  }

  .ecosystem-card,
  .ecosystem-mini-case {
    transition: none !important;
  }
}