:root {
  color-scheme: light;
  --bg: #f7f4ed;
  --panel: #fffdf8;
  --ink: #17202a;
  --muted: #62717f;
  --line: #ded7ca;
  --accent: #147f7a;
  --accent-dark: #0c5b58;
  --blue: #173a6a;
  --gold: #b7791f;
  --danger: #9f2d20;
  --shadow: 0 24px 70px rgba(31, 41, 55, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

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

button, input, textarea, select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(222, 215, 202, 0.78);
  background: rgba(247, 244, 237, 0.86);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover { color: var(--ink); }

.topbar-cta {
  justify-self: end;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(58px, 8vw, 116px) clamp(18px, 5vw, 72px) 48px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 880px;
  margin-bottom: 24px;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.lede {
  max-width: 780px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.75;
}

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

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.btn.primary {
  border-color: transparent;
  background: var(--accent);
  color: white;
}

.btn.primary:hover { background: var(--accent-dark); }

.btn.secondary:hover { border-color: var(--accent); }

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 720px;
  margin: 52px 0 0;
  padding: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.metrics div {
  padding: 18px;
  background: rgba(255, 253, 248, 0.8);
}

.metrics dt {
  font-size: 24px;
  font-weight: 900;
}

.metrics dd {
  margin: 6px 0 0;
  color: var(--muted);
}

.hero-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-card figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: clamp(70px, 8vw, 112px) clamp(18px, 5vw, 72px);
}

.compact { padding-top: 36px; }

.section-title {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
}

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

.feature-grid article,
.price-card,
.workspace-panel,
.qr-card,
.deploy,
.pay-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 40px rgba(31, 41, 55, 0.06);
}

.feature-grid article,
.price-card {
  padding: 24px;
}

.feature-grid span {
  color: var(--gold);
  font-weight: 900;
}

.feature-grid p,
.price-card li,
.deploy p {
  color: var(--muted);
  line-height: 1.7;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
  background: #ebe7dd;
}

.workspace-panel,
.qr-card {
  padding: 24px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.status {
  width: max-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e7f7f5;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

.research-form label {
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
}

textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

textarea {
  resize: vertical;
  min-height: 190px;
  padding: 16px;
  line-height: 1.65;
}

select {
  flex: 1;
  min-width: 180px;
  min-height: 46px;
  padding: 0 12px;
}

.result {
  min-height: 210px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101828;
  color: #f7f4ed;
  white-space: pre-wrap;
  line-height: 1.7;
}

.result p { color: rgba(247, 244, 237, 0.7); }

.workflow-runner {
  white-space: normal;
}

.news-pool {
  white-space: normal;
}

.runner-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.runner-head strong {
  font-size: 16px;
}

.runner-head small {
  color: rgba(247, 244, 237, 0.72);
}

.workflow-runner ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0 0 18px;
  list-style: none;
}

.workflow-runner li {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid rgba(247, 244, 237, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(247, 244, 237, 0.68);
}

.workflow-runner li span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(247, 244, 237, 0.12);
  color: rgba(247, 244, 237, 0.74);
  font-size: 12px;
  font-weight: 800;
}

.workflow-runner li strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  color: #f7f4ed;
}

.workflow-runner li em {
  font-style: normal;
  font-size: 12px;
}

.workflow-runner li.active {
  border-color: rgba(88, 166, 255, 0.7);
  background: rgba(88, 166, 255, 0.13);
}

.workflow-runner li.active span {
  background: #58a6ff;
  color: #0b1020;
}

.workflow-runner li.done {
  border-color: rgba(91, 211, 146, 0.62);
  background: rgba(91, 211, 146, 0.12);
}

.workflow-runner li.done span {
  background: #5bd392;
  color: #06140c;
}

.workflow-runner pre {
  max-height: 560px;
  overflow: auto;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(247, 244, 237, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #f7f4ed;
  white-space: pre-wrap;
  font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

.news-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(247, 244, 237, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.news-item span {
  display: block;
  margin-bottom: 6px;
  color: rgba(247, 244, 237, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.news-item h3 {
  margin-bottom: 6px;
  color: #f7f4ed;
  font-size: 15px;
  line-height: 1.45;
}

.news-item p {
  margin: 0;
  color: rgba(247, 244, 237, 0.7);
  font-size: 13px;
  line-height: 1.6;
}

.news-item small {
  display: block;
  margin-top: 8px;
  color: rgba(247, 244, 237, 0.5);
  font-size: 12px;
  line-height: 1.5;
}

.news-item .btn {
  min-width: 96px;
  border-color: rgba(247, 244, 237, 0.2);
  background: rgba(247, 244, 237, 0.08);
  color: #f7f4ed;
}

.qr-box {
  display: grid;
  min-height: 220px;
  place-items: center;
  overflow: hidden;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
}

.qr-box img {
  display: block;
  width: min(220px, 100%);
  height: auto;
}

.qr-card p,
.fineprint {
  color: var(--muted);
  line-height: 1.7;
}

.price {
  margin-bottom: 18px;
  font-size: 42px;
  font-weight: 900;
}

.price span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.price-card ul {
  min-height: 116px;
  padding-left: 18px;
}

.price-card.featured {
  border-color: rgba(20, 127, 122, 0.55);
  box-shadow: 0 22px 60px rgba(20, 127, 122, 0.16);
}

.pay-box {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 40;
  width: min(380px, calc(100vw - 32px));
  padding: 24px;
  transform: translate(-50%, -50%);
  box-shadow: var(--shadow);
}

.close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.deploy {
  display: grid;
  grid-template-columns: 1fr;
  max-width: calc(100% - clamp(36px, 10vw, 144px));
  margin: 0 auto clamp(70px, 8vw, 112px);
  padding: 32px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  padding: 24px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 880px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero,
  .section-title,
  .workspace,
  .feature-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

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

  .news-item {
    grid-template-columns: 1fr;
  }
}
