:root {
  --bg: #070708;
  --panel: #111113;
  --line: rgba(255, 255, 255, 0.08);
  --ink: #f5f5f4;
  --mute: #8b8b86;
  --font: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --w: 920px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}

img {
  display: block;
}

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

button {
  font: inherit;
}

body > svg:first-of-type {
  position: absolute;
  width: 0;
  height: 0;
}

svg {
  width: 20px;
  height: 20px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 36px;
  background: var(--bg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav nav {
  display: flex;
  gap: 40px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #8a8882;
}

.nav nav a {
  position: relative;
  padding-bottom: 4px;
}

.nav nav a:hover,
.nav nav a.is-on {
  color: var(--ink);
}

.nav nav a.is-on {
  font-weight: 600;
}

.nav nav a.is-on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn.solid {
  height: 44px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.btn.line {
  height: 44px;
  padding: 0 18px;
}

.menu {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(var(--ink), var(--ink)) 9px 13px / 16px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 9px 21px / 16px 1.5px no-repeat;
}

.drawer {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 18px 36px 22px;
  font-size: 17px;
  font-weight: 500;
  color: #c4c2bb;
}

.drawer.is-open {
  display: flex;
}

.drawer a.is-on {
  color: var(--ink);
  font-weight: 600;
}

.wrap {
  width: min(var(--w), calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 80px;
}

.intro {
  margin-bottom: 36px;
}

.kicker {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.04em;
  font-weight: 600;
}

h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
}

h2 {
  font-size: 28px;
}

.lede {
  margin: 14px 0 0;
  color: var(--mute);
  max-width: 38em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.bezel {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0c0c0e;
}

.tick {
  display: none;
}

.frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0c0c0e;
  overflow: hidden;
}

.frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.ph {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  width: 100%;
  background: #0c0c0e;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.ph[hidden] {
  display: none;
}

.play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
}

.play::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 16px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--ink);
}

.ph span:last-child {
  font-size: 14px;
  font-weight: 600;
}

.hint {
  font-size: 12px !important;
  font-weight: 400 !important;
  color: var(--mute) !important;
}

.hint code {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.credit {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--mute);
}

.credit a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 20px 0 0;
  padding: 0 0 8px;
  list-style: none;
}

.chips li {
  font-size: 13px;
  color: var(--mute);
}

section {
  padding-top: 64px;
}

h3,
aside h3 {
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.spec {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.spec li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.spec svg {
  margin-top: 2px;
  color: var(--mute);
}

.spec b {
  display: block;
  font-size: 14px;
}

.spec span {
  font-size: 14px;
  color: var(--mute);
}

.install-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  padding: 48px 44px;
  border-radius: 28px;
  background:
    radial-gradient(90% 80% at 88% 20%, rgba(255, 255, 255, 0.06), transparent 50%),
    linear-gradient(165deg, #161618 0%, #101012 70%, #0c0c0e 100%);
}

.install-copy h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}

.install ol {
  margin: 22px 0 0;
  padding: 0 0 0 1.15em;
  display: grid;
  gap: 12px;
  color: var(--mute);
  font-size: 15px;
  line-height: 1.65;
}

.install-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.install-cta p {
  margin: 0;
  font-size: 13px;
  color: var(--mute);
}

.install-cta button {
  margin-left: 6px;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.install-icon {
  display: grid;
  place-items: center;
}

.install-icon img {
  width: min(180px, 42vw);
  height: auto;
  border-radius: 40px;
}

.kb-shell {
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) 1.4fr;
  gap: 64px;
  margin-top: 40px;
  align-items: start;
}

.kb-index {
  padding: 6px 0 0;
}

.kb-label {
  margin: 28px 0 10px;
  font-size: 12px;
  color: #5e5e59;
}

.kb-label:first-child {
  margin-top: 0;
}

.kb-index button {
  display: block;
  width: 100%;
  padding: 7px 0;
  border: 0;
  background: none;
  color: #6f6f69;
  text-align: left;
  font-size: 15px;
  line-height: 1.45;
  cursor: pointer;
}

.kb-index button.on {
  color: var(--ink);
  font-weight: 600;
}

.kb-page {
  padding: 4px 0 0;
}

.kb-page article {
  display: none;
}

.kb-page article.on {
  display: block;
}

.kb-id {
  margin: 0 0 10px;
  font-size: 12px;
  color: #5e5e59;
}

.kb-page h3 {
  margin: 0 0 18px;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.kb-page p {
  margin: 0 0 14px;
  color: var(--mute);
  max-width: 32em;
  line-height: 1.75;
}

.kb-page a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.doc h1 {
  font-size: clamp(36px, 5vw, 52px);
  margin-bottom: 8px;
}

.doc h2 {
  margin: 40px 0 12px;
  font-size: 22px;
}

.doc p {
  margin: 0 0 12px;
  color: var(--mute);
  max-width: 40em;
  line-height: 1.75;
}

.doc a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--w), calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--mute);
}

footer a {
  margin-left: 16px;
}

@media (max-width: 760px) {
  .nav nav {
    display: none;
  }

  .menu {
    display: block;
  }

  .install-card,
  .kb-shell {
    grid-template-columns: 1fr;
  }

  .install-card {
    padding: 32px 24px;
  }

  .install-icon {
    order: -1;
  }

  .kb-shell {
    gap: 28px;
  }

  footer {
    flex-direction: column;
  }

  footer a {
    margin-left: 0;
    margin-right: 12px;
  }
}
