:root {
  --bg: #0a0908;
  --surface: #14120f;
  --surface-2: #1c1a16;
  --line: #2a2620;
  --line-soft: #1d1a14;
  --text: #f0e8d8;
  --muted: #968d7a;
  --dim: #5d564a;

  --amber: #ffb84d;
  --amber-glow: rgba(255, 184, 77, 0.30);
  --energy: #ff7355;
  --chips: #5fdcff;
  --logistics: #5fbf99;
  --finance: #ffd06a;
  --compute: #a87aff;
  --water: #5fb3d4;

  --primary: var(--amber);
  --primary-glow: var(--amber-glow);

  --display: 'JetBrains Mono', monospace;
  --body: 'Geist', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --cjk-display: 'Noto Sans SC', sans-serif;
  --cjk-body: 'Noto Sans SC', sans-serif;
}

[data-theme="light"] {
  --bg: #f5f1e6;
  --surface: #ffffff;
  --surface-2: #ece5d2;
  --line: #d3c9b4;
  --line-soft: #e3dccd;
  --text: #1a1810;
  --muted: #5d574a;
  --dim: #9c9384;

  --amber: #b87a26;
  --amber-glow: rgba(184, 122, 38, 0.16);
  --energy: #c2422a;
  --chips: #1f8aa8;
  --logistics: #2c8a6a;
  --finance: #b8862a;
  --compute: #6b48d4;
  --water: #1f7da3;

  --primary: var(--amber);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased; line-height: 1.55; overflow-x: hidden; }
html[data-lang="en"] [lang="zh"] { display: none; }
html[data-lang="zh"] [lang="en"] { display: none; }
html[data-lang="zh"] body { font-family: var(--cjk-body); }
html[data-lang="zh"] h1, html[data-lang="zh"] h2, html[data-lang="zh"] h3, html[data-lang="zh"] .display { font-family: var(--cjk-display); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; } a:hover { color: var(--amber); }

.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
.nav-inner { display: flex; align-items: center; gap: 28px; padding: 14px 24px; max-width: 1180px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; }
.brand-mark { width: 30px; height: 30px; border-radius: 4px; position: relative; background: var(--surface-2); border: 1px solid var(--amber); display: grid; place-items: center; }
.brand-mark::before, .brand-mark::after { content: ''; position: absolute; background: var(--amber); }
.brand-mark::before { width: 18px; height: 1.5px; top: 14px; }
.brand-mark::after { width: 1.5px; height: 18px; left: 14px; }
.brand-name { font-size: 18px; letter-spacing: 0.02em; font-weight: 600; text-transform: uppercase; }
.nav-links { display: flex; gap: 18px; margin-left: auto; font-size: 13px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-ctrl { display: flex; gap: 6px; }
.btn { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; padding: 7px 12px; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; transition: all 0.15s; }
.btn:hover { color: var(--text); border-color: var(--amber); }

.hero { position: relative; padding: 100px 0 80px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 35% at 25% 35%, var(--amber-glow), transparent 70%); opacity: 0.55; filter: blur(50px); pointer-events: none; }
[data-theme="light"] .hero::before { opacity: 0.22; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; margin-bottom: 22px; }
h1.display { font-family: var(--display); font-weight: 600; font-size: clamp(36px, 5vw, 60px); line-height: 1.06; letter-spacing: -0.01em; margin: 0 0 22px; text-transform: uppercase; }
h1.display em { font-style: normal; color: var(--amber); }
.lede { font-size: 17px; color: var(--muted); max-width: 56ch; margin: 0 0 28px; font-family: var(--body); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); border: 1px solid var(--line); padding: 5px 10px; border-radius: 100px; }

.bp-viz { position: relative; aspect-ratio: 1 / 1; max-width: 540px; margin: 0 auto; }
.bp-viz svg { width: 100%; height: 100%; }

section { padding: 80px 0; border-top: 1px solid var(--line-soft); }
.sec-head { margin-bottom: 44px; }
.sec-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--amber); text-transform: uppercase; margin-bottom: 14px; }
h2 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.12; letter-spacing: -0.005em; margin: 0 0 14px; max-width: 28ch; text-transform: uppercase; }
h2 em { font-style: normal; color: var(--amber); }
.sec-lede { color: var(--muted); max-width: 66ch; font-size: 16px; }

.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .grid.c2, .grid.c3 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 22px; transition: all 0.2s; }
.card:hover { transform: translateY(-2px); border-color: var(--amber); }
.card[data-s="energy"]    { border-left: 3px solid var(--energy); }
.card[data-s="chips"]     { border-left: 3px solid var(--chips); }
.card[data-s="logistics"] { border-left: 3px solid var(--logistics); }
.card[data-s="finance"]   { border-left: 3px solid var(--finance); }
.card[data-s="compute"]   { border-left: 3px solid var(--compute); }
.card[data-s="water"]     { border-left: 3px solid var(--water); }
.card-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.card h3 { font-family: var(--display); font-weight: 600; font-size: 16px; margin: 0 0 12px; line-height: 1.2; letter-spacing: 0; text-transform: uppercase; }
.card .row { font-size: 13.5px; margin-bottom: 8px; }
.card .row .lab { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; display: block; margin-bottom: 2px; }
.card .row .val { color: var(--text); font-family: var(--body); }

.flow-viz { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.flow-viz svg { width: 100%; max-width: 1000px; display: block; margin: 0 auto; height: auto; }

.mirror-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.prompt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 18px; }
.prompt-btn { background: var(--surface-2); border: 1px solid var(--line); color: var(--text); text-align: left; padding: 14px 16px; border-radius: 6px; cursor: pointer; font-family: var(--body); font-size: 13px; transition: all 0.18s; }
.prompt-btn:hover { border-color: var(--amber); transform: translateY(-1px); }
.prompt-btn .pt-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--amber); text-transform: uppercase; display: block; margin-bottom: 6px; }
.prompt-btn strong { font-family: var(--display); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: uppercase; }
.mirror-input { display: flex; gap: 10px; margin-bottom: 16px; }
.mirror-input textarea { flex: 1; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 12px; font-family: var(--body); font-size: 14px; color: var(--text); resize: vertical; min-height: 70px; }
.mirror-input textarea:focus { outline: none; border-color: var(--amber); }
.mirror-input button { background: var(--amber); color: #1a1208; border: 0; border-radius: 6px; padding: 0 26px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; cursor: pointer; font-weight: 700; }
.mirror-out { background: var(--surface-2); border-left: 3px solid var(--amber); border-radius: 4px; padding: 22px 24px; font-size: 15px; line-height: 1.7; white-space: pre-wrap; min-height: 80px; color: var(--text); }
.mirror-out:empty::before { content: 'Pick a probe above or describe a question.'; color: var(--dim); font-style: italic; }
html[data-lang="zh"] .mirror-out:empty::before { content: '从上方选择一个探针，或描述一个问题。'; }

.rails { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--energy); border-radius: 8px; padding: 26px 28px; }
.rails h3 { font-family: var(--display); margin: 0 0 14px; font-size: 18px; color: var(--energy); font-weight: 600; text-transform: uppercase; }
.rails ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14.5px; }
.rails li { margin-bottom: 10px; }

footer { border-top: 1px solid var(--line-soft); padding: 40px 24px; color: var(--muted); font-size: 13px; text-align: center; }
footer a { color: var(--muted); border-bottom: 1px dotted var(--line); }
footer a:hover { color: var(--amber); }
