:root {
  color-scheme: light;
  --page: #f2f3f4;
  --surface: #fff;
  --soft: #f6f6f6;
  --ink: #222326;
  --muted: #6f7379;
  --line: #dedfe1;
  --line-strong: #c8cace;
  --blue: #2758cc;
  --blue-soft: #e9eefc;
  --green: #16835b;
  --green-soft: #e6f4ed;
  --amber: #a86c12;
  --amber-soft: #fff2d9;
  --red: #c84c48;
  --red-soft: #fae9e8;
  --dark: #202225;
  --sidebar: 232px;
  font-family:
    "Inter", "Segoe UI Variable", "Noto Sans SC", "PingFang SC", -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--surface);
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}
section {
  scroll-margin-top: 96px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgb(39 88 204 / 22%);
  outline-offset: 3px;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 10px 30px;
  background: rgb(255 255 255 / 92%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand img {
  width: 23px;
  height: 48px;
  object-fit: contain;
}
.brand span,
.brand strong,
.brand small {
  display: block;
}
.brand strong {
  font-family: "Avenir Next", "Noto Sans SC", sans-serif;
  font-size: 17px;
}
.brand small {
  margin-top: 3px;
  color: var(--muted);
  font:
    600 9px / 1 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  letter-spacing: 0.08em;
}
.topbar nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.topbar nav a {
  padding: 10px 12px;
  border-radius: 6px;
}
.topbar nav a:hover {
  background: var(--soft);
}
.console-link {
  color: #fff;
  background: var(--dark);
}
.topbar nav .console-link:hover {
  background: #34363a;
}

.docs-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 68px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 68px);
  padding: 40px 22px 24px;
  background: var(--page);
  border-right: 1px solid var(--line);
}
.sidebar > p {
  margin: 0 10px 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.sidebar nav {
  display: grid;
  gap: 3px;
}
.sidebar nav a {
  padding: 10px 12px;
  color: #676b70;
  border-radius: 6px;
  font-size: 13px;
}
.sidebar nav a:hover {
  color: var(--ink);
  background: rgb(255 255 255 / 60%);
}
.sidebar nav a.active {
  color: var(--ink);
  font-weight: 650;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgb(24 26 30 / 5%);
}
.sidebar-card {
  margin-top: auto;
  padding: 14px;
  background: rgb(255 255 255 / 60%);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.sidebar-card span,
.sidebar-card strong,
.sidebar-card a {
  display: block;
}
.sidebar-card span {
  color: var(--muted);
  font-size: 11px;
}
.sidebar-card strong {
  margin: 7px 0 10px;
  font:
    600 12px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.sidebar-card a {
  color: var(--blue);
  font-size: 12px;
  font-weight: 650;
}

main {
  min-width: 0;
  overflow: hidden;
}
.hero {
  display: grid;
  grid-template-columns: minmax(430px, 0.86fr) minmax(420px, 1.14fr);
  align-items: stretch;
  min-height: calc(100vh - 68px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px clamp(42px, 6vw, 100px);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font:
    700 11px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  letter-spacing: 0.13em;
}
.eyebrow i {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--green-soft);
}
.hero h1 {
  margin-top: 28px;
  font-family: "Avenir Next", "Noto Sans SC", sans-serif;
  font-size: clamp(48px, 5.2vw, 76px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.hero-copy > p {
  max-width: 560px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 34px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 17px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 650;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease;
}
.button:hover {
  border-color: #aeb1b6;
  transform: translateY(-1px);
}
.button.primary {
  color: #fff;
  background: var(--dark);
  border-color: var(--dark);
}
.button.primary:hover {
  background: #34363a;
}
.hero dl {
  display: flex;
  gap: 0;
  margin-top: 54px;
}
.hero dl div {
  min-width: 100px;
  padding-right: 28px;
}
.hero dl div + div {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}
.hero dt {
  font-family: "Avenir Next", "Noto Sans SC", sans-serif;
  font-size: 25px;
  font-weight: 650;
}
.hero dd {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}
.product-frame {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: var(--page);
}
.product-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.product-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  box-shadow: inset 30px 0 60px rgb(255 255 255 / 18%);
  pointer-events: none;
}
.product-frame figcaption {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  color: #fff;
  background: rgb(25 27 30 / 80%);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 6px;
  backdrop-filter: blur(8px);
  font-size: 12px;
}
.product-frame figcaption span {
  width: 7px;
  height: 7px;
  background: #51dc9f;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgb(81 220 159 / 18%);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--page);
  border-bottom: 1px solid var(--line);
}
.feature-strip article {
  min-height: 150px;
  padding: 28px 30px;
}
.feature-strip article + article {
  border-left: 1px solid var(--line);
}
.feature-strip span {
  color: #9a9da2;
  font:
    600 10px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.feature-strip strong {
  display: block;
  margin-top: 18px;
  font-size: 15px;
}
.feature-strip p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.doc-section {
  width: min(100% - 72px, 1060px);
  margin: 0 auto;
  padding: 112px 0;
  border-bottom: 1px solid var(--line);
}
.section-heading {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
.section-heading > span {
  padding-top: 8px;
  color: var(--blue);
  font:
    700 10px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  letter-spacing: 0.13em;
}
.section-heading h2 {
  font-family: "Avenir Next", "Noto Sans SC", sans-serif;
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: -0.025em;
}
.section-heading p {
  max-width: 650px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.steps {
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.steps > li {
  display: grid;
  grid-template-columns: 54px minmax(220px, 0.65fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.step-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: var(--dark);
  border-radius: 50%;
  font:
    650 13px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.steps h3 {
  margin-top: 5px;
  font-size: 17px;
}
.steps p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.code-tabs > span {
  display: block;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}
.code-tabs > span:not(:first-child) {
  margin-top: 12px;
}
pre {
  position: relative;
  margin: 0;
  padding: 14px 74px 14px 15px;
  overflow: auto;
  color: #e7e9ec;
  background: var(--dark);
  border-radius: 6px;
  font:
    12px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
pre button {
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 6px 9px;
  color: #c6cad0;
  background: #313439;
  border: 1px solid #45484e;
  border-radius: 4px;
  cursor: pointer;
  font-size: 10px;
}
.mini-console {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 4px 10px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.online-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--green-soft);
}
.mini-console strong {
  font-size: 13px;
}
.mini-console small {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
}
.text-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 650;
}
.callout {
  display: flex;
  gap: 18px;
  margin-top: 28px;
  padding: 18px 20px;
  color: #235c47;
  background: var(--green-soft);
  border-left: 3px solid var(--green);
  font-size: 13px;
}
.callout span {
  color: #4d7566;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.compare-grid article {
  position: relative;
  min-height: 340px;
  padding: 30px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.connection-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 7px;
  font-size: 24px;
  font-weight: 700;
}
.connection-icon.ble {
  color: var(--green);
  background: var(--green-soft);
}
.recommend {
  position: absolute;
  top: 30px;
  right: 30px;
  padding: 5px 8px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 650;
}
.recommend.muted {
  color: var(--green);
  background: var(--green-soft);
}
.compare-grid h3 {
  margin-top: 28px;
  font-size: 21px;
}
.compare-grid p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.compare-grid ul {
  padding: 18px 0 0 18px;
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
  color: #565a60;
  font-size: 12px;
  line-height: 2;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.tool-grid span {
  display: grid;
  justify-items: center;
  gap: 9px;
  min-width: 0;
  padding: 16px 6px;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tool-grid img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.setup-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 46px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.setup-flow article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 26px 24px;
}
.setup-flow article + article {
  border-left: 1px solid var(--line);
}
.setup-flow b {
  color: #a0a3a8;
  font:
    600 12px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.setup-flow h3 {
  font-size: 14px;
}
.setup-flow p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.privacy-panel {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  margin-top: 46px;
  padding: 34px;
  color: #fff;
  background: var(--dark);
  border-radius: 8px;
}
.lock {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  color: #7fe0b7;
  background: #2b3531;
  border: 1px solid #3a4b45;
  border-radius: 50%;
  font-size: 28px;
}
.privacy-panel span {
  color: #7fe0b7;
  font:
    700 10px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  letter-spacing: 0.13em;
}
.privacy-panel h3 {
  margin-top: 8px;
  font-size: 22px;
}
.privacy-panel p {
  max-width: 680px;
  margin-top: 8px;
  color: #b9bec5;
  font-size: 13px;
  line-height: 1.65;
}

.state-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.state-table > div {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1.3fr;
  min-height: 62px;
  align-items: center;
}
.state-table > div + div {
  border-top: 1px solid var(--line);
}
.state-table span {
  padding: 15px 20px;
  color: var(--muted);
  font-size: 13px;
}
.state-table span:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.table-head {
  background: var(--soft);
}
.table-head span {
  color: var(--muted) !important;
  font-size: 11px;
  font-weight: 650;
}
.lamp {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.lamp.green {
  background: var(--green);
  box-shadow: 0 0 0 5px var(--green-soft);
}
.lamp.amber {
  background: var(--amber);
  box-shadow: 0 0 0 5px var(--amber-soft);
}
.lamp.red {
  background: var(--red);
  box-shadow: 0 0 0 5px var(--red-soft);
}

.custom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.custom-grid article {
  min-height: 200px;
  padding: 25px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.custom-grid article > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 6px;
  font-size: 18px;
}
.custom-grid h3 {
  margin-top: 34px;
  font-size: 15px;
}
.custom-grid p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  position: relative;
  padding: 22px 44px 22px 0;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 650;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  position: absolute;
  right: 8px;
  content: "+";
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
}
.faq details[open] summary::after {
  content: "−";
}
.faq details p {
  max-width: 760px;
  padding: 0 44px 22px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.faq code {
  padding: 2px 5px;
  background: var(--page);
  border-radius: 4px;
  font:
    12px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}

.closing {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 28px;
  width: min(100% - 72px, 1060px);
  margin: 80px auto;
  padding: 40px;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.closing img {
  width: 32px;
  height: 70px;
  object-fit: contain;
}
.closing span {
  color: var(--muted);
  font-size: 12px;
}
.closing h2 {
  margin-top: 7px;
  font-family: "Avenir Next", "Noto Sans SC", sans-serif;
  font-size: 25px;
}
footer {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px 40px;
  background: var(--dark);
  color: #fff;
  font-size: 12px;
}
footer span {
  font-weight: 700;
}
footer p {
  color: #9da2aa;
}
footer a {
  margin-left: auto;
  color: #c9cdd2;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    min-height: 680px;
  }
  .product-frame {
    min-height: 620px;
  }
  .tool-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .custom-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  :root {
    --sidebar: 0px;
  }
  .topbar {
    padding-inline: 18px;
  }
  .topbar nav a:not(.console-link) {
    display: none;
  }
  .sidebar {
    display: none;
  }
  .hero-copy {
    min-height: auto;
    padding: 82px 28px;
  }
  .product-frame {
    min-height: 460px;
  }
  .feature-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-strip article:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .feature-strip article:nth-child(4) {
    border-top: 1px solid var(--line);
  }
  .doc-section {
    width: min(100% - 40px, 1060px);
    padding: 82px 0;
  }
  .section-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .steps > li {
    grid-template-columns: 42px 1fr;
  }
  .steps > li > :last-child {
    grid-column: 2;
  }
  .tool-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .setup-flow {
    grid-template-columns: 1fr;
  }
  .setup-flow article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .closing {
    width: min(100% - 40px, 1060px);
  }
}

@media (max-width: 600px) {
  .brand small {
    display: none;
  }
  .topbar nav .console-link {
    padding-inline: 10px;
  }
  .hero-copy {
    padding: 68px 20px;
  }
  .hero h1 {
    font-size: 43px;
  }
  .hero-copy > p {
    font-size: 15px;
  }
  .hero dl div {
    min-width: 0;
    flex: 1;
    padding-right: 14px;
  }
  .hero dl div + div {
    padding-left: 14px;
  }
  .product-frame {
    min-height: 360px;
  }
  .feature-strip {
    grid-template-columns: 1fr;
  }
  .feature-strip article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .doc-section {
    width: min(100% - 32px, 1060px);
  }
  .compare-grid,
  .custom-grid {
    grid-template-columns: 1fr;
  }
  .tool-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .privacy-panel {
    grid-template-columns: 1fr;
  }
  .state-table {
    overflow-x: auto;
  }
  .state-table > div {
    min-width: 660px;
  }
  .callout {
    flex-direction: column;
    gap: 6px;
  }
  .closing {
    grid-template-columns: 42px 1fr;
    width: min(100% - 32px, 1060px);
    padding: 28px 22px;
  }
  .closing .button {
    grid-column: 1 / -1;
  }
  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-inline: 24px;
  }
  footer a {
    margin: 10px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
  }
}
