/* ============================================================================
   ECOSYSTEM SECTION — Partners & Technology logos
   Clean, authority-projecting logo grids. Subtle slate bg for rhythm.
   ============================================================================ */

.ecosystem {
  background: #f8fafc;
  padding: var(--space-3xl) 0;
  width: 100%;
  position: relative;
}

/* Tech variant: white bg for visual break between two logo sections */
.ecosystem--tech {
  background: var(--color-bg);
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.ecosystem__content {
  max-width: var(--max-width-full);
  margin: 0 auto;
  padding: 0 var(--space-md);
  text-align: center;
}

/* --------------------------------------------------------------------------
   HEADLINE — Matching the monumental style
   -------------------------------------------------------------------------- */

.ecosystem__headline {
  font-family: 'NewPanamSkyline', var(--font-sans);
  font-size: var(--text-3xl);
  font-weight: var(--weight-black);
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: var(--tracking-tighter);
  line-height: var(--leading-none);
  margin: 0;
}

.ecosystem__dot {
  display: inline-block;
  color: #3b82f6;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.4), 0 0 40px rgba(59, 130, 246, 0.2);
}

.ecosystem__subhead {
  font-size: var(--text-base);
  font-weight: var(--weight-light);
  color: var(--color-text-secondary);
  margin: var(--space-xs) 0 var(--space-2xl);
}

/* --------------------------------------------------------------------------
   LOGO GRID
   -------------------------------------------------------------------------- */

.ecosystem__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl) var(--space-3xl);
}

.ecosystem__logos--wide {
  gap: var(--space-xl) var(--space-2xl);
}

.ecosystem__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s var(--ease-default);
}

.ecosystem__logo:hover {
  opacity: 1;
}

.ecosystem__logo img {
  max-height: 2.5rem;
  width: auto;
  object-fit: contain;
  filter: none;
}

.ecosystem--tech .ecosystem__logo img {
  max-height: 2rem;
}

/* --------------------------------------------------------------------------
   MOBILE — 768px
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .ecosystem {
    padding: var(--space-2xl) 0;
  }

  .ecosystem__headline {
    font-size: var(--text-2xl);
  }

  .ecosystem__logos {
    gap: var(--space-xl) var(--space-xl);
  }

  .ecosystem__logo img {
    max-height: 2rem;
  }
}
