:root {
  --bg: #f6f3eb;
  --panel: #fffdf7;
  --ink: #18201f;
  --muted: #68716d;
  --line: rgba(24, 32, 31, .14);
  --green: #0f6b55;
  --blue: #245a9f;
  --red: #c8553d;
  --gold: #d89b3d;
  --dark: #12201d;
  --code: #101816;
  --shadow: 0 24px 70px rgba(22, 32, 30, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(216, 155, 61, .18), transparent 28rem),
    linear-gradient(180deg, #fbfaf5 0, var(--bg) 34rem);
  font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
p { line-height: 1.85; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 5vw;
  border-bottom: 1px solid rgba(24, 32, 31, .08);
  background: rgba(246, 243, 235, .86);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #f8f5ec;
  background: var(--dark);
  border-radius: 8px;
  font: 800 13px/1 Georgia, serif;
}
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.site-nav a { padding: 9px 0; color: #33413e; }
.site-nav a:hover, .site-nav a.active { color: var(--green); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  color: #fffdf7 !important;
  background: var(--green);
  border-radius: 999px;
}
.menu-button {
  display: none;
  min-height: 40px;
  padding: 0 14px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 7vw;
  max-width: 1440px;
  margin: 0 auto;
  padding: 76px 5vw 88px;
  align-items: center;
}
.eyebrow { margin: 0 0 18px; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; }
h1 {
  margin-bottom: 28px;
  max-width: 820px;
  font-size: clamp(48px, 7.2vw, 104px);
  line-height: 1.02;
  letter-spacing: 0;
}
.hero-lead { max-width: 720px; margin: 0; color: #4e5b57; font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 750;
}
.button.primary { color: #fffdf7; background: var(--dark); border-color: var(--dark); }
.button.secondary { background: rgba(255, 253, 247, .55); }

.hero-board {
  position: relative;
  min-height: 520px;
  color: #f9f5e9;
  background: var(--dark);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, #000, transparent);
}
.terminal {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 28px;
  padding: 22px;
  background: var(--code);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
}
.terminal-dots { display: flex; gap: 7px; margin-bottom: 18px; }
.terminal-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.terminal-dots span:nth-child(2) { background: var(--gold); }
.terminal-dots span:nth-child(3) { background: #4aa66d; }
.terminal pre { margin: 0; white-space: pre-wrap; color: #d7efe5; font: 14px/1.8 Consolas, Monaco, monospace; }
.metric-strip {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.metric {
  padding: 18px;
  background: rgba(255, 253, 247, .1);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
}
.metric strong { display: block; font-size: 28px; }
.metric span { color: #becbc5; font-size: 12px; }

.section, .page-section { max-width: 1440px; margin: 0 auto; padding: 86px 5vw; }
.section-title { display: flex; justify-content: space-between; gap: 28px; margin-bottom: 34px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.section-title h2 { margin: 0; font-size: clamp(32px, 4vw, 58px); line-height: 1.12; }
.section-title p { max-width: 560px; margin: 0; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(31, 41, 38, .06);
}
.card:hover { transform: translateY(-3px); transition: transform .25s ease; }
.tag { display: inline-flex; width: fit-content; padding: 6px 10px; color: var(--green); background: rgba(15, 107, 85, .1); border-radius: 999px; font-size: 12px; font-weight: 800; }
.card h3 { margin: 20px 0 8px; font-size: 24px; }
.card p { margin: 0; color: var(--muted); }
.card a { margin-top: 22px; color: var(--blue); font-weight: 800; }

.feature-band {
  color: #f8f5ec;
  background: var(--dark);
}
.feature-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 46px; align-items: start; }
.feature-grid h2 { font-size: clamp(36px, 5vw, 72px); line-height: 1.06; }
.feature-list { display: grid; gap: 12px; }
.feature-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.16);
}
.feature-item span { color: #8bbcae; font-weight: 800; }
.feature-item h3 { margin-bottom: 8px; }
.feature-item p { margin: 0; color: #bfcbc6; }

.page-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 5vw 40px;
}
.page-hero h1 { max-width: 980px; font-size: clamp(42px, 6vw, 84px); }
.page-hero p { max-width: 780px; color: var(--muted); font-size: 18px; }
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 54px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 5vw 90px;
  align-items: start;
}
.article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 58px);
}
.article h2 { margin-top: 36px; font-size: 32px; }
.article h2:first-child { margin-top: 0; }
.article h3 { margin-top: 28px; font-size: 22px; }
.article p, .article li { color: #43504d; }
.article li { margin: 10px 0; line-height: 1.75; }
.article code, .article pre {
  color: #d8efe6;
  background: var(--code);
  border-radius: 8px;
}
.article code { padding: 2px 6px; }
.article pre { overflow: auto; padding: 18px; line-height: 1.7; }
.toc {
  position: sticky;
  top: 92px;
  padding: 20px;
  background: rgba(255, 253, 247, .75);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.toc strong { display: block; margin-bottom: 12px; }
.toc a { display: block; padding: 8px 0; color: var(--muted); font-size: 14px; }
.toc a:hover { color: var(--green); }

.matrix { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mini {
  padding: 18px;
  background: #f3efe4;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.mini strong { display: block; margin-bottom: 8px; }
.timeline { border-left: 2px solid rgba(15, 107, 85, .25); padding-left: 24px; }
.timeline div { margin-bottom: 26px; }
.timeline b { color: var(--green); }

.site-footer {
  padding: 58px 5vw 30px;
  color: #f8f5ec;
  background: var(--dark);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  max-width: 1440px;
  margin: 0 auto;
}
.footer-inner h2 { margin: 0 0 14px; font-size: clamp(30px, 5vw, 62px); }
.footer-links { display: grid; grid-template-columns: repeat(2, max-content); gap: 12px 28px; align-content: start; }
.footer-links a { color: #c8d5cf; }
.copyright { max-width: 1440px; margin: 58px auto 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); color: #94a39d; font-size: 12px; }

@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    top: 74px;
    left: 5vw;
    right: 5vw;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .menu-button { display: inline-flex; align-items: center; }
  .hero, .feature-grid, .content-layout { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .site-header { padding-top: 12px; padding-bottom: 12px; }
  .brand small { display: none; }
  .hero { padding-top: 48px; }
  .hero-board { min-height: 470px; }
  .terminal { left: 16px; right: 16px; top: 16px; }
  .metric-strip { left: 16px; right: 16px; grid-template-columns: 1fr; }
  .cards, .matrix { grid-template-columns: 1fr; }
  .section-title, .footer-inner { flex-direction: column; }
  .feature-item { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
}
