@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Manrope:wght@400;500;600;700;800&family=Noto+Serif+SC:wght@400;500;600;700;900&display=swap");

:root {
  color-scheme: dark;
  --ink: #f2ecdf;
  --bg: #10130f;
  --deep: #090b09;
  --panel: #171b16;
  --panel-2: #1e241d;
  --line: #363d32;
  --muted: #aaa99e;
  --amber: #e1a33c;
  --moss: #6da272;
  --blue: #77a6c7;
  --red: #c96c4f;
  --shadow: 0 28px 85px rgba(0,0,0,.48);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.55;
  background:
    radial-gradient(circle at 82% 4%, rgba(109,162,114,.13), transparent 27rem),
    radial-gradient(circle at 10% 22%, rgba(225,163,60,.08), transparent 25rem),
    var(--bg);
}
a { color: inherit; }
img { max-width: 100%; }
code, pre { font-family: "IBM Plex Mono", ui-monospace, monospace; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(54,61,50,.78);
  background: rgba(16,19,15,.86);
  backdrop-filter: blur(16px);
}
.nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 62px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { font-weight: 800; text-decoration: none; letter-spacing: -.03em; }
.brand span { color: var(--amber); }
.navlinks { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.navlinks a, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.navlinks a:hover { border-color: var(--line); background: rgba(255,255,255,.04); }
.button.primary { color: #17120a; background: var(--amber); border-color: var(--amber); }
.button.secondary { background: rgba(255,255,255,.035); border-color: var(--line); }
.lang { color: var(--muted); }

.hero {
  position: relative;
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
  padding: 72px 0 58px;
  display: grid;
  grid-template-columns: minmax(0,.82fr) minmax(460px,1.08fr);
  gap: 42px;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  left: -80px;
  top: 52px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(109,162,114,.14);
  border-radius: 49% 51% 45% 55%;
  transform: rotate(19deg);
  pointer-events: none;
}
.eyebrow { margin: 0 0 17px; color: var(--amber); font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.title-main { display: block; font-size: clamp(54px,7vw,88px); line-height: .92; letter-spacing: -.06em; }
.title-sub { display: block; margin: 0; color: var(--moss); font-size: clamp(21px,2.45vw,31px); line-height: 1.28; letter-spacing: -.025em; }
.lead { margin: 24px 0 0; max-width: 630px; color: #d1cbbc; font-size: clamp(17px,1.75vw,22px); line-height: 1.52; }
.lead strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 29px; }
.hero-media { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 20px; background: rgba(23,27,22,.86); box-shadow: var(--shadow); overflow: hidden; }
.hero-media img { display: block; width: 100%; border-radius: 13px; }
.hero-callout { margin-top: 10px; padding: 12px 14px; border-radius: 9px; background: #22281f; border: 1px solid #3a4336; color: #d9d2c4; font-size: 14px; }
.hero-callout strong { color: var(--amber); }

.metric-strip { background: var(--deep); border-block: 1px solid #232820; }
.metrics { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; background: #30362c; border-inline: 1px solid #30362c; }
.metric { min-height: 138px; padding: 22px; background: var(--deep); }
.metric strong { display: flex; align-items: baseline; gap: 11px; margin-bottom: 10px; line-height: 1; }
.metric-value { color: var(--ink); font-size: clamp(36px,4vw,54px); font-weight: 800; letter-spacing: -.055em; }
.metric-unit {
  color: #b6b8ae;
  font-family: Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(16px,1.45vw,19px);
  font-style: italic;
  font-weight: 600;
  letter-spacing: .01em;
  text-transform: lowercase;
}
.metric > span { display: block; color: #858a80; font-size: 13px; line-height: 1.42; }

.section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0; }
.section-head { display: grid; grid-template-columns: minmax(0,.9fr) minmax(280px,.72fr); gap: 38px; align-items: end; margin-bottom: 29px; }
h2 { margin: 0; font-size: clamp(35px,4.5vw,57px); line-height: 1.02; letter-spacing: -.045em; }
.section-head p, .body-copy { margin: 0; color: var(--muted); font-size: 17px; }

.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.card { min-height: 225px; padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, rgba(30,36,29,.96), rgba(20,24,19,.96)); }
.icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 20px; border: 1px solid #46503f; border-radius: 10px; color: var(--amber); background: #222820; font-family: "IBM Plex Mono", monospace; font-weight: 700; }
.card h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.2; }
.card p { margin: 0; color: var(--muted); }

.arch-band { border-block: 1px solid var(--line); background: #151914; }
.arch-grid { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0; display: grid; grid-template-columns: minmax(0,.68fr) minmax(460px,1fr); gap: 38px; align-items: center; }
.flow { display: grid; gap: 8px; }
.flow-step { position: relative; padding: 14px 16px 14px 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-family: "IBM Plex Mono", monospace; font-size: 14px; }
.flow-step::before { content: attr(data-n); position: absolute; left: 14px; top: 13px; display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: #17120a; background: var(--amber); font-size: 11px; font-weight: 700; }
.flow-step.engine { border-color: #4d694e; background: #192019; }
.flow-step.engine::before { background: var(--moss); }
.flow-note { margin: 11px 0 0; color: #8f9387; font-size: 13px; }

.gallery { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); gap: 18px; align-items: start; }
figure { margin: 0; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: var(--panel); box-shadow: 0 18px 50px rgba(0,0,0,.24); }
figure img { display: block; width: 100%; height: auto; }
figcaption { padding: 14px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
figcaption strong { color: var(--ink); }

.feature-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.feature { padding: 18px 19px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }
.feature strong { display: block; margin-bottom: 5px; color: var(--amber); }
.feature span { color: var(--muted); font-size: 14px; }

.run-band { background: var(--amber); color: #18130b; }
.run-grid { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0; display: grid; grid-template-columns: minmax(0,.64fr) minmax(470px,1fr); gap: 38px; align-items: center; }
.run-grid h2 { color: #18130b; }
.run-grid .body-copy { color: #5a3d14; }
.terminal { margin: 0; overflow-x: auto; padding: 23px; border-radius: 15px; color: #e9e3d8; background: #0e100d; box-shadow: 0 18px 45px rgba(74,45,5,.26); }
.terminal code { font-size: 14px; line-height: 1.72; }

.docs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.doc-link { min-height: 126px; padding: 19px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); text-decoration: none; }
.doc-link:hover { border-color: var(--amber); transform: translateY(-2px); }
.doc-link strong { display: block; margin-bottom: 8px; font-size: 18px; }
.doc-link span { color: var(--muted); font-size: 14px; }

.quote { margin: 0; padding: 24px 26px; border-left: 4px solid var(--moss); background: #171d17; color: #d7d2c5; font-size: clamp(19px,2.2vw,25px); line-height: 1.45; }
.quote strong { color: var(--moss); }
html[lang="zh-CN"] body {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, serif;
}
html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3,
html[lang="zh-CN"] .title-sub {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, serif;
}
html[lang="zh-CN"] h1 { gap: 17px; }
html[lang="zh-CN"] .title-sub {
  font-size: clamp(18px, 1.95vw, 25px);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: -.015em;
}
html[lang="zh-CN"] .lead {
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.68;
}
html[lang="zh-CN"] h2 {
  font-size: clamp(30px, 3.55vw, 47px);
  line-height: 1.2;
  letter-spacing: -.03em;
  text-wrap: balance;
}
html[lang="zh-CN"] .section-head p,
html[lang="zh-CN"] .body-copy {
  font-size: 16px;
  line-height: 1.72;
}
html[lang="zh-CN"] .metric-unit {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, serif;
  font-style: normal;
  letter-spacing: 0;
}
html[lang="zh-CN"] .feature strong { line-height: 1.4; }

footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 36px 0 50px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

@media (max-width: 930px) {
  .hero { width: min(100% - 40px,760px); grid-template-columns: 1fr; padding-top: 50px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cards { grid-template-columns: 1fr; }
  .section-head, .arch-grid, .run-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure:nth-child(2) { max-width: 620px; }
  .docs { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 650px) {
  .nav { width: min(100% - 24px,560px); }
  .navlinks a:not(.button):not(.lang) { display: none; }
  .hero { width: min(100% - 28px,560px); }
  h1 { font-size: 53px; }
  .section, .arch-grid, .run-grid { width: min(100% - 28px,560px); padding: 49px 0; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 112px; padding: 18px; }
  .metric-value { font-size: 34px; }
  .feature-list, .docs { grid-template-columns: 1fr; }
}
