:root {
  --bg: #f4f6f3;
  --surface: #ffffff;
  --surface-soft: #eef2ec;
  --ink: #111827;
  --muted: #667085;
  --line: #d9e0d6;
  --brand: #14532d;
  --brand-strong: #0f3f24;
  --green: #22c55e;
  --blue: #2563eb;
  --rose: #be123c;
  --amber: #b45309;
  --shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(217, 224, 214, 0.86);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.hero-tags,
.preview-top,
.preview-note,
.card-meta,
.final-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-size: 16px;
}

.brand-text {
  letter-spacing: 0;
}

.site-nav {
  gap: 6px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: #596273;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--brand);
  background: var(--surface-soft);
}

.nav-action,
.button,
.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nav-action,
.button.primary,
.card-action {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.button.secondary {
  color: var(--ink);
  background: #fff;
}

.nav-action:hover,
.button:hover,
.card-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.1);
}

.is-pending {
  color: #7a8494;
  background: #eef1ec;
  border-color: var(--line);
  box-shadow: none;
  cursor: not-allowed;
}

.hero-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(244, 246, 243, 0.95)),
    var(--bg);
}

.hero-inner,
.section-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner {
  min-height: 760px;
  padding: 86px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--brand);
  background: #e5f4e9;
  border: 1px solid #cde8d4;
  font-size: 13px;
  font-weight: 850;
}

.hero-copy h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: 64px;
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 720px;
  color: #475467;
  font-size: 19px;
  line-height: 1.8;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-tags {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-tags span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #3f4a3f;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 750;
}

.system-preview {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.preview-top {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.preview-top strong {
  color: var(--brand);
}

.preview-flow {
  display: grid;
  gap: 10px;
}

.preview-flow div {
  display: grid;
  grid-template-columns: 44px 80px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid #e2e7df;
  border-radius: 8px;
  background: #f8faf7;
}

.preview-flow small {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.preview-flow strong {
  font-size: 17px;
}

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

.preview-note {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.preview-note span {
  padding: 6px 9px;
  border-radius: 8px;
  color: #394150;
  background: #edf2ff;
  font-size: 12px;
  font-weight: 800;
}

.preview-note span:nth-child(2) {
  background: #fff4de;
}

.preview-note span:nth-child(3) {
  background: #e9f8ef;
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: var(--surface-soft);
}

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

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

.section-heading h2 {
  margin-bottom: 12px;
  font-size: 42px;
  line-height: 1.14;
  letter-spacing: 0;
}

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

.principle-grid,
.tool-grid,
.roadmap {
  display: grid;
  gap: 16px;
}

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

.principle-grid article,
.tool-card,
.delivery-list a,
.roadmap-item,
.final-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.04);
}

.principle-grid article {
  padding: 22px;
}

.principle-grid span {
  display: block;
  margin-bottom: 18px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.principle-grid h3,
.tool-card h3,
.roadmap-item h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.25;
}

.principle-grid p,
.tool-card p,
.roadmap-item p {
  margin-bottom: 0;
  color: var(--muted);
}

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

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

.tool-card {
  min-height: 360px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.tool-card.active {
  border-color: #9fd6ab;
  box-shadow: 0 18px 44px rgba(20, 83, 45, 0.1);
}

.tool-card.muted {
  opacity: 0.76;
}

.card-meta {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.card-meta span {
  padding: 5px 9px;
  border-radius: 8px;
  color: var(--brand);
  background: #e5f4e9;
  font-size: 12px;
  font-weight: 850;
}

.card-meta strong {
  color: var(--ink);
  font-size: 24px;
}

.tool-card ul {
  margin: 18px 0 22px;
  padding-left: 18px;
  color: #344054;
  font-size: 14px;
}

.tool-card li + li {
  margin-top: 6px;
}

.card-action {
  width: 100%;
  margin-top: auto;
}

.delivery-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 36px;
  align-items: start;
}

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

.delivery-list a {
  min-height: 138px;
  padding: 20px;
}

.delivery-list strong,
.delivery-list span {
  display: block;
}

.delivery-list strong {
  margin-bottom: 8px;
  font-size: 19px;
}

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

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

.roadmap.user-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.roadmap-item {
  padding: 20px;
  border-top: 4px solid #d8dfd5;
}

.roadmap-item.current {
  border-top-color: var(--green);
}

.roadmap-item span {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.faq-grid {
  display: grid;
  gap: 12px;
}

.faq-grid details {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.04);
}

.faq-grid summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 850;
}

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

.section-final {
  padding-top: 28px;
}

.final-panel {
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.final-panel h2 {
  max-width: 760px;
  margin-bottom: 10px;
  font-size: 32px;
  line-height: 1.18;
}

.final-panel p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
}

.final-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.site-footer {
  min-height: 72px;
  padding: 18px max(24px, calc((100vw - 1180px) / 2));
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

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

  .roadmap.user-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    padding-top: 12px;
    padding-bottom: 12px;
    align-items: flex-start;
    flex-direction: column;
  }

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

  .nav-action {
    width: 100%;
  }

  .hero-inner {
    padding: 54px 0 44px;
    gap: 34px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .section {
    padding: 52px 0;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .principle-grid,
  .tool-grid,
  .tool-grid.two-up,
  .delivery-layout,
  .delivery-list,
  .roadmap {
    grid-template-columns: 1fr;
  }

  .section-heading.compact {
    margin-bottom: 24px;
  }

  .tool-card {
    min-height: auto;
  }

  .final-panel,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .final-actions {
    width: 100%;
    justify-content: stretch;
  }

  .final-actions .button {
    flex: 1 1 180px;
  }
}

@media (max-width: 520px) {
  .hero-inner,
  .section-inner {
    width: min(100% - 24px, 1180px);
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .preview-flow div {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .preview-flow span {
    grid-column: 2;
  }

  .button {
    width: 100%;
  }
}
