:root {
  --brand: #0f8f6e;
  --brand-hover: #0c7a5e;
  --brand-ink: #0b6e54;
  --ink: #0f241d;
  --muted: #4b5e57;
  --quiet: #687b74;
  --line: #dce7e2;
  --line-soft: #e6efeb;
  --bg: #f7fbf9;
  --tint: #e5f5ef;
  --tint-strong: #d4efe5;
  --card: #ffffff;
  --yes: #0d8264;
  --mid: #9a6410;
  --no: #b44339;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.62;
  overflow-x: hidden;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

svg {
  display: block;
  flex-shrink: 0;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 650;
  font-size: 15px;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px rgba(15, 143, 110, 0.22);
}

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

.btn-ghost {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: #bfd2ca;
  background: #fbfdfc;
}

.btn small {
  font-weight: 500;
  opacity: 0.86;
  font-size: 12.5px;
}

.h5-only {
  display: none;
}

/* Header */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 251, 249, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 720;
  font-size: 15px;
  min-width: 0;
}

.logo img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  flex-shrink: 0;
}

.logo span small {
  display: block;
  font-weight: 500;
  font-size: 11.5px;
  color: var(--quiet);
  line-height: 1.2;
}

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

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

.nav-cta {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-cta .btn {
  height: 36px;
  font-size: 13.5px;
  padding: 0 13px;
  border-radius: 9px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--muted);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.lang-switch:hover {
  border-color: #bfd2ca;
  color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -28% -10% auto 40%;
  height: 760px;
  background: radial-gradient(closest-side, rgba(159, 227, 203, 0.42), transparent 72%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 52px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px 5px 6px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  transition: border-color 0.15s ease;
}

.pill:hover {
  border-color: #b7cfc5;
}

.pill b {
  background: var(--tint);
  color: var(--brand-ink);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}

h1 {
  margin: 20px 0 16px;
  font-size: 52px;
  line-height: 1.16;
  letter-spacing: -0.022em;
  font-weight: 780;
}

h1 em {
  font-style: normal;
  color: var(--brand);
  white-space: nowrap;
}

.lead {
  font-size: 16.5px;
  color: var(--muted);
  max-width: 32em;
}

.cta-row {
  display: flex;
  gap: 12px;
  margin: 28px 0 12px;
  flex-wrap: wrap;
}

.alt-dl {
  font-size: 13px;
  color: var(--quiet);
  margin-bottom: 18px;
}

.alt-dl a,
.alt-dl button {
  color: var(--brand-ink);
  font-weight: 600;
  border-bottom: 1px dashed rgba(15, 143, 110, 0.4);
  padding-bottom: 1px;
}

.alt-dl a:hover,
.alt-dl button:hover {
  border-bottom-style: solid;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13px;
  color: var(--quiet);
}

.meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  display: inline-block;
}

.window {
  border-radius: 14px;
  background: #fff;
  border: 1px solid #d2e2db;
  box-shadow: 0 30px 78px rgba(13, 59, 44, 0.17), 0 2px 6px rgba(13, 59, 44, 0.07);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 6px 0 14px;
  font-size: 12px;
  color: var(--quiet);
  border-bottom: 1px solid var(--line-soft);
  background: #fbfdfc;
  user-select: none;
}

.window-bar .ctl {
  display: flex;
  gap: 2px;
}

.window-bar .ctl span {
  width: 34px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 11px;
}

.window picture,
.window img {
  display: block;
  width: 100%;
  height: auto;
}

/* Trust Strip */
.trust {
  border-block: 1px solid var(--line);
  background: #fff;
}

.trust .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  padding: 22px 16px 22px 0;
  display: flex;
  gap: 12px;
  align-items: center;
}

.trust-item + .trust-item {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--tint);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.trust-item b {
  display: block;
  font-size: 14.5px;
  line-height: 1.35;
}

.trust-item small {
  display: block;
  font-size: 12.5px;
  color: var(--quiet);
}

/* Sections */
section.block {
  padding: 84px 0;
}

section.block-tight-top {
  padding-top: 0;
}

section.block-surface {
  background: #fff;
  border-block: 1px solid var(--line);
}

.kicker {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h2 {
  font-size: 34px;
  line-height: 1.24;
  letter-spacing: -0.016em;
  margin: 10px 0 14px;
  font-weight: 760;
}

.sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 40em;
}

.head {
  margin-bottom: 38px;
}

.center {
  text-align: center;
}

.center .sub {
  margin: 0 auto;
}

/* Before / After Rows */
.compare {
  display: grid;
  gap: 12px;
  margin-bottom: 36px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 36px 1fr;
  gap: 18px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 24px;
}

.row .bad b {
  font-size: 15px;
  display: block;
  margin-bottom: 2px;
}

.row .bad p {
  font-size: 13.5px;
  color: var(--quiet);
}

.row .arrow {
  color: #b0c4bc;
}

.row .good b {
  font-size: 15px;
  color: var(--brand-ink);
  display: block;
  margin-bottom: 2px;
}

.row .good p {
  font-size: 13.5px;
  color: var(--muted);
}

/* 3-Way Comparison Matrix (from Design C) */
.matrix-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.matrix-title {
  padding: 16px 22px;
  background: #fafcfb;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.matrix-title b {
  font-size: 15px;
}

.matrix-title span {
  font-size: 12.5px;
  color: var(--quiet);
}

.matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: fixed;
}

.matrix th,
.matrix td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}

.matrix tr:last-child td,
.matrix tr:last-child th {
  border-bottom: 0;
}

.matrix thead th {
  background: #fbfdfc;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.matrix th:first-child,
.matrix td:first-child {
  width: 29%;
  color: var(--muted);
  font-weight: 550;
}

.matrix .col-me {
  background: rgba(229, 245, 239, 0.55);
  font-weight: 650;
  color: var(--ink);
}

.matrix thead .col-me {
  background: var(--tint);
  color: var(--brand-ink);
  font-weight: 720;
}

.st-yes {
  color: var(--yes);
  font-weight: 650;
}

.st-mid {
  color: var(--mid);
}

.st-no {
  color: var(--no);
}

/* Feature Cards */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.card h3 {
  font-size: 16.5px;
  margin: 16px 0 6px;
  font-weight: 700;
}

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

/* 4-Step Flow */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: s;
}

.step {
  position: relative;
  padding-top: 52px;
}

.step::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  display: grid;
  place-items: center;
}

.step::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 48px;
  right: -10px;
  height: 2px;
  background: linear-gradient(90deg, #9ed9c4, #dcefe7);
}

.step:last-child::after {
  display: none;
}

.step b {
  font-size: 16px;
  display: block;
}

.step p {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 4px;
}

/* 4-Check Security */
.sec {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 52px;
  align-items: center;
}

.checks {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.check {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
}

.check + .check {
  border-top: 1px solid var(--line);
}

.check b {
  font-size: 14.5px;
  display: block;
}

.check small {
  font-size: 12.5px;
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
}

.badge {
  font-size: 12px;
  font-weight: 650;
  color: var(--brand-ink);
  background: var(--tint);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* CLI Commands */
.cmd {
  background: #0f1f1a;
  border-radius: 16px;
  padding: 8px;
  color: #d7efe6;
}

.cmd-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 10px;
}

.cmd-row + .cmd-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cmd-row .cmd-label {
  width: 108px;
  flex: 0 0 auto;
  font-size: 12.5px;
  color: #8fb5a8;
  font-weight: 600;
}

.cmd-row code {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #e6f6f0;
}

.copy-btn {
  font-size: 12.5px;
  font-weight: 600;
  color: #cfeee2;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 5px 12px;
  flex: 0 0 auto;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.copy-btn.is-copied,
.btn.is-copied {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.cmd-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--quiet);
}

.cmd-note a {
  color: var(--brand-ink);
  font-weight: 600;
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
}

summary {
  font-weight: 650;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--quiet);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  flex-shrink: 0;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

details code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  padding: 1px 5px;
  border-radius: 5px;
}

/* Bottom CTA Band */
.band-wrap {
  max-width: 1180px;
  margin: 0 auto 64px;
  padding: 0 32px;
}

.band {
  border-radius: 22px;
  background: linear-gradient(120deg, #0c7a5e, #129f7b);
  color: #fff;
  padding: 48px 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.band h2 {
  color: #fff;
  margin: 0 0 6px;
  font-size: 30px;
}

.band p {
  opacity: 0.9;
  font-size: 15px;
}

.band-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.band .btn-primary {
  background: #fff;
  color: var(--brand-ink);
  box-shadow: none;
}

.band .btn-primary:hover {
  background: #f0faf6;
}

.band .btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.band .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 42px;
  font-size: 13px;
  color: var(--quiet);
}

.foot-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.foot-links a:hover {
  color: var(--brand-ink);
}

.foot-disclaimer {
  font-size: 12.5px;
  color: var(--quiet);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  background: #0f241d;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(15, 36, 29, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 60;
  max-width: calc(100vw - 32px);
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Responsive Tablet & H5 */
@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
  .hero .wrap,
  .sec {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  h1 {
    font-size: 42px;
  }
  .grid3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .wrap,
  .band-wrap {
    padding: 0 18px;
  }
  .pc-only {
    display: none !important;
  }
  .h5-only {
    display: inline-flex;
  }
  p.h5-only {
    display: block;
  }
  .nav .wrap {
    height: 56px;
    gap: 8px;
  }
  .logo {
    font-size: 14px;
    gap: 8px;
  }
  .logo img {
    width: 26px;
    height: 26px;
  }
  .logo span small {
    font-size: 11px;
  }
  .nav-cta {
    gap: 6px;
  }
  .nav-cta .btn,
  .lang-switch {
    height: 34px;
    padding: 0 10px;
    font-size: 12.5px;
  }
  .hero {
    padding: 32px 0 28px;
  }
  .hero .wrap {
    gap: 26px;
  }
  .pill {
    font-size: 12px;
    max-width: 100%;
  }
  .pill span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  h1 {
    font-size: 31px;
    margin: 15px 0 12px;
  }
  .lead {
    font-size: 15px;
  }
  .cta-row {
    margin: 22px 0 10px;
  }
  .cta-row .btn {
    width: 100%;
  }
  .alt-dl {
    font-size: 12.5px;
    margin-bottom: 14px;
  }
  .trust .wrap {
    grid-template-columns: 1fr 1fr;
  }
  .trust-item {
    padding: 15px 8px 15px 0;
    gap: 10px;
  }
  .trust-item + .trust-item {
    padding-left: 0;
    border-left: 0;
  }
  .trust-item:nth-child(even) {
    padding-left: 12px;
    border-left: 1px solid var(--line);
  }
  .trust-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .ico {
    width: 34px;
    height: 34px;
  }
  .trust-item b {
    font-size: 13.5px;
  }
  .trust-item small {
    font-size: 11.5px;
  }
  section.block {
    padding: 54px 0;
  }
  section.block-tight-top {
    padding-top: 0;
  }
  h2 {
    font-size: 25px;
  }
  .sub {
    font-size: 14.5px;
  }
  .head {
    margin-bottom: 26px;
  }
  .row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px;
  }
  .row .arrow {
    transform: rotate(90deg);
    width: 20px;
    height: 20px;
  }
  .matrix-title {
    padding: 13px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .matrix {
    font-size: 12px;
  }
  .matrix th,
  .matrix td {
    padding: 10px 8px;
    line-height: 1.38;
  }
  .matrix th:first-child,
  .matrix td:first-child {
    width: 28%;
  }
  .grid3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .card {
    padding: 18px;
  }
  .card h3 {
    margin-top: 12px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .step {
    padding: 0 0 0 50px;
    min-height: 38px;
  }
  .step::after {
    top: 42px;
    bottom: -14px;
    left: 17px;
    right: auto;
    width: 2px;
    height: auto;
    background: #cfe9df;
  }
  .sec {
    gap: 24px;
  }
  .check {
    padding: 14px 15px;
    gap: 10px;
  }
  .cmd-row {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
  }
  .cmd-row .cmd-label {
    width: auto;
    flex: 1;
  }
  .cmd-row code {
    width: 100%;
    flex: 0 0 100%;
    order: 3;
    white-space: normal;
    word-break: break-all;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.25);
    padding: 8px 10px;
    border-radius: 7px;
  }
  .faq {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  details {
    padding: 15px 16px;
  }
  .band-wrap {
    margin-bottom: 40px;
  }
  .band {
    padding: 28px 22px;
    border-radius: 18px;
    flex-direction: column;
    align-items: flex-start;
  }
  .band h2 {
    font-size: 24px;
  }
  .band-actions {
    width: 100%;
  }
  .band-actions .btn {
    width: 100%;
  }
  .foot-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
