:root {
  color-scheme: light;
  --brand: #2b579a;
  --brand-dark: #1f477f;
  --brand-soft: #edf3fb;
  --ink: #1f2937;
  --muted: #5f6b7a;
  --line: #d8dee8;
  --surface: #ffffff;
  --surface-muted: #f6f8fb;
  --success: #157f5b;
  --shadow: 0 18px 50px rgb(31 71 127 / 10%);
  font-family:
    "Segoe UI",
    "Microsoft YaHei",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 88% 3%, rgb(43 87 154 / 10%), transparent 25rem),
    var(--surface);
}

a {
  color: var(--brand);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-dark);
}

a:focus,
button:focus {
  outline: 3px solid rgb(43 87 154 / 30%);
  outline-offset: 3px;
}

.site-header {
  border-bottom: 1px solid rgb(216 222 232 / 75%);
  background: rgb(255 255 255 / 90%);
  backdrop-filter: blur(12px);
}

.site-header__inner,
.page,
.site-footer__inner {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  margin-right: 11px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.site-nav a {
  margin: 3px 0 3px 22px;
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand);
}

.page {
  padding-block: 72px 96px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: 56px;
  min-height: 520px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 9px;
  font-size: 1.08rem;
}

p {
  margin-top: 0;
}

.lede {
  max-width: 670px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
}

.actions .button {
  margin: 0 12px 12px 0;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 18px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  border-color: var(--brand);
  color: var(--brand);
}

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

.button--primary:hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  color: #fff;
}

.code-card {
  overflow: hidden;
  border: 1px solid #253247;
  border-radius: 16px;
  background: #172235;
  box-shadow: var(--shadow);
  color: #dce5f3;
  transform: rotate(1.25deg);
}

.code-card__bar {
  display: flex;
  border-bottom: 1px solid #2b3950;
  padding: 13px 16px;
}

.code-card__bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8290a7;
}

.code-card__bar span + span {
  margin-left: 7px;
}

.code-card pre {
  overflow-x: auto;
  margin: 0;
  padding: 26px;
  font: 0.9rem/1.75 Consolas, "Courier New", monospace;
}

.code-keyword {
  color: #ff7ab2;
}

.code-function {
  color: #82d2ff;
}

.code-string {
  color: #b6e890;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  margin: 28px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.94rem;
  list-style: none;
}

.trust-row li {
  margin: 0 28px 12px 0;
}

.trust-row li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--success);
  font-weight: 800;
}

.section {
  padding-top: 90px;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 32px;
}

.section-heading p,
.card p,
.step p,
.policy-meta,
.callout p {
  color: var(--muted);
}

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

.card,
.step,
.callout {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.card {
  padding: 25px;
}

.card__number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
}

.steps {
  display: grid;
  gap: 14px;
  counter-reset: steps;
}

.step {
  position: relative;
  padding: 24px 28px 24px 76px;
  counter-increment: steps;
}

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

.step > :last-child,
.card > :last-child,
.callout > :last-child {
  margin-bottom: 0;
}

.callout {
  margin-top: 32px;
  padding: 24px 28px;
  border-left: 5px solid var(--brand);
  background: var(--brand-soft);
}

.callout--success {
  border-left-color: var(--success);
  background: #edf8f4;
}

.page-title {
  max-width: 760px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.page-title h1 {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.policy,
.support-content {
  max-width: 790px;
}

.policy section,
.support-content section {
  padding-top: 42px;
}

.policy h2,
.support-content h2 {
  font-size: 1.45rem;
}

.policy h3,
.support-content h3 {
  margin-top: 28px;
}

.policy li,
.support-content li {
  margin-bottom: 8px;
}

.policy-meta {
  font-size: 0.94rem;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-muted);
  font-size: 0.9rem;
}

tr:last-child td {
  border-bottom: 0;
}

code {
  border-radius: 5px;
  padding: 0.12em 0.38em;
  background: var(--surface-muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-muted);
}

.site-footer__inner {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
}

.footer-links a {
  margin: 4px 0 4px 20px;
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 780px) {
  .site-header__inner,
  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 18px;
  }

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

  .site-nav a,
  .footer-links a {
    margin-left: 0;
    margin-right: 18px;
  }

  .page {
    padding-block: 48px 72px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
    min-height: auto;
  }

  .code-card {
    transform: none;
  }

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

  .section {
    padding-top: 68px;
  }
}

@media (max-width: 460px) {
  .site-header__inner,
  .page,
  .site-footer__inner {
    width: min(100% - 28px, 1080px);
  }

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

  .step {
    padding: 70px 22px 22px;
  }

  .step::before {
    left: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
