:root {
  --bg: #0a0808;
  --surface: #14110f;
  --surface-2: #1c1815;
  --line: #2a2520;
  --line-soft: #1d1815;
  --text: #ece6d8;
  --muted: #8e8478;
  --dim: #5d544a;

  --alert: #ff7355;
  --alert-glow: rgba(255, 115, 85, 0.30);
  --high: #ff5e6a;
  --med: #ffb04d;
  --low: #5fbf99;
  --info: #5fdcff;
  --signal: #d4a558;

  --primary: var(--alert);
  --primary-glow: var(--alert-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: #f5f0e8;
  --surface: #ffffff;
  --surface-2: #ece4d4;
  --line: #d3c8b6;
  --line-soft: #e3d8c8;
  --text: #1d1810;
  --muted: #5d534a;
  --dim: #9c9484;

  --alert: #c2422a;
  --alert-glow: rgba(194, 66, 42, 0.16);
  --high: #b22d3a;
  --med: #b87a26;
  --low: #2c8a6a;
  --info: #1f8aa8;
  --signal: #8a6420;

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

* { 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(--alert); }

.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: 1.5px solid var(--alert); display: grid; place-items: center; box-shadow: 0 0 14px var(--alert-glow); }
.brand-mark::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--alert); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.brand-name { font-size: 17px; letter-spacing: 0.02em; font-weight: 700; 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(--alert); }

.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(--alert-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: 700; font-size: clamp(32px, 4.5vw, 54px); line-height: 1.06; letter-spacing: -0.01em; margin: 0 0 22px; text-transform: uppercase; }
h1.display em { font-style: normal; color: var(--alert); }
.lede { font-size: 16px; 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; }

.gauge-viz { position: relative; aspect-ratio: 1 / 1; max-width: 540px; margin: 0 auto; }
.gauge-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(--alert); text-transform: uppercase; margin-bottom: 14px; }
h2 { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 3vw, 36px); 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(--alert); }
.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; } }

.indicator { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 22px; transition: all 0.2s; position: relative; overflow: hidden; }
.indicator::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--low); }
.indicator[data-level="med"]::before { background: var(--med); }
.indicator[data-level="high"]::before { background: var(--high); }
.indicator-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; justify-content: space-between; }
.indicator-tag .level { padding: 1px 8px; border-radius: 100px; font-weight: 600; }
.indicator-tag .level.low  { background: var(--low); color: #06140d; }
.indicator-tag .level.med  { background: var(--med); color: #1a1206; }
.indicator-tag .level.high { background: var(--high); color: #1a0408; }
.indicator h3 { font-family: var(--display); font-weight: 700; font-size: 16px; margin: 0 0 10px; line-height: 1.2; text-transform: uppercase; letter-spacing: 0; }
.indicator p { color: var(--muted); font-size: 14px; margin: 0 0 6px; font-family: var(--body); }
.indicator .row { font-size: 12.5px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.indicator .row .lab { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; display: block; }
.indicator .row .val { color: var(--text); font-family: var(--body); }

.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(--alert); transform: translateY(-1px); }
.prompt-btn .pt-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--alert); text-transform: uppercase; display: block; margin-bottom: 6px; }
.prompt-btn strong { font-family: var(--display); font-size: 14px; font-weight: 700; 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(--alert); }
.mirror-input button { background: var(--alert); color: #1a0d05; 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(--alert); 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(--high); border-radius: 8px; padding: 26px 28px; }
.rails h3 { font-family: var(--display); margin: 0 0 14px; font-size: 18px; color: var(--high); font-weight: 700; 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(--alert); }
