:root {
  color-scheme: light;
  --paper: #f7f3ec;
  --paper-strong: #eee6da;
  --ink: #18232f;
  --muted: #64707d;
  --soft: #ffffff;
  --line: rgba(24, 35, 47, 0.12);
  --blue: #295f8f;
  --teal: #24756b;
  --plum: #7d4b6f;
  --clay: #ad684b;
  --gold: #c89a35;
  --shadow: 0 24px 70px rgba(24, 35, 47, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(90deg, rgba(24, 35, 47, 0.035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(rgba(24, 35, 47, 0.026) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--paper);
  color: var(--ink);
  font-family: Inter, "Noto Sans SC", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  margin: 0;
  overflow-x: hidden;
}

body[data-lang="zh"] {
  font-family: "Noto Sans SC", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.topbar {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(247, 243, 236, 0.91);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr auto;
  min-height: 66px;
  padding: 0 clamp(18px, 4vw, 42px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand,
.navlinks,
.top-actions,
.hero-actions,
.plain-note,
.button,
.icon-button,
.language-switch,
.map-header,
.node,
.map-metrics,
.section-heading.split,
.contact-section,
.contact-card a {
  align-items: center;
  display: flex;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  align-items: center;
  aspect-ratio: 1;
  background: var(--ink);
  color: white;
  display: inline-flex;
  font-size: 13px;
  justify-content: center;
  width: 34px;
}

.navlinks {
  gap: clamp(10px, 2vw, 22px);
  justify-content: center;
}

.navlinks a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.top-actions {
  gap: 8px;
}

.language-switch {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  padding: 3px;
}

.language-switch button {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  min-height: 30px;
  padding: 0 10px;
}

.language-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}

.icon-button {
  aspect-ratio: 1;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  width: 38px;
}

.icon-button svg,
.button svg,
.plain-note svg,
.intro-band svg,
.content-map svg,
.tool-grid svg,
.signals-grid svg,
.contact-card svg,
.node svg {
  height: 18px;
  width: 18px;
}

section {
  padding: 72px clamp(20px, 5vw, 76px);
  scroll-margin-top: 80px;
  width: 100%;
}

.hero {
  display: grid;
  gap: clamp(30px, 5vw, 70px);
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
  min-height: min(820px, calc(92vh - 66px));
  padding-top: clamp(50px, 7vw, 84px);
}

.hero-copy,
.visibility-map {
  align-self: center;
  min-width: 0;
}

.eyebrow,
.section-kicker {
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(44px, 7vw, 92px);
  letter-spacing: 0;
  line-height: 0.95;
  margin-bottom: 24px;
  max-width: 900px;
}

h2 {
  font-size: clamp(30px, 4vw, 56px);
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 0;
  max-width: 920px;
}

h3 {
  font-size: 18px;
  line-height: 1.22;
  margin-bottom: 10px;
}

p,
li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.lede {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.58;
  margin-bottom: 28px;
  max-width: 820px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.button {
  border: 1px solid var(--line);
  color: var(--ink);
  gap: 9px;
  min-height: 46px;
  padding: 0 16px;
}

.button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.button:not(.primary) {
  background: rgba(255, 255, 255, 0.74);
}

.plain-note {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  color: var(--muted);
  gap: 10px;
  max-width: 720px;
  padding: 12px 14px;
}

.plain-note span {
  font-size: 13px;
  line-height: 1.55;
  min-width: 0;
}

.visibility-map {
  background:
    radial-gradient(circle at 20% 20%, rgba(41, 95, 143, 0.18), transparent 30%),
    radial-gradient(circle at 90% 30%, rgba(36, 117, 107, 0.16), transparent 34%),
    var(--soft);
  border: 1px solid rgba(24, 35, 47, 0.14);
  box-shadow: var(--shadow);
  min-height: 560px;
  padding: clamp(18px, 3vw, 30px);
}

.map-header {
  justify-content: space-between;
  margin-bottom: 28px;
}

.map-header span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.map-header strong {
  background: rgba(36, 117, 107, 0.12);
  color: var(--teal);
  font-size: 13px;
  padding: 8px 10px;
}

.map-stage {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 300px;
  position: relative;
}

.map-stage::before {
  background: linear-gradient(90deg, rgba(41, 95, 143, 0.32), rgba(36, 117, 107, 0.32), rgba(125, 75, 111, 0.28));
  content: "";
  height: 3px;
  left: 8%;
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
}

.node {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(24, 35, 47, 0.16);
  color: var(--ink);
  flex-direction: column;
  font-size: 13px;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  min-height: 112px;
  padding: 14px;
  position: relative;
  text-align: center;
  z-index: 1;
}

.node:nth-child(even) {
  align-self: end;
}

.node.source,
.node.output {
  background: var(--ink);
  color: white;
}

.map-metrics {
  gap: 10px;
  margin-top: 28px;
}

.map-metrics article {
  background: rgba(247, 243, 236, 0.9);
  border: 1px solid var(--line);
  flex: 1;
  min-height: 94px;
  padding: 14px;
}

.map-metrics span {
  color: var(--clay);
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.map-metrics strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.intro-band {
  background: var(--ink);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 1px;
}

.intro-band article {
  background: var(--ink);
  color: white;
  min-height: 270px;
  padding: clamp(26px, 4vw, 48px);
}

.intro-band svg {
  color: var(--gold);
  margin-bottom: 26px;
}

.intro-band h2 {
  color: white;
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.08;
  margin-bottom: 16px;
}

.intro-band p {
  color: rgba(255, 255, 255, 0.72);
}

.section-block {
  padding-bottom: 90px;
}

.section-heading {
  margin-bottom: clamp(28px, 5vw, 52px);
}

.section-heading p:not(.section-kicker) {
  max-width: 780px;
}

.section-heading.split {
  align-items: end;
  gap: 28px;
  justify-content: space-between;
}

.section-heading.split > p {
  margin-bottom: 0;
  max-width: 460px;
}

.framework-grid,
.signals-grid,
.tool-grid,
.intent-grid,
.sop-grid,
.example-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.framework-grid article,
.signals-grid article,
.tool-grid article,
.intent-grid article,
.week-card,
.example-grid article,
.contact-card {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.framework-grid article {
  min-height: 276px;
  padding: 24px;
}

.framework-grid span {
  color: var(--blue);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 36px;
}

.workflow-section {
  background: rgba(238, 230, 218, 0.7);
}

.process-line {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-bottom: 26px;
}

.process-line article {
  background: var(--soft);
  border: 1px solid var(--line);
  min-height: 262px;
  padding: 18px;
}

.process-line strong {
  align-items: center;
  background: var(--ink);
  color: white;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  margin-bottom: 28px;
  width: 30px;
}

.process-line h3 {
  font-size: 16px;
}

.process-line p {
  font-size: 14px;
  line-height: 1.58;
}

.tool-grid article {
  min-height: 320px;
  padding: 24px;
}

.tool-grid svg {
  color: var(--blue);
  margin-bottom: 28px;
}

.tool-grid span {
  border-top: 1px solid var(--line);
  color: var(--teal);
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  margin-top: 18px;
  padding-top: 14px;
}

.intent-section {
  background: #f9f7f1;
}

.intent-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 26px;
}

.intent-grid article {
  min-height: 220px;
  padding: 24px;
}

.intent-grid span {
  color: var(--plum);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.audit-table {
  background: var(--soft);
  border: 1px solid var(--line);
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: 0.72fr 1.35fr 1.35fr;
}

.table-row + .table-row {
  border-top: 1px solid var(--line);
}

.table-row span {
  border-right: 1px solid var(--line);
  color: var(--muted);
  display: block;
  font-size: 14px;
  line-height: 1.55;
  padding: 16px;
}

.table-row span:last-child {
  border-right: 0;
}

.table-head span {
  background: var(--ink);
  color: white;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sop-section {
  background: #f9f7f1;
}

.content-map {
  background: var(--ink);
  color: white;
  padding: clamp(20px, 4vw, 34px);
}

.pillar {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 18px;
  padding: 20px;
  text-align: center;
}

.pillar span {
  color: rgba(255, 255, 255, 0.6);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.pillar strong {
  display: block;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
}

.branches {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.branches article {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  min-height: 164px;
  padding: 16px;
}

.branches svg {
  color: var(--gold);
  margin-bottom: 18px;
}

.branches strong,
.branches span {
  display: block;
}

.branches strong {
  margin-bottom: 8px;
}

.branches span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.5;
}

.page-examples {
  margin-top: 20px;
}

.page-examples h3 {
  font-size: 24px;
  margin-bottom: 14px;
}

.example-grid article {
  min-height: 218px;
  padding: 22px;
}

.example-grid span {
  color: var(--plum);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.example-grid strong {
  display: block;
  font-size: 17px;
  line-height: 1.32;
  margin-bottom: 10px;
}

.sop-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.week-card {
  min-height: 330px;
  padding: 24px;
}

.week-card > span {
  align-items: center;
  background: var(--ink);
  color: white;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  min-height: 30px;
  padding: 0 10px;
  text-transform: uppercase;
}

.week-card h3 {
  font-size: 20px;
  margin-top: 28px;
}

.week-card strong {
  border-top: 1px solid var(--line);
  color: var(--teal);
  display: block;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 18px;
  padding-top: 14px;
}

.signals-grid article {
  min-height: 230px;
  padding: 24px;
}

.signals-grid svg {
  color: var(--teal);
  margin-bottom: 26px;
}

.contact-section {
  background: var(--ink);
  color: white;
  gap: 34px;
  justify-content: space-between;
}

.contact-section > div:first-child {
  max-width: 760px;
}

.contact-section h2 {
  color: white;
}

.contact-section p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  min-width: min(100%, 360px);
  padding: 24px;
}

.contact-card h3 {
  color: white;
}

.contact-card a {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: white;
  gap: 10px;
  min-height: 48px;
}

.contact-card p {
  font-size: 14px;
  margin-bottom: 0;
  margin-top: 18px;
}

@media (max-width: 1160px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .visibility-map {
    min-height: auto;
  }

  .process-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .framework-grid,
  .signals-grid,
  .tool-grid,
  .sop-grid,
  .example-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  body,
  main,
  section {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .topbar {
    align-items: start;
    grid-template-columns: 1fr;
    padding-bottom: 12px;
    padding-top: 12px;
  }

  .navlinks {
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .top-actions {
    flex-wrap: wrap;
  }

  section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding-top: 38px;
  }

  .topbar > *,
  .hero > *,
  .section-heading > *,
  .contact-section > * {
    min-width: 0;
  }

  .hero-copy,
  .visibility-map {
    width: min(100%, calc(100vw - 36px));
    max-width: calc(100vw - 36px);
  }

  h1 {
    font-size: clamp(34px, 9.2vw, 40px);
    max-width: min(100%, 330px);
    overflow-wrap: break-word;
  }

  .lede {
    font-size: 17px;
    max-width: min(100%, 330px);
  }

  .plain-note span {
    overflow-wrap: anywhere;
  }

  .plain-note {
    width: min(100%, 330px);
  }

  .intro-band,
  .intro-band article,
  .section-block,
  .branches,
  .framework-grid,
  .signals-grid,
  .tool-grid,
  .intent-grid,
  .sop-grid,
  .example-grid {
    grid-template-columns: 1fr;
  }

  .intro-band {
    width: 100vw;
    max-width: 100vw;
  }

  .intro-band article {
    min-width: 0;
    max-width: 100vw;
    overflow: hidden;
  }

  .intro-band p {
    max-width: calc(100vw - 72px);
  }

  body[data-lang="zh"] h1,
  body[data-lang="zh"] h2,
  body[data-lang="zh"] h3,
  body[data-lang="zh"] p,
  body[data-lang="zh"] span,
  body[data-lang="zh"] strong {
    line-break: anywhere;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

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

  .map-stage::before {
    bottom: 6%;
    height: auto;
    left: 50%;
    right: auto;
    top: 6%;
    transform: translateX(-50%);
    width: 3px;
  }

  .node:nth-child(even) {
    align-self: stretch;
  }

  .map-metrics,
  .section-heading.split,
  .contact-section {
    align-items: stretch;
    flex-direction: column;
  }

  .visibility-map,
  .hero-copy,
  .plain-note,
  .map-header,
  .map-metrics article,
  .node,
  .button {
    max-width: 100%;
  }

  .visibility-map {
    overflow: hidden;
  }

  .map-header {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

  .table-row {
    grid-template-columns: 1fr;
  }

  .table-row span {
    border-right: 0;
  }

  .table-row span + span {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    justify-content: center;
  }

  .process-line {
    grid-template-columns: 1fr;
  }

  .process-line article,
  .framework-grid article,
  .signals-grid article,
  .tool-grid article,
  .intent-grid article,
  .week-card,
  .example-grid article {
    min-height: auto;
  }
}
