:root {
  color-scheme: light dark;
  --brand: #0066ff;
  --brand-hover: #0055dc;
  --brand-light: #2c82ff;
  --brand-soft: rgba(0, 102, 255, 0.10);
  --cyan: #20d8e8;
  --background: #f5f7fb;
  --surface: #ffffff;
  --surface-raised: rgba(255, 255, 255, 0.88);
  --text: #111827;
  --secondary: #5d6676;
  --tertiary: #8992a3;
  --border: rgba(17, 24, 39, 0.10);
  --code-bg: #0b1220;
  --code-text: #dce8ff;
  --success: #0aa56b;
  --shadow: 0 18px 55px rgba(14, 37, 80, 0.09);
  --shadow-small: 0 8px 24px rgba(14, 37, 80, 0.07);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #3385ff;
    --brand-hover: #67a4ff;
    --brand-light: #63a2ff;
    --brand-soft: rgba(0, 102, 255, 0.18);
    --background: #070a10;
    --surface: #121721;
    --surface-raised: rgba(18, 23, 33, 0.88);
    --text: #f5f7fb;
    --secondary: #a8b1c0;
    --tertiary: #7c8698;
    --border: rgba(255, 255, 255, 0.10);
    --code-bg: #090e18;
    --code-text: #dce8ff;
    --success: #33d69a;
    --shadow: none;
    --shadow-small: none;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 68% -8%, rgba(0, 102, 255, 0.18), transparent 31rem),
    radial-gradient(circle at 18% 20%, rgba(32, 216, 232, 0.08), transparent 24rem),
    var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.lang.en { display: none; }
body[data-language="en"] .lang.zh { display: none; }
body[data-language="en"] .lang.en { display: inline; }
body[data-language="zh-Hans"] .lang.zh { display: inline; }

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 12px 18px;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--background) 76%, transparent);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
}

.nav {
  width: min(100%, 1120px);
  min-height: 52px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--text);
  text-decoration: none;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.brand-mark {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--brand-light), var(--brand));
  box-shadow: 0 7px 18px rgba(0, 102, 255, 0.25);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 13px;
  height: 2px;
  border-radius: 99px;
  background: #fff;
}

.brand-mark::after {
  left: 11px;
  right: 11px;
  top: 8px;
  height: 12px;
  background: transparent;
  border: 2px solid #fff;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  padding: 8px 11px;
  border-radius: 9px;
  color: var(--secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 620;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: var(--brand-soft);
  outline: none;
}

.language-switcher {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-raised);
}

.language-switcher button {
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: transparent;
  color: var(--secondary);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.container { width: min(100% - 36px, 1120px); margin: 0 auto; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, 0.92fr);
  align-items: center;
  gap: clamp(40px, 7vw, 86px);
  min-height: 630px;
  padding: 82px 0 74px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 11px;
  border: 1px solid rgba(0, 102, 255, 0.18);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 720;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 16%, transparent);
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.gradient-text {
  color: var(--brand);
  background: linear-gradient(100deg, var(--brand), #0a7dff 58%, #10b9d6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--secondary);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow-small);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); border-color: rgba(0, 102, 255, 0.35); }
.button.primary { border-color: var(--brand); background: var(--brand); color: #fff; }
.button.primary:hover { background: var(--brand-hover); }
.button.small { min-height: 40px; padding: 8px 13px; border-radius: 10px; font-size: 14px; }

.hero-note { margin-top: 16px; color: var(--tertiary); font-size: 13px; }

.terminal {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 22px;
  background: var(--code-bg);
  color: var(--code-text);
  box-shadow: 0 30px 90px rgba(2, 13, 34, 0.34);
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.terminal::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 85% 5%, rgba(0, 102, 255, 0.25), transparent 38%);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #8390a8;
  font-size: 12px;
}

.terminal-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #febc2e; }
.terminal-dot:nth-child(3) { background: #28c840; }
.terminal-title { margin-left: auto; }

.terminal pre {
  position: relative;
  z-index: 1;
  min-height: 280px;
  margin: 0;
  padding: 30px 26px 34px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.82;
  white-space: pre-wrap;
}

.prompt { color: var(--cyan); }
.muted-code { color: #7f8ca4; }
.good-code { color: #5ce2aa; }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.hero-metric {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-raised);
  text-align: center;
}

.hero-metric strong { display: block; color: var(--brand); font-size: 1.14rem; }
.hero-metric span { color: var(--secondary); font-size: 12px; }

section { padding: 86px 0; scroll-margin-top: 76px; }
section.compact { padding-top: 54px; }
.section-tinted { border-block: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 46%, transparent); }

.section-heading {
  max-width: 720px;
  margin-bottom: 38px;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-description { margin: 14px 0 0; color: var(--secondary); font-size: 1.06rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 18px;
  font-weight: 800;
}

h3 { margin: 0 0 7px; font-size: 1.06rem; }
.feature-card p { margin: 0; color: var(--secondary); font-size: 14px; }

.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  counter-reset: steps;
}

.flow-step {
  position: relative;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  counter-increment: steps;
}

.flow-step::before {
  content: counter(steps, decimal-leading-zero);
  display: block;
  margin-bottom: 22px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.flow-step p { margin: 0; color: var(--secondary); font-size: 14px; }

.download-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.release-badge {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--secondary);
  font-size: 13px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.download-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.download-card-header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.os-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
  font-size: 12px;
}

.download-card-header h3 { margin: 0; }
.download-card-header p { margin: 2px 0 0; color: var(--secondary); font-size: 12px; }
.download-list { list-style: none; margin: 0; padding: 0; }

.download-list li + li { border-top: 1px solid var(--border); }

.download-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 12px 18px;
  text-decoration: none;
}

.download-link:hover { background: var(--brand-soft); }
.download-name { min-width: 0; flex: 1; }
.download-name strong { display: block; font-size: 14px; }
.download-name span { display: block; color: var(--secondary); font-size: 11px; }

.download-arrow {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
}

.download-extras {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.security-note {
  margin-top: 24px;
  padding: 17px 19px;
  border: 1px solid rgba(10, 165, 107, 0.22);
  border-radius: 14px;
  background: color-mix(in srgb, var(--success) 8%, var(--surface));
  color: var(--secondary);
  font-size: 14px;
}

.security-note strong { color: var(--text); }

.deploy-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 28px;
  align-items: start;
}

.deploy-points { display: grid; gap: 12px; }
.deploy-point { display: flex; align-items: flex-start; gap: 12px; color: var(--secondary); }

.check {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.code-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: var(--code-bg);
  color: var(--code-text);
}

.code-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 45px;
  padding: 0 14px 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #8d99ad;
  font-size: 12px;
}

.copy-button {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.05);
  color: #bdc8da;
  font: inherit;
  cursor: pointer;
}

.copy-button:hover { background: rgba(255, 255, 255, 0.10); color: #fff; }
.code-card pre { margin: 0; padding: 20px; overflow: auto; font-size: 12px; line-height: 1.75; }

.code-stack { display: grid; gap: 14px; }

.open-source-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(0, 102, 255, 0.24);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--brand-soft), var(--surface) 68%);
}

.open-source-card::after {
  content: "</>";
  position: absolute;
  right: 22%;
  top: -28px;
  color: var(--brand-soft);
  font-family: "SFMono-Regular", monospace;
  font-size: 9rem;
  font-weight: 900;
  transform: rotate(-8deg);
  pointer-events: none;
}

.open-source-copy { position: relative; z-index: 1; max-width: 700px; }
.open-source-copy p { margin: 13px 0 0; color: var(--secondary); }
.open-source-action { position: relative; z-index: 1; }

.faq { display: grid; gap: 10px; }

details {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

summary {
  padding: 17px 19px;
  cursor: pointer;
  font-weight: 680;
}

details p { margin: 0; padding: 0 19px 18px; color: var(--secondary); font-size: 14px; }

footer {
  padding: 34px 0 42px;
  border-top: 1px solid var(--border);
  color: var(--secondary);
  font-size: 13px;
}

.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--brand); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 58px; }
  .terminal { max-width: 680px; transform: none; }
  .feature-grid, .download-grid { grid-template-columns: 1fr 1fr; }
  .feature-card:last-child, .download-card:last-child { grid-column: 1 / -1; }
  .deploy-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-wrap { padding-inline: 10px; }
  .nav { gap: 10px; }
  .brand-text { display: none; }
  .nav-links { overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { padding-inline: 9px; }
  .container { width: min(100% - 24px, 1120px); }
  .hero { padding: 44px 0 54px; gap: 38px; }
  h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
  section { padding: 66px 0; }
  .feature-grid, .flow, .download-grid { grid-template-columns: 1fr; }
  .feature-card:last-child, .download-card:last-child { grid-column: auto; }
  .download-toolbar { align-items: flex-start; flex-direction: column; }
  .open-source-card { grid-template-columns: 1fr; }
  .open-source-card::after { right: -20px; }
  .footer-row { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .nav-links a:nth-child(4) { display: none; }
  .language-switcher button { padding: 6px 8px; }
  .actions .button { width: 100%; }
  .hero-metrics { grid-template-columns: 1fr; }
  .hero-metric { display: flex; align-items: center; justify-content: space-between; }
  .terminal pre { min-height: 240px; padding: 22px 18px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
