/* lark-cc-router landing page
 * Crisp gallery paper + deep carbon-ink interactive stages + terracotta accent
 * Strictly 2 font families & 3 body sizes below hero; scannable visual-first layout
 */
:root {
  --bg: #F7F6F2;
  --surface: #FFFFFF;
  --surface-alt: #EFEEE8;
  --ink: #161614;
  --ink-2: #52504A;
  --ink-3: #6E6C65;
  --line: #E2E0D7;
  --rule: #CFCCC1;
  --accent: #C15F3C;
  --accent-hover: #A84D2C;
  --accent-soft: #F6E7E0;
  --accent-glow: rgba(193, 95, 60, 0.16);

  --stage-bg: #151513;
  --stage-surface: #1E1E1B;
  --stage-sunk: #10100E;
  --stage-line: #2C2B27;
  --stage-ink: #F2F0EA;
  --stage-ink-2: #B8B5AC;
  --stage-ink-3: #8C8980;

  --st-ok: #5EC27B;
  --st-run: #E4B55A;
  --st-bad: #F07B70;
  --st-think: #B4A5EC;
  --card-ok: #4AAE36;
  --card-run: #2F6BFF;
  --card-stop: #D97706;

  --glass: rgba(247, 246, 242, 0.88);
  --sh-stage: 0 28px 72px rgba(22, 22, 20, 0.16), 0 2px 8px rgba(22, 22, 20, 0.08);
  --sh-shot: 0 20px 52px rgba(22, 22, 20, 0.10), 0 1px 4px rgba(22, 22, 20, 0.06);

  --sans: "Plus Jakarta Sans", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  --text-heading: clamp(1.75rem, 2.8vw, 2.375rem);
  --text-body: 1rem;
  --text-sm: 0.875rem;

  --container: 1144px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111110;
    --surface: #181816;
    --surface-alt: #1C1C19;
    --ink: #F2F0EA;
    --ink-2: #B6B3AA;
    --ink-3: #8F8C83;
    --line: #292824;
    --rule: #3D3B35;
    --accent: #DF8260;
    --accent-hover: #EA9373;
    --accent-soft: #36251E;
    --accent-glow: rgba(223, 130, 96, 0.20);
    --stage-bg: #171715;
    --stage-surface: #21211E;
    --stage-sunk: #10100E;
    --stage-line: #2E2D29;
    --glass: rgba(17, 17, 16, 0.86);
    --sh-stage: 0 30px 80px rgba(0, 0, 0, 0.55);
    --sh-shot: 0 24px 60px rgba(0, 0, 0, 0.48);
  }
}

:root[data-theme="dark"] {
  --bg: #111110;
  --surface: #181816;
  --surface-alt: #1C1C19;
  --ink: #F2F0EA;
  --ink-2: #B6B3AA;
  --ink-3: #8F8C83;
  --line: #292824;
  --rule: #3D3B35;
  --accent: #DF8260;
  --accent-hover: #EA9373;
  --accent-soft: #36251E;
  --accent-glow: rgba(223, 130, 96, 0.20);
  --stage-bg: #171715;
  --stage-surface: #21211E;
  --stage-sunk: #10100E;
  --stage-line: #2E2D29;
  --glass: rgba(17, 17, 16, 0.86);
  --sh-stage: 0 30px 80px rgba(0, 0, 0, 0.55);
  --sh-shot: 0 24px 60px rgba(0, 0, 0, 0.48);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--text-body);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
  max-width: 100%;
}

.nowrap {
  white-space: nowrap;
}

::selection {
  background: var(--accent-soft);
  color: var(--accent);
}

a {
  color: inherit;
  text-decoration: none;
}

code, pre {
  font-family: var(--mono);
  font-size: var(--text-sm);
}

p code, li code {
  background: var(--surface-alt);
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--ink);
}

.section-ink code,
.workbench code {
  background: rgba(255, 255, 255, 0.08);
  color: #F2B59C;
  padding: 1px 6px;
  border-radius: 5px;
}

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease);
}

.nav[data-scrolled="true"] {
  background: var(--glass);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 200ms var(--ease);
  pointer-events: none;
}

.nav[data-scrolled="true"] .scroll-progress {
  opacity: 1;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-2);
}

.nav-links a {
  padding: 4px 0;
  transition: color 160ms var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-ext {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  transition: color 160ms var(--ease);
}

.nav-ext:hover {
  color: var(--accent);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 160ms var(--ease), color 160ms var(--ease), background-color 160ms var(--ease);
}

.icon-btn:hover {
  border-color: var(--rule);
  color: var(--ink);
  background: var(--surface-alt);
}

/* ---------- Buttons ---------- */
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: var(--text-body);
  font-weight: 600;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 180ms var(--ease), background-color 180ms var(--ease), border-color 180ms var(--ease), box-shadow 200ms var(--ease);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px var(--accent-glow);
}

.btn-ver {
  font-size: var(--text-sm);
  font-weight: 500;
  opacity: 0.88;
}

.btn-outline {
  background: transparent;
  border-color: var(--rule);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: var(--surface);
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 76px;
  overflow: hidden;
}

.hero-wash {
  position: absolute;
  inset: 0 0 auto 0;
  height: 520px;
  background:
    radial-gradient(64% 80% at 50% 0%, var(--accent-glow), transparent 72%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-head {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1080px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.95rem, 4.3vw, 3.85rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}

.at-token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: -0.14em;
  margin: 0 0.12em;
  width: 0.92em;
  height: 0.92em;
  border-radius: 0.22em;
  transition: transform 220ms var(--ease);
}

.at-token:hover {
  transform: rotate(-6deg) scale(1.06);
}

.at-token img {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-sub {
  margin: 20px auto 0;
  max-width: 58ch;
  font-size: var(--text-body);
  color: var(--ink-2);
}

.hero-action {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

/* ---------- Wide Interactive Workbench ---------- */
.workbench-wrap {
  position: relative;
  z-index: 1;
  margin-top: 40px;
}

.workbench {
  background: var(--stage-bg);
  color: var(--stage-ink);
  border: 1px solid var(--stage-line);
  border-radius: 20px;
  box-shadow: var(--sh-stage);
  overflow: hidden;
}

.wb-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--stage-sunk);
  border-bottom: 1px solid var(--stage-line);
}

.wb-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.seg {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 10px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
}

.workbench .seg {
  background: var(--stage-surface);
  border-color: var(--stage-line);
}

.seg-btn {
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1;
  padding: 8px 14px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}

.workbench .seg-btn {
  color: var(--stage-ink-2);
}

.seg-btn:hover { color: var(--ink); }
.workbench .seg-btn:hover { color: var(--stage-ink); }

.seg-btn[aria-selected="true"],
.seg-btn[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.workbench .seg-btn[aria-selected="true"],
.workbench .seg-btn[aria-pressed="true"] {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: none;
}

.seg-compact .seg-btn { padding: 8px 12px; }

.wb-replay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid var(--stage-line);
  background: transparent;
  color: var(--stage-ink-2);
  cursor: pointer;
  transition: color 160ms var(--ease), border-color 160ms var(--ease), background-color 160ms var(--ease);
}

.wb-replay:hover {
  color: var(--stage-ink);
  border-color: var(--stage-ink-3);
  background: var(--stage-surface);
}

.wb-stage {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 420px;
}

.wb-col {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.wb-console {
  border-left: 1px solid var(--stage-line);
  background: var(--stage-surface);
}

.wb-col-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--stage-line);
}

.wb-col-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--stage-ink);
}

.wb-col-meta {
  font-size: var(--text-sm);
  color: var(--stage-ink-3);
}

.wb-feishu-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Feishu Thread inside Dark Workbench */
.lark-msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: fadeRise 220ms var(--ease) both;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: var(--text-sm);
  font-weight: 600;
  color: #FFFFFF;
  flex: none;
}

.msg-body { flex: 1; min-width: 0; }

.msg-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--stage-ink-3);
  margin-bottom: 4px;
}

.msg-meta strong { color: var(--stage-ink); font-weight: 600; }

.bubble {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--stage-ink);
  background: var(--stage-surface);
  border-radius: 4px 12px 12px 12px;
  padding: 11px 14px;
}

.mention { color: #82B6FF; font-weight: 600; }

.lark-thread {
  margin-left: 46px;
  padding-left: 16px;
  border-left: 2px solid var(--stage-line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeRise 220ms var(--ease) both;
}

.lark-card {
  background: var(--stage-surface);
  border-radius: 12px;
  overflow: hidden;
  transition: opacity 200ms var(--ease);
}

.lark-card.dim { opacity: 0.68; }

.lark-card-head {
  padding: 10px 15px;
  color: #FFFFFF;
  background: var(--card-run);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: var(--text-sm);
  transition: background-color 220ms var(--ease);
}

.lark-card-head.ok { background: var(--card-ok); }
.lark-card-head.stop { background: var(--card-stop); }
.lark-card-head.dm { background: var(--accent); }
.lark-card-head strong { font-weight: 600; }
.lark-card-head span { opacity: 0.9; }

.lark-card-body {
  padding: 14px 15px;
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--stage-ink);
}

.lark-card-body p { margin: 0 0 8px; }
.lark-card-body p:last-child { margin-bottom: 0; }

.lark-card-quote {
  color: var(--stage-ink-2);
  border-left: 2px solid var(--stage-line);
  padding-left: 10px;
  margin-bottom: 10px;
}

.lark-card-foot {
  padding: 9px 15px;
  border-top: 1px solid var(--stage-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: var(--text-sm);
  color: var(--stage-ink-3);
}

.followup-btn {
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #F2B59C;
  background: transparent;
  border: 1px solid rgba(242, 181, 156, 0.35);
  border-radius: 7px;
  padding: 5px 11px;
  cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}

.followup-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

.silent-note {
  font-size: var(--text-sm);
  line-height: 1.62;
  color: var(--stage-ink-2);
  padding: 12px 14px;
  background: var(--stage-surface);
  border-radius: 10px;
}

.silent-note strong {
  display: block;
  color: var(--stage-ink);
  margin-bottom: 4px;
}

.stream-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 3px;
  vertical-align: -2px;
  border-radius: 2px;
  background: var(--accent);
  animation: blinkCursor 850ms steps(2, start) infinite;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes fadeRise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Console Timeline */
.trace-list {
  position: relative;
  padding-left: 68px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
}

.trace-list::before {
  content: "";
  position: absolute;
  left: 52px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--stage-line);
}

.trace-progress {
  position: absolute;
  left: 52px;
  top: 8px;
  width: 2px;
  height: 0%;
  background: var(--accent);
  transition: height 240ms var(--ease);
  z-index: 1;
}

.trace-ev {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}

.trace-ev.show { opacity: 1; transform: translateY(0); }

.trace-ev::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--stage-surface);
  border: 2px solid var(--stage-ink-3);
}

.trace-ev.tool::before { border-color: var(--accent); }
.trace-ev.think::before { border-color: var(--st-think); }
.trace-ev.judge::before { border-color: var(--st-run); }
.trace-ev.ok::before { border-color: var(--st-ok); background: var(--st-ok); }
.trace-ev.bad::before { border-color: var(--st-bad); background: var(--st-bad); }

.trace-at {
  position: absolute;
  left: -68px;
  top: 2px;
  width: 44px;
  text-align: right;
  font-size: var(--text-sm);
  color: var(--stage-ink-3);
}

.trace-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.trace-verb {
  font-family: var(--mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #F2B59C;
}

.trace-ev.think .trace-verb { color: var(--st-think); }
.trace-ev.judge .trace-verb { color: var(--st-run); }
.trace-ev.ok .trace-verb { color: var(--st-ok); }
.trace-ev.bad .trace-verb { color: var(--st-bad); }

.trace-arg {
  font-family: var(--mono);
  font-size: var(--text-sm);
  color: var(--stage-ink-2);
  word-break: break-word;
}

.trace-desc {
  margin-top: 3px;
  font-size: var(--text-sm);
  color: var(--stage-ink-3);
  line-height: 1.55;
}

/* ---------- Shared Section Structure ---------- */
.section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.section-alt { background: var(--surface-alt); }

.section-ink {
  background: var(--stage-bg);
  color: var(--stage-ink);
  border-top-color: var(--stage-line);
}

h2 {
  margin: 0;
  font-size: var(--text-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

h3 {
  margin: 0;
  font-size: var(--text-body);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

/* ---------- Band 1: Visual Zero-Reconfig Environment Bridge ---------- */
.reuse-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.reuse-copy p {
  margin: 16px 0 0;
  color: var(--ink-2);
  max-width: 48ch;
}

.reuse-seg {
  margin-top: 28px;
}

.reuse-visual {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 30px;
  box-shadow: var(--sh-shot);
  min-width: 0;
}

.bridge-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.bridge-node {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bridge-node strong {
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--ink);
}

.bridge-node span {
  font-family: var(--mono);
  font-size: var(--text-sm);
  color: var(--ink-3);
}

.bridge-arrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: 600;
  flex: 1;
  justify-content: center;
}

.bridge-arrow::before,
.bridge-arrow::after {
  content: "";
  height: 1.5px;
  flex: 1;
  max-width: 56px;
  background: var(--accent);
  opacity: 0.45;
}

.bridge-items {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
  display: grid;
}

.bridge-items li {
  display: grid;
  grid-template-columns: 188px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.bridge-items li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bridge-k {
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 9px;
}

.bridge-k::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.bridge-v {
  color: var(--ink-2);
  font-size: var(--text-body);
}

/* ---------- Band 2: Interactive Dark-Ink Visual Mechanism Stage ---------- */
.showcase-head {
  max-width: 58ch;
  margin-bottom: 40px;
}

.showcase-head p {
  margin: 12px 0 0;
  color: var(--stage-ink-2);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 36px;
  align-items: stretch;
}

.showcase-nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--stage-line);
}

.sc-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 18px;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--stage-line);
  color: var(--stage-ink-2);
  cursor: pointer;
  font-family: var(--sans);
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}

.sc-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2.5px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 200ms var(--ease);
}

.sc-tab:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--stage-ink);
}

.sc-tab[aria-selected="true"] {
  background: var(--stage-surface);
  color: var(--stage-ink);
}

.sc-tab[aria-selected="true"]::before {
  transform: scaleY(1);
}

.sc-tab h3 {
  color: inherit;
}

.sc-tab span {
  font-size: var(--text-sm);
  color: var(--stage-ink-3);
  line-height: 1.55;
}

.sc-tab[aria-selected="true"] span {
  color: var(--stage-ink-2);
}

.showcase-canvas {
  background: var(--stage-surface);
  border: 1px solid var(--stage-line);
  border-radius: 18px;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 360px;
}

/* Visual Diagrams inside Showcase Canvas */
.vis-list {
  display: grid;
  gap: 12px;
  animation: fadeRise 220ms var(--ease) both;
}

.vis-row {
  display: grid;
  grid-template-columns: 1fr auto 190px;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: var(--stage-bg);
  border-radius: 11px;
  font-size: var(--text-sm);
}

.vis-in { color: var(--stage-ink); }
.vis-arr { color: var(--stage-ink-3); }
.vis-out { font-weight: 600; text-align: right; }
.vis-out.ok { color: var(--st-ok); }
.vis-out.skip { color: var(--stage-ink-3); }
.vis-out.run { color: var(--st-run); }
.vis-out.bad { color: var(--st-bad); }

.vis-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fadeRise 220ms var(--ease) both;
}

.vis-turn {
  padding: 14px 16px;
  background: var(--stage-bg);
  border-radius: 12px;
  font-size: var(--text-sm);
}

.vis-turn-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--stage-ink-3);
  margin-bottom: 6px;
}

.vis-turn-head strong { color: var(--stage-ink); }

.vis-turn p {
  margin: 0;
  color: var(--stage-ink-2);
  line-height: 1.6;
}

.vis-img-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--stage-surface);
  color: #F2B59C;
  font-family: var(--mono);
}

.vis-compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  animation: fadeRise 220ms var(--ease) both;
}

.vis-col {
  padding: 20px;
  background: var(--stage-bg);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vis-col h3 { color: var(--stage-ink); }
.vis-col.is-default h3 { color: #F2B59C; }

.vis-kv {
  margin: 0;
  border-top: 1px solid var(--stage-line);
}

.vis-kv > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--stage-line);
  font-size: var(--text-sm);
}

.vis-kv dt { color: var(--stage-ink-3); }
.vis-kv dd { margin: 0; color: var(--stage-ink); text-align: right; }

.vis-guards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  animation: fadeRise 220ms var(--ease) both;
}

.vis-guard {
  padding: 18px 20px;
  background: var(--stage-bg);
  border-radius: 12px;
}

.vis-guard strong {
  display: block;
  color: var(--stage-ink);
  font-size: var(--text-body);
  margin-bottom: 6px;
}

.vis-guard span {
  display: block;
  color: var(--stage-ink-2);
  font-size: var(--text-sm);
  line-height: 1.55;
}

/* ---------- Band 3: Real Output Showcase ---------- */
.output-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 52px;
  align-items: center;
}

.output-copy p {
  margin: 14px 0 0;
  color: var(--ink-2);
}

.concise-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.concise-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-2);
}

.concise-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.concise-list li strong {
  color: var(--ink);
  font-weight: 600;
}

.output-figure { margin: 0; }

.shot-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--sh-shot);
  cursor: zoom-in;
  transition: transform 220ms var(--ease);
}

.shot-btn:hover { transform: translateY(-3px); }
.shot-btn img { display: block; width: 100%; height: auto; }

.output-figure figcaption {
  margin-top: 10px;
  font-size: var(--text-sm);
  color: var(--ink-3);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(16, 16, 14, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 28px;
  cursor: zoom-out;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: min(1060px, 94vw);
  max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.55);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-size: var(--text-body);
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* ---------- Band 4: Compact Quick Start ---------- */
.qs-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.qs-header p {
  margin: 10px 0 0;
  color: var(--ink-2);
}

.qs-panel[hidden] { display: none; }

.dl-rows { border-top: 1px solid var(--rule); }

.dl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.dl-meta {
  display: block;
  margin-top: 4px;
  font-size: var(--text-sm);
  color: var(--ink-2);
}

.step-strip {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  font-size: var(--text-sm);
  color: var(--ink-2);
}

.step-strip strong { color: var(--accent); }

.code-block {
  background: var(--stage-bg);
  color: var(--stage-ink);
  border-radius: 14px;
  overflow: hidden;
}

.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: var(--stage-sunk);
  border-bottom: 1px solid var(--stage-line);
  font-size: var(--text-sm);
  color: var(--stage-ink-3);
}

.copy-btn {
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 7px;
  border: 1px solid var(--stage-line);
  background: transparent;
  color: var(--stage-ink);
  cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease);
}

.copy-btn:hover {
  background: var(--stage-surface);
  border-color: var(--stage-ink-3);
}

.code-block pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  line-height: 1.75;
}

.qs-footnote {
  margin: 14px 0 0;
  font-size: var(--text-sm);
  color: var(--ink-2);
}

.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  font-size: var(--text-sm);
  color: var(--ink-3);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img { border-radius: 5px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a { transition: color 160ms var(--ease); }
.footer-links a:hover { color: var(--ink); }

/* ---------- Calibrated Scroll Reveal ---------- */
.reveal-ready .reveal:not(.in) {
  opacity: 0;
  transform: translateY(14px);
}

.reveal {
  transition: opacity 240ms var(--ease), transform 240ms var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready .reveal:not(.in), .reveal, .trace-ev, .lark-msg, .lark-thread, .vis-list, .vis-thread, .vis-compare, .vis-guards {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
  .stream-cursor { animation: none; }
}

/* ---------- Responsive ---------- */
.reuse-copy,
.reuse-visual,
.output-copy,
.output-figure,
.dl-info {
  min-width: 0;
}

@media (max-width: 980px) {
  .wb-stage,
  .reuse-split,
  .showcase-grid,
  .output-split {
    grid-template-columns: 1fr;
  }
  .wb-console {
    border-left: none;
    border-top: 1px solid var(--stage-line);
  }
}

@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .nav-links { display: none; }
  .hero { padding: 88px 0 56px; }
  .hero h1 { font-size: 1.92rem; line-height: 1.22; }
  .nowrap { white-space: normal; }
  .section { padding: 56px 0; }
  .reuse-visual,
  .showcase-canvas { padding: 20px 16px; }
  .bridge-top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .bridge-arrow { width: 100%; justify-content: flex-start; }
  .bridge-items li { grid-template-columns: 1fr; gap: 4px; }
  .vis-row { grid-template-columns: 1fr; gap: 6px; }
  .vis-arr { display: none; }
  .vis-out { text-align: left; }
  .vis-compare,
  .vis-guards { grid-template-columns: 1fr; }
  .dl-row { flex-direction: column; align-items: flex-start; }
  .wb-bar { padding: 12px 14px; }
  .wb-col { padding: 18px 14px; }
  .lark-thread { margin-left: 12px; padding-left: 12px; }
  .lark-card-head,
  .lark-card-foot { flex-wrap: wrap; gap: 6px; }
  .wb-bar .seg {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }
  .wb-bar .seg-compact { display: inline-flex; width: auto; }
  .wb-controls { width: 100%; justify-content: space-between; }
  .seg-btn { padding: 8px 10px; text-align: center; }
  .trace-list { padding-left: 56px; }
  .trace-list::before,
  .trace-progress { left: 42px; }
  .trace-at { left: -56px; width: 36px; }
  .trace-ev::before { left: -18px; }
}
