:root {
  color-scheme: light;
  --ink: #071642;
  --muted: #5a6683;
  --line: #d9e2f1;
  --panel: #ffffff;
  --soft: #f5f8fc;
  --teal: #078b8f;
  --blue: #1769d1;
  --green: #4f8f21;
  --orange: #f47a0b;
  --red: #e53935;
  --shadow: 0 18px 45px rgba(21, 34, 70, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.topnav a,
.button {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 10px 13px;
  text-decoration: none;
}

.topnav a:hover,
.button.secondary:hover {
  border-color: #9db5d8;
  background: #eef5ff;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero,
.section {
  margin: 28px 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 30px;
  align-items: center;
  padding: 34px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: 0;
}

.lead,
.section-heading p,
.split p,
.route-grid p,
.loop-grid p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.button.primary:hover {
  background: #115bb8;
}

.hero-media,
.wide-visual {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.section {
  padding: 34px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 22px;
}

.wide-visual {
  margin-bottom: 22px;
}

.loop-grid,
.route-grid {
  display: grid;
  gap: 14px;
}

.loop-grid {
  grid-template-columns: repeat(6, 1fr);
}

.loop-grid article,
.route-grid article,
.tree-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.loop-grid article {
  min-height: 164px;
  padding: 18px 14px;
}

.loop-grid span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.loop-grid article:nth-child(1) span,
.loop-grid article:nth-child(2) span {
  background: var(--teal);
}

.loop-grid article:nth-child(3) span {
  background: var(--green);
}

.loop-grid article:nth-child(4) span {
  background: var(--orange);
}

.loop-grid article:nth-child(5) span {
  background: var(--blue);
}

.loop-grid article:nth-child(6) span {
  background: var(--red);
}

.split {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 28px;
  align-items: start;
}

.tree-panel {
  overflow: auto;
  background: #0d1430;
  color: #e8f1ff;
}

pre {
  margin: 0;
  padding: 22px;
  font-size: 14px;
  line-height: 1.55;
}

code {
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
}

.route-grid {
  grid-template-columns: repeat(3, 1fr);
}

.route-grid article {
  padding: 22px;
  min-height: 150px;
}

.deploy {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 24px;
}

.checklist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 960px) {
  .hero,
  .split,
  .deploy {
    grid-template-columns: 1fr;
  }

  .loop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 16px;
  }

  .topnav {
    justify-content: flex-start;
  }

  main {
    width: min(100% - 20px, 1180px);
  }

  .hero,
  .section {
    padding: 20px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 25px;
  }

  .loop-grid,
  .route-grid {
    grid-template-columns: 1fr;
  }
}
