:root {
  --bg: #fbf7f1;
  --bg2: #f3ebe0;
  --paper: #ffffff;
  --ink: #2a1f16;
  --muted: #6e5a48;
  --faint: #9a8674;
  --line: rgba(122, 84, 48, 0.14);
  --line2: rgba(122, 84, 48, 0.08);
  --coffee: #6f4e37;
  --coffee2: #4a3424;
  --gold: #c4a35a;
  --gold2: #e2c77a;
  --gold-soft: rgba(196, 163, 90, 0.16);
  --shadow: 0 10px 30px rgba(74, 52, 36, 0.08);
  --r: 16px;
  --font: "Noto Sans SC", "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --display: "Fraunces", "Noto Serif SC", Georgia, serif;
  --max: 1100px;
}
* { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto }
.bg-orb {
  pointer-events: none; position: fixed; inset: auto -10% -20% auto;
  width: 55vw; height: 55vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(226,199,122,.28), transparent 65%);
  z-index: 0;
}
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold2), var(--gold), var(--coffee));
  z-index: 100; transition: width .08s linear;
}
.top, main, .foot { position: relative; z-index: 1 }
.top {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(251,247,241,.9);
  border-bottom: 1px solid var(--line2);
}
.top.scrolled { box-shadow: 0 8px 24px rgba(74,52,36,.06) }
.top-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700 }
.mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; color: #fff;
  background: linear-gradient(135deg, var(--gold2), var(--gold) 40%, var(--coffee));
  box-shadow: 0 8px 20px rgba(111,78,55,.2);
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.15 }
.brand-txt small { color: var(--faint); font-size: 11px; font-weight: 500; margin-top: 2px }
.nav-links {
  display: flex; flex-wrap: wrap; gap: 4px 2px; justify-content: flex-end;
  max-width: 62%;
}
.nav-links a {
  font-size: 12px; color: var(--muted); padding: 6px 9px; border-radius: 999px;
  transition: .15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--coffee2); background: var(--gold-soft);
}
.hero { padding: 40px 0 18px }
.eyebrow {
  color: var(--coffee); font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px;
}
h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.12;
  letter-spacing: -.02em; color: var(--coffee2);
}
h1 em { font-style: italic; color: var(--gold); font-weight: 600 }
.lead { margin-top: 14px; max-width: 68ch; color: var(--muted); font-size: 1.05rem }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-top: 28px;
}
.stat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 14px; box-shadow: var(--shadow);
}
.stat b {
  display: block; font-family: var(--display); font-size: 1.35rem;
  color: var(--coffee2); line-height: 1.2; margin-bottom: 4px;
}
.stat span { font-size: 12px; color: var(--faint) }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: 12px; color: var(--muted); box-shadow: var(--shadow);
}
.pill b { color: var(--coffee2) }
.toc {
  display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 20px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.toc::-webkit-scrollbar { display: none }
.toc a {
  flex: 0 0 auto; padding: 10px 14px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: 13px; color: var(--muted); box-shadow: var(--shadow);
  white-space: nowrap;
}
.toc a:hover { border-color: var(--gold); color: var(--coffee2) }
.sec {
  padding: 36px 0; border-top: 1px solid var(--line2);
}
.sec-head {
  display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px;
}
.sec-icon {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 20px;
  background: linear-gradient(135deg, var(--gold-soft), #fff);
  border: 1px solid var(--line);
}
.sec-head h2 {
  font-family: var(--display); font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  color: var(--coffee2); line-height: 1.25;
}
.sec-sub { color: var(--faint); font-size: 14px; margin-top: 4px }
.prose { color: var(--muted); max-width: 72ch }
.prose p + p { margin-top: 12px }
.prose strong { color: var(--coffee2) }
.one-liner {
  margin: 18px 0;
  padding: 18px 20px;
  border-radius: var(--r);
  background: linear-gradient(135deg, #fff, var(--gold-soft));
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  color: var(--coffee2); font-weight: 600; line-height: 1.55;
}
.grid-2 {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px;
}
.grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px;
}
.grid-4 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px;
}
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; box-shadow: var(--shadow);
}
.card h3 {
  font-size: 1rem; color: var(--coffee2); margin-bottom: 8px;
  font-family: var(--display);
}
.card p, .card li { font-size: 14px; color: var(--muted) }
.card ul { padding-left: 18px; margin-top: 8px }
.card li + li { margin-top: 4px }
.tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--coffee); background: var(--gold-soft);
  padding: 4px 8px; border-radius: 999px; margin-bottom: 10px;
}
.layer {
  position: relative; overflow: hidden;
}
.layer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold2), var(--coffee));
}
.kv {
  display: grid; gap: 8px; margin-top: 10px;
}
.kv-row {
  display: grid; grid-template-columns: 100px 1fr; gap: 10px;
  font-size: 13px; padding: 8px 0; border-bottom: 1px dashed var(--line2);
}
.kv-row:last-child { border-bottom: 0 }
.kv-row b { color: var(--coffee2) }
.kv-row span { color: var(--muted) }
.principle {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; border-radius: var(--r);
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.principle .num {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--coffee));
  font-size: 14px;
}
.principle h3 { font-size: 15px; color: var(--coffee2); margin-bottom: 4px }
.principle p { font-size: 13px; color: var(--muted) }
.flow {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px;
}
.flow-step {
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 14px; font-size: 13px; color: var(--coffee2); font-weight: 600;
  box-shadow: var(--shadow);
}
.flow-arrow { color: var(--gold); font-weight: 700 }
.table-cards { display: grid; gap: 10px; margin-top: 14px }
.trow {
  display: grid; grid-template-columns: 1.1fr 1fr 1.4fr; gap: 10px;
  padding: 14px 16px; border-radius: 12px;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow); font-size: 13px;
}
.trow.head {
  background: linear-gradient(135deg, var(--coffee2), var(--coffee));
  color: #fff; border: 0; font-weight: 700;
}
.trow > div:first-child { color: var(--coffee2); font-weight: 700 }
.trow.head > div:first-child { color: #fff }
.trow > div { color: var(--muted) }
.alloc {
  display: grid; gap: 10px; margin-top: 14px;
}
.alloc-item {
  display: grid; grid-template-columns: 140px 1fr 56px; gap: 12px; align-items: center;
  padding: 12px 14px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow);
}
.alloc-item b { font-size: 13px; color: var(--coffee2) }
.bar {
  height: 10px; border-radius: 999px; background: var(--bg2); overflow: hidden;
}
.bar > i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold2), var(--coffee));
}
.alloc-item .pct {
  text-align: right; font-weight: 800; color: var(--coffee); font-size: 14px;
}
.cat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 0; box-shadow: var(--shadow); overflow: hidden; cursor: pointer;
  transition: border-color .15s;
}
.cat:hover { border-color: rgba(196,163,90,.45) }
.cat-head {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
}
.cat-num {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--coffee));
}
.cat-head h3 { font-size: 15px; color: var(--coffee2) }
.cat-head p { font-size: 12px; color: var(--faint); margin-top: 2px }
.cat-arrow {
  margin-left: auto; color: var(--gold); font-size: 20px; transition: transform .2s;
}
.cat.open .cat-arrow { transform: rotate(90deg) }
.cat-detail {
  display: none; padding: 0 18px 16px 64px; color: var(--muted); font-size: 14px;
  border-top: 1px dashed var(--line2);
}
.cat.open .cat-detail { display: block; padding-top: 12px }
.roadmap {
  display: grid; gap: 12px; margin-top: 14px;
}
.rm {
  display: grid; grid-template-columns: 88px 1fr; gap: 14px;
  padding: 16px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow);
}
.rm .m {
  font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--gold), var(--coffee));
  border-radius: 12px; display: grid; place-items: center; font-size: 13px; min-height: 52px;
}
.rm h3 { font-size: 15px; color: var(--coffee2); margin-bottom: 4px }
.rm p { font-size: 13px; color: var(--muted) }
.kpi {
  text-align: center; padding: 18px 12px;
}
.kpi b {
  display: block; font-family: var(--display); font-size: 1.15rem;
  color: var(--coffee2); margin-bottom: 6px;
}
.kpi span { font-size: 12px; color: var(--faint) }
.warn {
  margin-top: 16px; padding: 16px 18px; border-radius: var(--r);
  background: #fff8f0; border: 1px solid rgba(196,163,90,.35);
  color: var(--muted); font-size: 13px;
}
.warn strong { color: var(--coffee2) }
.cta {
  margin: 10px 0 40px; padding: 28px; border-radius: 20px;
  background: linear-gradient(135deg, var(--coffee2), var(--coffee));
  color: #fff; box-shadow: 0 16px 40px rgba(74,52,36,.22);
  text-align: center;
}
.cta h2 { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 10px }
.cta p { opacity: .9; max-width: 56ch; margin: 0 auto 18px; font-size: 14px }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: 14px;
  border: 0; cursor: pointer;
}
.btn-gold { background: linear-gradient(135deg, var(--gold2), var(--gold)); color: var(--coffee2) }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35) }
.foot {
  border-top: 1px solid var(--line2); padding: 28px 0 40px;
  color: var(--faint); font-size: 12px; text-align: center;
}
.foot b { color: var(--muted) }
.fade-in { opacity: 0; transform: translateY(18px); transition: .55s ease }
.fade-in.visible { opacity: 1; transform: none }
@media (max-width: 900px) {
  .nav-links { display: none }
  .hero-stats, .grid-4 { grid-template-columns: repeat(2, 1fr) }
  .grid-3, .grid-2 { grid-template-columns: 1fr }
  .trow { grid-template-columns: 1fr; gap: 4px }
  .trow.head { display: none }
  .alloc-item { grid-template-columns: 1fr 48px; }
  .alloc-item .bar { grid-column: 1 / -1; order: 3 }
  .rm { grid-template-columns: 72px 1fr }
  .cat-detail { padding-left: 18px }
}
@media (max-width: 520px) {
  .hero-stats { grid-template-columns: 1fr 1fr }
}
