:root {
  color-scheme: dark;
  --bg: #08080d;
  --surface: rgba(25, 23, 33, 0.72);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f8f7fb;
  --muted: rgba(248, 247, 251, 0.66);
  --pink: #ff3b9d;
  --purple: #9850ff;
  --cyan: #60f2e0;
  --gold: #ffd27a;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% -4%, rgba(255, 42, 133, 0.34), transparent 34rem),
    radial-gradient(circle at 96% 38%, rgba(126, 0, 255, 0.25), transparent 36rem),
    radial-gradient(circle at 20% 108%, rgba(0, 238, 255, 0.16), transparent 34rem),
    var(--bg);
  background-attachment: fixed;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 8, 13, 0.76);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
}

.header-inner,
.page,
.footer-inner {
  width: min(100% - 32px, 880px);
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  text-decoration: none;
  font-size: 25px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.7px;
  background: linear-gradient(120deg, #fff 5%, #ff9ed0 43%, #a779ff 74%, #75f8e7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.language-switcher {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.language-switcher button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 59, 157, 0.9), rgba(152, 80, 255, 0.9));
  box-shadow: 0 6px 20px rgba(152, 80, 255, 0.26);
}

.page { padding: 64px 0 72px; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(36px, 7vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.intro {
  max-width: 690px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.updated {
  display: inline-flex;
  margin-top: 20px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
}

.content-grid,
.link-grid {
  display: grid;
  gap: 16px;
  margin-top: 42px;
}

.card {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(35, 31, 43, 0.76), rgba(18, 18, 24, 0.68));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.09), 0 18px 55px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(26px);
  backdrop-filter: blur(26px);
}

.card h2 {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 20px;
  line-height: 1.35;
}

.card p,
.card li {
  color: rgba(248, 247, 251, 0.8);
  font-size: 15px;
  line-height: 1.8;
}

.card p { margin: 11px 0 0; }
.card p:first-of-type { margin-top: 0; }
.card ul { margin: 10px 0 0; padding-left: 21px; }

.link-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.link-card {
  position: relative;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.link-card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.25); }
.link-card h2 { color: #fff; }
.link-card span { color: var(--cyan); font-weight: 800; }

.contact-button {
  display: inline-flex;
  min-height: 48px;
  margin-top: 18px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(152, 80, 255, 0.28);
}

.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.08); }

.footer-inner {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: rgba(248, 247, 251, 0.48);
  font-size: 13px;
}

.footer-nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: #fff; }

[data-lang] { display: none; }
html[data-active-lang="en"] [data-lang="en"],
html[data-active-lang="zh"] [data-lang="zh"],
html[data-active-lang="es"] [data-lang="es"] { display: block; }

@media (max-width: 700px) {
  .header-inner { min-height: 66px; }
  .language-switcher button { padding: 0 9px; font-size: 12px; }
  .page { padding-top: 44px; }
  .link-grid { grid-template-columns: 1fr; }
  .link-card { min-height: 145px; }
  .footer-inner { padding: 24px 0; align-items: flex-start; flex-direction: column-reverse; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
