:root {
  color-scheme: light;
  --ink: #10203b;
  --muted: #52627a;
  --line: #dbe4ee;
  --paper: #ffffff;
  --wash: #f4f8fc;
  --navy: #0a1a39;
  --blue: #1967d2;
  --blue-dark: #124fa4;
  --mint: #22a77a;
  --code: #07152f;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(22, 47, 82, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--blue);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(25, 103, 210, 0.35);
  outline-offset: 3px;
}

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--paper);
  padding: 8px 12px;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid rgba(219, 228, 238, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.nav,
.wrap,
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.nav {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 22px;
  font-size: 15px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

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

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 10%, rgba(57, 217, 231, 0.15), transparent 30%),
    radial-gradient(circle at 15% 35%, rgba(56, 117, 246, 0.13), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.hero .wrap {
  padding-block: clamp(64px, 9vw, 112px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.22;
  text-wrap: balance;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 4.6rem);
  letter-spacing: -0.045em;
}

h2 {
  margin: 2.7em 0 0.65em;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: -0.025em;
}

h3 {
  margin: 1.5em 0 0.45em;
  font-size: 1.2rem;
}

.lead {
  max-width: 780px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--navy);
  border-radius: 12px;
  padding: 10px 17px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: var(--navy);
  color: #ffffff;
}

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

.button.primary:hover {
  background: var(--blue-dark);
  color: #ffffff;
}

.content {
  padding-block: 56px 84px;
}

.prose {
  max-width: 840px;
}

.prose > :first-child {
  margin-top: 0;
}

.breadcrumb {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: inherit;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-block: 24px;
}

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

.card,
.note,
.fact {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 24px;
}

.card {
  box-shadow: var(--shadow);
}

.card h2,
.card h3 {
  margin-top: 0;
}

.card p:last-child,
.note p:last-child,
.fact p:last-child {
  margin-bottom: 0;
}

.note {
  margin-block: 24px;
  border-left: 5px solid var(--blue);
  background: var(--wash);
}

.note.warning {
  border-left-color: #d89018;
  background: #fff9ed;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-block: 28px;
}

.fact strong,
.fact span {
  display: block;
}

.fact strong {
  color: var(--navy);
  font-size: 1.03rem;
}

.fact span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.steps {
  counter-reset: step;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 46px;
  margin-block: 18px;
  padding-left: 58px;
}

.steps li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: var(--navy);
  color: #ffffff;
  content: counter(step);
  counter-increment: step;
  font-weight: 760;
}

code,
kbd {
  border-radius: 6px;
  background: #eaf1f8;
  padding: 0.14em 0.38em;
  color: #103663;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
}

pre {
  overflow-x: auto;
  margin-block: 22px;
  border: 1px solid #17325d;
  border-radius: 16px;
  background: var(--code);
  padding: 20px;
  color: #edf6ff;
  font-size: 14px;
  line-height: 1.6;
  tab-size: 2;
}

pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

table {
  width: 100%;
  margin-block: 24px;
  border-collapse: collapse;
  font-size: 15px;
}

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

th {
  color: var(--navy);
}

.table-scroll {
  overflow-x: auto;
}

.meta {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-block: 38px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner p {
  max-width: 620px;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.footer-links a {
  color: var(--muted);
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .nav,
  .wrap,
  .footer-inner {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    min-height: 62px;
  }

  .nav-links a:not(.keep-mobile) {
    display: none;
  }

  .hero .wrap {
    padding-block: 54px 64px;
  }

  .content {
    padding-block: 40px 64px;
  }

  .grid,
  .grid.three,
  .facts {
    grid-template-columns: 1fr;
  }

  .card,
  .note,
  .fact {
    padding: 20px;
  }

  .actions .button {
    flex: 1 1 100%;
  }

  .footer-inner {
    display: block;
  }

  .footer-links {
    justify-content: flex-start;
    margin-top: 18px;
  }
}

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