:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #5c6872;
  --line: #d9e1e7;
  --paper: #f7f4ed;
  --panel: #ffffff;
  --green: #1f7a5c;
  --green-dark: #145943;
  --blue: #2158a7;
  --amber: #d88622;
  --red: #b94d3f;
  --shadow: 0 22px 60px rgba(22, 35, 42, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

code,
pre {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 0 36px;
  background: rgba(247, 244, 237, 0.9);
  border-bottom: 1px solid rgba(23, 32, 38, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(31, 122, 92, 0.24);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: 52px;
  max-width: 1180px;
  min-height: calc(100vh - 68px);
  margin: 0 auto;
  padding: 76px 28px 86px;
}

.hero-copy {
  max-width: 610px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}

.lead {
  max-width: 540px;
  margin-bottom: 28px;
  color: #38444d;
  font-size: 21px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 750;
}

.button.primary {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

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

.product-shot {
  overflow: hidden;
  min-height: 470px;
  background: #fdfdfb;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  color: var(--muted);
  background: #eef3f1;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.window-bar span:nth-child(1) { background: var(--red); }
.window-bar span:nth-child(2) { background: var(--amber); }
.window-bar span:nth-child(3) { background: var(--green); }

.window-bar strong {
  margin-left: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 156px 1fr;
  min-height: 426px;
}

.mock-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 16px;
  color: #c8d2d6;
  background: #1c2931;
}

.mock-sidebar b {
  margin-bottom: 18px;
  color: #fff;
}

.mock-sidebar span {
  padding: 9px 10px;
  border-radius: 6px;
}

.mock-sidebar .active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.mock-main {
  padding: 24px;
  background: linear-gradient(180deg, #fbfcfb 0%, #eef5f2 100%);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric-row div,
.route-card {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.metric-row strong,
.route-card strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 20px;
}

.route-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 116px;
  margin-bottom: 18px;
}

.route-card span {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.log-lines {
  display: grid;
  gap: 12px;
}

.log-lines i {
  display: block;
  height: 16px;
  background: linear-gradient(90deg, rgba(33, 88, 167, 0.23), rgba(31, 122, 92, 0.15));
  border-radius: 999px;
}

.log-lines i:nth-child(2) { width: 72%; }
.log-lines i:nth-child(3) { width: 88%; }
.log-lines i:nth-child(4) { width: 56%; }

.band,
.section {
  padding: 86px 28px;
}

.band {
  background: #fff;
  border-block: 1px solid rgba(23, 32, 38, 0.08);
}

.section-head {
  max-width: 520px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
}

.wide {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.intro .section-head,
.intro .feature-grid,
.columns,
.split,
.config-grid,
.trouble-grid,
.code-panel,
.note,
.footer {
  max-width: 1120px;
  margin-inline: auto;
}

.intro .section-head {
  margin-bottom: 34px;
  text-align: center;
}

.feature-grid,
.config-grid,
.trouble-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid article,
.config-grid article,
.trouble-grid article,
.file-list article,
.command-list article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-grid article,
.config-grid article,
.trouble-grid article {
  padding: 24px;
}

.feature-grid article:nth-child(2),
.config-grid article:nth-child(2),
.trouble-grid article:nth-child(2) {
  border-top-color: rgba(33, 88, 167, 0.45);
}

.feature-grid article:nth-child(3),
.config-grid article:nth-child(3),
.trouble-grid article:nth-child(3) {
  border-top-color: rgba(216, 134, 34, 0.45);
}

.feature-grid p,
.config-grid p,
.trouble-grid p,
.file-list span,
.step p,
.command-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.4fr);
  gap: 48px;
  max-width: 1120px;
  margin-inline: auto;
}

.sticky-head {
  position: sticky;
  top: 98px;
  align-self: start;
}

.steps,
.command-list {
  display: grid;
  gap: 16px;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 850;
}

code {
  padding: 0.12em 0.34em;
  color: #0f3f32;
  background: rgba(31, 122, 92, 0.1);
  border-radius: 5px;
  overflow-wrap: anywhere;
}

.code-panel {
  overflow: hidden;
  background: #172026;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(23, 32, 38, 0.16);
}

.code-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-row:last-child {
  border-bottom: 0;
}

.code-row span {
  color: #9db0ba;
  font-weight: 800;
}

.code-row code {
  color: #e9fbf3;
  background: transparent;
}

.note {
  margin-top: 18px;
  color: var(--muted);
  text-align: center;
}

.columns {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 48px;
}

.file-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.file-list article {
  display: grid;
  gap: 8px;
  padding: 18px;
}

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

.config-grid article {
  background: #fdfdfb;
}

.command-list article {
  padding: 22px;
  background: #fff;
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 16px;
  color: #eef7f4;
  background: #172026;
  border-radius: 8px;
  line-height: 1.55;
  white-space: pre-wrap;
}

pre code {
  padding: 0;
  color: inherit;
  background: transparent;
}

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

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 28px 42px;
  color: var(--muted);
}

.footer a {
  color: var(--green-dark);
  font-weight: 800;
}

@media (max-width: 980px) {
  .topbar {
    padding: 0 22px;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .split,
  .columns {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 36px;
    min-height: auto;
    padding-top: 58px;
  }

  .product-shot {
    min-height: 400px;
  }

  .sticky-head {
    position: static;
  }

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

@media (max-width: 680px) {
  .topbar {
    min-height: 62px;
  }

  .hero,
  .band,
  .section {
    padding-inline: 18px;
  }

  .lead {
    font-size: 18px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .mock-sidebar {
    display: none;
  }

  .metric-row,
  .feature-grid,
  .config-grid,
  .trouble-grid,
  .file-list {
    grid-template-columns: 1fr;
  }

  .route-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .code-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
