:root {
  --bg: #1a1a2e;
  --panel: rgba(35, 36, 58, 0.92);
  --panel-strong: rgba(47, 49, 88, 0.9);
  --text: rgba(255, 255, 255, 0.96);
  --muted: rgba(255, 255, 255, 0.7);
  --faint: rgba(255, 255, 255, 0.52);
  --coral: #ff6b6b;
  --mint: #4ecdc4;
  --acid: #ffe66d;
  --soft-mint: #95e1d3;
  --iris: #a388ee;
  --ink: #111222;
  --border: rgba(149, 225, 211, 0.34);
  --shadow: rgba(0, 0, 0, 0.38);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 107, 107, 0.28), transparent 30rem),
    radial-gradient(circle at 92% 12%, rgba(78, 205, 196, 0.22), transparent 28rem),
    radial-gradient(circle at 70% 90%, rgba(163, 136, 238, 0.22), transparent 34rem),
    linear-gradient(135deg, #161625 0%, #1a1a2e 52%, #111222 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: var(--soft-mint);
  text-decoration: none;
}

a:hover {
  color: var(--acid);
}

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 18, 34, 0.82);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow: 0 12px 28px var(--shadow);
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.05;
}

.brand span span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.language-control {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px dashed rgba(255, 230, 109, 0.55);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.language-control label {
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.language-control select {
  min-width: 112px;
  color: var(--text);
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.language-control option {
  color: #111222;
}

.hero {
  padding: 56px 0 28px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px dashed rgba(149, 225, 211, 0.42);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(35, 36, 58, 0.96), rgba(26, 26, 46, 0.86));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: auto -8% -28% 42%;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 230, 109, 0.22), transparent 68%);
  pointer-events: none;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.sticker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.sticker.mint { background: var(--mint); }
.sticker.acid { background: var(--acid); }
.sticker.coral { background: var(--coral); }
.sticker.iris { background: var(--iris); color: white; }

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.92;
  font-weight: 950;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--text);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
}

.hero-copy {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.hero-aside {
  position: relative;
  align-self: stretch;
  display: grid;
  gap: 14px;
}

.status-tile {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px dashed rgba(255, 255, 255, 0.16);
}

.status-tile strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 15px;
}

.status-tile span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 22px;
  align-items: start;
  padding: 18px 0 70px;
}

.toc {
  position: sticky;
  top: 98px;
  padding: 20px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px dashed rgba(255, 107, 107, 0.34);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.toc h2,
.legal-document h2 {
  margin: 0;
}

.toc h2 {
  font-size: 16px;
}

.toc-list {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.toc-list a {
  display: block;
  padding: 10px 12px;
  border-radius: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
  font-weight: 700;
}

.legal-document {
  display: grid;
  gap: 18px;
}

.legal-section,
.support-card {
  padding: clamp(20px, 3vw, 28px);
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.legal-section:nth-child(3n + 1),
.support-card:nth-child(3n + 1) {
  border-color: rgba(78, 205, 196, 0.36);
}

.legal-section:nth-child(3n + 2),
.support-card:nth-child(3n + 2) {
  border-color: rgba(255, 107, 107, 0.36);
}

.legal-section:nth-child(3n + 3),
.support-card:nth-child(3n + 3) {
  border-color: rgba(255, 230, 109, 0.32);
}

.legal-section h2,
.support-card h2 {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.25;
}

.legal-section p,
.support-card p,
.legal-section li,
.support-card li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.legal-section p,
.support-card p {
  margin: 0 0 12px;
}

.legal-section p:last-child,
.support-card p:last-child {
  margin-bottom: 0;
}

.content-list {
  display: grid;
  gap: 9px;
  margin: 12px 0;
  padding-left: 20px;
}

.callout {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  color: var(--text);
  background: rgba(255, 230, 109, 0.1);
  border: 1px dashed rgba(255, 230, 109, 0.36);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 14px;
  color: var(--ink);
  background: var(--acid);
  font-weight: 900;
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.site-footer {
  padding: 28px 0 44px;
  color: var(--faint);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-lang] {
  display: none;
}

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

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

.status-tile :is(strong, span)[data-lang] {
  display: none;
}

html[data-active-lang="en"] .status-tile :is(strong, span)[data-lang="en"],
html[data-active-lang="zh"] .status-tile :is(strong, span)[data-lang="zh"] {
  display: block;
}

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

@media (max-width: 880px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero-card,
  .content-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  h1 {
    font-size: clamp(40px, 14vw, 68px);
  }
}

@media (max-width: 520px) {
  .site-shell {
    width: min(100% - 24px, 1180px);
  }

  .nav-actions,
  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .language-control,
  .button {
    width: 100%;
  }

  .hero-card {
    padding: 22px;
    border-radius: 22px;
  }
}
