/* AwakenOS — design system */
:root {
  /* dark (default) — pre-dawn aurora */
  --bg: #0d1024;
  --bg-deep: #080a1a;
  --bg-elev: #14182f;
  --surface: #1a1f3a;
  --surface-2: #232844;
  --ink: #f4ecdc;
  --ink-soft: #b3aeae;
  --ink-mute: #7a7488;
  --hairline: #ffffff0e;
  --hairline-strong: #ffffff1c;
  --gold: #d4af6f;
  --gold-soft: #b8945c;
  --jade: #6cbfa8;
  --jade-soft: #4a9c87;
  --violet: #9080d4;
  --plum: #b87fb8;
  --rose: #d4839a;
  --sky: #88a8d8;
  --shadow: 0 1px 0 #ffffff05 inset, 0 16px 48px #0006;
  --radius: 16px;
  --max: 1280px;
  --font-display: "Cormorant Garamond", "Source Han Serif SC", Georgia, serif;
  --font-body: "Manrope", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  --font-mono: "DM Mono", "JetBrains Mono", ui-monospace, monospace;
}

html[data-theme="light"] {
  --bg: #faf6ec;
  --bg-deep: #f3ecdb;
  --bg-elev: #fffdf8;
  --surface: #ffffff;
  --surface-2: #fbf6e9;
  --ink: #14172a;
  --ink-soft: #4d4d62;
  --ink-mute: #87859b;
  --hairline: #1417220e;
  --hairline-strong: #14172220;
  --gold: #a87a3a;
  --gold-soft: #c89f5e;
  --jade: #2d7a64;
  --jade-soft: #5a9c87;
  --violet: #5a4ca0;
  --plum: #855285;
  --rose: #b3536d;
  --sky: #4a6da3;
  --shadow: 0 1px 0 #ffffff inset, 0 8px 32px #1417220c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
  transition: background .25s, color .25s;
}

a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--hairline-strong); transition: color .15s, border-color .15s; }
a:hover { color: var(--jade); border-bottom-color: var(--jade); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ----- Topbar ----- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  border-bottom: 1px solid var(--hairline);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px; max-width: var(--max); margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 500;
  font-size: 24px; letter-spacing: -.01em;
  color: var(--ink); border: 0;
}
.brand-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  position: relative;
}
.brand-mark svg { width: 100%; height: 100%; }
.nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.nav a {
  font-size: 12.5px; color: var(--ink-soft); border: 0;
  font-weight: 500; font-family: var(--font-mono); letter-spacing: -.01em;
}
.nav a:hover { color: var(--gold); }

.toolbar { display: flex; gap: 10px; align-items: center; }
.lang-toggle, .theme-toggle {
  display: inline-flex; border: 1px solid var(--hairline-strong); border-radius: 999px;
  overflow: hidden; background: var(--surface);
  font-size: 12px; font-weight: 600;
}
.lang-toggle button, .theme-toggle button {
  background: transparent; border: 0; color: var(--ink-soft);
  padding: 6px 14px; cursor: pointer; font: inherit;
  letter-spacing: .02em;
}
.lang-toggle button.active, .theme-toggle button.active {
  background: var(--ink); color: var(--bg);
}

/* ----- Hero ----- */
.hero {
  padding: 140px 0 110px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 85% 0%, color-mix(in srgb, var(--gold) 18%, transparent) 0%, transparent 55%),
    radial-gradient(ellipse at 0% 60%, color-mix(in srgb, var(--violet) 20%, transparent) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, color-mix(in srgb, var(--jade) 10%, transparent) 0%, transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 80px; align-items: center; position: relative; }
.eyebrow {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 24px;
  font-weight: 500;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(52px, 8vw, 108px);
  line-height: 0.95;
  letter-spacing: -.02em;
  margin: 0 0 32px;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero h1 .alt { color: var(--jade); font-style: italic; }
.hero-lede {
  font-size: 19px; line-height: 1.55; color: var(--ink-soft);
  max-width: 600px; margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer; border: 0; transition: all .15s;
  font-family: var(--font-body);
}
.btn-primary { background: var(--ink); color: var(--bg); border: 0; }
.btn-primary:hover { background: var(--gold); color: var(--bg); border: 0; }
.btn-ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--hairline-strong);
}
.btn-ghost:hover { background: var(--surface); color: var(--ink); }
a.btn { border: 0; }
a.btn-ghost { border: 1px solid var(--hairline-strong); }

.hero-system {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow);
  font-family: var(--font-mono); font-size: 13px; line-height: 1.85;
}
.hero-system .label {
  font-family: var(--font-body); font-size: 11px; text-transform: uppercase;
  letter-spacing: .14em; color: var(--ink-mute); margin-bottom: 18px; font-weight: 600;
}
.hero-system .formula b { color: var(--gold); font-weight: 700; font-family: var(--font-display); font-size: 18px; font-weight: 500; }
.hero-system .formula .ops { color: var(--jade); font-weight: 700; }
.hero-system .formula em { color: var(--ink); font-style: normal; }

/* ----- Section ----- */
.section { padding: 110px 0; border-bottom: 1px solid var(--hairline); position: relative; }
.section.alt { background: var(--bg-elev); }

.section-head {
  display: grid; grid-template-columns: 240px 1fr; gap: 60px;
  margin-bottom: 60px; align-items: start;
}
.section-num {
  font-family: var(--font-mono); font-size: 12px; color: var(--gold);
  letter-spacing: .14em; font-weight: 500;
  border-top: 1px solid var(--hairline-strong); padding-top: 16px;
}
.section-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(40px, 5.5vw, 72px); line-height: 1.0;
  letter-spacing: -.025em; margin: 0 0 18px;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-title .alt { font-style: italic; color: var(--jade); }
.section-lede {
  font-size: 17px; color: var(--ink-soft); max-width: 660px; line-height: 1.6;
}

/* ----- Module 1 — Self-Awareness ----- */
.awareness-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.layers-card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow);
}
.layer {
  display: grid; grid-template-columns: 30px 1fr;
  gap: 18px; align-items: start;
  padding: 18px 0; cursor: pointer;
  border-bottom: 1px dashed var(--hairline-strong);
  transition: padding .15s;
}
.layer:last-child { border-bottom: 0; }
.layer:hover { padding-left: 6px; }
.layer.active { padding-left: 6px; }
.layer .num {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--gold);
  letter-spacing: .04em; font-weight: 500; padding-top: 4px;
}
.layer h4 {
  font-family: var(--font-display); font-size: 26px; font-weight: 400;
  margin: 0 0 4px; letter-spacing: -.01em; line-height: 1.05;
}
.layer h4 em { font-style: italic; color: var(--gold); }
.layer .lede { color: var(--ink-soft); font-size: 14px; line-height: 1.55; margin: 0; }

.journal-card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.journal-card h3 {
  font-family: var(--font-display); font-size: 30px; font-weight: 400;
  margin: 0 0 4px; letter-spacing: -.01em;
}
.journal-card .sub {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 24px; font-weight: 600;
}
.prompt-box {
  background: var(--bg-deep); border: 1px solid var(--hairline);
  border-radius: 12px; padding: 20px 22px;
  font-family: var(--font-display); font-size: 22px; font-weight: 400;
  color: var(--ink); line-height: 1.4; font-style: italic;
  letter-spacing: -.005em; margin-bottom: 18px;
  position: relative;
}
.prompt-box::before {
  content: "“"; position: absolute; left: -8px; top: -28px;
  font-family: var(--font-display); font-size: 90px; color: var(--gold);
  opacity: .35; line-height: 1;
}
.prompt-meta { display: flex; gap: 12px; font-size: 12px; color: var(--ink-mute); font-family: var(--font-mono); }
.prompt-meta .pip {
  padding: 3px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-soft);
}
.shuffle-btn {
  margin-top: auto; align-self: flex-start;
  background: transparent; border: 1px solid var(--hairline-strong);
  border-radius: 999px; padding: 10px 20px;
  font: inherit; font-size: 13px; font-weight: 500; color: var(--ink);
  cursor: pointer; font-family: var(--font-body);
  transition: all .15s;
}
.shuffle-btn:hover { background: var(--gold); color: var(--bg-deep); border-color: var(--gold); }

.layer-detail {
  margin-top: 24px; background: var(--bg-deep);
  border-radius: 10px; padding: 18px 20px;
  border-left: 2px solid var(--gold);
}
.layer-detail p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }

/* ----- Module 2 — Mental Models ----- */
.models-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px; background: var(--hairline-strong);
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--hairline-strong);
}
.model-card {
  background: var(--surface); padding: 26px;
  cursor: pointer; transition: background .15s;
}
.model-card:hover { background: var(--surface-2); }
.model-card .glyph {
  font-family: var(--font-display); font-size: 32px; line-height: 1;
  color: var(--gold); margin-bottom: 16px; font-style: italic; font-weight: 500;
}
.model-card h4 {
  font-family: var(--font-display); font-size: 24px; font-weight: 400;
  margin: 0 0 4px; letter-spacing: -.01em; line-height: 1.15;
}
.model-card .domain {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em;
  color: var(--jade); text-transform: uppercase; margin-bottom: 12px; font-weight: 500;
}
.model-card p { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.55; }

/* ----- Module 3 — Emotional Mastery ----- */
.weather-shell {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px;
}
.weather-svg-card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
}
.weather-svg-card h3 {
  font-family: var(--font-display); font-size: 26px; font-weight: 400;
  margin: 0 0 4px; letter-spacing: -.01em;
}
.weather-svg-card .sub {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 22px; font-weight: 600;
}
.weather-svg { width: 100%; aspect-ratio: 1.6; }

.stress-card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
}
.stress-card h3 {
  font-family: var(--font-display); font-size: 26px; font-weight: 400;
  margin: 0 0 4px; letter-spacing: -.01em;
}
.stress-card .sub {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 22px; font-weight: 600;
}
.zone-row {
  display: grid; grid-template-columns: 70px 1fr; gap: 14px;
  padding: 12px 0; border-bottom: 1px dashed var(--hairline);
  align-items: center;
}
.zone-row:last-child { border-bottom: 0; }
.zone-pill {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em;
  text-align: center; padding: 4px 6px; border-radius: 999px;
  font-weight: 600;
}
.zone-pill.green { background: color-mix(in srgb, var(--jade) 25%, transparent); color: var(--jade); }
.zone-pill.gold { background: color-mix(in srgb, var(--gold) 25%, transparent); color: var(--gold); }
.zone-pill.rose { background: color-mix(in srgb, var(--rose) 25%, transparent); color: var(--rose); }
.zone-row h5 { font-family: var(--font-display); font-size: 18px; font-weight: 500; margin: 0 0 3px; letter-spacing: -.01em; }
.zone-row p { color: var(--ink-soft); font-size: 13px; margin: 0; line-height: 1.5; }

/* ----- Module 4 — Attention ----- */
.attention-shell {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.attention-curve-card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
}
.attention-curve-card h3 { font-family: var(--font-display); font-size: 26px; font-weight: 400; margin: 0 0 4px; letter-spacing: -.01em; }
.attention-curve-card .sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 22px; font-weight: 600; }
.attention-svg { width: 100%; aspect-ratio: 1.4; }

.depth-list { display: flex; flex-direction: column; gap: 14px; }
.depth-item {
  background: var(--surface); border: 1px solid var(--hairline);
  border-left: 3px solid var(--violet);
  border-radius: var(--radius); padding: 22px;
}
.depth-item:nth-child(2) { border-left-color: var(--sky); }
.depth-item:nth-child(3) { border-left-color: var(--jade); }
.depth-item:nth-child(4) { border-left-color: var(--gold); }
.depth-item:nth-child(5) { border-left-color: var(--rose); }
.depth-item .level {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em;
  color: var(--ink-mute); text-transform: uppercase; margin-bottom: 6px; font-weight: 500;
}
.depth-item h4 {
  font-family: var(--font-display); font-size: 22px; font-weight: 500;
  margin: 0 0 4px; letter-spacing: -.01em;
}
.depth-item p { color: var(--ink-soft); font-size: 14px; margin: 0; line-height: 1.55; }

/* ----- Module 5 — Habit & Identity ----- */
.identity-loop {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
}
.identity-svg { width: 100%; aspect-ratio: 1.05; }
.identity-side h3 {
  font-family: var(--font-display); font-size: 32px; font-weight: 400;
  margin: 0 0 8px; letter-spacing: -.01em;
}
.identity-side h3 em { font-style: italic; color: var(--gold); }
.identity-side .sub {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  color: var(--ink-mute); text-transform: uppercase; margin-bottom: 22px; font-weight: 600;
}
.identity-side p { color: var(--ink-soft); font-size: 15px; line-height: 1.65; margin: 0 0 14px; }
.identity-side .blockquote {
  margin: 22px 0 0;
  font-family: var(--font-display); font-size: 22px; font-weight: 400;
  font-style: italic; line-height: 1.4; color: var(--ink);
  padding-left: 20px; border-left: 2px solid var(--gold);
}

/* ----- Module 6 — Decision Lab ----- */
.dlab {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow);
}
.dlab .scenario {
  font-family: var(--font-display); font-size: 28px; font-weight: 400;
  margin: 0 0 8px; letter-spacing: -.01em; line-height: 1.25;
}
.dlab .scenario em { font-style: italic; color: var(--gold); }
.dlab .meta {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 28px; font-weight: 600;
}
.order-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-bottom: 28px;
}
.order-card {
  background: var(--bg-deep); border: 1px solid var(--hairline);
  border-radius: 12px; padding: 24px; position: relative;
}
.order-card .badge {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em;
  color: var(--gold); text-transform: uppercase; font-weight: 500; margin-bottom: 14px;
}
.order-card h4 {
  font-family: var(--font-display); font-size: 22px; font-weight: 500;
  margin: 0 0 10px; letter-spacing: -.01em;
}
.order-card p { color: var(--ink-soft); font-size: 14px; line-height: 1.55; margin: 0; }
.order-card.first .badge { color: var(--violet); }
.order-card.second .badge { color: var(--gold); }
.order-card.third .badge { color: var(--jade); }

.tradeoff {
  background: var(--bg-deep); border-radius: 12px; padding: 24px;
  border: 1px dashed var(--hairline-strong);
}
.tradeoff h5 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-mute); margin: 0 0 12px; font-weight: 600;
}
.tradeoff-row {
  display: grid; grid-template-columns: 100px 1fr 100px;
  align-items: center; gap: 14px; padding: 8px 0;
  font-size: 13.5px;
}
.tradeoff-row .l { font-family: var(--font-mono); font-size: 11px; color: var(--gold); letter-spacing: .04em; font-weight: 500; }
.tradeoff-row .r { font-family: var(--font-mono); font-size: 11px; color: var(--jade); letter-spacing: .04em; text-align: right; font-weight: 500; }
.tradeoff-bar { height: 8px; background: var(--surface); border-radius: 4px; position: relative; overflow: hidden; }
.tradeoff-fill {
  position: absolute; top: 0; bottom: 0; left: 0;
  background: linear-gradient(90deg, var(--gold), var(--jade));
}
.tradeoff-marker {
  position: absolute; top: -4px; bottom: -4px;
  width: 2px; background: var(--ink); left: var(--p);
}

/* ----- Module 7 — Meaning / Values Compass ----- */
.compass-shell { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.compass-card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow);
}
.compass-svg { width: 100%; aspect-ratio: 1.05; }
.values-side h3 {
  font-family: var(--font-display); font-size: 32px; font-weight: 400;
  margin: 0 0 6px; letter-spacing: -.01em;
}
.values-side .sub {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  color: var(--ink-mute); text-transform: uppercase; margin-bottom: 22px; font-weight: 600;
}
.values-side p { color: var(--ink-soft); font-size: 15px; line-height: 1.65; margin: 0 0 18px; }
.values-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.values-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--hairline-strong); color: var(--ink-soft);
}

/* ----- Module 8 — Social ----- */
.social-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--hairline-strong);
  border: 1px solid var(--hairline-strong); border-radius: var(--radius); overflow: hidden;
}
.social-card {
  background: var(--surface); padding: 30px;
}
.social-card .archetype {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em;
  color: var(--gold); text-transform: uppercase; font-weight: 500; margin-bottom: 12px;
}
.social-card h4 {
  font-family: var(--font-display); font-size: 26px; font-weight: 400;
  margin: 0 0 8px; letter-spacing: -.01em; line-height: 1.15;
}
.social-card h4 em { font-style: italic; color: var(--gold); }
.social-card p { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 14px; line-height: 1.6; }
.social-card .reframe {
  margin-top: 14px; padding: 14px 16px;
  background: var(--bg-deep); border-radius: 10px;
  border-left: 2px solid var(--jade);
  font-size: 13.5px; color: var(--ink); line-height: 1.55;
}
.social-card .reframe b { color: var(--jade); font-weight: 600; }

/* ----- Module 9 — Coach ----- */
.coach {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); overflow: hidden;
  display: grid; grid-template-columns: 300px 1fr; min-height: 600px;
  box-shadow: var(--shadow);
}
.coach-side {
  background: var(--bg-elev); border-right: 1px solid var(--hairline);
  padding: 28px;
}
.coach-side h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-mute); margin: 0 0 14px; font-weight: 600;
}
.coach-pill {
  background: transparent; border: 1px solid var(--hairline-strong);
  border-radius: 12px; padding: 11px 15px; font: inherit; font-size: 13px;
  cursor: pointer; width: 100%; text-align: left; margin-bottom: 8px;
  color: var(--ink-soft); transition: all .15s; line-height: 1.4;
  font-family: var(--font-body);
}
.coach-pill:hover { background: var(--surface); color: var(--ink); border-color: var(--gold); }
.coach-main { display: flex; flex-direction: column; }
.coach-stream { flex: 1; padding: 32px; overflow-y: auto; max-height: 600px; }
.msg { margin-bottom: 24px; max-width: 90%; }
.msg.user { margin-left: auto; }
.msg .role {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 6px; font-weight: 600;
}
.msg .bubble {
  background: var(--surface-2); border: 1px solid var(--hairline);
  border-radius: 16px; padding: 16px 20px; font-size: 14.5px; line-height: 1.65;
}
.msg.user .bubble { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.msg .bubble p { margin: 0 0 10px; }
.msg .bubble p:last-child { margin-bottom: 0; }
.msg .bubble strong { color: var(--gold); font-weight: 600; }
.msg.user .bubble strong { color: var(--jade); }
.msg .bubble .quoted {
  margin: 6px 0 6px; padding: 4px 0 4px 14px;
  border-left: 2px solid var(--gold-soft);
  font-style: italic; color: var(--ink-soft); font-family: var(--font-display);
  font-size: 16px; line-height: 1.45;
}
.coach-input {
  border-top: 1px solid var(--hairline); padding: 18px;
  display: flex; gap: 10px; background: var(--bg-elev);
}
.coach-input input {
  flex: 1; border: 1px solid var(--hairline-strong); border-radius: 999px;
  padding: 12px 18px; font: inherit; font-size: 14px;
  background: var(--surface); color: var(--ink);
  font-family: var(--font-body);
}
.coach-input input:focus { outline: 2px solid var(--gold-soft); outline-offset: 1px; }
.coach-input input::placeholder { color: var(--ink-mute); }

/* ----- Module 10 — Dashboard ----- */
.dashboard-shell {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow);
}
.dash-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 32px; }
.dash-head h3 {
  font-family: var(--font-display); font-size: 30px; font-weight: 400;
  margin: 0 0 4px; letter-spacing: -.01em;
}
.dash-head .meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); letter-spacing: .04em; }

.dash-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--hairline-strong);
  border: 1px solid var(--hairline-strong); border-radius: 12px; overflow: hidden;
  margin-bottom: 32px;
}
.dash-cell {
  background: var(--bg-deep); padding: 22px;
}
.dash-cell .k {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em;
  color: var(--ink-mute); text-transform: uppercase; font-weight: 600;
}
.dash-cell .v {
  font-family: var(--font-display); font-size: 38px; font-weight: 400;
  margin: 8px 0 4px; letter-spacing: -.02em; line-height: 1;
}
.dash-cell .v.good { color: var(--jade); }
.dash-cell .v.warn { color: var(--gold); }
.dash-cell .v.alert { color: var(--rose); }
.dash-cell .delta { font-size: 11.5px; color: var(--ink-soft); font-family: var(--font-mono); }
.dash-cell svg.spark { display: block; margin-top: 10px; width: 100%; height: 30px; }

.evolution { width: 100%; aspect-ratio: 2.6; }

/* ----- Footer ----- */
.footer {
  background: var(--bg-deep);
  padding: 80px 0 40px;
  border-top: 1px solid var(--hairline);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
.footer h5 {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: .12em; color: var(--gold); margin: 0 0 18px; font-weight: 600;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; font-size: 14px; }
.footer a { color: var(--ink-soft); border: 0; }
.footer a:hover { color: var(--gold); }
.footer-brand { font-family: var(--font-display); font-size: 36px; color: var(--ink); font-weight: 500; letter-spacing: -.01em; margin-bottom: 14px; line-height: 1; }
.footer-tag { color: var(--ink-mute); font-size: 14px; max-width: 340px; line-height: 1.55; }
.footer-bottom {
  border-top: 1px solid var(--hairline); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: var(--ink-mute); font-family: var(--font-mono);
}
.footer-bottom a { color: var(--ink-mute); border: 0; }
.footer-bottom a:hover { color: var(--gold); }

/* ----- i18n ----- */
html[data-lang="en"] [lang="zh"] { display: none !important; }
html[data-lang="zh"] [lang="en"] { display: none !important; }
html[data-lang="en"][lang="zh"], html[data-lang="zh"][lang="en"] { display: block !important; }

/* ----- Responsive ----- */
@media (max-width: 980px) {
  .nav { display: none; }
  .hero { padding: 80px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .section { padding: 70px 0; }
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 36px; }
  .awareness-layout, .weather-shell, .attention-shell, .compass-shell, .social-grid { grid-template-columns: 1fr; gap: 24px; }
  .identity-loop { grid-template-columns: 1fr; gap: 30px; }
  .order-grid { grid-template-columns: 1fr; }
  .coach { grid-template-columns: 1fr; min-height: 0; }
  .coach-side { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .toolbar { gap: 6px; }
  .lang-toggle button, .theme-toggle button { padding: 5px 10px; font-size: 11px; }
}

/* ----- utility ----- */
.fade-in { opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; }
.fade-in.in { opacity: 1; transform: none; }
