/* ==========================================================================
   Tiance · 天策 官网样式
   Dark / gold / precision. 单一强调色 + 极细结构线。
   ========================================================================== */

/* ---------- 1. tokens ---------- */
:root {
  --bg: #07080a;
  --bg-soft: #0a0c0f;
  --bg-elev: #0d1014;
  --panel: #0e1116;
  --panel-2: #12161c;
  --line: rgba(255, 255, 255, 0.075);
  --line-soft: rgba(255, 255, 255, 0.045);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #eceef2;
  --text-2: rgba(236, 238, 242, 0.66);
  --text-3: rgba(236, 238, 242, 0.4);
  --text-4: rgba(236, 238, 242, 0.24);
  --gold: #d9a05f;
  --gold-2: #f3cd92;
  --gold-3: #b47c3c;
  --gold-dim: rgba(217, 160, 95, 0.12);
  --gold-line: rgba(217, 160, 95, 0.34);
  --ok: #7fc99a;
  --warn: #e3b25f;
  --err: #e08a82;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas, "Liberation Mono",
    Menlo, monospace;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Songti SC", "STSong", "SimSun", serif;
  --max: 1240px;
  --nav-h: 72px;
  --radius: 3px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(217, 160, 95, 0.07), transparent 62%),
    radial-gradient(700px 420px at 4% 18%, rgba(120, 140, 180, 0.035), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 78%);
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
::selection {
  background: rgba(217, 160, 95, 0.78);
  color: #17110a;
}
:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
code,
pre,
.mono {
  font-family: var(--font-mono);
  font-variant-ligatures: none;
}

/* ---------- 3. layout ---------- */
.wrap {
  width: min(var(--max), calc(100% - 64px));
  margin-inline: auto;
}
.wrap-narrow {
  width: min(880px, calc(100% - 64px));
  margin-inline: auto;
}
.section {
  position: relative;
  padding: 132px 0;
}
.section + .section {
  border-top: 1px solid var(--line-soft);
}
.section-head {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 42px;
  margin-bottom: 64px;
}
.section-head .kicker {
  padding-top: 10px;
}
.kicker {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.5;
}
.kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  margin-top: 7px;
  background: var(--gold);
  opacity: 0.7;
  flex: none;
}
.kicker.plain::before {
  display: none;
}
.section-title {
  font-size: clamp(30px, 3.9vw, 54px);
  line-height: 1.14;
  letter-spacing: -0.035em;
  font-weight: 650;
  text-wrap: pretty;
}
.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-2);
  letter-spacing: -0.01em;
}
.section-desc {
  margin-top: 22px;
  max-width: 660px;
  color: var(--text-2);
  font-size: 16.5px;
  line-height: 1.85;
}
.section-desc strong {
  color: var(--text);
  font-weight: 600;
}
.section-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-4);
  letter-spacing: 0.14em;
}

/* ---------- 4. header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(7, 8, 10, 0.82);
  border-bottom-color: var(--line-soft);
  backdrop-filter: blur(18px) saturate(1.2);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-line);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1;
  background: linear-gradient(145deg, rgba(217, 160, 95, 0.16), rgba(217, 160, 95, 0.02));
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease);
}
.brand-mark img {
  width: 17px;
  height: 17px;
  display: block;
  filter: drop-shadow(0 0 6px rgba(244, 248, 255, 0.14));
}
.brand:hover .brand-mark {
  border-color: rgba(217, 160, 95, 0.6);
  background: linear-gradient(145deg, rgba(217, 160, 95, 0.22), rgba(217, 160, 95, 0.04));
}
.brand-text {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.06em;
}
.brand-text em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text-3);
  margin-left: 7px;
  letter-spacing: 0.02em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13.5px;
  color: var(--text-2);
}
.site-nav > a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.site-nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.site-nav > a:hover {
  color: var(--text);
}
.site-nav > a:hover::after,
.site-nav > a[aria-current="page"]::after {
  transform: scaleX(1);
}
.site-nav > a[aria-current="page"] {
  color: var(--gold-2);
}
.nav-github {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--text-3) !important;
}
.nav-github:hover {
  color: var(--gold-2) !important;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border: 1px solid var(--gold-line);
  color: var(--gold-2) !important;
  background: rgba(217, 160, 95, 0.06);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-cta::after {
  display: none;
}
.nav-cta span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--gold);
  opacity: 0.8;
  padding-left: 9px;
  border-left: 1px solid var(--gold-line);
}
.nav-cta:hover {
  background: rgba(217, 160, 95, 0.12);
  border-color: rgba(217, 160, 95, 0.55);
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
}
.nav-toggle i {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--text);
  position: relative;
}
.nav-toggle i::before,
.nav-toggle i::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1px;
  background: var(--text);
}
.nav-toggle i::before {
  top: -5px;
}
.nav-toggle i::after {
  top: 5px;
}

/* ---------- 5. buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease),
    color 0.22s var(--ease), transform 0.22s var(--ease);
}
.btn:hover {
  border-color: var(--gold-line);
  background: rgba(217, 160, 95, 0.07);
  color: var(--gold-2);
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #17110a;
  font-weight: 650;
}
.btn-primary:hover {
  background: var(--gold-2);
  border-color: var(--gold-2);
  color: #17110a;
}
.btn-ghost {
  border-color: transparent;
  color: var(--text-2);
  padding-inline: 4px;
}
.btn-ghost:hover {
  background: transparent;
  color: var(--gold-2);
}
.btn .badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border: 1px solid var(--gold-line);
  color: var(--gold);
  background: rgba(217, 160, 95, 0.08);
}
.arrow {
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1;
  transform: translateY(-1px);
}

/* ---------- 6. hero ---------- */
.hero {
  position: relative;
  min-height: 94svh;
  padding: calc(var(--nav-h) + 70px) 0 88px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
html.flat-hero .hero {
  min-height: auto;
  padding-top: calc(var(--nav-h) + 54px);
  padding-bottom: 64px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 92px 92px;
  background-position: center top;
  mask-image: radial-gradient(ellipse 78% 62% at 52% 32%, #000 8%, transparent 74%);
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 52% 32%, #000 8%, transparent 74%);
}
.hero::after {
  content: "";
  position: absolute;
  width: 760px;
  height: 760px;
  right: -160px;
  top: -180px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(217, 160, 95, 0.13), transparent 62%);
  filter: blur(10px);
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 64px;
}
.hero-copy {
  max-width: 620px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 30px;
}
.eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 160, 95, 0.12);
  animation: pulse 3.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.hero-title {
  font-size: clamp(64px, 8.6vw, 116px);
  line-height: 0.94;
  letter-spacing: -0.055em;
  font-weight: 700;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-title .en {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.5vw, 34px);
  letter-spacing: 0.04em;
  color: var(--text-3);
  padding-bottom: 12px;
}
.hero-lede {
  margin-top: 30px;
  font-size: clamp(20px, 2.1vw, 27px);
  line-height: 1.55;
  letter-spacing: -0.015em;
  color: var(--text);
  font-weight: 500;
}
.hero-lede em {
  font-style: normal;
  color: var(--gold-2);
}
.hero-sub {
  margin-top: 18px;
  max-width: 540px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.9;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 44px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-meta span {
  position: relative;
  padding: 12px 18px 12px 0;
  margin-right: 18px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  text-transform: uppercase;
}
.hero-meta span + span::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 50%;
  width: 1px;
  height: 12px;
  transform: translateY(-50%);
  background: var(--line);
}
.hero-meta span:last-child {
  margin-right: 0;
}
.hero-meta b {
  color: var(--gold-2);
  font-weight: 500;
}

/* ---------- 7. workbench visual ---------- */
.hero-visual {
  position: relative;
  min-width: 0;
}
.workbench {
  position: relative;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #0e1116, #0a0c10);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(217, 160, 95, 0.045);
  font-size: 11.5px;
  line-height: 1.5;
  overflow: hidden;
}
.workbench::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.045), transparent 34%);
}
.wb-titlebar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  color: var(--text-3);
}
.wb-dots {
  display: flex;
  gap: 5px;
}
.wb-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.wb-dots i:first-child {
  background: rgba(224, 138, 130, 0.6);
}
.wb-dots i:nth-child(2) {
  background: rgba(227, 178, 95, 0.55);
}
.wb-dots i:nth-child(3) {
  background: rgba(127, 201, 154, 0.5);
}
.wb-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
}
.wb-zoom {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-4);
}
.wb-body {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr) 196px;
  min-height: 404px;
}
.wb-side {
  border-right: 1px solid var(--line);
  padding: 11px 8px;
  background: rgba(255, 255, 255, 0.012);
}
.wb-side-title,
.wb-main-head {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 9px;
}
.wb-project {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 6px;
  color: var(--text-3);
  border-left: 1px solid transparent;
  white-space: nowrap;
  overflow: hidden;
}
.wb-project small {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--text-4);
}
.wb-project.active {
  color: var(--gold-2);
  border-left-color: var(--gold);
  background: rgba(217, 160, 95, 0.07);
}
.st {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  flex: none;
  background: var(--text-4);
}
.st.running {
  background: var(--gold);
  box-shadow: 0 0 0 2px rgba(217, 160, 95, 0.14);
  animation: pulse 2.2s ease-in-out infinite;
}
.st.idle {
  background: rgba(127, 201, 154, 0.55);
}
.st.error {
  background: var(--err);
}
.wb-main {
  padding: 10px 12px;
  min-width: 0;
  border-right: 1px solid var(--line);
}
.wb-main-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wb-pill {
  font-size: 8px;
  letter-spacing: 0.04em;
  color: var(--gold);
  border: 1px solid var(--gold-line);
  padding: 1px 5px;
  background: rgba(217, 160, 95, 0.07);
}
.wb-session {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 8px 8px;
  margin-bottom: 4px;
  border: 1px solid transparent;
  color: var(--text-2);
}
.wb-session.active {
  border-color: rgba(217, 160, 95, 0.28);
  background: linear-gradient(90deg, rgba(217, 160, 95, 0.09), rgba(217, 160, 95, 0.015));
}
.wb-session b {
  display: block;
  font-weight: 550;
  font-size: 11px;
  color: var(--text);
}
.wb-session small {
  display: block;
  font-size: 9.5px;
  color: var(--text-4);
  margin-top: 2px;
}
.wb-time {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--text-4);
}
.wb-grid {
  position: relative;
  margin-top: 12px;
  height: 150px;
  border: 1px solid var(--line);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 25% 25%;
  overflow: hidden;
}
.wb-grid .cell {
  position: absolute;
  border: 1px solid rgba(217, 160, 95, 0);
  transition: all 0.55s var(--ease);
}
.wb-grid .cell.on {
  border-color: rgba(217, 160, 95, 0.95);
  border-width: 2px;
  background: rgba(217, 160, 95, 0.18);
  box-shadow: 0 0 22px rgba(217, 160, 95, 0.28), inset 0 0 18px rgba(217, 160, 95, 0.12);
}
.wb-grid .cross-h,
.wb-grid .cross-v {
  position: absolute;
  background: rgba(217, 160, 95, 0.5);
  transition: all 0.55s var(--ease);
}
.wb-grid .cross-h {
  height: 1px;
  left: 0;
  right: 0;
}
.wb-grid .cross-v {
  width: 1px;
  top: 0;
  bottom: 0;
}
.wb-coord {
  position: absolute;
  right: 6px;
  bottom: 5px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  color: var(--gold);
  background: rgba(7, 8, 10, 0.8);
  padding: 2px 5px;
  border: 1px solid rgba(217, 160, 95, 0.22);
}
.wb-chat {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: rgba(255, 255, 255, 0.008);
}
.wb-msg {
  padding: 7px 9px;
  font-size: 9.8px;
  line-height: 1.6;
  color: var(--text-2);
  border: 1px solid var(--line-soft);
}
.wb-msg.user {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.wb-msg.ai {
  border-color: rgba(217, 160, 95, 0.16);
  background: rgba(217, 160, 95, 0.045);
}
.wb-tool {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px dashed rgba(217, 160, 95, 0.3);
  background: rgba(217, 160, 95, 0.04);
  font-family: var(--font-mono);
  font-size: 8.8px;
  color: var(--gold-2);
}
.wb-tool-name {
  color: var(--gold);
}
.wb-tool-arg {
  color: var(--text-3);
}
.wb-ok {
  margin-left: auto;
  color: var(--ok);
}
.wb-composer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  color: var(--text-4);
  font-size: 9.5px;
}
.wb-composer .send {
  margin-left: auto;
  width: 12px;
  height: 12px;
  background: var(--gold);
  opacity: 0.85;
}
.wb-note {
  margin-top: 12px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--text-4);
}

/* ---------- 8. philosophy cards ---------- */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.phil-card {
  position: relative;
  padding: 36px 30px 34px;
  background: var(--bg-soft);
  min-height: 290px;
  display: flex;
  flex-direction: column;
  transition: background 0.35s var(--ease);
}
.phil-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent 70%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.phil-card:hover {
  background: var(--panel);
}
.phil-card:hover::before {
  transform: scaleX(1);
}
.phil-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.phil-card h3 {
  margin-top: 26px;
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.phil-card .en {
  display: block;
  margin-top: 7px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}
.phil-card p {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.85;
}
.phil-card .phil-foot {
  margin-top: auto;
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--text-4);
}
.phil-card .phil-foot b {
  color: var(--gold);
  font-weight: 400;
}

/* ---------- 9. parallel / matrix ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 72px;
  align-items: center;
}
.split.reverse {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}
.split-copy .section-title {
  font-size: clamp(30px, 3.6vw, 46px);
}
.feature-list {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}
.feature-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.feature-list .n {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold);
  padding-top: 3px;
}
.feature-list b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.feature-list span {
  display: block;
  margin-top: 4px;
  color: var(--text-3);
  font-size: 12.8px;
  line-height: 1.7;
}
.matrix {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 20px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
.matrix-head,
.matrix-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px 64px 64px;
  align-items: center;
  gap: 8px;
}
.matrix-head {
  padding: 0 10px 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-4);
}
.matrix-head span:not(:first-child) {
  text-align: center;
}
.matrix-row {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.2s var(--ease);
}
.matrix-row:hover {
  background: rgba(255, 255, 255, 0.018);
}
.matrix-row:last-child {
  border-bottom: 0;
}
.matrix-name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--text-2);
  min-width: 0;
}
.matrix-name b {
  color: var(--text);
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.matrix-name small {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--text-4);
}
.matrix-cells {
  display: flex;
  justify-content: center;
  gap: 4px;
}
.mcell {
  width: 9px;
  height: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.mcell.on {
  background: rgba(127, 201, 154, 0.55);
  border-color: rgba(127, 201, 154, 0.2);
}
.mcell.run {
  background: var(--gold);
  border-color: rgba(217, 160, 95, 0.35);
  box-shadow: 0 0 10px rgba(217, 160, 95, 0.25);
}
.mcell.err {
  background: var(--err);
  border-color: rgba(224, 138, 130, 0.3);
}
.matrix-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-4);
  letter-spacing: 0.04em;
}
.legend {
  display: flex;
  gap: 14px;
}
.legend i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  vertical-align: 1px;
}
.legend .l-run {
  background: var(--gold);
}
.legend .l-idle {
  background: rgba(127, 201, 154, 0.55);
}
.legend .l-err {
  background: var(--err);
}

/* ---------- 10. tool categories ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.cat-card {
  position: relative;
  padding: 24px 20px 22px;
  background: var(--bg-soft);
  min-height: 154px;
  display: flex;
  flex-direction: column;
  transition: background 0.3s var(--ease);
}
.cat-card:hover {
  background: var(--panel);
}
.cat-card .cat-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.06em;
}
.cat-card h3 {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.cat-card .cat-en {
  margin-top: 3px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 11.5px;
  color: var(--text-4);
}
.cat-card .cat-tools {
  margin-top: auto;
  padding-top: 16px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-3);
}
.dynamic-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  margin-top: 54px;
  padding: 30px 32px;
  border: 1px solid var(--line);
  background: linear-gradient(110deg, rgba(217, 160, 95, 0.06), rgba(255, 255, 255, 0.012) 55%);
}
.dynamic-band h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.dynamic-band p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.8;
}
.dynamic-band .flow-arrow {
  text-align: center;
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 18px;
}
.dynamic-stats {
  display: flex;
  gap: 28px;
  margin-top: 16px;
}
.dynamic-stats b {
  display: block;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 400;
  color: var(--gold-2);
  letter-spacing: -0.02em;
}
.dynamic-stats span {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--text-4);
  letter-spacing: 0.06em;
}
.dynamic-code {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.9;
  color: var(--text-2);
  border-left: 1px solid var(--gold-line);
  padding-left: 18px;
}
.dynamic-code .c {
  color: var(--text-4);
}
.dynamic-code .k {
  color: var(--gold-2);
}
.dynamic-code .v {
  color: var(--text-3);
}

/* ---------- 11. tool showcase ---------- */
.showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.tool-card {
  position: relative;
  background: var(--bg-soft);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background 0.3s var(--ease);
}
.tool-card:hover {
  background: var(--panel);
}
.tool-visual {
  height: 188px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(420px 160px at 50% 110%, rgba(217, 160, 95, 0.07), transparent 70%),
    #0a0c10;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.tool-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 78%);
}
.tool-body {
  padding: 28px 28px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tool-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.tool-tag .dot {
  width: 4px;
  height: 4px;
  background: var(--gold);
}
.tool-card h3 {
  margin-top: 15px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.tool-card h3 code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  font-weight: 400;
  margin-left: 8px;
}
.tool-card p {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.85;
}
.tool-points {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tool-points span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--text-3);
  border: 1px solid var(--line);
  padding: 3px 7px;
}
.tool-more {
  margin-top: auto;
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-4);
  letter-spacing: 0.06em;
}

/* svg mini diagrams */
.diagram {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}
.diagram text {
  font-family: var(--font-mono);
  fill: rgba(236, 238, 242, 0.45);
  font-size: 7px;
  letter-spacing: 0.04em;
}
.diagram .gold {
  stroke: #d9a05f;
}
.diagram .gold-fill {
  fill: rgba(217, 160, 95, 0.14);
}
.diagram .line {
  stroke: rgba(255, 255, 255, 0.16);
  fill: none;
}
.diagram .line-soft {
  stroke: rgba(255, 255, 255, 0.08);
  fill: none;
}
.diagram .box {
  fill: rgba(255, 255, 255, 0.025);
  stroke: rgba(255, 255, 255, 0.13);
}
.diagram .box-gold {
  fill: rgba(217, 160, 95, 0.09);
  stroke: rgba(217, 160, 95, 0.45);
}
.diagram .txt-gold {
  fill: #f3cd92;
}
.diagram .txt {
  fill: rgba(236, 238, 242, 0.6);
}
.diagram .txt-dim {
  fill: rgba(236, 238, 242, 0.3);
}

/* ---------- 12. architecture ---------- */
.arch-board {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 34px;
  position: relative;
  overflow: hidden;
}
.arch-board::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at center, #000, transparent 82%);
}
.arch-layer {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: rgba(10, 12, 15, 0.72);
  margin-bottom: 12px;
}
.arch-layer:last-child {
  margin-bottom: 0;
}
.arch-layer .layer-id {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--text-4);
  text-transform: uppercase;
}
.arch-layer .layer-id b {
  display: block;
  margin-top: 3px;
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--text);
  font-weight: 600;
}
.arch-layer .layer-body {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.arch-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--text-2);
  border: 1px solid var(--line);
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.018);
}
.arch-chip.hot {
  color: var(--gold-2);
  border-color: var(--gold-line);
  background: rgba(217, 160, 95, 0.07);
}
.arch-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 28px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-4);
  letter-spacing: 0.08em;
}
.arch-connector::before,
.arch-connector::after {
  content: "";
  width: 1px;
  height: 100%;
  background: var(--line);
}
.arch-stack {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 26px;
}
.stack-item {
  background: var(--bg-soft);
  padding: 18px 16px;
}
.stack-item .s-index {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.stack-item b {
  display: block;
  margin-top: 9px;
  font-size: 13.5px;
  font-weight: 600;
}
.stack-item span {
  display: block;
  margin-top: 4px;
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.65;
}
.tree {
  margin: 0;
  padding: 26px 28px;
  border: 1px solid var(--line);
  background: #090b0e;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 2;
  color: var(--text-3);
  overflow-x: auto;
}
.tree .dir {
  color: var(--gold-2);
}
.tree .file {
  color: var(--text-2);
}
.tree .note {
  color: var(--text-4);
}
.tree .hl {
  color: var(--gold);
}
.port-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-3);
}
.port-flow .p {
  border: 1px solid var(--line);
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.018);
}
.port-flow .p b {
  color: var(--gold-2);
  font-weight: 500;
}
.port-flow .a {
  color: var(--gold);
}

/* ---------- 13. transparency ---------- */
.trans-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.trans-item {
  background: var(--bg-soft);
  padding: 28px 24px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}
.trans-item .t-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-line);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(217, 160, 95, 0.06);
}
.trans-item h3 {
  margin-top: 22px;
  font-size: 15.5px;
  font-weight: 600;
}
.trans-item p {
  margin-top: 9px;
  color: var(--text-3);
  font-size: 12.5px;
  line-height: 1.8;
}
.trans-quote {
  margin-top: 46px;
  padding: 30px 34px;
  border-left: 1px solid var(--gold);
  background: linear-gradient(90deg, rgba(217, 160, 95, 0.06), transparent 70%);
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.9vw, 22px);
  line-height: 1.75;
  color: var(--text);
}
.trans-quote small {
  display: block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-4);
}

/* ---------- 14. CTA ---------- */
.cta {
  position: relative;
  padding: 150px 0;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000, transparent 75%);
}
.cta::after {
  content: "";
  position: absolute;
  width: 700px;
  height: 300px;
  left: 50%;
  bottom: -160px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(217, 160, 95, 0.14), transparent 65%);
}
.cta .wrap {
  position: relative;
  z-index: 1;
}
.cta .kicker {
  justify-content: center;
}
.cta .kicker::before {
  display: none;
}
.cta h2 {
  margin-top: 26px;
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-weight: 650;
}
.cta h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-2);
}
.cta p {
  margin: 24px auto 0;
  max-width: 560px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.85;
}
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}
.cta-note {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-4);
}

/* ---------- 15. footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #060709;
  padding: 56px 0 34px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}
.footer-brand p {
  margin-top: 12px;
  max-width: 360px;
  color: var(--text-3);
  font-size: 12.5px;
  line-height: 1.8;
}
.footer-cols {
  display: flex;
  gap: 72px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-4);
  font-weight: 400;
}
.footer-col ul {
  margin-top: 14px;
  display: grid;
  gap: 9px;
}
.footer-col a {
  font-size: 12.5px;
  color: var(--text-3);
  transition: color 0.2s var(--ease);
}
.footer-col a:hover {
  color: var(--gold-2);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  color: var(--text-4);
}
.footer-bottom .ver {
  color: var(--gold);
}
.footer-bottom a {
  color: var(--text-3);
}
.footer-bottom a:hover {
  color: var(--gold-2);
}

/* ---------- 16. subpage hero ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 92px) 0 76px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: radial-gradient(ellipse 70% 100% at 30% 0%, #000, transparent 72%);
}
.page-hero .wrap {
  position: relative;
  z-index: 1;
}
.page-hero .kicker {
  margin-bottom: 26px;
}
.page-hero h1 {
  font-size: clamp(42px, 6.4vw, 86px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 680;
  max-width: 980px;
}
.page-hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-2);
}
.page-hero .page-lede {
  margin-top: 28px;
  max-width: 720px;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.9;
}
.page-hero .page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-4);
  text-transform: uppercase;
}
.page-hero .page-meta b {
  color: var(--gold);
  font-weight: 400;
}

/* ---------- 17. prose ---------- */
.prose {
  max-width: 760px;
}
.prose h2 {
  margin: 78px 0 22px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 650;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h2 .idx {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 400;
}
.prose h3 {
  margin: 44px 0 14px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.prose p {
  margin: 0 0 20px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 2;
}
.prose p strong {
  color: var(--text);
  font-weight: 600;
}
.prose p em {
  font-style: normal;
  color: var(--gold-2);
}
.prose blockquote {
  margin: 34px 0;
  padding: 22px 28px;
  border-left: 1px solid var(--gold);
  background: linear-gradient(90deg, rgba(217, 160, 95, 0.06), transparent 70%);
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.8;
  color: var(--text);
}
.prose ul {
  margin: 0 0 22px;
  padding-left: 0;
}
.prose ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 11px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.9;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 7px;
  height: 1px;
  background: var(--gold);
}
.prose code {
  font-size: 0.88em;
  padding: 2px 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--gold-2);
}
.prose .note {
  margin: 28px 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-3);
}
.prose .note b {
  color: var(--gold-2);
  font-weight: 500;
}
.prose-figure {
  margin: 40px 0;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 26px;
}
.prose-figure .fig-cap {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--text-4);
}
.two-col-prose {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: start;
}
.sticky-aside {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}
.aside-nav {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.aside-nav a {
  display: block;
  padding: 7px 0;
  font-size: 12.5px;
  color: var(--text-3);
  transition: color 0.2s var(--ease);
}
.aside-nav a:hover {
  color: var(--gold-2);
}
.aside-nav .aside-title {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 12px;
}

/* ---------- 18. tool directory table ---------- */
.tool-dir {
  border: 1px solid var(--line);
}
.tool-dir-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}
.tool-dir-head h3 {
  font-size: 15px;
  font-weight: 600;
}
.tool-dir-head span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.tool-rows {
  display: grid;
}
.tool-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 92px 56px;
  gap: 18px;
  align-items: baseline;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.2s var(--ease);
}
.tool-row:last-child {
  border-bottom: 0;
}
.tool-row:hover {
  background: rgba(255, 255, 255, 0.018);
}
.tool-row .t-name {
  font-size: 13.5px;
  font-weight: 550;
  color: var(--text);
}
.tool-row .t-name code {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-4);
  font-weight: 400;
}
.tool-row .t-desc {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-3);
}
.tool-row .t-runtime,
.tool-row .t-load {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--text-4);
}
.tool-row .t-load.on {
  color: var(--gold);
}
.tool-cat-block {
  margin-bottom: 46px;
}
.tool-cat-block:last-child {
  margin-bottom: 0;
}

/* ---------- 19. download page ---------- */
.download-card {
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(217, 160, 95, 0.07), rgba(255, 255, 255, 0.012) 45%, rgba(255, 255, 255, 0.01));
  padding: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.download-card::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -180px;
  background: radial-gradient(circle, rgba(217, 160, 95, 0.12), transparent 65%);
}
.download-card .dl-main {
  position: relative;
}
.download-card h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 650;
}
.download-card h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-2);
}
.download-card p {
  margin-top: 16px;
  max-width: 520px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.9;
}
.dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.dl-meta {
  position: relative;
  border-left: 1px solid var(--line);
  padding-left: 34px;
  display: grid;
  gap: 18px;
}
.dl-meta .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-4);
}
.dl-meta .row b {
  color: var(--text-2);
  font-weight: 400;
}
.dl-meta .row .gold {
  color: var(--gold-2);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--gold);
  border: 1px solid var(--gold-line);
  padding: 5px 10px;
  background: rgba(217, 160, 95, 0.06);
}
.status-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2.6s ease-in-out infinite;
}
.roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.roadmap-item {
  background: var(--bg-soft);
  padding: 28px 26px;
}
.roadmap-item .r-phase {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.roadmap-item h3 {
  margin-top: 16px;
  font-size: 17px;
  font-weight: 600;
}
.roadmap-item p {
  margin-top: 9px;
  color: var(--text-3);
  font-size: 12.5px;
  line-height: 1.8;
}

/* ---------- 20. 404 ---------- */
.notfound {
  min-height: 78vh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 60px) 0 80px;
  text-align: center;
}
.notfound .code {
  font-family: var(--font-mono);
  font-size: clamp(80px, 16vw, 180px);
  line-height: 1;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(217, 160, 95, 0.35);
}
.notfound h1 {
  margin-top: 18px;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.notfound p {
  margin-top: 12px;
  color: var(--text-3);
  font-size: 14px;
}
.notfound .actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- 21. toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 120;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 20px;
  border: 1px solid var(--gold-line);
  background: rgba(10, 12, 15, 0.96);
  color: var(--gold-2);
  font-size: 13px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 22. reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- 23. responsive ---------- */
@media (max-width: 1120px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .hero-copy {
    max-width: 760px;
  }
  .hero-visual {
    max-width: 680px;
  }
  .section-head {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 30px;
  }
  .cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .trans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .two-col-prose {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .sticky-aside {
    position: static;
  }
  .download-card {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .dl-meta {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 26px;
  }
}
@media (max-width: 860px) {
  :root {
    --nav-h: 64px;
  }
  .wrap,
  .wrap-narrow {
    width: calc(100% - 40px);
  }
  .section {
    padding: 92px 0;
  }
  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 42px;
  }
  .section-head .kicker {
    padding-top: 0;
  }
  .site-nav {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 20px 24px;
    background: rgba(7, 8, 10, 0.98);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
  }
  .site-header.is-open .site-nav {
    display: flex;
  }
  .site-nav > a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 15px;
  }
  .site-nav > a::after {
    display: none;
  }
  .nav-cta {
    margin-top: 14px;
    justify-content: center;
    border-bottom: 1px solid var(--gold-line) !important;
  }
  .nav-toggle {
    display: flex;
  }
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 56px);
    padding-bottom: 64px;
  }
  .hero-title {
    font-size: clamp(58px, 16vw, 88px);
  }
  .hero-meta span {
    padding-right: 12px;
    margin-right: 12px;
    font-size: 9.5px;
  }
  .wb-body {
    grid-template-columns: 74px minmax(0, 1fr);
    min-height: 330px;
  }
  .wb-chat {
    display: none;
  }
  .wb-main {
    border-right: 0;
  }
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
  .phil-card {
    min-height: auto;
  }
  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .showcase {
    grid-template-columns: 1fr;
  }
  .arch-layer {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .arch-stack {
    grid-template-columns: 1fr;
  }
  .trans-grid {
    grid-template-columns: 1fr;
  }
  .dynamic-band {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .dynamic-band .flow-arrow {
    text-align: left;
    transform: rotate(90deg);
    width: 20px;
  }
  .roadmap {
    grid-template-columns: 1fr;
  }
  .tool-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 18px;
  }
  .tool-row .t-runtime,
  .tool-row .t-load {
    display: inline-block;
    margin-right: 14px;
  }
  .footer-top {
    flex-direction: column;
    gap: 34px;
  }
  .footer-cols {
    gap: 44px;
    flex-wrap: wrap;
  }
  .cta {
    padding: 100px 0;
  }
}
@media (max-width: 520px) {
  .wrap,
  .wrap-narrow {
    width: calc(100% - 32px);
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .cat-grid {
    grid-template-columns: 1fr;
  }
  .hero-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .hero-meta span {
    border-bottom: 1px solid var(--line-soft);
  }
  .wb-body {
    grid-template-columns: 1fr;
  }
  .wb-side {
    display: none;
  }
  .tool-visual {
    height: 156px;
  }
  .download-card {
    padding: 28px 22px;
  }
}

/* ---------- 24. print ---------- */
@media print {
  .site-header,
  .cta,
  .site-footer,
  .hero-visual {
    display: none !important;
  }
  body {
    background: #fff;
    color: #111;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- brand app icon ---------- */
.dl-app-icon {
  width: 64px;
  height: 64px;
  display: block;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(217, 160, 95, 0.18);
}
.cta-app-icon {
  width: 56px;
  height: 56px;
  display: block;
  margin: 0 auto 22px;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(217, 160, 95, 0.18);
}
