/* ===== ECOSYSTEM SECTION ===== */
.ecosystem {
  position: relative;
  padding: 6rem 0;
  background: #ffffff;
  overflow: hidden;
}

.ecosystem::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

.ecosystem .section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
  position: relative;
  z-index: 2;
}

.ecosystem .eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  background: rgba(10, 132, 255, 0.1);
  border-radius: 2rem;
}

.ecosystem h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.ecosystem .section-intro {
  font-size: 1.25rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.ecosystem-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.ecosystem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  transition: all 0.3s ease;
}

.ecosystem-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.ecosystem-card:hover::before {
  width: 6px;
  background: linear-gradient(180deg, var(--primary), #5ac8fa);
}

.ecosystem-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  color: white;
  background: linear-gradient(135deg, var(--primary), #5ac8fa);
  box-shadow: 0 10px 20px rgba(10, 132, 255, 0.2);
}

.ecosystem-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.ecosystem-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.ecosystem-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.ecosystem-card li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-light);
  line-height: 1.5;
}

.ecosystem-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.ecosystem-cta {
  text-align: center;
  margin-top: 4rem;
  position: relative;
  z-index: 2;
}

/* Decorative Elements */
.ecosystem-decor {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

.ecosystem-decor-1 {
  top: 10%;
  left: 5%;
  width: 100px;
  height: 100px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.1), rgba(90, 200, 250, 0.1));
  animation: float 8s ease-in-out infinite;
}

.ecosystem-decor-2 {
  bottom: 10%;
  right: 5%;
  width: 150px;
  height: 150px;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  background: linear-gradient(135deg, rgba(90, 200, 250, 0.1), rgba(10, 132, 255, 0.1));
  animation: float 10s ease-in-out infinite reverse;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
  .ecosystem {
    padding: 8rem 0;
  }
  
  .ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  
  .ecosystem .section-intro {
    font-size: 1.375rem;
  }
}

@media (min-width: 1024px) {
  .ecosystem-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .ecosystem-card {
    padding: 3rem 2rem;
  }
  
  .ecosystem-card.featured {
    transform: scale(1.05);
  }
  
  .ecosystem-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
  }
}

/* Animation */
@keyframes float {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
  100% { transform: translateY(0) rotate(0deg); }
}
