:root {
  /* primitives */
  --ink-950: #111210;
  --ink-900: #191a18;
  --ink-800: #282925;
  --gray-700: #555752;
  --gray-600: #6f716c;
  --gray-500: #8b8d87;
  --gray-300: #c9c9c1;
  --gray-200: #deded7;
  --gray-100: #ecece6;
  --paper-50: #fcfbf7;
  --paper-100: #f7f5ef;
  --canvas: #eff0ed;
  --yellow-500: #ffc629;
  --yellow-100: #fff3bf;
  --blue-500: #3b78f4;
  --blue-100: #e8f0ff;
  --green-500: #21a36a;
  --green-100: #e1f5eb;
  --purple-500: #8557e8;
  --purple-100: #f0e9ff;
  --orange-500: #e88f26;
  --orange-100: #fff0df;
  --red-500: #d9564e;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 0 rgba(17,18,16,.06), 0 12px 34px rgba(17,18,16,.05);
  --shadow-lg: 0 32px 80px rgba(17,18,16,.12);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* semantic */
  --color-bg: var(--canvas);
  --color-surface: var(--paper-50);
  --color-surface-soft: var(--paper-100);
  --color-text: var(--ink-950);
  --color-text-soft: var(--gray-700);
  --color-text-faint: var(--gray-500);
  --color-border: var(--gray-200);
  --color-runtime: var(--yellow-500);
  --color-rpa: var(--blue-500);
  --color-wallet: var(--purple-500);
  --color-network: var(--green-500);
  --color-live: var(--green-500);
  --color-building: var(--blue-500);
  --color-planned: var(--purple-500);
  --content-width: 1160px;
  --article-width: 880px;

  /* component */
  --card-bg: var(--color-surface);
  --card-border: 1px solid var(--color-border);
  --card-radius: var(--radius-lg);
  --card-padding: clamp(22px, 3vw, 40px);
  --section-gap: clamp(72px, 9vw, 120px);
  --content-gap: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--color-text);
  background:
    radial-gradient(circle at 12% 8%, rgba(255,198,41,.10), transparent 24%),
    var(--color-bg);
  font-family: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--yellow-100); }
a { color: inherit; }
button { font: inherit; }

.reading-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 0;
  height: 4px;
  z-index: 1000;
  background: var(--color-runtime);
  box-shadow: 0 0 14px rgba(255,198,41,.5);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - var(--content-width)) / 2));
  border-bottom: 1px solid rgba(17,18,16,.08);
  background: rgba(252,251,247,.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.03em;
}
.brand-logo {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.language-switch {
  display: inline-flex; align-items: center; gap: 3px; padding: 3px;
  border: 1px solid var(--color-border); border-radius: 999px; background: rgba(255,255,255,.72);
  font-size: 12px; font-weight: 700;
}
.language-switch a, .language-switch span { padding: 5px 8px; border-radius: 999px; color: var(--color-text-soft); text-decoration: none; }
.language-switch .active { background: var(--ink-950); color: white; }
.language-switch a:hover { color: var(--color-text); background: var(--color-surface-soft); }
.topbar-meta { color: var(--color-text-faint); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.print-btn {
  border: 1px solid var(--color-border); background: var(--color-surface);
  color: var(--color-text-soft); border-radius: 999px; padding: 8px 14px;
  cursor: pointer; transition: .2s ease;
}
.print-btn:hover { border-color: var(--gray-300); color: var(--color-text); transform: translateY(-1px); }

.shell { width: min(var(--content-width), calc(100% - 36px)); margin: 34px auto 100px; }
.hero {
  position: relative;
  overflow: hidden;
  min-height: 580px;
  padding: clamp(38px, 6vw, 72px);
  color: white;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 82% 22%, rgba(255,198,41,.62), transparent 28%),
    radial-gradient(circle at 60% 95%, rgba(70,92,255,.38), transparent 42%),
    linear-gradient(130deg, #171816 10%, #27261b 56%, #55420d 100%);
  box-shadow: var(--shadow-lg);
}
.hero::after {
  content: ""; position: absolute; right: -110px; bottom: -160px;
  width: 480px; height: 480px; border-radius: 50%;
  border: 70px solid rgba(255,255,255,.05);
}
.hero-kicker, .section-kicker, .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
.hero-kicker {
  padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
}
.hero h1 {
  position: relative; z-index: 1;
  max-width: 900px; margin: 34px 0 22px;
  font-size: clamp(50px, 7vw, 88px); line-height: 1.04; letter-spacing: -.055em;
}
.hero h1 span { color: var(--color-runtime); }
.hero-lead {
  position: relative; z-index: 1;
  max-width: 760px; margin: 0; color: rgba(255,255,255,.78);
  font-size: clamp(19px, 2.2vw, 26px); line-height: 1.55;
}
.hero-value {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-top: 52px;
}
.hero-value div {
  min-height: 110px; padding: 18px;
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-md);
  background: rgba(255,255,255,.07); backdrop-filter: blur(12px);
}
.hero-value small { display: block; color: rgba(255,255,255,.45); font-size: 11px; letter-spacing: .12em; }
.hero-value strong { display: block; margin-top: 8px; font-size: 18px; }
.hero-value p { margin: 4px 0 0; color: rgba(255,255,255,.58); font-size: 13px; line-height: 1.45; }

.intro-grid { display: grid; grid-template-columns: 290px minmax(0,1fr); gap: 30px; margin-top: 30px; align-items: start; }
.toc {
  position: sticky; top: 94px; padding: 24px;
  border: var(--card-border); border-radius: var(--card-radius); background: rgba(252,251,247,.92);
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - 118px); overflow-y: auto; overscroll-behavior: contain;
}
.toc::-webkit-scrollbar { width: 5px; }
.toc::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 999px; }
.toc h2 { margin: 0 0 16px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-faint); }
.toc-toggle { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 8px 0;
  color: var(--color-text-soft); font-size: 14px; line-height: 1.45; text-decoration: none;
}
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--color-text-faint); font: 700 11px/1.8 ui-monospace, SFMono-Regular, monospace; }
.toc a:hover, .toc a.active { color: var(--color-text); }
.toc a.active::before { color: var(--color-runtime); }
.toc-legend { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--color-border); }

.article { min-width: 0; }
.summary-card {
  padding: clamp(28px, 5vw, 52px);
  border: var(--card-border); border-radius: var(--card-radius); background: var(--card-bg); box-shadow: var(--shadow-sm);
}
.summary-card h2 { margin: 14px 0 16px; max-width: 720px; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.15; letter-spacing: -.04em; }
.summary-card > p { max-width: 720px; margin: 0; color: var(--color-text-soft); font-size: 19px; }
.summary-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.summary-list article { padding: 18px; border-radius: var(--radius-md); background: var(--color-surface-soft); }
.summary-list strong { display: block; margin-bottom: 6px; font-size: 16px; }
.summary-list p { margin: 0; color: var(--color-text-soft); font-size: 14px; line-height: 1.55; }

.doc-section { scroll-margin-top: 90px; margin-top: var(--section-gap); }
.section-heading { display: grid; grid-template-columns: 70px minmax(0,1fr); gap: 22px; align-items: start; margin-bottom: 34px; }
.section-no { font: 800 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--color-text-faint); padding-top: 14px; }
.section-heading h2 { margin: 0; font-size: clamp(36px, 5vw, 58px); line-height: 1.08; letter-spacing: -.045em; }
.section-heading p { margin: 12px 0 0; max-width: 720px; color: var(--color-text-soft); font-size: 18px; }
.section-kicker { margin-bottom: 12px; color: var(--color-text-faint); }
.runtime .section-kicker { color: #9d7100; }
.rpa .section-kicker { color: var(--color-rpa); }
.wallet .section-kicker { color: var(--color-wallet); }
.network .section-kicker { color: var(--color-network); }

.card {
  padding: var(--card-padding); border: var(--card-border); border-radius: var(--card-radius);
  background: var(--card-bg); box-shadow: var(--shadow-sm);
}
.doc-section > :not(.section-heading) + :not(.section-heading) { margin-top: var(--content-gap); }
.card h3 { margin: 0 0 10px; font-size: clamp(23px, 3vw, 32px); line-height: 1.25; letter-spacing: -.025em; }
.card h4 { margin: 0 0 8px; font-size: 17px; }
.card p { color: var(--color-text-soft); }
.card p:last-child { margin-bottom: 0; }
.lead { font-size: 20px; line-height: 1.65; color: var(--color-text) !important; }
.muted { color: var(--color-text-faint) !important; }
.micro { font-size: 13px; color: var(--color-text-faint); }

.status {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 750;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.live { color: #087c48; background: var(--green-100); }
.status.building { color: #2764d6; background: var(--blue-100); }
.status.planned { color: #7043c8; background: var(--purple-100); }
.status-row { display: flex; flex-wrap: wrap; gap: 8px; }

.quote {
  position: relative; margin: 24px 0 0; padding: 26px 30px 26px 32px;
  border-left: 5px solid var(--color-runtime); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: linear-gradient(90deg, var(--yellow-100), rgba(255,243,191,.25));
  font-size: 20px; font-weight: 650; line-height: 1.6;
}
.quote small { display: block; margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--color-text-soft); }
.callout { padding: 18px 20px; border-radius: var(--radius-md); background: var(--color-surface-soft); color: var(--color-text-soft); }
.callout strong { color: var(--color-text); }
.callout.blue { background: var(--blue-100); }
.callout.purple { background: var(--purple-100); }
.callout.green { background: var(--green-100); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; align-items: stretch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.grid-2 > *, .grid-3 > * { min-width: 0; }
.split { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 24px; align-items: center; }
.split.wide-visual { grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); }
.stack { display: grid; gap: 14px; }

.runtime-map { position: relative; margin-top: 28px; display: grid; gap: 14px; }
.map-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.map-row > div { padding: 14px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: white; text-align: center; font-size: 14px; }
.map-core {
  padding: 26px; border-radius: var(--radius-md); background: var(--ink-950); color: white;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.map-core strong { font-size: 24px; }
.map-core span { color: rgba(255,255,255,.62); font-size: 14px; }
.map-core em { font-style: normal; color: var(--color-runtime); font-weight: 800; }

.journey { display: grid; grid-template-columns: repeat(4,1fr); margin: 24px 0; }
.journey-step { position: relative; padding: 0 14px 0 0; }
.journey-step:not(:last-child)::after { content: "→"; position: absolute; right: 4px; top: 4px; color: var(--gray-300); }
.journey-step b { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 10px; border-radius: 50%; background: var(--ink-950); color: white; font: 750 12px/1 ui-monospace, monospace; }
.journey-step strong { display: block; font-size: 15px; }
.journey-step p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; }

.product-shot {
  position: relative; overflow: hidden; border-radius: 18px; background: #171816;
  border: 1px solid rgba(17,18,16,.12); box-shadow: 0 20px 50px rgba(17,18,16,.18);
}
.product-shot img { display: block; width: 100%; height: auto; }
.product-shot.light { background: white; }
.shot-caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: 12px; color: var(--color-text-faint); }
.shot-caption strong { color: var(--color-text-soft); }
.annotated { position: relative; }
.annotation {
  position: absolute; width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; background: var(--color-runtime); color: var(--ink-950); font: 800 12px/1 ui-monospace, monospace;
  box-shadow: 0 0 0 5px rgba(255,198,41,.22), 0 5px 18px rgba(0,0,0,.25);
}
.a1 { left: 8%; top: 19%; } .a2 { left: 52%; top: 39%; } .a3 { right: 16%; top: 14%; }

.mode-list { display: grid; gap: 12px; }
.mode-item { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: start; padding: 16px; border-radius: var(--radius-md); background: var(--color-surface-soft); }
.mode-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--ink-950); color: white; font-size: 18px; }
.mode-item strong { display: block; }
.mode-item p { margin: 3px 0 0; font-size: 13px; line-height: 1.5; }

.matrix { width: 100%; border-collapse: collapse; font-size: 14px; }
.matrix th, .matrix td { padding: 14px 12px; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.matrix th { color: var(--color-text-faint); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.matrix td:first-child { font-weight: 750; color: var(--color-text); }
.matrix tr:last-child td { border-bottom: 0; }
.runtime-entry-grid > .card { height: 100%; }
.agent-matrix { table-layout: fixed; }
.agent-matrix col:nth-child(1) { width: 30%; }
.agent-matrix col:nth-child(2) { width: 42%; }
.agent-matrix col:nth-child(3) { width: 28%; }
.agent-matrix th, .agent-matrix td { overflow-wrap: break-word; word-break: normal; }
.agent-matrix td:last-child { padding-left: 8px; padding-right: 4px; }
.agent-matrix .status { padding-inline: 9px; }
.environment-grid { grid-auto-rows: 1fr; }
.environment-grid > .card { display: flex; flex-direction: column; height: 100%; }
.environment-grid > .card > .status:last-child { align-self: flex-start; margin-top: auto; }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; }
.dot.live { background: var(--color-live); } .dot.building { background: var(--color-building); } .dot.planned { background: var(--color-planned); }

.lifecycle { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin-top: 24px; }
.lifecycle div { position: relative; padding: 18px 10px; border-radius: var(--radius-md); background: var(--color-surface-soft); text-align: center; font-size: 13px; }
.lifecycle div:not(:last-child)::after { content: "→"; position: absolute; right: -9px; top: 50%; z-index: 2; color: var(--gray-500); transform: translateY(-50%); }
.lifecycle strong { display: block; margin-top: 5px; font-size: 15px; }

.capability-strip { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin-top: 20px; }
.capability-strip div { padding: 14px 10px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); text-align: center; font-size: 13px; }
.capability-strip b { display: block; margin-bottom: 4px; font-size: 16px; }

.capability-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.capability-list span {
  padding: 12px 14px; border: 1px solid var(--color-border); border-radius: 999px;
  background: var(--color-surface-soft); color: var(--color-text-soft); font-size: 14px; font-weight: 650;
}

.phone-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; align-items: start; }
.phone-frame { max-height: 640px; overflow: hidden; border-radius: 28px; border: 10px solid var(--ink-950); background: white; box-shadow: 0 20px 50px rgba(17,18,16,.16); }
.phone-frame img { display: block; width: 100%; }

.protocol-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 24px; }
.protocol { padding: 18px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: white; }
.protocol code { display: inline-block; margin-bottom: 10px; padding: 4px 8px; border-radius: 7px; background: var(--ink-950); color: white; font: 700 12px/1.4 ui-monospace, monospace; }
.protocol strong { display: block; font-size: 15px; }
.protocol p { margin: 5px 0 0; font-size: 13px; line-height: 1.5; }

.scenario { overflow: hidden; padding: 0; }
.scenario-head { padding: 30px 34px; color: white; background: linear-gradient(120deg,#1c1d1a,#323123); }
.scenario-head small { color: var(--color-runtime); font-weight: 800; letter-spacing: .12em; }
.scenario-head h3 { margin: 10px 0 8px; color: white; }
.scenario-head p { margin: 0; max-width: 720px; color: rgba(255,255,255,.65); }
.run-flow { padding: 28px 34px; display: grid; gap: 0; }
.run-step { display: grid; grid-template-columns: 42px 1fr auto; gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--color-border); }
.run-step:last-child { border-bottom: 0; }
.run-step-num { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow-100); color: #8a6100; font: 800 11px/1 ui-monospace, monospace; }
.run-step strong { display: block; }
.run-step p { margin: 4px 0 0; font-size: 14px; line-height: 1.55; }

.chapter-banner { position: relative; overflow: hidden; padding: clamp(34px,6vw,64px); border-radius: var(--radius-xl); color: white; box-shadow: var(--shadow-lg); }
.chapter-banner h2 { max-width: 780px; margin: 18px 0 10px; font-size: clamp(44px,6vw,72px); line-height: 1.05; letter-spacing: -.05em; }
.chapter-banner p { max-width: 700px; margin: 0; color: rgba(255,255,255,.72); font-size: 20px; }
.chapter-banner.rpa { background: radial-gradient(circle at 85% 20%, rgba(91,150,255,.7), transparent 31%), linear-gradient(130deg,#172342,#284f9f); }
.chapter-banner.wallet { background: radial-gradient(circle at 85% 20%, rgba(177,119,255,.65), transparent 31%), linear-gradient(130deg,#25153b,#5d319d); }
.chapter-banner.network { background: radial-gradient(circle at 85% 20%, rgba(68,208,136,.55), transparent 31%), linear-gradient(130deg,#102b20,#176d48); }

.explore-flow, .pay-flow, .network-flow { display: flex; align-items: stretch; gap: 8px; margin-top: 24px; }
.flow-node { flex: 1; min-width: 0; padding: 18px; border-radius: var(--radius-md); background: white; border: 1px solid var(--color-border); }
.flow-node strong { display: block; font-size: 15px; }
.flow-node p { margin: 5px 0 0; font-size: 13px; line-height: 1.5; }
.flow-arrow { display: grid; place-items: center; color: var(--gray-500); font-size: 20px; }
.rpa .flow-node.highlight { background: var(--blue-100); border-color: rgba(59,120,244,.3); }
.wallet .flow-node.highlight { background: var(--purple-100); border-color: rgba(133,87,232,.3); }
.network .flow-node.highlight { background: var(--green-100); border-color: rgba(33,163,106,.3); }

.object-box { padding: 24px; border-radius: var(--radius-lg); background: var(--ink-950); color: white; }
.object-box > small { color: var(--color-runtime); letter-spacing: .12em; font-weight: 800; }
.object-box h3 { color: white; margin-top: 10px; }
.field-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 18px; }
.field-list div { padding: 12px; border-radius: var(--radius-sm); background: rgba(255,255,255,.08); color: rgba(255,255,255,.68); font-size: 13px; }
.field-list strong { display: block; color: white; font-size: 14px; }

.timeline { position: relative; display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.timeline::before { content: ""; position: absolute; left: 6%; right: 6%; top: 30px; height: 2px; background: var(--color-border); }
.phase { position: relative; padding: 50px 20px 22px; border: var(--card-border); border-radius: var(--radius-md); background: white; }
.phase::before { content: ""; position: absolute; top: 23px; left: 20px; width: 14px; height: 14px; border: 4px solid white; border-radius: 50%; box-shadow: 0 0 0 1px var(--color-border); background: var(--gray-300); }
.phase.today::before { background: var(--color-live); } .phase.next::before { background: var(--color-building); } .phase.later::before { background: var(--color-planned); }
.phase strong { display: block; font-size: 18px; }
.phase p { margin: 5px 0 0; font-size: 13px; line-height: 1.6; }

.faq details { padding: 20px 0; border-bottom: 1px solid var(--color-border); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; font-size: 18px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--color-text-faint); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; max-width: 760px; }

.footer { margin-top: var(--section-gap); padding: 44px; border-radius: var(--radius-xl); background: var(--ink-950); color: white; }
.footer h2 { margin: 0; font-size: clamp(34px,5vw,56px); line-height: 1.1; letter-spacing: -.04em; }
.footer p { max-width: 720px; color: rgba(255,255,255,.6); }
.source-list { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.45); font-size: 12px; line-height: 1.7; }

/* strategic document components */
.decision-tag {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  padding: 6px 10px; border-radius: 999px; background: var(--yellow-100);
  color: #765300; font-size: 12px; font-weight: 800; letter-spacing: .08em;
}
.decision-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 26px; }
.decision-grid > div { padding: 20px; border-radius: var(--radius-md); background: var(--color-surface-soft); }
.decision-grid b { display: block; margin-bottom: 4px; font-size: 17px; }
.decision-grid p { margin: 0; font-size: 14px; line-height: 1.55; }

.part-divider {
  position: relative; overflow: hidden; margin-top: var(--section-gap); padding: clamp(34px,6vw,62px);
  border-radius: var(--radius-xl); color: white; background: var(--ink-950); box-shadow: var(--shadow-lg);
}
.part-divider::after { content: ""; position: absolute; right: -90px; top: -100px; width: 330px; height: 330px; border-radius: 50%; border: 55px solid rgba(255,255,255,.05); }
.part-divider small { color: var(--color-runtime); font-weight: 800; letter-spacing: .15em; }
.part-divider h2 { max-width: 780px; margin: 14px 0 10px; font-size: clamp(38px,5vw,60px); line-height: 1.08; letter-spacing: -.045em; }
.part-divider p { max-width: 720px; margin: 0; color: rgba(255,255,255,.62); font-size: 18px; }
.part-divider.product { background: linear-gradient(130deg,#111210,#3a3114); }
.part-divider.enterprise { background: linear-gradient(130deg,#101b18,#194f3a); }

.market-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.market-item { padding: 22px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: white; }
.market-item .num { font: 800 12px/1 ui-monospace,monospace; color: var(--color-text-faint); }
.market-item h3 { margin: 16px 0 7px; font-size: 20px; }
.market-item p { margin: 0; font-size: 14px; line-height: 1.6; }

.layer-stack { display: grid; gap: 8px; margin-top: 24px; }
.layer { display: grid; grid-template-columns: 160px 1fr auto; gap: 18px; align-items: center; padding: 18px 20px; border-radius: var(--radius-md); background: white; border: 1px solid var(--color-border); }
.layer strong { font-size: 15px; }
.layer p { margin: 0; font-size: 13px; line-height: 1.5; }
.layer.beeos { background: var(--ink-950); color: white; border-color: var(--ink-950); transform: scale(1.018); box-shadow: 0 18px 40px rgba(17,18,16,.15); }
.layer.beeos p { color: rgba(255,255,255,.65); }
.layer.beeos .layer-label { color: var(--color-runtime); }
.layer-label { font: 800 11px/1.4 ui-monospace,monospace; letter-spacing: .1em; color: var(--color-text-faint); }

.value-rows { display: grid; gap: 0; }
.value-row { display: grid; grid-template-columns: 58px 210px 1fr; gap: 18px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--color-border); }
.value-row:last-child { border-bottom: 0; }
.value-row > b { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--yellow-100); color: #815d00; font: 800 12px/1 ui-monospace,monospace; }
.value-row strong { font-size: 17px; }
.value-row p { margin: 0; font-size: 14px; line-height: 1.6; }

.buyer-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.buyer { padding: 24px; border-radius: var(--radius-md); background: var(--color-surface-soft); }
.buyer small { color: var(--color-text-faint); font-weight: 800; letter-spacing: .1em; }
.buyer h3 { margin: 10px 0 8px; font-size: 22px; }
.buyer p { margin: 0; font-size: 14px; }

.scenario-grid { display: grid; gap: 16px; }
.scenario-line { display: grid; grid-template-columns: 170px 1fr 230px; gap: 20px; padding: 24px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: white; }
.scenario-line h3 { margin: 0; font-size: 18px; }
.scenario-line p { margin: 0; font-size: 14px; line-height: 1.6; }
.scenario-line ul { margin: 0; padding-left: 18px; color: var(--color-text-soft); font-size: 13px; }

.evidence-note { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--color-surface-soft); font-size: 12px; color: var(--color-text-faint); }
.evidence-note::before { content: "i"; flex: 0 0 22px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--ink-950); color: white; font: 800 11px/1 serif; }

.source-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 22px; }
.source-card { padding: 15px 16px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm); color: rgba(255,255,255,.58); text-decoration: none; font-size: 12px; line-height: 1.45; }
.source-card strong { display: block; color: white; margin-bottom: 4px; }
.source-card:hover { border-color: rgba(255,198,41,.45); color: rgba(255,255,255,.8); }

.model-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 18px; }
.model-strip div { padding: 16px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: white; text-align: center; font-size: 13px; }
.model-strip strong { display: block; font-size: 16px; }

.metric-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.metric { padding: 18px; border-radius: var(--radius-md); background: var(--color-surface-soft); }
.metric strong { display: block; font-size: 15px; }
.metric p { margin: 5px 0 0; font-size: 13px; line-height: 1.5; }

.exec-stop { margin-top: 22px; padding: 18px 20px; border-radius: var(--radius-md); background: var(--ink-950); color: white; }
.exec-stop strong { color: var(--color-runtime); }
.exec-stop p { margin: 5px 0 0; color: rgba(255,255,255,.62); font-size: 14px; }

@media (max-width: 980px) {
  .intro-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc { max-height: none; overflow: visible; }
  .toc ol { columns: 2; }
  .hero-value { grid-template-columns: repeat(2,1fr); }
  .summary-list, .grid-3 { grid-template-columns: 1fr; }
  .split, .split.wide-visual { grid-template-columns: 1fr; }
  .protocol-grid { grid-template-columns: repeat(2,1fr); }
  .map-row { grid-template-columns: repeat(2,1fr); }
  .market-grid, .metric-grid { grid-template-columns: 1fr 1fr; }
  .scenario-line { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  :root {
    --section-gap: 52px;
    --content-gap: 16px;
    --card-padding: 20px;
  }
  body { overflow-x: hidden; font-size: 16px; line-height: 1.68; }
  .shell { width: min(100% - 24px, var(--content-width)); margin: 12px auto 56px; }
  .topbar { height: 56px; padding: 0 12px; }
  .topbar-actions { gap: 7px; }
  .topbar-meta { display: none; }
  .language-switch a, .language-switch span { padding: 4px 7px; }
  .brand { gap: 8px; font-size: 20px; }
  .brand-logo { width: 32px; height: 32px; border-radius: 7px; }
  .print-btn { min-height: 40px; padding: 7px 11px; font-size: 13px; }

  .hero { min-height: auto; padding: 28px 20px; border-radius: 20px; }
  .hero::after { right: -175px; bottom: -215px; }
  .hero-kicker { padding: 6px 10px; font-size: 10px; letter-spacing: .12em; }
  .hero h1 { margin: 26px 0 18px; font-size: 42px; line-height: 1.02; }
  .hero-lead { font-size: 16px; line-height: 1.65; }
  .hero-value { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 28px; }
  .hero-value div { min-height: 0; padding: 14px 12px; border-radius: 14px; }
  .hero-value small { font-size: 9px; letter-spacing: .08em; }
  .hero-value strong { margin-top: 6px; font-size: 15px; }
  .hero-value p { margin-top: 3px; font-size: 12px; line-height: 1.45; }

  .intro-grid { margin-top: 14px; gap: 18px; }
  .toc { padding: 0 18px; border-radius: 18px; }
  .toc h2 { display: none; }
  .toc-toggle {
    width: 100%; min-height: 58px; padding: 0;
    display: flex; align-items: center; justify-content: space-between;
    border: 0; color: var(--color-text); background: transparent;
    font-weight: 750; cursor: pointer;
  }
  .toc-toggle-icon { font-size: 22px; color: var(--color-text-faint); transition: transform .2s ease; }
  .toc.is-open .toc-toggle-icon { transform: rotate(180deg); }
  .toc-content { display: none; padding: 0 0 18px; }
  .toc.is-open .toc-content { display: block; }
  .toc ol { columns: 1; padding-top: 8px; border-top: 1px solid var(--color-border); }
  .toc a { min-height: 44px; padding: 10px 0; font-size: 14px; }

  .summary-card { padding: 24px 20px; border-radius: 18px; }
  .summary-card h2 { margin-top: 12px; font-size: 30px; line-height: 1.16; }
  .summary-card > p { font-size: 16px; }
  .decision-grid { margin-top: 20px; }
  .decision-grid > div { padding: 17px; }
  .decision-tag { max-width: 100%; font-size: 10px; letter-spacing: .05em; }

  .part-divider, .chapter-banner { padding: 28px 22px; border-radius: 20px; }
  .part-divider h2 { margin-top: 12px; font-size: 34px; line-height: 1.12; }
  .part-divider p, .chapter-banner p { font-size: 16px; line-height: 1.65; }
  .chapter-banner h2 { margin-top: 14px; font-size: 38px; line-height: 1.08; }

  .doc-section, .summary-card { scroll-margin-top: 72px; }
  .section-heading { grid-template-columns: 1fr; gap: 5px; margin-bottom: 22px; }
  .section-no { padding: 0 0 3px; font-size: 11px; }
  .section-kicker { margin-bottom: 8px; font-size: 10px; letter-spacing: .12em; }
  .section-heading h2 { font-size: 30px; line-height: 1.14; letter-spacing: -.035em; }
  .section-heading p { margin-top: 10px; font-size: 16px; line-height: 1.68; }
  .card { border-radius: 18px; }
  .card h3 { font-size: 21px; line-height: 1.3; }
  .lead { font-size: 18px; }
  .quote { padding: 20px; border-left-width: 4px; font-size: 17px; }
  .callout { padding: 16px; }

  .grid-2, .phone-pair, .timeline { grid-template-columns: 1fr; gap: 14px; }
  .decision-grid, .buyer-grid, .market-grid, .metric-grid, .source-cards { grid-template-columns: 1fr; }
  .grid-3 { gap: 14px; }
  .market-grid, .buyer-grid, .metric-grid { gap: 12px; }
  .market-item, .buyer, .metric { padding: 18px; }
  .market-item h3, .buyer h3 { font-size: 19px; }
  .scenario-line { gap: 12px; padding: 18px; }

  .layer { grid-template-columns: 1fr; gap: 5px; padding: 16px; }
  .layer.beeos { transform: none; }
  .value-row { grid-template-columns: 40px 1fr; gap: 10px; padding: 18px 0; }
  .value-row > b { width: 36px; height: 36px; border-radius: 11px; }
  .value-row p { grid-column: 2; }
  .model-strip { grid-template-columns: 1fr 1fr; }
  .timeline::before { display: none; }

  .runtime-map { gap: 10px; }
  .map-row { gap: 8px; }
  .map-row > div { padding: 12px 8px; font-size: 12px; }
  .map-core { padding: 20px; }
  .map-core strong { font-size: 21px; }

  .journey { grid-template-columns: 1fr; gap: 0; margin: 16px 0; }
  .journey-step {
    display: grid; grid-template-columns: 36px 1fr; gap: 2px 10px;
    padding: 13px 0; border-bottom: 1px solid var(--color-border);
  }
  .journey-step:last-child { border-bottom: 0; }
  .journey-step b { grid-row: 1 / 3; margin: 0; }
  .journey-step strong, .journey-step p { grid-column: 2; }
  .journey-step p { margin-top: 2px; }
  .journey-step:not(:last-child)::after { display: none; }
  .lifecycle, .capability-strip { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lifecycle div { padding: 15px 8px; }
  .lifecycle div:not(:last-child)::after { display: none; }

  .product-shot { border-radius: 14px; }
  .shot-caption { display: block; margin-top: 9px; line-height: 1.5; }
  .shot-caption > :last-child { display: block; margin-top: 3px; }
  .annotation { width: 24px; height: 24px; box-shadow: 0 0 0 4px rgba(255,198,41,.18); }
  .phone-frame { max-height: 520px; border-width: 7px; border-radius: 22px; }

  .mode-item { grid-template-columns: 38px 1fr; gap: 10px; padding: 14px; }
  .mode-icon { width: 38px; height: 38px; border-radius: 10px; }
  .mode-item > .status { grid-column: 2; justify-self: start; margin-top: 4px; }

  .matrix, .matrix tbody { display: block; width: 100%; }
  .matrix tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--color-border); }
  .matrix tr:first-child {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
  .matrix tr:last-child { border-bottom: 0; }
  .matrix th { display: table-cell; }
  .matrix td {
    display: block; width: 100%; padding: 3px 0; border: 0;
    overflow-wrap: anywhere;
  }
  .matrix td:first-child { margin-bottom: 3px; font-size: 15px; }
  .matrix td:last-child { margin-top: 7px; }
  .agent-matrix { table-layout: auto; }
  .agent-matrix col { width: auto !important; }
  .agent-matrix td:last-child { padding: 0; }
  .status { padding: 5px 9px; font-size: 11px; }

  .scenario-head { padding: 24px 20px; }
  .run-flow { padding: 14px 20px; }
  .run-step { grid-template-columns: 34px 1fr; gap: 10px; padding: 15px 0; }
  .protocol-grid { grid-template-columns: 1fr; }
  .explore-flow, .pay-flow, .network-flow { flex-direction: column; }
  .flow-arrow { min-height: 24px; font-size: 0; transform: none; }
  .flow-arrow::before { content: "↓"; font-size: 18px; line-height: 1; }
  .flow-node { padding: 16px; }
  .map-core { align-items: flex-start; flex-direction: column; }
  .run-step .status { grid-column: 2; justify-self: start; }
  .object-box { padding: 20px; border-radius: 18px; }
  .field-list { gap: 7px; }
  .field-list div { padding: 10px; }
  .phase { padding: 44px 18px 18px; }
  .evidence-note { padding: 13px 14px; }
  .exec-stop { padding: 17px; }

  .footer { padding: 30px 22px; border-radius: 20px; }
  .footer h2 { font-size: 32px; line-height: 1.14; }
  .source-list { margin-top: 22px; padding-top: 18px; }
  .source-card { padding: 14px; }
}

@media print {
  @page { size: A4; margin: 10mm; }
  :root { --section-gap: 14mm; --content-gap: 16px; --card-padding: 22px; }
  body { background: white; font-size: 11pt; line-height: 1.6; }
  .topbar, .reading-progress, .toc, .print-btn { display: none !important; }
  .shell { width: 100%; margin: 0; }
  .intro-grid { display: block; }
  .hero, .chapter-banner, .footer { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .hero {
    min-height: 315mm;
    display: flex;
    flex-direction: column;
    justify-content: center;
    break-after: page;
    box-shadow: none;
  }
  .summary-card { break-inside: avoid-page; box-shadow: none; }
  .part-divider { break-before: page; break-after: avoid-page; break-inside: avoid-page; }
  .part-divider + .doc-section { margin-top: 12mm; }
  .doc-section { break-before: auto; margin-top: var(--section-gap); }
  .section-heading { break-after: avoid-page; margin-bottom: 22px; }
  .card, .product-shot, .chapter-banner, .grid-2, .grid-3, .market-grid, .buyer-grid,
  .decision-grid, .metric-grid, .scenario-grid, .timeline, .journey, .lifecycle {
    break-inside: avoid-page;
    box-shadow: none;
  }
  .chapter-banner { break-after: avoid-page; }
  .footer {
    min-height: 315mm;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    break-before: page;
    box-shadow: none;
  }
}
