:root {
  color-scheme: dark;
  --background: #141617;
  --text: #f6f5f1;
  --muted: #b3b8ba;
  --accent: #c9f56b;
  --line: #46494a;
  --chrome: #828688;
  --font: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-family: var(--font);
  color: var(--text);
  background: var(--background);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
p, h1, h2, h3 { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
html { scroll-behavior: smooth; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
main:focus, .flow:focus { outline: none; }
.shell { width: min(90.4%, 84rem); margin-inline: auto; }

.skip-link {
  position: absolute;
  z-index: 1;
  top: .75rem;
  left: .75rem;
  transform: translateY(-180%);
  border-radius: .4rem;
  padding: .65rem .9rem;
  color: var(--background);
  background: var(--accent);
}
.skip-link:focus { transform: none; }

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-header {
  min-height: 6.7rem;
  padding-inline: .5rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(.5rem, 2vw, 2rem);
  text-decoration: none;
  white-space: nowrap;
  font-size: clamp(1.5rem, 3.2vw, 3.1rem);
  font-weight: 850;
  letter-spacing: -.06em;
}
.brand-mark {
  position: relative;
  flex: none;
  width: clamp(2rem, 5.8vw, 5.4rem);
  height: clamp(1.15rem, 2.9vw, 2.8rem);
  overflow: hidden;
}
.brand-mark img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  transform: translate(-50%, -50%) scale(1.53);
}
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem clamp(.85rem, 4.8vw, 4.65rem); }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  white-space: nowrap;
  text-decoration: none;
  font-size: clamp(.88rem, 1.64vw, 1.48rem);
  font-weight: 600;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 3.4vw, 3.2rem);
  padding: 2.7rem .5rem 3.2rem;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  color: var(--accent);
  font-size: clamp(3.6rem, 9.9vw, 9.2rem);
  font-weight: 900;
  line-height: 1.09;
  letter-spacing: -.035em;
}
.hero h1 span { display: block; }
.hero-copy p, .health p {
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.88rem);
  line-height: 1.55;
}
.hero-copy p { margin-top: clamp(.85rem, 1.8vw, 1.65rem); }
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(1.45rem, 3.4vw, 3.15rem);
  padding: .65em 2.1em;
  min-height: 2.85rem;
  border-radius: .5em;
  color: var(--background);
  background: var(--accent);
  font-size: clamp(1.05rem, 2.35vw, 2.15rem);
  font-weight: 850;
  text-decoration: none;
}
.primary-link:hover { background: #dcfa9e; }

.device {
  position: relative;
  justify-self: center;
  width: min(100%, 13.3rem);
  overflow: hidden;
  border: 2px solid var(--chrome);
  border-radius: 9% / 5%;
  padding: 5% 1.1% 2%;
  background: var(--background);
  box-shadow: 0 0 0 1px #111 inset, 0 .45rem 1rem #0004;
}
.device::before {
  content: "";
  position: absolute;
  top: 1.8%;
  left: 50%;
  width: 4.2%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #080909;
}
.device img { width: 100%; }
.hero-device { width: min(100%, 22.7rem); padding: 5.3% 1.1% 2%; border-width: 3px; }

.flow { padding: clamp(2.5rem, 3.25vw, 3.1rem) .5rem 2rem; scroll-margin-top: 1rem; }
.flow h2, .health h2 {
  font-size: clamp(2.1rem, 4vw, 3.65rem);
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -.045em;
}
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2rem; }
.step { display: grid; align-content: start; padding: 0 clamp(1rem, 3.2vw, 3.25rem); }
.step:first-child { padding-left: 1rem; }
.step:last-child { padding-right: 1rem; }
.step + .step { border-left: 1px solid var(--line); }
.step h3 {
  font-size: clamp(1.35rem, 2.55vw, 2.35rem);
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: -.045em;
}
.step h3::before { content: ""; display: block; width: 2.9rem; height: .38rem; margin-bottom: .9rem; background: var(--accent); }
.step p {
  min-height: 3.05em;
  margin-block: .4rem 1rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.48vw, 1.4rem);
  line-height: 1.5;
}
.step .device { padding: .8rem .27rem .32rem; }

.health {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1rem 1.65rem;
  border-top: 1px solid var(--line);
}
.health h2 { font-size: clamp(2rem, 3.6vw, 3.3rem); }
.health p { margin-top: .5rem; font-size: clamp(1rem, 1.55vw, 1.45rem); }
.health-device { width: min(100%, 10.5rem); padding: .8rem .25rem .32rem; }

.site-footer { border-top: 1px solid var(--line); padding: 1rem .3rem 2rem; }
.footer-brand { text-decoration: none; font-size: 1.75rem; font-weight: 850; letter-spacing: -.055em; }
.site-footer .site-nav { gap: .3rem clamp(.9rem, 3vw, 2.35rem); color: var(--muted); }
.site-footer .site-nav a { font-size: clamp(.875rem, 1.35vw, 1.2rem); font-weight: 500; }

.document-header { min-height: 5rem; }
.document-header .brand { font-size: clamp(1.5rem, 2.55vw, 2.4rem); }
.document-header .brand-mark { width: clamp(2rem, 4.8vw, 4.45rem); }
.document {
  width: min(90.4%, 67.5rem);
  margin: 0 auto;
  padding-block: clamp(2.5rem, 4.2vw, 4rem) clamp(3rem, 6vw, 5.5rem);
  font-size: clamp(1rem, 1.48vw, 1.32rem);
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.document h1 { font-size: clamp(2.5rem, 4.5vw, 4.05rem); font-weight: 850; line-height: 1.15; letter-spacing: -.045em; }
.document h1 + p { color: var(--muted); margin-top: .65rem; }
.document h2 {
  margin-block: 1.35em .55em;
  font-size: clamp(1.48rem, 3.25vw, 2.8rem);
  font-weight: 820;
  line-height: 1.25;
  letter-spacing: -.035em;
}
.document p { margin-top: .85em; }
.document strong { font-weight: 750; }
.document a { color: var(--accent); text-underline-offset: .17em; }
.document code { color: var(--text); font: inherit; }
.document ul { margin: .65em 0 0; padding-inline-start: 1.4em; }
.document li + li { margin-top: .45em; }
.document table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .88em; }
.document th, .document td { padding: .65em .85em; border-block: 1px solid var(--line); text-align: left; vertical-align: top; }
.document tr > :first-child { width: 24%; font-weight: 700; }
.document tr > :nth-child(2) { width: 32%; }
.document tr > :not(:first-child) { border-inline-start: 1px solid var(--line); }

@media (min-width: 901px) {
  .hero-device { transform: translateX(-1.1rem); }
  .hero-device img { width: 105%; max-width: none; margin-inline: -2.5%; }
}

@media (max-width: 900px) {
  .site-header { min-height: 4.8rem; }
  .step { padding-inline: 1rem; }
  .step p { min-height: 4.5em; }
}

@media (max-width: 680px) {
  .shell, .document { width: calc(100% - 2.5rem); }
  .site-header { min-height: 4.35rem; padding-inline: 0; column-gap: .7rem; }
  .site-nav { gap: .1rem .7rem; }
  .site-nav a { font-size: .875rem; }
  .brand { gap: .42rem; }
  .hero { grid-template-columns: 1fr; gap: 1.8rem; padding: 2.4rem 0 2.3rem; }
  .hero h1 { font-size: clamp(2.65rem, 13.1vw, 5.05rem); }
  .hero-copy p { max-width: 25rem; }
  .hero-device { width: min(66%, 17rem); padding: 1.1rem .3rem .45rem; }
  .flow { padding-inline: 0; }
  .steps { grid-template-columns: 1fr; gap: 1.75rem; margin-top: 1.5rem; }
  .step, .step:first-child, .step:last-child { padding-inline: 0; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line); padding-top: 1.7rem; }
  .step p { min-height: 0; }
  .step .device { margin-top: .35rem; width: min(65%, 14rem); }
  .health { grid-template-columns: 1fr; padding: 2rem 0; }
  .health-device { width: min(58%, 12.5rem); }
  .site-footer { flex-wrap: wrap; gap: .4rem 1rem; padding-inline: 0; }
  .footer-brand { font-size: 1.4rem; }
  .site-footer .site-nav { gap: .1rem .7rem; }
  .document th, .document td { padding: .48em .45em; }
}

@media (max-width: 350px) {
  .site-header { flex-wrap: wrap; padding-block: .45rem .25rem; row-gap: 0; }
}

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