:root {
  color-scheme: light;
  --ink: #15302b;
  --ink-soft: #4f625e;
  --paper: #f6f3ec;
  --paper-deep: #ebe5d9;
  --white: #fffefb;
  --green: #1d6958;
  --green-dark: #0e453b;
  --green-pale: #dfece5;
  --gold: #bf8a37;
  --gold-pale: #f4ead6;
  --rose: #a9483b;
  --rose-pale: #f5e2dc;
  --blue: #376982;
  --line: rgba(21, 48, 43, 0.14);
  --shadow: 0 24px 70px rgba(46, 56, 46, 0.1);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --shell: 1120px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(21, 48, 43, 0.08);
  background: rgba(246, 243, 236, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  width: min(calc(100% - 32px), var(--shell));
  min-height: 68px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-dark);
  color: white;
  font-family: Georgia, serif;
  font-size: 15px;
}

.site-header nav {
  display: flex;
  gap: 22px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--green);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 96px 0 84px;
  background:
    linear-gradient(145deg, rgba(255, 254, 251, 0.96), rgba(238, 234, 221, 0.88)),
    var(--paper);
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgba(29, 105, 88, 0.13) 0.8px, transparent 0.8px);
  background-size: 22px 22px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0.6;
}

.hero-glow-one {
  top: -260px;
  right: -160px;
  width: 540px;
  height: 540px;
  background: rgba(29, 105, 88, 0.14);
}

.hero-glow-two {
  bottom: -340px;
  left: -180px;
  width: 620px;
  height: 620px;
  background: rgba(191, 138, 55, 0.11);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: 76px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.26;
}

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-family: Georgia, "Noto Serif TC", "Songti TC", serif;
  font-size: clamp(42px, 5.6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 20px;
  font-family: Georgia, "Noto Serif TC", "Songti TC", serif;
  font-size: clamp(32px, 4.2vw, 52px);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

p {
  margin: 0 0 16px;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: 21px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
}

.button-primary {
  background: var(--green-dark);
  box-shadow: 0 14px 28px rgba(14, 69, 59, 0.18);
  color: white;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.truth-card {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  background: rgba(255, 254, 251, 0.86);
  box-shadow: var(--shadow);
}

.truth-label {
  margin-bottom: 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.truth-card > strong {
  display: block;
  margin-bottom: 24px;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: 27px;
  line-height: 1.4;
}

.plain-list {
  display: grid;
  margin: 0 0 22px;
  padding: 0;
  gap: 12px;
  list-style: none;
  color: var(--ink-soft);
  font-size: 15px;
}

.plain-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.dot {
  display: inline-block;
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-radius: 50%;
}

.dot-ok {
  background: #4e9a7f;
}

.dot-warn {
  background: #d49b44;
}

.dot-risk {
  background: #c15b4f;
}

.small-note {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.quick-nav {
  position: relative;
  z-index: 2;
  margin-top: -30px;
}

.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
  border: 1px solid rgba(21, 48, 43, 0.09);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(46, 56, 46, 0.08);
}

.quick-nav-grid a {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border-right: 1px solid var(--line);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.quick-nav-grid a:last-child {
  border-right: 0;
}

.quick-nav-grid span {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 18px;
}

.section {
  padding: 104px 0;
}

.section-tint {
  background: var(--paper-deep);
}

.section-dark {
  background: var(--green-dark);
  color: white;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 52px;
}

.section-heading > p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.compact-heading {
  margin-bottom: 38px;
}

.light-heading .eyebrow {
  color: #d4b87c;
}

.light-heading > p:last-child {
  color: rgba(255, 255, 255, 0.7);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.summary-card {
  min-height: 260px;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.summary-card .number {
  display: block;
  margin-bottom: 52px;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 26px;
}

.summary-card h3 {
  font-size: 18px;
}

.summary-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 76px;
}

.prose {
  color: var(--ink-soft);
  font-size: 19px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 62px;
  gap: 18px;
}

.problem-grid article {
  padding: 30px;
  border-radius: var(--radius-md);
  background: rgba(255, 254, 251, 0.78);
}

.problem-before {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.problem-grid p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.role-card {
  display: flex;
  min-height: 290px;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.role-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green-dark);
  font-weight: 900;
}

.role-card p {
  flex: 1;
  color: var(--ink-soft);
  font-size: 15px;
}

.status {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
}

.status-done {
  background: var(--green-pale);
  color: var(--green-dark);
}

.status-partial {
  background: var(--gold-pale);
  color: #795617;
}

.status-design {
  background: #e2e8eb;
  color: #46606b;
}

.status-absent {
  background: var(--rose-pale);
  color: #87372e;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 28px;
  gap: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.legend-dot.done {
  background: #86c5ad;
}

.legend-dot.partial {
  background: #e2b25d;
}

.legend-dot.design {
  background: #a9bbc2;
}

.legend-dot.absent {
  background: #d3796d;
}

.feature-list {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
}

.feature-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

.feature-item:last-child {
  border-bottom: 0;
}

.feature-item summary {
  display: grid;
  min-height: 82px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px 26px;
  cursor: pointer;
  list-style: none;
}

.feature-item summary::-webkit-details-marker {
  display: none;
}

.feature-item summary::after {
  grid-column: 4;
  color: rgba(255, 255, 255, 0.55);
  content: "+";
  font-size: 24px;
}

.feature-item[open] summary::after {
  content: "−";
}

.feature-index {
  color: #d4b87c;
  font-family: Georgia, serif;
  font-size: 18px;
}

.feature-title {
  font-size: 18px;
  font-weight: 800;
}

.feature-body {
  padding: 0 90px 34px;
  color: rgba(255, 255, 255, 0.78);
}

.feature-body dl {
  display: grid;
  margin: 0;
  gap: 1px;
}

.feature-body dl > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-body dl > div:last-child {
  border-bottom: 0;
}

.feature-body dt {
  color: #d9c28c;
  font-size: 13px;
  font-weight: 900;
}

.feature-body dd {
  margin: 0;
  font-size: 15px;
}

.feature-muted {
  background: rgba(255, 255, 255, 0.018);
}

.flow-stack {
  display: grid;
  gap: 22px;
}

.flow-card {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.flow-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  background: var(--green-pale);
}

.flow-number {
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 28px;
}

.flow-header h3 {
  margin-bottom: 4px;
}

.flow-header p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.flow-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 28px;
  gap: 12px;
  list-style: none;
}

.flow-line li {
  position: relative;
  min-width: 0;
  padding: 16px 14px;
  border-radius: var(--radius-sm);
  background: #f7f8f4;
}

.flow-line li::after {
  position: absolute;
  top: 50%;
  right: -10px;
  color: var(--gold);
  content: "→";
  transform: translateY(-50%);
}

.flow-line li:last-child::after {
  display: none;
}

.flow-line li > span {
  display: grid;
  width: 28px;
  height: 28px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-dark);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.flow-line strong,
.flow-line small {
  display: block;
}

.flow-line strong {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.5;
}

.flow-line small {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.flow-line .flow-blocked {
  background: var(--gold-pale);
}

.flow-line .flow-blocked > span {
  background: var(--gold);
}

.flow-empty {
  grid-template-columns: 250px minmax(0, 1fr);
}

.empty-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 28px 10px;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 14px;
}

.empty-flow span {
  padding: 10px 12px;
  border: 1px dashed rgba(169, 72, 59, 0.35);
  border-radius: 999px;
  background: var(--rose-pale);
}

.empty-flow i {
  color: var(--rose);
  font-style: normal;
}

.flow-empty > .small-note {
  grid-column: 2;
  padding: 0 28px 26px;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.data-grid article {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius-md);
  background: rgba(255, 254, 251, 0.86);
}

.data-grid article > span {
  margin-bottom: 34px;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 21px;
}

.data-grid article p {
  flex: 1;
  color: var(--ink-soft);
  font-size: 14px;
}

.data-grid article b {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--rose-pale);
  color: #7c3d34;
  font-size: 11px;
}

.relationship-card {
  margin-top: 26px;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 18px 48px rgba(46, 56, 46, 0.07);
}

.relationship-title {
  margin-bottom: 30px;
  text-align: center;
}

.relationship-title h3 {
  font-size: 26px;
}

.relationship-map {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.relation-node {
  width: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7f8f4;
  font-weight: 900;
  text-align: center;
}

.relation-node small {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
}

.node-primary {
  max-width: 360px;
  border-color: transparent;
  background: var(--green-dark);
  color: white;
}

.node-primary small {
  color: rgba(255, 255, 255, 0.68);
}

.relation-branch {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.relation-branch.three {
  grid-template-columns: repeat(3, 1fr);
}

.relation-arrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.node-setting {
  background: var(--gold-pale);
}

.node-key {
  background: #dfeaf0;
}

.node-log {
  background: #ece8ef;
}

.diagram-note {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--rose);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 22px;
}

.screen-card {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 18px 48px rgba(46, 56, 46, 0.06);
}

.screen-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 11px;
}

.phone-frame {
  overflow: hidden;
  max-height: 520px;
  border: 8px solid #1d2523;
  border-radius: 30px;
  background: white;
}

.phone-frame img {
  width: 100%;
}

.screen-card figcaption {
  padding: 20px 8px 4px;
}

.screen-card figcaption strong {
  display: block;
  margin-bottom: 6px;
}

.screen-card figcaption p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.mock-window {
  min-height: 520px;
  padding: 16px;
  border-radius: 24px;
  background: #f7f8fa;
}

.mock-top {
  display: flex;
  margin-bottom: 26px;
  gap: 5px;
}

.mock-top span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cdd5d8;
}

.mock-title {
  margin-bottom: 18px;
}

.mock-title b,
.mock-title small {
  display: block;
}

.mock-title b {
  color: #133f53;
  font-size: 20px;
}

.mock-title small {
  color: #74838a;
  font-size: 10px;
}

.mock-tabs {
  display: flex;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 4px;
  gap: 4px;
  border-radius: 12px;
  background: #e9edef;
}

.mock-tabs span,
.mock-tabs i {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 9px;
  color: #687a81;
  font-size: 9px;
  font-style: normal;
}

.mock-tabs i {
  background: white;
  color: #17627c;
  font-weight: 800;
}

.mock-form {
  display: grid;
  padding: 16px;
  gap: 13px;
  border-radius: 18px;
  background: white;
}

.mock-form label {
  color: #56676d;
  font-size: 9px;
  font-weight: 700;
}

.mock-form label > span {
  display: block;
  min-height: 31px;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid #dce3e5;
  border-radius: 9px;
  color: #8b989d;
  font-weight: 500;
}

.mock-form .mock-lines {
  min-height: 58px;
}

.mock-window button {
  width: 100%;
  margin-top: 18px;
  padding: 10px;
  border: 0;
  border-radius: 999px;
  background: #1ba6d8;
  color: white;
  font-size: 11px;
  font-weight: 800;
}

.mock-search {
  margin-bottom: 14px;
  padding: 9px 13px;
  border: 1px solid #dce3e5;
  border-radius: 999px;
  background: white;
  color: #9aa6aa;
  font-size: 10px;
}

.mock-table {
  overflow: hidden;
  border-radius: 16px;
  background: white;
}

.mock-row {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr;
  align-items: center;
  padding: 12px 10px;
  border-bottom: 1px solid #edf0f1;
  gap: 6px;
  color: #53656c;
  font-size: 9px;
}

.mock-row:last-child {
  border-bottom: 0;
}

.mock-head {
  background: #f2f5f6;
  color: #829198;
  font-weight: 800;
}

.pill {
  width: fit-content;
  padding: 3px 6px;
  border-radius: 999px;
  background: #edf0f1;
}

.pill.green {
  background: #e3f3eb;
  color: #28705a;
}

.pill.blue {
  background: #e2eff6;
  color: #376982;
}

.pill.red {
  background: #f6e3df;
  color: #93463b;
}

.architecture-section {
  border-block: 1px solid var(--line);
  background: var(--white);
}

.architecture-map {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1.2fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.arch-node {
  padding: 24px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  text-align: center;
}

.arch-node span,
.arch-node small {
  display: block;
}

.arch-node span {
  margin-bottom: 4px;
  font-weight: 900;
}

.arch-node small {
  color: var(--ink-soft);
  font-size: 11px;
}

.arch-user {
  background: var(--green-pale);
}

.arch-data {
  background: var(--gold-pale);
}

.arch-cluster {
  display: grid;
  gap: 8px;
}

.arch-cluster .arch-node {
  padding: 14px 12px;
}

.arch-arrow {
  color: var(--gold);
  font-size: 24px;
}

.arch-footnote {
  margin-top: 28px;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  text-align: center;
}

.arch-footnote span {
  color: white;
  font-weight: 900;
}

.value-list {
  display: grid;
  gap: 12px;
}

.value-list article {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  padding: 22px;
  gap: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 254, 251, 0.78);
}

.value-list article > span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-dark);
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.value-list h3 {
  margin-bottom: 4px;
}

.value-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.status-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.status-column {
  padding: 34px;
  border-radius: var(--radius-lg);
}

.completed-column {
  background: var(--green-pale);
}

.pending-column {
  background: var(--gold-pale);
}

.status-column h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-column h3 span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
}

.status-column ul {
  display: grid;
  margin: 22px 0 0;
  padding-left: 22px;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 15px;
}

.risk-section {
  background: #f8eee8;
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.risk-grid article {
  padding: 28px;
  border: 1px solid rgba(169, 72, 59, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 254, 251, 0.85);
}

.risk-grid article > span {
  display: inline-block;
  margin-bottom: 34px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--gold-pale);
  color: #7b571a;
  font-size: 11px;
  font-weight: 900;
}

.risk-grid .risk-critical {
  border-color: rgba(169, 72, 59, 0.35);
  background: var(--rose-pale);
}

.risk-grid .risk-critical > span {
  background: var(--rose);
  color: white;
}

.risk-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.roadmap-grid article {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
}

.roadmap-phase {
  display: block;
  margin-bottom: 42px;
  color: #d4b87c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.roadmap-grid ol {
  display: grid;
  margin: 22px 0 0;
  padding-left: 20px;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.contribution-section {
  background: var(--paper-deep);
}

.contribution-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 18px 48px rgba(46, 56, 46, 0.06);
}

.contribution-card ul {
  display: grid;
  margin: 0;
  padding-left: 24px;
  gap: 12px;
  color: var(--ink-soft);
}

.closing-section {
  padding-top: 72px;
  padding-bottom: 72px;
  background: var(--white);
}

.closing-card {
  padding: 54px;
  border-radius: var(--radius-lg);
  background: var(--green-pale);
  text-align: center;
}

.closing-card h2 {
  max-width: 920px;
  margin-inline: auto;
}

.closing-card > p:not(.eyebrow) {
  max-width: 780px;
  margin: 0 auto 26px;
  color: var(--ink-soft);
}

.closing-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.closing-links a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid rgba(14, 69, 59, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

footer {
  padding: 30px 0 calc(30px + env(safe-area-inset-bottom));
  background: #102e28;
  color: rgba(255, 255, 255, 0.65);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 960px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .summary-card:last-child {
    grid-column: span 2;
  }

  .role-grid,
  .screen-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .screen-card:first-child {
    grid-column: span 2;
  }

  .screen-card:first-child .phone-frame {
    max-width: 390px;
    margin-inline: auto;
  }

  .flow-card,
  .flow-empty {
    grid-template-columns: 1fr;
  }

  .flow-header {
    flex-direction: row;
    align-items: center;
  }

  .flow-empty > .small-note {
    grid-column: 1;
  }

  .architecture-map {
    grid-template-columns: 1fr;
  }

  .arch-arrow {
    transform: rotate(90deg);
    text-align: center;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .header-inner {
    min-height: 62px;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    padding: 62px 0 74px;
  }

  .hero-grid {
    gap: 32px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .truth-card {
    padding: 26px;
    border-radius: 24px;
  }

  .truth-card > strong {
    font-size: 23px;
  }

  .quick-nav {
    margin-top: -24px;
  }

  .quick-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-nav-grid a {
    min-height: 64px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
  }

  .quick-nav-grid a:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .quick-nav-grid a:last-child {
    grid-column: span 2;
    border-bottom: 0;
  }

  .section {
    padding: 76px 0;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .summary-grid,
  .role-grid,
  .data-grid,
  .screen-grid,
  .status-columns,
  .risk-grid,
  .roadmap-grid,
  .problem-grid {
    grid-template-columns: 1fr;
  }

  .summary-card,
  .role-card,
  .data-grid article {
    min-height: auto;
  }

  .summary-card:last-child,
  .screen-card:first-child {
    grid-column: 1;
  }

  .summary-card .number,
  .role-icon,
  .data-grid article > span,
  .risk-grid article > span,
  .roadmap-phase {
    margin-bottom: 24px;
  }

  .feature-item summary {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    padding: 16px;
    gap: 8px;
  }

  .feature-item summary::after {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
  }

  .feature-title {
    font-size: 16px;
  }

  .feature-item summary .status {
    grid-column: 2;
    justify-self: start;
  }

  .feature-body {
    padding: 0 16px 24px 58px;
  }

  .feature-body dl > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .flow-header {
    padding: 22px;
  }

  .flow-line {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .flow-line li {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 10px;
  }

  .flow-line li::after {
    top: auto;
    right: auto;
    bottom: -13px;
    left: 27px;
    content: "↓";
    transform: none;
  }

  .flow-line li > span {
    grid-row: span 2;
    margin-bottom: 0;
  }

  .empty-flow {
    flex-direction: column;
    padding-top: 24px;
  }

  .empty-flow i {
    transform: rotate(90deg);
  }

  .relationship-card {
    padding: 26px 18px;
  }

  .relation-branch,
  .relation-branch.three {
    grid-template-columns: 1fr;
  }

  .screen-card {
    padding: 14px;
  }

  .phone-frame {
    max-height: 600px;
  }

  .mock-window {
    min-height: 500px;
  }

  .arch-footnote {
    text-align: left;
  }

  .status-column,
  .contribution-card {
    padding: 26px;
  }

  .closing-card {
    width: min(calc(100% - 20px), var(--shell));
    padding: 38px 22px;
  }

  .closing-links {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .site-header,
  .quick-nav,
  .hero-actions {
    display: none;
  }

  body,
  .section,
  .section-dark,
  .risk-section,
  .contribution-section,
  .section-tint {
    background: white !important;
    color: black !important;
  }

  .feature-item {
    break-inside: avoid;
  }

  .feature-item:not([open]) .feature-body {
    display: block;
  }
}
