:root {
  color-scheme: light;
  --purple: #8672e8;
  --ink: #1d1a2b;
  --muted: #858096;
  --panel: rgba(247, 245, 255, 0.92);
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #a899ed;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header {
  height: 84px;
  padding: 0 clamp(28px, 6vw, 116px);
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
  align-items: center;
  gap: 32px;
  background: #fff;
  position: relative;
  z-index: 5;
}

.brand { width: fit-content; transition: opacity .2s ease; }
.brand:hover { opacity: .92; }
.brand img { display: block; width: auto; height: 48px; object-fit: contain; }

.main-nav { display: flex; align-items: center; gap: clamp(32px, 4vw, 68px); }
.main-nav a { position: relative; padding: 31px 0 28px; color: #4e4a58; white-space: nowrap; }
.main-nav a.active { color: var(--purple); font-weight: 700; }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 19px;
  width: 34px; height: 3px;
  border-radius: 99px;
  background: var(--purple);
  transform: translateX(-50%);
}

.header-actions { justify-self: end; display: flex; align-items: center; gap: 20px; }
.login-link { color: #4e4a58; }
.join-link { padding: 13px 21px; border-radius: 9px; color: #fff; background: var(--purple); }

.ecosystem-page {
  min-height: calc(100vh - 84px);
  padding: 0 clamp(28px, 5.6vw, 115px) 110px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 221, 242, .78), transparent 32%),
    radial-gradient(circle at 86% 20%, rgba(232, 220, 255, .92), transparent 34%),
    radial-gradient(circle at 78% 82%, rgba(255, 207, 230, .38), transparent 28%),
    radial-gradient(circle at 42% 62%, rgba(195, 180, 244, .52), transparent 44%),
    linear-gradient(155deg, #b9acf0 0%, #a796e9 48%, #aa9aec 100%);
}

.ecosystem-hero {
  min-height: 374px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.eyebrow { margin: 24px 0 24px; font-size: 15px; font-weight: 800; letter-spacing: .09em; opacity: .84; }
.ecosystem-hero h1 { margin: 0; font-size: clamp(48px, 4vw, 64px); line-height: 1.08; letter-spacing: -.04em; }
.ecosystem-hero > p:last-child { margin: 26px 0 0; font-size: 19px; opacity: .82; }

.partner-panel {
  max-width: 1818px;
  min-height: 488px;
  margin: 0 auto;
  padding: 40px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 30px;
  background: rgba(249, 247, 255, .9);
  box-shadow: 0 32px 80px rgba(91, 70, 160, .12);
  backdrop-filter: blur(20px);
}

.tabs { display: flex; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid rgba(116,92,244,.1); }
.tab {
  border: 0;
  padding: 10px 22px;
  border-radius: 999px;
  color: #666174;
  background: #fff;
  cursor: pointer;
}
.tab.active { color: #fff; background: var(--purple); box-shadow: 0 9px 24px rgba(116,92,244,.22); }
.tab:focus-visible, a:focus-visible { outline: 3px solid #ffd34e; outline-offset: 3px; }

.tab-panel[hidden] { display: none; }
.panel-intro { margin: 34px 0 28px; color: var(--muted); font-size: 17px; }
.people-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 12px; }
.person-card {
  min-height: 265px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(116,92,244,.08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(68, 51, 137, .06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.person-card:hover { transform: translateY(-3px); border-color: rgba(134,114,232,.24); box-shadow: 0 17px 38px rgba(91,70,160,.1); }
.avatar { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }
.avatar img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.person-card h2 { margin: 18px 0 8px; font-size: 19px; }
.person-card p { margin: 0 0 17px; color: var(--muted); }
.person-card span { padding: 7px 12px; border-radius: 10px; color: var(--purple); background: #f3f0ff; font-size: 13px; }

.organization-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.organization-card {
  min-height: 236px;
  padding: 28px;
  border: 1px solid rgba(116,92,244,.08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(68, 51, 137, .06);
}
.organization-heading { min-height: 54px; display: flex; align-items: center; gap: 16px; }
.organization-heading h2 { margin: 0; font-size: 18px; }
.partner-logo { width: 92px; height: 72px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; background: transparent; }
.partner-logo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; object-position: center; }
.partner-logo-phoenix { width: 112px; }
.org-mark { flex: 0 0 54px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 12px; font-weight: 800; }
.phoenix { color: #fff; font-size: 24px; background: linear-gradient(145deg, #6c55ef, #a88bf8); }
.air { position: relative; background: transparent; }
.air::before { content: ""; width: 48px; height: 30px; border-radius: 50% 50% 20% 20%; background: #ef6d12; clip-path: polygon(50% 0, 100% 75%, 74% 56%, 50% 100%, 26% 56%, 0 75%); }
.garage { color: #171717; font-size: 12px; border: 2px solid #171717; background: #fff; }
.organization-card > p { height: 74px; margin: 19px 0 12px; color: var(--muted); font-size: 15px; line-height: 1.8; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.organization-card > a { color: var(--purple); font-size: 14px; font-weight: 600; }
.organization-card > a span { display: inline-block; margin-left: 4px; transition: transform .2s ease; }
.organization-card > a:hover span { transform: translateX(3px); }

@media (max-width: 1080px) {
  .site-header { grid-template-columns: auto 1fr auto; padding-inline: 28px; }
  .main-nav { justify-content: center; gap: 24px; }
  .organization-grid { grid-template-columns: 1fr; }
  .organization-card { min-height: auto; }
}

@media (max-width: 820px) {
  .site-header { height: auto; min-height: 76px; grid-template-columns: 1fr auto; }
  .brand img { height: 40px; }
  .main-nav { grid-column: 1 / -1; order: 3; justify-content: flex-start; overflow-x: auto; }
  .main-nav a { padding-block: 12px 18px; }
  .main-nav a.active::after { bottom: 9px; }
  .ecosystem-page { min-height: calc(100vh - 120px); padding-inline: 20px; }
  .ecosystem-hero { min-height: 310px; }
  .partner-panel { padding: 24px; }
  .people-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .site-header { padding: 14px 18px; gap: 14px; }
  .header-actions { gap: 10px; }
  .login-link { display: none; }
  .join-link { padding: 10px 14px; }
  .ecosystem-hero { min-height: 270px; }
  .ecosystem-hero > p:last-child { font-size: 15px; }
  .partner-panel { padding: 18px; border-radius: 24px; }
  .tabs { position: sticky; top: 0; z-index: 2; }
  .person-card { min-height: 235px; }
  .organization-card { padding: 22px; }
}
