/* MADMIX Hero module
   Depends on variables and base layout from /assets/style.css. */

@media (min-width: 1025px) {
  #hero {
    align-items: center;
  }

  .hero-grid {
    max-width: 1480px;
    grid-template-columns: minmax(0, 0.88fr) minmax(520px, 0.82fr);
    gap: clamp(3rem, 5vw, 5.5rem);
  }

  .hero-left {
    max-width: 640px;
    min-width: 0;
  }

  h1.hero-h1 {
    max-width: 640px;
    font-size: clamp(4.8rem, 6.2vw, 7.25rem);
    line-height: 0.9;
    overflow-wrap: normal;
  }

  .hero-sub {
    max-width: 600px;
  }

  .hero-side--ecosystem {
    width: 100%;
    max-width: 660px;
    justify-self: end;
  }
}

.hero-side--ecosystem {
  padding: 1.25rem;
  background:
    radial-gradient(circle at 18% 16%, rgba(232,114,74,0.14), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(15,158,110,0.1), transparent 38%),
    radial-gradient(circle at 50% 88%, rgba(59,130,246,0.08), transparent 42%),
    rgba(255,255,255,0.015);
  box-shadow: 0 24px 80px rgba(0,0,0,0.42);
}

.hero-side--ecosystem .side-label {
  margin: 0 0 1.15rem;
}

.hero-ecosystem-head {
  margin-bottom: 1.25rem;
  max-width: 520px;
}

.hero-ecosystem-head span,
.hero-ecosystem-head strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 2.4vw, 2.75rem);
  line-height: 0.98;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.hero-ecosystem-head span { color: var(--white); }
.hero-ecosystem-head strong { color: var(--red-text); margin-top: 0.25rem; }

.hero-ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.hero-ecosystem-card {
  min-height: 154px;
  border: 1px solid color-mix(in srgb, var(--ecosystem-color) 52%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--ecosystem-color) 9%, transparent), rgba(255,255,255,0.012) 62%);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.hero-ecosystem-icon {
  width: 2.45rem;
  height: 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ecosystem-color);
  color: var(--ecosystem-color);
}

.hero-ecosystem-icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.hero-ecosystem-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 1.25vw, 1.45rem);
  line-height: 1.02;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--white);
  margin: 1rem 0 0.45rem;
}

.hero-ecosystem-card p {
  color: var(--gray3);
  font-size: var(--text-sm);
  line-height: 1.45;
  margin: 0;
}

.hero-ecosystem-line {
  border-top: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.7vw, 1.65rem);
  line-height: 1.12;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 1.3rem 0 0;
  padding-top: 1.1rem;
}
