/* =========================
   ECOSYSTEM  SECTION
========================= */

.ecosystem {
  text-align: center;
  position: relative;
}

.ecosystem-title {
  margin-bottom: 60px;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 42px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.8px;
}

/* GRID */

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
  max-width: 1250px;
  margin: 0 auto;
}

/* CARD */

.ecosystem-card {
  position: relative;
  padding: 34px;
  border-radius: 28px;

  background:
    linear-gradient(
      180deg,
      rgba(8, 16, 35, 0.96),
      rgba(4, 10, 24, 0.98)
    );

  border: 1px solid rgba(0, 229, 255, 0.12);

  box-shadow:
    0 0 30px rgba(0, 229, 255, 0.06),
    inset 0 0 22px rgba(255,255,255,0.015);

  overflow: hidden;

  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;

  text-align: left;
}

/* Glow */

.ecosystem-card::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at top right,
      rgba(0,229,255,0.12),
      transparent 35%
    );

  pointer-events: none;
}

/* Hover */

.ecosystem-card:hover {
  transform: translateY(-7px);

  border-color: rgba(0,229,255,0.35);

  box-shadow:
    0 0 45px rgba(0,229,255,0.14),
    inset 0 0 22px rgba(255,255,255,0.02);
}

/* TOP */

.ecosystem-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 28px;
}

/* MODULE */

.ecosystem-module {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;

  color: #00e5ff;
}

/* ICON */

.ecosystem-icon {
  width: 58px;
  height: 58px;

  border-radius: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    linear-gradient(
      135deg,
      rgba(0,229,255,0.16),
      rgba(130,71,229,0.16)
    );

  border: 1px solid rgba(0,229,255,0.2);

  color: #00e5ff;

  font-size: 22px;

  box-shadow:
    0 0 24px rgba(0,229,255,0.16);
}

/* TITLE */

.ecosystem-card h3 {
  font-family: "Space Grotesk", sans-serif;

  font-size: 31px;
  line-height: 1.2;

  margin-bottom: 18px;

  color: #fff;
}

/* DIVIDER */

.ecosystem-divider {
  width: 58px;
  height: 3px;

  border-radius: 20px;

  margin-bottom: 22px;

  background:
    linear-gradient(
      90deg,
      #00e5ff,
      #8b5cf6
    );
}

/* TEXT */

.ecosystem-card p {
  font-family: Inter, sans-serif;

  font-size: 16px;
  line-height: 1.8;

  color: rgba(230,236,255,0.78);

  margin: 0;
}

/* MOBILE */

@media (max-width: 768px) {

  .ecosystem-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .ecosystem-card {
    padding: 28px;
    border-radius: 24px;
  }

  .ecosystem-card h3 {
    font-size: 27px;
  }

  .ecosystem-icon {
    width: 52px;
    height: 52px;
  }

  .ecosystem-card p {
    font-size: 15px;
    line-height: 1.7;
  }
}
