/* Malta 360 — 04 Malta's ecosystem. Figma 228:4153: py 160, gap 80, head 947 wide. */

.m360-ecosystem { padding-block: 160px; }

.m360-ecosystem .m360-section-head { max-width: 947px; }
.m360-ecosystem .m360-lede { max-width: 420px; }

.m360-ecosystem__groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  margin-top: 80px;
  align-items: start;
}

.m360-ecosystem__group { display: flex; flex-direction: column; gap: 24px; }

.m360-ecosystem__group-name {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--m360-line);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--m360-text-2);
}

/* Outer 2px accent rule; inner glass panel with a 1px hairline, p 48, gap 24. */
.m360-ecosystem__card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 48px;
  border: 1px solid var(--m360-line);
  border-left: 2px solid var(--accent);
  background: rgba(255, 255, 255, .05);
}

.m360-ecosystem__acronym { color: var(--m360-white); }

.m360-ecosystem__desc { font-size: 16px; line-height: 26px; color: var(--m360-text-2); }

.m360-ecosystem__link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  align-self: flex-start;
  padding-top: 7.5px;
  font-size: 10px;
  line-height: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--m360-text);
  text-decoration: none;
  transition: color .2s var(--m360-ease);
}

.m360-ecosystem__arrow { width: 7px; height: 8px; transition: transform .2s var(--m360-ease); }
.m360-ecosystem__link:hover { color: var(--accent); }
.m360-ecosystem__link:hover .m360-ecosystem__arrow { transform: translateX(3px); }

/* Vector (ribbon): 362.787×381.566 @−100.94°, bbox 443.495×428.622 at (1081.56, 54). */
.m360-ecosystem__ribbon {
  right: calc(-44.7 * var(--u));
  top: calc(77.53 * var(--u));
  width: calc(362.787 * var(--u));
  height: calc(381.566 * var(--u));
}

@media (max-width: 1024px) {
  .m360-ecosystem { padding-block: 96px; }
  .m360-ecosystem__groups { grid-template-columns: minmax(0, 1fr); margin-top: 56px; }
}

@media (max-width: 640px) {
  .m360-ecosystem__card { padding: 28px; }
}

/* Figma mobile 228:4338: px 24, py 48; cards p 32; groups 48 apart; no ribbon. */
@media (max-width: 640px) {
  .m360-ecosystem { padding-block: 48px; }
  .m360-ecosystem__groups { margin-top: 48px; gap: 48px; }
  .m360-ecosystem__group-name { margin-bottom: 8px; }
  .m360-ecosystem__card { padding: 32px; }
  .m360-ecosystem__ribbon { display: none; }
}
