:root {
  --ink: #071a2f;
  --ink-soft: #31465c;
  --navy: #0b2747;
  --blue: #1f62d5;
  --blue-soft: #eaf1ff;
  --mint: #18b690;
  --mint-soft: #dff8f0;
  --paper: #f6f8fb;
  --white: #ffffff;
  --line: #dce4ec;
  --shadow: 0 24px 70px rgba(7, 26, 47, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "DM Sans", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.zh { font-family: "Noto Sans SC", "DM Sans", sans-serif; }

a { color: inherit; }
button { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--white);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(220, 228, 236, 0.8);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(calc(100% - 40px), var(--max));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-family: "Manrope", "Noto Sans SC", sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.brand strong { color: var(--blue); }

.brand-mark {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  padding: 8px;
  border-radius: 10px;
  background: var(--ink);
}
.brand-mark i { display: block; width: 4px; border-radius: 3px; background: var(--mint); }
.brand-mark i:nth-child(1) { height: 7px; }
.brand-mark i:nth-child(2) { height: 13px; }
.brand-mark i:nth-child(3) { height: 18px; background: #71e2c5; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 160ms ease;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--blue); }

.language-toggle {
  min-width: 52px;
  padding: 8px 12px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
}
.lang-zh, body.zh .lang-en { display: none; }
body.zh .lang-zh { display: inline; }

.menu-button { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 108px 0 96px;
  background:
    radial-gradient(circle at 82% 10%, rgba(24, 182, 144, 0.15), transparent 27%),
    radial-gradient(circle at 5% 90%, rgba(31, 98, 213, 0.1), transparent 25%),
    linear-gradient(180deg, #fbfdff 0%, #f3f7fb 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: linear-gradient(rgba(7, 26, 47, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(7, 26, 47, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.hero-grid {
  position: relative;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 70px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 8px 12px;
  border: 1px solid #cfe9e1;
  border-radius: 999px;
  color: #08795e;
  background: rgba(223, 248, 240, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(24, 182, 144, 0.12); }

h1, h2, h3 { margin-top: 0; font-family: "Manrope", "Noto Sans SC", sans-serif; letter-spacing: -0.035em; }
h1 { max-width: 700px; margin-bottom: 24px; font-size: clamp(44px, 5.2vw, 72px); line-height: 1.04; }
h1 em { color: var(--blue); font-style: normal; }
.hero-copy > p { max-width: 590px; margin: 0 0 34px; color: var(--ink-soft); font-size: 18px; line-height: 1.7; }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--ink); box-shadow: 0 12px 28px rgba(7, 26, 47, 0.18); }
.button-secondary { border-color: var(--line); background: rgba(255, 255, 255, 0.8); }

.internal-note { margin-top: 24px; display: flex; align-items: center; gap: 10px; color: #597087; font-size: 13px; }
.lock-dot { width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 50%; color: #08795e; background: var(--mint-soft); font-weight: 800; }

.dashboard-card {
  position: relative;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transform: rotate(1.2deg);
}
.dashboard-card::after { content: ""; position: absolute; z-index: -1; right: -28px; bottom: -24px; width: 180px; height: 180px; border-radius: 50%; background: rgba(24, 182, 144, 0.16); filter: blur(2px); }
.dash-top { display: flex; justify-content: space-between; align-items: center; padding: 5px 4px 18px; }
.dash-title { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: #718397; }
.dash-title strong { color: var(--ink); font-size: 15px; }
.status { padding: 6px 9px; border-radius: 999px; color: #08795e; background: var(--mint-soft); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.metric { padding: 15px; border: 1px solid #e8edf3; border-radius: 14px; background: white; }
.metric span { color: #718397; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.metric strong { display: block; margin-top: 7px; font-family: "Manrope", sans-serif; font-size: 20px; }
.metric small { color: #0b9775; font-weight: 700; }
.chart { height: 190px; margin-top: 12px; padding: 22px 18px 14px; border-radius: 16px; background: var(--ink); }
.bars { height: 120px; display: flex; align-items: end; gap: 9px; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.bars i { flex: 1; min-width: 4px; border-radius: 5px 5px 1px 1px; background: linear-gradient(to top, var(--blue), #75a7ff); }
.bars i:nth-child(3n) { background: linear-gradient(to top, var(--mint), #72dfc3); }
.bars .h38 { height: 38%; }
.bars .h44 { height: 44%; }
.bars .h49 { height: 49%; }
.bars .h56 { height: 56%; }
.bars .h64 { height: 64%; }
.bars .h67 { height: 67%; }
.bars .h72 { height: 72%; }
.bars .h75 { height: 75%; }
.bars .h82 { height: 82%; }
.bars .h86 { height: 86%; }
.bars .h92 { height: 92%; }
.bars .h100 { height: 100%; }
.chart-labels { display: flex; justify-content: space-between; margin-top: 10px; color: #8298ae; font-size: 9px; }
.rule-card { margin-top: 12px; padding: 14px 15px; display: flex; align-items: center; gap: 12px; border: 1px solid #e8edf3; border-radius: 14px; background: white; }
.rule-icon { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: #0a8165; background: var(--mint-soft); font-weight: 900; }
.rule-copy { flex: 1; min-width: 0; }
.rule-copy strong, .rule-copy small { display: block; }
.rule-copy strong { font-size: 12px; }
.rule-copy small { margin-top: 3px; color: #718397; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toggle { width: 31px; height: 18px; padding: 3px; display: flex; justify-content: end; border-radius: 999px; background: var(--mint); }
.toggle::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: white; }

.section { padding: 104px 0; }
.section-tinted { background: var(--paper); }
.section-dark { color: white; background: var(--ink); }
.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.section-heading { max-width: 720px; margin-bottom: 50px; }
.section-heading.centered { margin-right: auto; margin-left: auto; text-align: center; }
.kicker { margin: 0 0 14px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.section-dark .kicker { color: #71e2c5; }
h2 { margin-bottom: 18px; font-size: clamp(32px, 4vw, 50px); line-height: 1.12; }
.section-heading > p:last-child { margin: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.7; }
.section-dark .section-heading > p:last-child { color: #afbfce; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { min-height: 250px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; transition: transform 180ms ease, box-shadow 180ms ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(7, 26, 47, 0.08); }
.feature-number { width: 42px; height: 42px; margin-bottom: 34px; display: grid; place-items: center; border-radius: 12px; color: var(--blue); background: var(--blue-soft); font-family: "Manrope", sans-serif; font-size: 13px; font-weight: 800; }
.feature-card:nth-child(2) .feature-number, .feature-card:nth-child(5) .feature-number { color: #08795e; background: var(--mint-soft); }
.feature-card h3 { margin-bottom: 12px; font-size: 19px; letter-spacing: -0.02em; }
.feature-card p { margin: 0; color: #5f7285; font-size: 14px; line-height: 1.65; }

.principles { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: center; }
.principle-list { display: grid; gap: 12px; }
.principle { display: grid; grid-template-columns: 44px 1fr; gap: 17px; padding: 22px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; background: rgba(255, 255, 255, 0.035); }
.principle > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: #71e2c5; background: rgba(24, 182, 144, 0.14); font-weight: 800; }
.principle h3 { margin-bottom: 6px; font-size: 16px; letter-spacing: -0.01em; }
.principle p { margin: 0; color: #9eb0c1; font-size: 13px; line-height: 1.6; }

.scope-panel { padding: 50px; display: grid; grid-template-columns: 1fr 0.82fr; gap: 50px; align-items: center; border: 1px solid #d8e6ee; border-radius: var(--radius-lg); background: linear-gradient(135deg, #f0f8ff, #effaf7); }
.scope-panel h2 { margin-bottom: 14px; font-size: clamp(30px, 3.4vw, 44px); }
.scope-panel p { margin: 0; color: var(--ink-soft); line-height: 1.7; }
.scope-list { display: grid; gap: 11px; }
.scope-item { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.9); border-radius: 12px; background: rgba(255,255,255,.76); font-size: 13px; font-weight: 600; }
.check { width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #08795e; background: var(--mint-soft); }

.page-hero { padding: 88px 0 64px; color: white; background: var(--ink); }
.page-hero .container { max-width: 880px; }
.page-hero h1 { max-width: 800px; margin-bottom: 18px; font-size: clamp(38px, 5vw, 62px); }
.page-hero p { max-width: 700px; margin: 0; color: #afbfce; font-size: 17px; line-height: 1.7; }
.legal-layout { width: min(calc(100% - 40px), 880px); margin: 0 auto; padding: 72px 0 110px; }
.legal-meta { margin: 0 0 42px; padding-bottom: 22px; border-bottom: 1px solid var(--line); color: #6c7f92; font-size: 13px; }
.legal-section { margin-bottom: 40px; }
.legal-section h2 { margin-bottom: 14px; font-size: 24px; letter-spacing: -0.02em; }
.legal-section h3 { margin: 24px 0 8px; font-size: 17px; letter-spacing: -0.01em; }
.legal-section p, .legal-section li { color: #40566c; font-size: 15px; line-height: 1.8; }
.legal-section ul { margin: 12px 0; padding-left: 22px; }
.legal-section a { color: var(--blue); }
.notice { padding: 20px 22px; border-left: 4px solid var(--mint); border-radius: 0 12px 12px 0; background: var(--mint-soft); }

.contact-card { padding: 44px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.contact-card h2 { margin-bottom: 10px; font-size: 30px; }
.contact-card p { margin: 0; color: var(--ink-soft); line-height: 1.7; }
.legal-section .email-link {
  padding: 14px 18px;
  border-radius: 12px;
  color: white;
  background: var(--blue);
  text-decoration: none;
  font-weight: 700;
}

.site-footer { padding: 58px max(20px, calc((100% - var(--max)) / 2)); color: #9eb0c1; background: #051321; }
.footer-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; padding-bottom: 42px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand-footer { color: white; }
.footer-main p { max-width: 390px; margin: 16px 0 0; font-size: 13px; line-height: 1.6; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: end; gap: 22px; }
.footer-links a { color: #c9d4df; text-decoration: none; font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 28px; font-size: 11px; line-height: 1.6; }
.footer-bottom p { max-width: 540px; margin: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .menu-button { width: 42px; height: 42px; padding: 10px; display: grid; gap: 4px; place-content: center; border: 1px solid var(--line); border-radius: 10px; background: white; }
  .menu-button > span:not(.sr-only) { width: 18px; height: 2px; display: block; background: var(--ink); }
  .site-nav { position: absolute; top: 68px; right: 20px; left: 20px; padding: 18px; display: none; flex-direction: column; align-items: stretch; gap: 0; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 8px; }
  .language-toggle { margin-top: 8px; align-self: start; }
  .hero { padding: 76px 0 72px; }
  .hero-grid, .principles { grid-template-columns: 1fr; gap: 52px; }
  .dashboard-card { max-width: 660px; transform: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .scope-panel { grid-template-columns: 1fr; padding: 38px; }
}

@media (max-width: 620px) {
  .nav-shell, .container, .hero-grid, .legal-layout { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 76px 0; }
  h1 { font-size: 42px; }
  .hero-copy > p { font-size: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .feature-number { margin-bottom: 24px; }
  .metric-row { grid-template-columns: 1fr 1fr; }
  .metric:last-child { display: none; }
  .dashboard-card { padding: 12px; }
  .scope-panel { padding: 28px 22px; }
  .contact-card { grid-template-columns: 1fr; padding: 28px; }
  .email-link { text-align: center; overflow-wrap: anywhere; }
  .footer-main, .footer-bottom { flex-direction: column; }
  .footer-links { justify-content: start; }
}

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