:root {
  --oat: #ebe3d4;
  --oat-deep: #d8cbb6;
  --foam: #fff8ec;
  --clay: #c4b49a;
  --toast: #8d6840;
  --toast-ink: #6e4f2e;
  --ink: #3d3429;
  --mute: #6b5d4d;
  --line: rgba(109, 90, 68, 0.18);
  --raise: 10px 10px 20px #c9bba6, -10px -10px 20px #fff8eb;
  --raise-sm: 6px 6px 12px #cbbda8, -6px -6px 12px #fff7ea;
  --press: inset 7px 7px 14px #c7b8a2, inset -7px -7px 14px #fff6e8;
  --press-sm: inset 4px 4px 8px #c9baa5, inset -4px -4px 8px #fff7ea;
  --radius: 28px;
  --pill: 999px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 520px at 12% -8%, rgba(255, 248, 236, 0.7), transparent 58%),
    radial-gradient(900px 480px at 100% 0%, rgba(196, 180, 154, 0.28), transparent 50%),
    var(--oat);
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--toast-ink);
  text-decoration: none;
}

a:hover {
  color: var(--toast);
}

:focus-visible {
  outline: 3px solid var(--toast);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  padding: 0.5rem 1rem;
  border-radius: var(--pill);
  background: var(--oat);
  box-shadow: var(--raise-sm);
}

.skip:focus {
  top: 12px;
}

.shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 12;
  padding: 14px 0;
  background: color-mix(in srgb, var(--oat) 86%, white);
  backdrop-filter: blur(8px);
}

.mast-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  border-radius: 36px;
  box-shadow: var(--raise);
}

.mark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.mark img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: var(--raise-sm);
}

.lane {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lane a {
  padding: 0.55rem 1.05rem;
  border-radius: var(--pill);
  color: var(--mute);
  font-size: 0.95rem;
}

.lane a:hover,
.lane a.is-here {
  color: var(--toast-ink);
  box-shadow: var(--press-sm);
}

.lane a.lead {
  color: #fff8ef;
  background: linear-gradient(180deg, #b88754, #8d6840);
  box-shadow: 6px 6px 12px #c4b49a, -4px -4px 10px #fff7ea;
}

.lane a.lead:hover {
  color: #fff8ef;
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--oat);
  box-shadow: var(--raise-sm);
  cursor: pointer;
}

.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  position: relative;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger span::before {
  top: -6px;
}

.burger span::after {
  top: 6px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  padding: 56px 0 28px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.chip {
  padding: 0.35rem 0.95rem;
  border-radius: var(--pill);
  color: var(--toast-ink);
  font-size: 0.86rem;
  box-shadow: var(--press-sm);
}

h1,
h2,
h3 {
  margin: 0 0 0.7rem;
  line-height: 1.25;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  letter-spacing: 0.02em;
}

.lede {
  color: var(--mute);
  font-size: 1.05rem;
  max-width: 38rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 28px;
}

.capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.8rem;
  border-radius: var(--pill);
  font-weight: 650;
  letter-spacing: 0.04em;
}

.capsule.prime {
  color: #fff8ef;
  background: linear-gradient(180deg, #c0925a, #8a643c);
  box-shadow: 8px 8px 16px #c9b8a0, -8px -8px 16px #fff6e8;
}

.capsule.ghost {
  color: var(--toast-ink);
  background: var(--oat);
  box-shadow: var(--raise);
}

.capsule:hover {
  transform: translateY(-1px);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  padding: 14px 12px;
  border-radius: 22px;
  text-align: center;
  box-shadow: var(--raise-sm);
}

.metric b {
  display: block;
  font-size: 1.25rem;
  color: var(--toast);
}

.metric span {
  color: var(--mute);
  font-size: 0.82rem;
}

.portrait {
  padding: 18px;
  border-radius: 36px;
  box-shadow: var(--raise);
}

.portrait img {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--press);
}

.plaque {
  display: flex;
  justify-content: center;
  margin: 48px 0 22px;
}

.plaque h2 {
  margin: 0;
  padding: 0.7rem 1.6rem;
  border-radius: var(--pill);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  letter-spacing: 0.16em;
  color: #d8cdb8;
  background: var(--oat);
  box-shadow: var(--raise-sm);
  text-shadow:
    -1px -1px 0 rgba(255, 248, 236, 0.95),
    1px 1px 1px rgba(122, 102, 78, 0.38),
    2px 3px 6px rgba(122, 102, 78, 0.18);
}

.intro {
  text-align: center;
  color: var(--mute);
  max-width: 46rem;
  margin: 0 auto 28px;
}

.gate {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gate a {
  display: block;
  padding: 18px 16px;
  border-radius: 24px;
  color: var(--ink);
  box-shadow: var(--raise-sm);
}

.gate a:hover {
  box-shadow: var(--press-sm);
}

.gate strong {
  display: block;
  margin-bottom: 6px;
  color: var(--toast-ink);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  padding: 22px 18px 20px;
  border-radius: var(--radius);
  box-shadow: var(--raise);
}

.glyph {
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 16px;
  box-shadow: var(--press-sm);
  position: relative;
}

.glyph::before,
.glyph::after {
  content: "";
  position: absolute;
  background: var(--toast);
}

.glyph.core::before {
  inset: 16px 12px;
  border-radius: 4px;
  box-shadow: 0 0 0 3px var(--oat), 0 0 0 5px var(--toast);
}

.glyph.yaml::before {
  left: 14px;
  right: 14px;
  top: 16px;
  height: 3px;
  box-shadow: 0 8px 0 var(--toast), 0 16px 0 var(--toast);
}

.glyph.theme::before {
  width: 18px;
  height: 18px;
  left: 17px;
  top: 17px;
  border-radius: 50%;
  box-shadow: 8px 8px 0 -3px #c9a06a;
}

.glyph.guard::before {
  width: 16px;
  height: 18px;
  left: 18px;
  top: 16px;
  border-radius: 8px 8px 4px 4px;
  background: transparent;
  border: 3px solid var(--toast);
}

.tile h3 {
  font-size: 1.08rem;
}

.tile p,
.detail p,
.faq-body,
.panel p {
  color: var(--mute);
  margin: 0;
}

.stack-gap {
  margin-top: 16px;
}

.details {
  display: grid;
  gap: 16px;
}

.detail {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 26px;
  box-shadow: var(--press);
}

.detail b {
  display: inline-flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: var(--raise-sm);
  color: var(--toast);
  letter-spacing: 0.04em;
}

.platforms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.os {
  padding: 22px 16px;
  border-radius: 26px;
  text-align: center;
  box-shadow: var(--raise);
}

.os h3 {
  margin-bottom: 8px;
}

.folds {
  display: grid;
  gap: 12px;
}

.fold {
  border-radius: 22px;
  box-shadow: var(--raise-sm);
  overflow: hidden;
}

.fold button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 16px 20px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.fold[open] button,
.fold.is-open button {
  color: var(--toast-ink);
}

.fold-body {
  display: none;
  padding: 0 20px 16px;
  color: var(--mute);
}

.fold.is-open .fold-body {
  display: block;
}

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 12px;
}

.panel {
  padding: 24px;
  border-radius: 28px;
  box-shadow: var(--raise);
}

.panel h3 {
  color: var(--toast-ink);
}

.note {
  margin: 28px 0 8px;
  padding: 18px 20px;
  border-radius: 22px;
  color: var(--mute);
  box-shadow: var(--press);
}

.page-head {
  padding: 42px 0 10px;
}

.page-head h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.steps {
  counter-reset: rung;
  display: grid;
  gap: 14px;
}

.step {
  position: relative;
  padding: 20px 20px 20px 76px;
  border-radius: 24px;
  box-shadow: var(--raise-sm);
}

.step::before {
  counter-increment: rung;
  content: counter(rung);
  position: absolute;
  left: 18px;
  top: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--toast-ink);
  box-shadow: var(--press-sm);
  font-weight: 700;
}

.floor {
  margin-top: 56px;
  padding: 36px 0 24px;
}

.floor-inner {
  padding: 28px 22px 18px;
  border-radius: 32px;
  box-shadow: var(--raise);
}

.cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.cols h3 {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--toast);
}

.cols a,
.cols p {
  display: block;
  color: var(--mute);
  margin: 0 0 8px;
}

.copy {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.86rem;
}

@media (max-width: 980px) {
  .hero,
  .story,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .gate,
  .tiles,
  .platforms,
  .metrics,
  .cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .burger {
    display: inline-grid;
    place-items: center;
  }

  .lane {
    display: none;
    position: absolute;
    right: 16px;
    top: 78px;
    flex-direction: column;
    align-items: stretch;
    min-width: 220px;
    padding: 12px;
    border-radius: 22px;
    background: var(--oat);
    box-shadow: var(--raise);
  }

  .lane.is-open {
    display: flex;
  }

  .gate,
  .tiles,
  .platforms,
  .metrics,
  .cols,
  .detail {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .capsule:hover {
    transform: none;
  }
}
