:root {
  color-scheme: light;
  --ink: #1d2a22;
  --muted: #657066;
  --line: #dfe5dc;
  --surface: #fbfaf6;
  --panel: #ffffff;
  --brand: #315846;
  --brand-strong: #19372b;
  --accent: #a5533c;
  --gold: #d8b864;
  --shadow: 0 18px 60px rgba(31, 45, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(246, 242, 232, 0.88), rgba(255, 255, 255, 0.92)),
    var(--surface);
  letter-spacing: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(223, 229, 220, 0.82);
  background: rgba(251, 250, 246, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(25, 55, 43, 0.16);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.top-nav a {
  padding: 9px 10px;
  border-radius: 999px;
}

.top-nav a:hover {
  color: var(--brand-strong);
  background: rgba(49, 88, 70, 0.09);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 64px);
  padding: clamp(48px, 8vw, 92px) clamp(18px, 6vw, 76px) 42px;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  max-width: 760px;
  font-size: clamp(42px, 7.4vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 32px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 850;
}

.primary-action {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 16px 32px rgba(49, 88, 70, 0.2);
}

.secondary-action {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand-strong);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.hero-metrics div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-metrics dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.hero-metrics dd {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 850;
}

.hero-visual {
  min-width: 0;
}

.desktop-frame {
  overflow: hidden;
  border: 1px solid rgba(49, 88, 70, 0.16);
  border-radius: 22px;
  background: #f7f4eb;
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  gap: 7px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(49, 88, 70, 0.12);
  background: #fff;
}

.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d9cbb8;
}

.window-bar span:first-child {
  background: #c96b55;
}

.window-bar span:nth-child(2) {
  background: var(--gold);
}

.window-bar span:nth-child(3) {
  background: #6ca686;
}

.platform-panel {
  padding: clamp(18px, 4vw, 32px);
}

.app-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.app-card img {
  width: 54px;
  height: 54px;
  border-radius: 16px;
}

.app-card strong,
.app-card span {
  display: block;
}

.app-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.connection-row {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 18px 0;
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 850;
}

.connection-row span {
  padding: 8px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
}

.connection-row i {
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), rgba(49, 88, 70, 0.18));
}

pre {
  overflow: auto;
  margin: 0;
  padding: 18px;
  border-radius: 18px;
  background: #18241e;
  color: #ecf3ea;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.65;
}

.band,
.split-section,
.package-section {
  padding: 72px clamp(18px, 6vw, 76px);
}

.band {
  background: #fff;
  border-block: 1px solid var(--line);
}

.band.muted {
  background: #f5f3ec;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.section-heading.compact {
  margin-bottom: 0;
}

.principle-grid,
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.principle-grid article,
.package-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.principle-grid p,
.package-grid p {
  color: var(--muted);
  line-height: 1.62;
}

.icon-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 12px;
  color: #fff;
  background: var(--brand);
  font-size: 12px;
  font-weight: 850;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(280px, 0.82fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
}

.steps strong,
.steps span {
  display: block;
}

.steps span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.code-card {
  overflow: hidden;
  border-radius: 18px;
  background: #18241e;
  box-shadow: var(--shadow);
}

.code-card pre {
  border-radius: 0;
}

.code-title {
  padding: 13px 16px;
  color: #f5efe1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 850;
}

.capability-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 0.9fr 0.55fr 1.35fr;
  gap: 12px;
  align-items: center;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}

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

.table-row.header {
  color: var(--muted);
  background: #fbfaf6;
  font-size: 13px;
  font-weight: 850;
}

.table-row span:first-child {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 800;
}

mark {
  padding: 4px 8px;
  border-radius: 999px;
  color: #1f5d45;
  background: rgba(46, 109, 90, 0.12);
  font-weight: 850;
}

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

.package-grid code {
  display: block;
  margin-top: 14px;
  padding: 10px;
  border-radius: 10px;
  color: var(--brand-strong);
  background: #f5f1ea;
  font-size: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 6vw, 76px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-weight: 750;
}

@media (max-width: 980px) {
  .hero-section,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .principle-grid,
  .package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-metrics,
  .principle-grid,
  .package-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .table-row {
    grid-template-columns: 1fr;
  }

  .table-row.header {
    display: none;
  }

  .site-footer {
    flex-direction: column;
  }
}
