@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

body {
  font-family: Inter, system-ui, sans-serif;
}

h1, h2, h3 {
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
}

.hero-showcase {
  perspective: 1100px;
}

.hero-art {
  filter: drop-shadow(0 18px 30px rgb(74 58 178 / 12%));
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.feature-card {
  grid-column: span 4;
  min-width: 0;
  background: linear-gradient(145deg, #fff 36%, #f4f2ff);
}

.feature-card:nth-child(6n + 1),
.feature-card:nth-child(6n + 6) {
  grid-column: span 7;
}

.feature-card:nth-child(6n + 2),
.feature-card:nth-child(6n + 5) {
  grid-column: span 5;
}

.feature-card:nth-child(6n + 3),
.feature-card:nth-child(6n + 4) {
  grid-column: span 6;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ecosystem-hub {
  display: flex;
  justify-content: center;
  margin: 1.5rem auto 0;
}

.ecosystem-hub a {
  border: 1px solid #ded8ff;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  background: #f2edff;
  color: #442389;
  font-weight: 700;
}

.ecosystem-hub::after {
  content: "";
  position: absolute;
  align-self: end;
  translate: 0 100%;
  height: 1rem;
  border-inline-start: 1px solid #a793eb;
  pointer-events: none;
}

.ecosystem-roles {
  margin-top: 1rem;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: schoolfy-enter 600ms ease-out both;
  }

  .feature-icon svg {
    transition: transform 240ms ease-out;
  }

  .feature-card:hover svg {
    transform: translateY(-3px);
  }
}

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .hero-showcase {
    animation: schoolfy-float 7s ease-in-out infinite;
  }
}

@media (max-width: 680px) {
  .feature-grid > .feature-card:nth-child(n) {
    grid-column: 1 / -1;
  }
}

@keyframes schoolfy-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes schoolfy-float {
  50% { transform: translateY(-7px) rotateX(1deg); }
}

#hero-title .hero-title-main {
  color: inherit;
  background: none;
  -webkit-text-fill-color: currentColor;
}

:is(.hero-note,.nav-language) button {
  border: 1px solid #dcd7f0;
  border-radius: 999px;
  background: #fff;
  color: #302050;
  padding: .45rem .75rem;
  font: inherit;
  cursor: pointer;
}

:is(.hero-note,.nav-language) button[aria-pressed="true"] {
  border-color: #7155bc;
  background: #f2edff;
}

.nav-language {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
  padding-inline-start: .65rem;
  border-inline-start: 1px solid #ddd8ee;
}

.nav-language button {
  font-size: .8rem;
  white-space: nowrap;
}

.nav-language button:focus-visible {
  outline: 2px solid #5034b7;
  outline-offset: 2px;
}

@media (max-width: 1020px) {
  .nav-language {
    padding-inline-start: 0;
    border-inline-start: 0;
  }
}
