:root {
  --bg: #0d0c14;
  --surface: #15141d;
  --surface-2: #1d1c28;
  --line: #2a2839;
  --line-soft: #1d1c2c;
  --text: #ece6d6;
  --muted: #948b9d;
  --dim: #5d556a;

  --persona: #5fbf99;
  --persona-glow: rgba(95, 191, 153, 0.30);
  --emperor: #e8c466;
  --billionaire: #cdd5e0;
  --strategist: #d54860;
  --philosopher: #9876d4;
  --criminal: #6a6a82;
  --artist: #e08aaf;
  --monk: #a89888;
  --manipulator: #5fb3d4;

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

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

[data-theme="light"] {
  --bg: #f5f1e6;
  --surface: #ffffff;
  --surface-2: #ece5d2;
  --line: #d3c9b4;
  --line-soft: #e5dfcc;
  --text: #1d1a26;
  --muted: #5d5567;
  --dim: #9c93a5;

  --persona: #2c8a6a;
  --persona-glow: rgba(44, 138, 106, 0.16);
  --emperor: #b08428;
  --billionaire: #6e7888;
  --strategist: #b22d44;
  --philosopher: #6b48d4;
  --criminal: #4a4a5d;
  --artist: #c25288;
  --monk: #735d4d;
  --manipulator: #1f7da3;

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

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--persona); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, 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; background: linear-gradient(135deg, var(--persona), var(--philosopher)); position: relative; box-shadow: 0 0 14px var(--persona-glow); }
.brand-mark::before, .brand-mark::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: rgba(255,255,255,0.3); }
.brand-mark::before { top: 11px; }
.brand-mark::after { bottom: 11px; }
.brand-name { font-size: 17px; letter-spacing: 0.01em; }
.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(--persona); }

.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(--persona-glow), transparent 70%), radial-gradient(45% 30% at 80% 60%, rgba(232, 196, 102, 0.18), 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: 500; font-size: clamp(38px, 5.5vw, 68px); line-height: 1.06; letter-spacing: -0.012em; margin: 0 0 22px; }
h1.display em { font-style: italic; color: var(--persona); font-weight: 400; }
.lede { font-size: 17px; color: var(--muted); max-width: 56ch; margin: 0 0 28px; }
.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; }

.hero-viz { position: relative; aspect-ratio: 1 / 1; max-width: 520px; margin: 0 auto; }
.hero-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(--persona); text-transform: uppercase; margin-bottom: 14px; }
h2 { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -0.012em; margin: 0 0 14px; max-width: 22ch; }
h2 em { font-style: italic; color: var(--persona); font-weight: 400; }
.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.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .grid.c2, .grid.c4 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; transition: all 0.2s; cursor: pointer; }
.card:hover { transform: translateY(-2px); }
.card[data-arch] { border-left: 3px solid var(--persona); }
.card.glow-emperor { border-left-color: var(--emperor); }
.card.glow-billionaire { border-left-color: var(--billionaire); }
.card.glow-strategist { border-left-color: var(--strategist); }
.card.glow-philosopher { border-left-color: var(--philosopher); }
.card.glow-criminal { border-left-color: var(--criminal); }
.card.glow-artist { border-left-color: var(--artist); }
.card.glow-monk { border-left-color: var(--monk); }
.card.glow-manipulator { border-left-color: var(--manipulator); }
.card-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.card h3 { font-family: var(--display); font-weight: 500; font-size: 22px; margin: 0 0 12px; line-height: 1.2; font-style: italic; }
.card .row { display: flex; gap: 8px; margin-bottom: 6px; font-size: 13.5px; }
.card .row .lab { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; min-width: 88px; }
.card .row .val { color: var(--text); flex: 1; }
.card .meta { font-family: var(--mono); font-size: 10.5px; color: var(--dim); margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }

.activate { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.activate .controls { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
@media (max-width: 880px) { .activate .controls { grid-template-columns: 1fr; } }
.activate label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; display: block; margin-bottom: 6px; }
.activate select, .activate textarea { width: 100%; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 10px; font-family: var(--body); font-size: 14px; }
.activate textarea { min-height: 70px; resize: vertical; }
.activate button.go { background: var(--persona); color: #0c1810; border: 0; padding: 12px 26px; border-radius: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; cursor: pointer; font-weight: 700; }
.activate-out { margin-top: 22px; padding: 24px 28px; background: var(--surface-2); border-left: 3px solid var(--persona); border-radius: 6px; line-height: 1.7; min-height: 100px; }
.activate-out:empty::before { content: 'Pick an archetype, give it a situation, hit Activate.'; color: var(--dim); font-style: italic; }
html[data-lang="zh"] .activate-out:empty::before { content: '挑一个原型，给它一个情境，点激活。'; }
.activate-out h4 { font-family: var(--display); font-style: italic; font-size: 19px; margin: 0 0 10px; color: var(--persona); }
.activate-out .lab { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 14px; margin-bottom: 4px; }
.activate-out p { margin: 4px 0 12px; font-size: 15px; }

.cost-table { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; overflow-x: auto; }
.cost-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cost-table th, .cost-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.cost-table th { font-family: var(--mono); font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.cost-table td:first-child { font-family: var(--display); font-style: italic; font-size: 16px; color: var(--persona); width: 18%; }

.mirror-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; 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: 10px; cursor: pointer; font-family: var(--body); font-size: 13px; transition: all 0.18s; }
.prompt-btn:hover { border-color: var(--persona); transform: translateY(-1px); }
.prompt-btn .pt-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--persona); text-transform: uppercase; display: block; margin-bottom: 6px; }
.prompt-btn strong { font-family: var(--display); font-style: italic; font-size: 16px; }
.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: 8px; 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(--persona); }
.mirror-input button { background: var(--persona); color: #0c1810; border: 0; border-radius: 8px; 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(--persona); border-radius: 6px; 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 persona-shaped 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(--strategist); border-radius: 14px; padding: 26px 28px; }
.rails h3 { font-family: var(--display); font-style: italic; margin: 0 0 14px; font-size: 22px; color: var(--strategist); }
.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(--persona); }
