:root {
  color-scheme: light;
  --paper: #f8f5ee;
  --surface: #ffffff;
  --surface-strong: #f0f4ef;
  --ink: #1c2522;
  --muted: #65736d;
  --line: #d8ded8;
  --green: #1f6f5b;
  --green-dark: #164c40;
  --gold: #b17a28;
  --blue: #355f8c;
  --shadow: 0 14px 36px rgba(35, 49, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(28, 37, 34, 0.12);
  background: rgba(248, 245, 238, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--green);
  background: var(--green-dark);
  color: #ffffff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 14px;
}

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

main {
  overflow: hidden;
}

.intro-band,
.library-section,
.pillars-section,
.workflow-section,
.roadmap-section {
  padding: clamp(44px, 7vw, 84px) clamp(18px, 4vw, 56px);
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  min-height: min(760px, calc(100vh - 72px));
  border-bottom: 1px solid var(--line);
}

.intro-copy {
  max-width: 880px;
}

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

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

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: 0;
}

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

.intro-text {
  max-width: 700px;
  color: var(--muted);
  font-size: 18px;
}

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

.intro-visual {
  display: grid;
  gap: 18px;
}

.preview-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
}

.preview-strip img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  object-fit: cover;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(35, 49, 43, 0.12);
}

.preview-strip img:nth-child(2) {
  transform: translateY(18px);
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--green-dark);
  font-weight: 700;
}

.primary-action {
  background: var(--green-dark);
  color: #ffffff;
}

.secondary-action {
  background: transparent;
  color: var(--green-dark);
}

.status-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.status-panel > div {
  min-height: 132px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.status-panel > div:nth-child(2n) {
  border-right: 0;
}

.status-panel > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.metric,
.metric-label {
  display: block;
}

.metric {
  color: var(--green-dark);
  font-size: 36px;
  font-weight: 850;
  line-height: 1;
}

.metric-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

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

.section-heading {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1.2fr);
  gap: clamp(18px, 4vw, 56px);
  align-items: end;
  margin-bottom: 28px;
}

.section-heading p {
  color: var(--muted);
}

.library-tools {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}

.search-box {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-box input {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: #fbfbf7;
  color: var(--ink);
  outline: none;
}

.search-box input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 111, 91, 0.14);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button,
.text-button {
  min-height: 40px;
  border: 1px solid var(--line);
  background: #fbfbf7;
  color: var(--ink);
  cursor: pointer;
}

.filter-button {
  padding: 8px 12px;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: #ffffff;
}

.result-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.text-button {
  padding: 7px 10px;
  color: var(--green-dark);
}

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

.content-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  border: 1px solid var(--line);
  background: #ffffff;
}

.content-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--surface-strong);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.card-label {
  width: fit-content;
  padding: 4px 8px;
  background: var(--surface-strong);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.card-body h3 {
  margin-bottom: 0;
}

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

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

.tag-row span {
  border: 1px solid var(--line);
  padding: 3px 7px;
  color: var(--muted);
  font-size: 12px;
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  min-height: 180px;
  place-items: center;
  border: 1px dashed var(--line);
  color: var(--muted);
}

.empty-state strong {
  color: var(--ink);
}

.pillars-section {
  background: var(--surface-strong);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.pillar-item {
  min-height: 260px;
  padding: 22px;
  background: var(--surface-strong);
}

.pillar-index {
  display: block;
  margin-bottom: 42px;
  color: var(--blue);
  font-weight: 850;
}

.pillar-item p {
  color: var(--muted);
}

.workflow-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(28px, 6vw, 76px);
  background: var(--green-dark);
  color: #ffffff;
}

.workflow-section p {
  color: rgba(255, 255, 255, 0.78);
}

.workflow-section .eyebrow {
  color: #e5c073;
}

.workflow-list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(255, 255, 255, 0.18);
}

.workflow-list li {
  display: grid;
  gap: 6px;
  min-height: 120px;
  padding: 22px;
  background: rgba(16, 48, 41, 0.96);
}

.workflow-list span {
  color: rgba(255, 255, 255, 0.74);
}

.roadmap-section {
  background: var(--paper);
}

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

.roadmap-grid > div {
  min-height: 180px;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
}

.roadmap-grid strong {
  display: block;
  margin-bottom: 14px;
  color: var(--green-dark);
}

.roadmap-grid p {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 22px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 1100px) {
  .content-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .nav-links {
    justify-content: flex-start;
  }

  .intro-band,
  .section-heading,
  .library-tools,
  .workflow-section {
    grid-template-columns: 1fr;
  }

  .intro-band {
    min-height: auto;
  }

  .intro-visual {
    max-width: 520px;
  }

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

@media (max-width: 560px) {
  .intro-actions,
  .result-line,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .status-panel,
  .content-grid,
  .pillar-grid,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .status-panel > div,
  .status-panel > div:nth-child(2n),
  .status-panel > div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .status-panel > div:last-child {
    border-bottom: 0;
  }

  h1 {
    font-size: 38px;
  }
}
