:root {
  --color-canvas: #f5f8ff;
  --color-ink: #090b10;
  --color-muted: rgba(9, 11, 16, .62);
  --color-faint: rgba(9, 11, 16, .08);
  --color-panel: rgba(255, 255, 255, .62);
  --color-white: #fff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 24px 80px rgba(55, 74, 118, .08);
  --content: 1216px;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-canvas);
  font: 400 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.section-shell { width: min(calc(100% - 48px), var(--content)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: 16px; transform: translateY(-160%); padding: 10px 16px; border-radius: var(--radius-pill); background: var(--color-ink); color: white; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: none; }

.site-header {
  position: fixed; z-index: 50; top: 20px; left: 24px; right: 24px;
  display: flex; justify-content: space-between; align-items: center;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; font-weight: 700; }
.brand img { width: 48px; height: 48px; }
.site-nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 34px; padding: 12px 34px; border: 1px solid rgba(255,255,255,.9); border-radius: var(--radius-pill); background: rgba(255,255,255,.78); box-shadow: var(--shadow-soft); backdrop-filter: blur(18px); }
.site-nav a { color: var(--color-muted); font-size: 14px; }
.site-nav a:hover { color: var(--color-ink); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.language-switch { display: flex; padding: 3px; border: 1px solid var(--color-faint); border-radius: var(--radius-pill); background: rgba(255,255,255,.7); }
.language-switch button { min-width: 38px; min-height: 32px; border: 0; border-radius: var(--radius-pill); background: transparent; cursor: pointer; font-size: 12px; }
.language-switch button[aria-pressed="true"] { background: var(--color-ink); color: white; }
.icon-link { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.7); }
.menu-toggle { display: none; }

.hero { min-height: 780px; display: grid; place-content: center; justify-items: center; text-align: center; background-image: url('https://mdn.alipayobjects.com/huamei_fz8c8n/afts/img/C6p9QY7w5eYAAAAAQLAAAAgADpuRAQJr/original'); background-repeat: no-repeat; background-size: cover; background-position: center; }
.eyebrow, .section-kicker { margin: 0 0 12px; color: var(--color-muted); font: 600 12px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: 'Raleway', sans-serif; font-style: normal; font-weight: 700; font-size: 140px; line-height: 148px; letter-spacing: 0; }
.hero__tagline { max-width: 560px; margin: 32px auto 72px; font-size: 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--radius-pill); font-weight: 400; }
.button--dark { color: white; background: var(--color-ink); }
.button--arrow::after { content: ''; display: inline-block; width: 16px; height: 16px; margin-left: 4px; background-image: url('https://mdn.alipayobjects.com/huamei_fz8c8n/afts/img/ldpmQ7KmMjIAAAAAF3AAAAgADpuRAQJr/original'); background-size: contain; background-repeat: no-repeat; vertical-align: middle; }

section:not(.hero) { scroll-margin-top: 110px; padding-block: 108px; }
.section-heading { margin-bottom: 48px; }
.section-heading--center { text-align: center; }
.section-heading h2, .capabilities h2 { margin: 0; font-size: clamp(36px, 4.2vw, 64px); line-height: 1; letter-spacing: 0; }
#projects { padding-top: 101px; }
#projects .section-heading h2 { font-size: 32px; font-weight: 600; line-height: 40px; letter-spacing: -.03em; }
.project-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.project-card, .update-card, .community-card { border: 1px solid var(--color-faint); border-radius: var(--radius-md); background: var(--color-panel); box-shadow: 0 1px 0 rgba(255,255,255,.8) inset; backdrop-filter: blur(16px); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.project-card:hover, .update-card:hover, .community-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.82); }
#projects .project-card {
  position: relative; display: block; height: 191px; min-height: 191px; padding: 20px;
  border-color: rgba(0,0,0,.06); background: rgba(255,255,255,.65); box-shadow: none;
}
#projects .project-card__top { position: relative; display: block; height: 56px; }
#projects .project-icon {
  position: relative; display: block; overflow: hidden; width: 56px; height: 56px; border-radius: var(--radius-sm);
}
#projects .project-icon img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  transition: opacity .2s ease;
}
#projects .project-icon-default { opacity: 1; }
#projects .project-icon-hover { opacity: 0; }
#projects .project-card:hover .project-icon-default { opacity: 0; }
#projects .project-card:hover .project-icon-hover { opacity: 1; }
#projects .project-card h3 {
  position: absolute; top: 0; left: 68px; overflow: hidden; max-width: 102px; margin: 0;
  font-size: 20px; font-weight: 500; line-height: 28px; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap;
}
#projects .project-card > p {
  position: absolute; top: 91px; left: 20px; right: 20px; display: -webkit-box; overflow: hidden;
  margin: 0; color: rgba(0,0,0,.89); font-size: 14px; line-height: 21px;
  -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.tag-list { display: flex; gap: 6px; list-style: none; padding: 0; margin: 4px 0 24px; }
#projects .project-card > .tag-list { position: absolute; top: 54px; left: 88px; max-width: 181px; height: 20px; margin: 0; }
.tag-list li { padding: 3px 8px; border-radius: 6px; background: rgba(9,11,16,.05); font-size: 11px; }
#projects .tag-list li { height: 20px; padding: 1px 8px; font-size: 10px; line-height: 18px; white-space: nowrap; }
.card-actions { display: flex; align-items: center; justify-content: space-between; margin-top: auto; font: 500 13px/1.4 var(--font-mono); }
.card-actions a:last-child { padding: 8px; margin: -8px; }
.card-arrow { display: inline-block; flex-shrink: 0; margin-left: 4px; vertical-align: middle; }
#projects .card-actions {
  position: absolute; right: 20px; bottom: 20px; left: 20px; min-height: 20px; margin: 0;
  font: 400 14px/1.2 var(--font-mono);
}
#projects .card-actions img { width: 20px; height: 20px; }
#projects .card-actions .card-arrow { width: 16px; height: 16px; }
#projects .project-card__top .live-status {
  position: absolute; top: 6px; right: 0; overflow: hidden; max-width: 96px; margin: 0;
  font-size: 9px; text-overflow: ellipsis;
}
.project-live-meta {
  display: grid; grid-template-columns: .72fr 1.3fr 1fr; gap: 8px;
  margin: 0 0 18px; padding-top: 12px; border-top: 1px solid var(--color-faint);
}
#projects .project-live-meta {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.project-live-meta[hidden] { display: none; }
.project-live-meta div { min-width: 0; }
.project-live-meta dt { color: var(--color-muted); font: 500 9px/1.3 var(--font-mono); text-transform: uppercase; }
.project-live-meta dd { overflow: hidden; margin: 3px 0 0; font: 600 11px/1.3 var(--font-mono); text-overflow: ellipsis; white-space: nowrap; }
.live-status { color: var(--color-muted); font: 500 10px/1.4 var(--font-mono); white-space: nowrap; }
.live-status:not(:empty)::before { content: "·"; margin-right: 6px; }

.capabilities { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.capabilities__copy > p:not(.section-kicker) { max-width: 470px; color: var(--color-muted); }
.capabilities__visual { overflow: hidden; min-height: 420px; display: grid; place-items: center; border: 1px solid var(--color-faint); border-radius: var(--radius-md); background: rgba(255,255,255,.78); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 48px 0 0; }
.metrics div { border-top: 1px solid var(--color-faint); padding-top: 16px; }
.metrics dt { font-size: 32px; font-weight: 700; letter-spacing: 0; }
.metrics dd { margin: 2px 0 0; color: var(--color-muted); font-size: 12px; }

.update-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.update-card { min-height: 220px; padding: 28px; }
.card-meta { font: 600 12px/1.4 var(--font-mono); color: var(--color-muted); }
.update-card h3 { margin: 44px 0 8px; font-size: 24px; letter-spacing: -.03em; }
.update-card p { max-width: 520px; margin: 0; color: var(--color-muted); }
.card-meta { display: flex; align-items: center; gap: 6px; }
.update-card__date { display: block; margin-top: 10px; color: var(--color-muted); font: 500 10px/1.4 var(--font-mono); }
#community { padding-top: 101px; padding-bottom: 96px; }
#community .section-heading h2 {
  font-size: 32px; font-weight: 600; line-height: 40px; letter-spacing: -.03em;
}
#community .community-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
}
#community .community-card {
  position: relative; overflow: hidden; height: 265px; min-height: 265px; padding: 0;
  border-color: rgba(0,0,0,.06); border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.89) 100%),
    rgba(255,255,255,.89);
  box-shadow: none; backdrop-filter: none;
}
#community .community-card:hover {
  transform: none; border-color: rgba(0,0,0,.06);
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.89) 100%),
    rgba(255,255,255,.89);
}
#community .community-card__heading {
  position: absolute; top: 19px; right: 19px; left: 19px; display: flex; align-items: center; height: 22px;
}
#community .community-card__heading h3 {
  margin: 0 0 0 6px; font-size: 14px; font-weight: 500; line-height: 22px; letter-spacing: 0;
}
#community .community-card__heading .live-status {
  overflow: hidden; max-width: 120px; margin-left: auto; font-size: 9px; text-overflow: ellipsis;
}
.community-issue-dot {
  position: relative; width: 12px; height: 12px; flex: 0 0 12px;
  border: 1.5px solid #1a7f37; border-radius: 50%;
}
.community-issue-dot::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 2px; height: 2px;
  transform: translate(-50%, -50%); border-radius: 50%; background: #1a7f37;
}
#community .community-fallback,
#community .community-activity-list {
  position: absolute; top: 53px; right: 19px; left: 19px; display: grid;
  grid-template-rows: 86px 81px; height: 167px; margin: 0;
}
#community .community-fallback[hidden],
#community .community-activity-list[hidden] { display: none; }
#community .community-activity {
  display: block; overflow: hidden; min-width: 0; min-height: 0; padding: 0; border: 0;
}
.community-activity__person {
  display: flex; align-items: center; height: 24px; min-width: 0;
  font-size: 14px; font-weight: 500; line-height: 22px;
}
.community-activity__person > :last-child {
  overflow: hidden; margin-left: 6px; text-overflow: ellipsis; white-space: nowrap;
}
.community-activity__avatar {
  display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px;
  border-radius: 50%; object-fit: cover;
}
.community-activity__avatar--loading { background: rgba(0,0,0,.08); }
.community-activity--loading { pointer-events: none; }
.community-loading-line {
  background: linear-gradient(rgba(0,0,0,.08) 0 0) no-repeat left center / var(--loading-width) 8px;
}
.community-loading-line--name { width: 96px; height: 24px; --loading-width: 72%; }
.community-loading-line--title { width: 100%; height: 18px; --loading-width: 74%; }
.community-loading-line--meta { width: 100%; height: 20px; --loading-width: 48%; }
.community-activity__title {
  display: block; overflow: hidden; margin-top: 8px; color: rgba(0,0,0,.89);
  font: 400 12px/18px var(--font-mono); text-overflow: ellipsis; white-space: nowrap;
}
#community .community-activity:nth-child(2) .community-activity__title { margin-top: 5px; }
.community-activity__meta {
  display: block; overflow: hidden; margin-top: 4px; color: rgba(0,0,0,.45);
  font: 400 12px/20px var(--font-sans); text-overflow: ellipsis; white-space: nowrap;
}
.community-activity:hover .community-activity__title { text-decoration: underline; text-underline-offset: 3px; }
#community .community-project {
  position: absolute; right: 19px; bottom: 19px; left: 19px; display: flex; align-items: center; height: 24px;
}
.community-project__icon { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 4px; }
#community .community-project > strong {
  margin-left: 8px; font-size: 16px; font-weight: 500; line-height: 24px;
}
.community-project__tag {
  min-height: 20px; margin-left: 6px; padding: 1px 8px; border-radius: 4px;
  background: rgba(0,0,0,.04); font-size: 10px; line-height: 18px; white-space: nowrap;
}
#community .community-project > strong + .community-project__tag { margin-left: 12px; }
.community-project__stars {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0; margin-left: auto;
  font-size: 14px; line-height: 22px;
}
.community-project__stars img { width: 16px; height: 16px; flex: 0 0 16px; }

.site-footer { padding: 60px 0 24px; border-top: 1px solid var(--color-faint); background: rgba(255,255,255,.3); }
.footer-grid { display: grid; grid-template-columns: 1fr 110px 110px 110px; gap: 32px; align-items: start; }
.footer-brand img { width: auto; height: 28px; }
.footer-grid h2 { margin: 0 0 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.footer-grid div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; color: var(--color-muted); font-size: 13px; }
.footer-wordmark { overflow: hidden; margin: 40px 0 16px; padding-inline: max(24px, calc((100vw - var(--content)) / 2)); }
.footer-wordmark img { display: block; width: min(100%, var(--content)); height: auto; }
.footer-bottom { padding-top: 18px; border-top: 1px solid var(--color-faint); color: var(--color-muted); font-size: 12px; }

body { overflow-x: clip; }

@media (max-width: 1099px) {
  .section-shell { width: min(calc(100% - 40px), 920px); }
  .site-header { left: 24px; right: 24px; }
  .site-nav { gap: 20px; padding-inline: 24px; }
  .site-header > .brand,
  .site-nav a,
  .language-switch button,
  .icon-link,
  .card-actions a,
  .community-activity,
  .footer-grid a { min-width: 44px; min-height: 44px; }
  .site-nav a, .card-actions a, .footer-grid a { display: inline-flex; align-items: center; }
  .site-nav a, .card-actions a:last-child { justify-content: center; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  #projects .card-actions { bottom: 4px; }
  .capabilities { grid-template-columns: 1fr; gap: 42px; }
  .capabilities__copy { max-width: 680px; }
  .footer-grid { grid-template-columns: 1.6fr 110px 110px 110px; }
}

@media (max-width: 767px) {
  .section-shell { width: min(calc(100% - 32px), 620px); }
  .site-header {
    top: 12px; left: 24px; right: 24px;
    padding: 10px 0;
  }
  .site-header > .brand span { display: none; }
  .site-header > .brand { justify-content: center; }
  .js .menu-toggle { display: grid; gap: 5px; place-content: center; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
  .menu-toggle__line { width: 20px; height: 1.5px; background: currentColor; transition: transform .2s ease; }
  .site-nav {
    position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); display: flex;
    align-items: stretch; flex-direction: column; gap: 0; padding: 10px;
    border-radius: 18px; background: rgba(255,255,255,.96);
  }
  .js .site-nav { display: none; }
  .js [data-menu-open="true"] .site-nav { display: flex; }
  .no-js .site-header {
    position: static; transform: none; width: calc(100% - 24px); margin: 12px auto 0;
    display: flex; flex-direction: column; align-items: stretch;
  }
  .no-js .site-header > .brand { align-self: flex-start; }
  .no-js .site-nav { position: static; width: 100%; margin-top: 8px; }
  .no-js .header-actions { display: none; }
  .site-nav a { padding: 13px 14px; border-radius: 10px; font-size: 15px; }
  .site-nav a:hover { background: rgba(9,11,16,.05); }
  .header-actions { gap: 6px; }
  .icon-link { display: none; }
  .hero { min-height: 660px; padding-top: 80px; }
  .hero__glow { height: 380px; filter: blur(32px); }
  .hero h1 { font-size: clamp(64px, 22vw, 104px); }
  .hero__tagline { margin-block: 24px; font-size: 17px; }
  section:not(.hero) { padding-block: 78px; }
  .section-heading { margin-bottom: 32px; }
  .project-grid, .update-grid, .community-grid { grid-template-columns: 1fr; }
  #community .community-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 248px; }
  .capabilities__visual { min-height: auto; padding: 18px; }
  .metrics { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .metrics dt { font-size: 25px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid > .brand { grid-column: 1 / -1; margin-bottom: 18px; }
  .footer-wordmark { margin-top: 70px; padding-inline: 16px; }
}

@media (max-width: 479px) {
  .section-shell { width: calc(100% - 28px); }
  .language-switch button { padding-inline: 5px; }
  .hero h1 { font-size: 66px; }
  .hero__tagline { max-width: 310px; }
  .project-card, .update-card, .community-card { padding: 22px; }
  .metrics { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
