:root {
  color-scheme: light;
  --bg: #f6f2e8;
  --surface: #fffdf8;
  --surface-strong: #ece6d7;
  --ink: #172126;
  --muted: #5e6a6e;
  --line: rgba(23, 33, 38, 0.16);
  --accent: #526d0d;
  --accent-ink: #fffdf8;
  --highlight: #dff27a;
  --coral: #d95745;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 88% 2%, rgba(82, 109, 13, 0.12), transparent 25rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font: 700 0.66rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
}

.header-link {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.header-link:hover,
.header-link:focus-visible {
  color: var(--ink);
}

.header-actions,
.language-switch {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 24px;
}

.language-switch {
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.language-switch a,
.language-switch span {
  display: grid;
  min-width: 36px;
  min-height: 28px;
  place-items: center;
  border-radius: 999px;
  font: 700 0.68rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-decoration: none;
}

.language-switch span {
  background: var(--ink);
  color: var(--accent-ink);
}

.language-switch a {
  color: var(--muted);
}

.language-switch a:hover,
.language-switch a:focus-visible {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: center;
  min-height: 690px;
  padding: 90px 0;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font: 700 0.75rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 26px;
  font-size: clamp(3.4rem, 7.7vw, 6.8rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.93;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 620;
  letter-spacing: -0.05em;
  line-height: 1;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.28rem;
  letter-spacing: -0.025em;
}

.hero-summary {
  max-width: 650px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.24rem);
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

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

.button-secondary {
  background: rgba(255, 255, 255, 0.45);
}

.workflow-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.36));
  box-shadow: 24px 24px 0 rgba(23, 33, 38, 0.1);
}

.workflow-card::before {
  position: absolute;
  top: -8px;
  right: 24px;
  width: 48px;
  height: 15px;
  background: var(--coral);
  content: "";
}

.card-label {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 600 0.72rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.workflow-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-list li {
  display: grid;
  grid-template-columns: 34px 75px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.workflow-list li:last-child {
  border-bottom: 0;
}

.workflow-list span {
  color: var(--accent);
  font: 700 0.7rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.workflow-list strong {
  font-size: 0.95rem;
}

.workflow-list small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}

.proof-strip p {
  display: flex;
  min-height: 130px;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.proof-strip p:last-child {
  border-right: 0;
}

.proof-strip strong {
  color: var(--accent);
  font-size: 2rem;
  line-height: 1;
}

.proof-strip span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.section {
  padding: 130px 0;
}

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

.section-heading > p:last-child {
  max-width: 570px;
  color: var(--muted);
  font-size: 1.06rem;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}

.role-capability {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
}

.role-card {
  min-height: 330px;
  padding: 26px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.role-card:last-child {
  border-right: 0;
}

.role-card.featured {
  background: var(--highlight);
  color: var(--ink);
}

.role-index {
  margin-bottom: 68px;
  color: var(--coral);
  font: 700 0.7rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.featured .role-index {
  color: rgba(23, 33, 38, 0.55);
}

.role-card p {
  min-height: 80px;
  color: var(--muted);
  font-size: 0.92rem;
}

.featured p {
  color: rgba(23, 33, 38, 0.72);
}

.safeguards {
  border-top: 1px solid var(--line);
}

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

.safeguard-grid article {
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
}

.safeguard-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 62px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font: 800 0.75rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.safeguard-grid p {
  color: var(--muted);
  font-size: 0.92rem;
}

.install-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: center;
  margin-bottom: 110px;
  padding: 60px;
  background: var(--highlight);
  color: var(--ink);
}

.install-section .eyebrow {
  color: var(--accent);
}

.install-section > div > p:last-child {
  color: #546066;
}

.code-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.code-stack .card-label {
  padding-bottom: 8px;
}

.code-panel {
  overflow: hidden;
  border: 1px solid rgba(23, 33, 38, 0.22);
  background: var(--ink);
  color: #f8f4e9;
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 24px;
  font: 0.78rem/1.75 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.code-panel > p {
  margin: 0;
  padding: 15px 24px;
  border-top: 1px solid var(--line);
  color: #b8c1c2;
  font: 0.75rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.code-panel > p span {
  color: var(--highlight);
}

.code-panel > p strong {
  color: #fff;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 110px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

footer p {
  margin: 0;
}

footer span {
  padding: 0 7px;
  color: var(--accent);
}

footer a {
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  color: var(--ink);
}

a:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

html[lang="zh-CN"] body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", ui-sans-serif, sans-serif;
}

html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3 {
  letter-spacing: -0.035em;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 80px 0 100px;
  }

  .workflow-card {
    max-width: 580px;
  }

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

  .proof-strip p:nth-child(2),
  .role-card:nth-child(2) {
    border-right: 0;
  }

  .proof-strip p:nth-child(-n + 2),
  .role-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .install-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header {
    min-height: 70px;
  }

  .brand > span:last-child {
    display: none;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .hero {
    min-height: auto;
    gap: 55px;
    padding: 70px 0 80px;
  }

  .workflow-card {
    padding: 22px;
    box-shadow: 12px 12px 0 rgba(23, 33, 38, 0.1);
  }

  .workflow-list li {
    grid-template-columns: 28px 1fr;
  }

  .workflow-list small {
    grid-column: 2;
  }

  .proof-strip,
  .role-grid,
  .safeguard-grid {
    grid-template-columns: 1fr;
  }

  .proof-strip p,
  .proof-strip p:nth-child(2),
  .role-card,
  .role-card:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-strip p:last-child,
  .role-card:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 95px 0;
  }

  .role-card {
    min-height: 280px;
  }

  .role-index,
  .safeguard-number {
    margin-bottom: 42px;
  }

  .install-section {
    gap: 38px;
    margin-bottom: 70px;
    padding: 34px 22px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
}

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

  .button {
    transition: none;
  }
}
