:root {
  color-scheme: light;
  --ink: #17191f;
  --muted: #5f6673;
  --line: #d9ded7;
  --paper: #fbfbf7;
  --surface: #ffffff;
  --green: #236b4a;
  --green-soft: #e8f2ec;
  --copper: #a85f35;
  --copper-soft: #f5ebe4;
  --blue: #2d5d7c;
  --blue-soft: #e8f0f4;
  --dark: #20242b;
  --shadow: 0 14px 34px rgba(23, 25, 31, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

a:hover {
  color: var(--green);
}

:focus-visible {
  outline: 3px solid rgba(35, 107, 74, 0.32);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 222, 215, 0.86);
  background: rgba(251, 251, 247, 0.92);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 16px 0;
}

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--green);
  font-weight: 900;
}

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

.nav-links a {
  flex: 0 0 auto;
  min-width: max-content;
  border-radius: 8px;
  padding: 8px 10px;
  white-space: nowrap;
  word-break: keep-all;
}

.nav-links a[aria-current="page"] {
  background: var(--green-soft);
  color: var(--green);
  font-weight: 700;
}

.hero,
.page-hero,
.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 48px;
  align-items: center;
  padding: 74px 0 46px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--copper);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.16;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(42px, 6vw, 76px);
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
}

h3 {
  font-size: 20px;
}

.lead {
  max-width: 700px;
  margin: 22px 0 0;
  color: #3d444f;
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 1px 0 rgba(23, 25, 31, 0.04);
}

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

.button:hover {
  transform: translateY(-1px);
}

.workbench {
  border: 1px solid #ced6ce;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.workbench-top {
  display: flex;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  background: #f4f5ef;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--copper);
}

.dot:nth-child(2) {
  background: var(--blue);
}

.dot:nth-child(3) {
  background: var(--green);
}

.workbench-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.trace {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fcfcf9;
}

.trace strong {
  display: block;
  margin-bottom: 6px;
}

.trace p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 42px;
}

.stat {
  border-top: 2px solid var(--line);
  padding-top: 14px;
}

.stat strong {
  display: block;
  font-size: 26px;
}

.stat span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 54px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head p,
.page-hero p {
  max-width: 700px;
  margin: 12px 0 0;
  color: var(--muted);
}

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

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

.card {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 20px;
  box-shadow: 0 1px 0 rgba(23, 25, 31, 0.04);
}

.card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  background: #fbfbf7;
  color: #4c5360;
  font-size: 13px;
}

.feature-band {
  background: var(--dark);
  color: #fff;
}

.feature-band .section-head p,
.feature-band .card p {
  color: #c7ccd3;
}

.feature-band .card {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.project-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
  gap: 20px;
  align-items: center;
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #eef1ec;
}

.page-hero {
  padding: 58px 0 24px;
}

.list {
  display: grid;
  gap: 14px;
}

.item {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.item .kicker {
  color: var(--copper);
  font-weight: 800;
}

.item p {
  margin: 6px 0 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 28px 0;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

@media (max-width: 860px) {
  .nav,
  .hero,
  .page-hero,
  .section,
  .footer-inner {
    width: min(1120px, calc(100% - 24px));
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .project-card,
  .item {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
  }

  .grid,
  .grid.two,
  .stats {
    grid-template-columns: 1fr;
  }

  .section-head,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
