:root {
  --primary: #0f766e;
  --primary-dark: #115e59;
  --accent: #2563eb;
  --ink: #162033;
  --muted: #536176;
  --soft: #f6f8fb;
  --surface: #ffffff;
  --line: #d9e2ec;
  --line-strong: #b8c4d4;
  --success: #16a34a;
  --warning: #d97706;
  --shadow: 0 18px 42px rgba(15, 23, 42, 0.11);
  color: var(--ink);
  background: var(--soft);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 251, 0.95)),
    repeating-linear-gradient(90deg, rgba(15, 118, 110, 0.05) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(37, 99, 235, 0.04) 0 1px, transparent 1px 96px);
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  background: #e7f8f5;
  color: var(--primary-dark);
  font-size: 14px;
}

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

.site-nav a {
  border-radius: 8px;
  padding: 8px 12px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #ecfdf9;
  color: var(--primary-dark);
}

.hero-section,
.content-section,
.site-footer {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(440px, 1.06fr);
  gap: 40px;
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: 58px 0 52px;
}

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

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

h1 {
  margin-bottom: 18px;
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: 0;
}

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

.hero-summary {
  max-width: 660px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 18px;
}

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

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 800;
}

.primary-link {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
}

.secondary-link {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

.hero-board {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.board-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.board-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #94a3b8;
}

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

.board-panel {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
}

.board-panel.wide {
  grid-column: 1 / -1;
}

.panel-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.board-panel strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.1;
}

.board-panel small {
  color: var(--muted);
  font-weight: 700;
}

.flow-line {
  display: grid;
  grid-template-columns: 54px 1fr 64px 1fr 62px 1fr 54px;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
}

.flow-line span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 8px;
  background: #e7f8f5;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}

.flow-line i {
  height: 2px;
  background: var(--line-strong);
}

.change-list {
  display: grid;
  gap: 10px;
}

.change-list span {
  display: block;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 10px 12px;
  background: #f8fbff;
  color: var(--muted);
  font-weight: 800;
}

.content-section {
  padding: 54px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-head p:not(.eyebrow),
.feature-card p,
.workflow-step p,
.module-list p {
  color: var(--muted);
}

.workflow-list {
  display: grid;
  gap: 24px;
}

.workflow-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.workflow-step.reverse .workflow-copy {
  order: 2;
}

.workflow-step.reverse .workflow-media {
  order: 1;
}

.workflow-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.workflow-step p {
  margin-bottom: 0;
  line-height: 1.7;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  background: #eff6ff;
  color: var(--accent);
  font-size: 16px;
  font-weight: 900;
}

.step-header h3 {
  margin-bottom: 0;
}

.workflow-media {
  min-width: 0;
}

.workflow-media img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  display: block;
}

.mock-window {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
  min-height: 260px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.mock-sidebar {
  border-radius: 8px;
  background:
    linear-gradient(#d9e2ec 0 16px, transparent 16px 32px),
    linear-gradient(#d9e2ec 0 16px, transparent 16px 32px),
    linear-gradient(#d9e2ec 0 16px, transparent 16px 32px),
    #edf4f7;
  background-position: 14px 22px, 14px 62px, 14px 102px, 0 0;
  background-repeat: no-repeat;
  background-size: 52px 32px, 52px 32px, 52px 32px, 100% 100%;
}

.mock-main {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.mock-main.full {
  grid-column: 1 / -1;
}

.mock-title,
.mock-row,
.mock-finding,
.diff-line,
.impact-list span,
.gate-result {
  border-radius: 8px;
  background: #d9e2ec;
}

.mock-title {
  width: 42%;
  height: 24px;
  background: #0f766e;
}

.mock-row {
  width: 72%;
  height: 18px;
}

.mock-row.wide {
  width: 92%;
}

.mock-row.short {
  width: 54%;
}

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

.mock-grid span {
  min-height: 74px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: #e7f8f5;
}

.mock-progress {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: #e5e7eb;
}

.mock-progress span {
  display: block;
  width: 68%;
  height: 100%;
  background: var(--primary);
}

.mock-finding {
  height: 42px;
  background: #f8fbff;
  border-left: 4px solid var(--accent);
}

.mock-finding.high {
  border-left-color: var(--warning);
}

.mock-finding.low {
  border-left-color: var(--success);
}

.graph-preview {
  display: block;
}

.graph-node {
  position: absolute;
  z-index: 2;
  width: 92px;
  height: 58px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  background: #e7f8f5;
}

.graph-node.req {
  left: 52px;
  top: 96px;
}

.graph-node.case {
  left: 218px;
  top: 48px;
  background: #eff6ff;
}

.graph-node.code {
  right: 186px;
  top: 142px;
  background: #fff7ed;
}

.graph-node.run {
  right: 54px;
  bottom: 54px;
  background: #f0fdf4;
}

.graph-line {
  position: absolute;
  height: 2px;
  transform-origin: left center;
  background: #b8c4d4;
}

.graph-line.one {
  left: 140px;
  top: 103px;
  width: 96px;
  transform: rotate(-18deg);
}

.graph-line.two {
  left: 300px;
  top: 102px;
  width: 136px;
  transform: rotate(24deg);
}

.graph-line.three {
  right: 128px;
  top: 186px;
  width: 94px;
  transform: rotate(25deg);
}

.diff-line {
  height: 24px;
  background: #edf2f7;
}

.diff-line.add {
  background: #dcfce7;
}

.diff-line.remove {
  background: #fee2e2;
}

.impact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.impact-list span {
  min-height: 76px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: #eff6ff;
}

.gate-preview {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
}

.gate-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 124px;
  height: 124px;
  border: 14px solid #16a34a;
  border-radius: 50%;
  color: var(--ink);
  font-size: 30px;
  font-weight: 900;
}

.gate-bars {
  display: grid;
  gap: 16px;
}

.gate-bars span {
  display: block;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary) 72%, #e5e7eb 72%);
}

.gate-bars span:nth-child(2) {
  background: linear-gradient(90deg, var(--accent) 58%, #e5e7eb 58%);
}

.gate-bars span:nth-child(3) {
  background: linear-gradient(90deg, var(--warning) 34%, #e5e7eb 34%);
}

.gate-result {
  grid-column: 1 / -1;
  min-height: 42px;
  background: #f0fdf4;
}

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

.feature-card,
.coverage-card,
.command-card,
.qr-card,
.module-list article {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.feature-card {
  min-height: 176px;
  padding: 20px;
}

.coverage-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 190px;
  padding: 20px;
}

.coverage-card h3,
.coverage-card p {
  margin-bottom: 0;
}

.coverage-card p {
  color: var(--muted);
}

.coverage-card code {
  display: block;
  overflow-x: auto;
  white-space: pre;
  border: 1px solid #1f2937;
  border-radius: 8px;
  padding: 10px 12px;
  background: #111827;
  color: #e5e7eb;
  font-size: 12px;
  line-height: 1.55;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 14px;
  border-radius: 8px;
  padding: 4px 10px;
  background: #e7f8f5;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}

.feature-card p,
.module-list p {
  margin-bottom: 0;
}

.split-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 28px;
  align-items: start;
}

.module-list {
  display: grid;
  gap: 12px;
}

.module-list article {
  padding: 18px 20px;
}

.command-card {
  overflow: hidden;
}

.command-card h3 {
  margin: 0;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

pre {
  overflow-x: auto;
  margin: 0;
  min-height: 174px;
  padding: 18px;
  background: #111827;
  color: #e5e7eb;
  font-size: 13px;
  line-height: 1.65;
}

code {
  font-family: "SFMono-Regular", "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.qr-card {
  padding: 18px;
  text-align: center;
}

.qr-card img {
  width: 100%;
  max-width: 230px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.qr-card h3 {
  margin: 14px 0 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

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

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

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

  .workflow-step.reverse .workflow-copy,
  .workflow-step.reverse .workflow-media {
    order: initial;
  }

  .hero-section {
    min-height: 0;
    padding-top: 42px;
  }

  h1 {
    font-size: 44px;
  }

  .feature-grid,
  .coverage-grid,
  .command-grid,
  .qr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero-section,
  .content-section,
  .site-footer {
    width: min(1180px, calc(100vw - 28px));
  }

  .site-header {
    padding: 12px 14px;
  }

  .site-nav a {
    padding: 8px 10px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 26px;
  }

  .hero-summary {
    font-size: 16px;
  }

  .board-grid,
  .feature-grid,
  .coverage-grid,
  .command-grid,
  .qr-grid {
    grid-template-columns: 1fr;
  }

  .flow-line {
    grid-template-columns: 1fr;
  }

  .workflow-step {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .workflow-copy {
    grid-template-columns: 1fr;
  }

  .mock-window {
    grid-template-columns: 1fr;
    min-height: 230px;
  }

  .mock-sidebar {
    display: none;
  }

  .graph-node {
    width: 74px;
    height: 50px;
  }

  .graph-node.req {
    left: 18px;
    top: 92px;
  }

  .graph-node.case {
    left: 122px;
    top: 42px;
  }

  .graph-node.code {
    right: 76px;
    top: 128px;
  }

  .graph-node.run {
    right: 18px;
    bottom: 44px;
  }

  .graph-line.one {
    left: 88px;
    top: 96px;
    width: 64px;
  }

  .graph-line.two {
    left: 188px;
    top: 96px;
    width: 82px;
  }

  .graph-line.three {
    right: 72px;
    top: 164px;
    width: 48px;
  }

  .gate-preview {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .flow-line i {
    height: 20px;
    width: 2px;
    justify-self: center;
  }

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