:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: rgba(255, 255, 255, .06);
  --panel-strong: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .12);
  --line-soft: rgba(255, 255, 255, .075);
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --muted-2: #77777d;
  --blue: #2997ff;
  --blue-2: #0a84ff;
  --warning: #ffd60a;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 0, rgba(41,151,255,.14), transparent 440px),
    #000;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Microsoft YaHei UI", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

code {
  padding: 2px 6px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: rgba(0,0,0,.28);
  color: #d7ecff;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 12px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  transform: translateY(-150%);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(22px, calc((100vw - 1220px) / 2));
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(12,12,14,.78);
  backdrop-filter: blur(18px) saturate(180%);
}

.brand {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.075);
  font-size: 13px;
  font-weight: 750;
}

.topnav {
  display: flex;
  gap: 18px;
  color: rgba(255,255,255,.74);
  font-size: 13px;
}

.topnav a:hover,
.brand:hover {
  color: #fff;
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 42px;
  align-items: center;
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: 78px 28px 82px;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(46px, 6vw, 78px);
  line-height: 1.06;
  letter-spacing: -.04em;
}

.hero-copy p:not(.eyebrow) {
  max-width: 620px;
  margin: 20px 0 30px;
  color: #c7c7cc;
  font-size: 18px;
  line-height: 1.65;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.primary-cta,
.button-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 19px;
  border-radius: 999px;
  background: #0071e3;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
}

.primary-cta:hover,
.button-link:hover {
  filter: brightness(1.12);
}

.hero-panel {
  min-height: 420px;
  position: relative;
  display: grid;
  place-items: center;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  opacity: .8;
}

.orb-a {
  width: 290px;
  height: 290px;
  background: radial-gradient(circle, rgba(41,151,255,.5), transparent 68%);
}

.orb-b {
  right: 18px;
  bottom: 28px;
  width: 190px;
  height: 190px;
  background: radial-gradient(circle, rgba(120,90,255,.34), transparent 70%);
}

.device-card {
  position: relative;
  width: min(390px, 100%);
  min-height: 250px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 34px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.045)),
    rgba(20,20,24,.8);
  box-shadow: 0 30px 90px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.16);
  backdrop-filter: blur(20px);
}

.device-card span {
  color: #8fc7ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.device-card strong {
  font-size: 34px;
  line-height: 1.05;
}

.device-card small {
  color: var(--muted);
  font-size: 14px;
}

.layout {
  width: min(1220px, 100%);
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  margin: 0 auto;
  padding: 28px 28px 64px;
}

.sidebar {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: rgba(255,255,255,.045);
}

.sidebar-title {
  margin: 0 0 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.nav-section,
.nav-tool,
.nav-steps {
  display: grid;
  gap: 8px;
}

.nav-section + .nav-section {
  margin-top: 14px;
}

.nav-category,
.nav-tool button,
.nav-steps a {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  text-align: left;
}

.nav-category {
  color: #fff;
  background: rgba(255,255,255,.07);
  font-weight: 850;
}

.nav-tool button {
  cursor: pointer;
}

.nav-tool button:hover,
.nav-tool.is-active button {
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.085);
  color: #fff;
}

.nav-tool.is-pending button {
  cursor: default;
  opacity: .72;
}

.nav-tool small {
  color: var(--muted-2);
}

.nav-steps {
  margin-left: 9px;
  padding-left: 9px;
  border-left: 1px solid var(--line-soft);
}

.nav-steps a {
  min-height: 32px;
  justify-content: flex-start;
}

.nav-steps a span {
  width: 24px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.content {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.intro-card,
.tool-card,
.step-card {
  border: 1px solid var(--line-soft);
  border-radius: 26px;
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}

.intro-card,
.tool-card {
  padding: 30px 34px;
}

.intro-card h2,
.tool-card h2 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.18;
}

.intro-card p,
.tool-card p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.tutorial-content {
  display: grid;
  gap: 22px;
}

.step-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 26px;
  padding: 32px 36px;
  scroll-margin-top: 78px;
}

.step-number {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.09);
  font-size: 18px;
  font-weight: 850;
}

.step-body h3 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.2;
}

.step-body > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.info-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(41,151,255,.26);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(41,151,255,.13), rgba(41,151,255,.045));
}

.info-box strong {
  display: block;
  font-size: 15px;
}

.info-box p,
.link-group p,
.video-placeholder p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.link-group,
.trouble,
.video-placeholder {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: rgba(0,0,0,.22);
}

.link-group h4,
.trouble h4 {
  margin: 0 0 12px;
  font-size: 15px;
}

.mini-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.mini-link {
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 9px;
  border: 1px solid rgba(41,151,255,.25);
  border-radius: 14px;
  background: rgba(41,151,255,.08);
  color: #eaf4ff;
  text-align: center;
}

.mini-link:hover {
  border-color: rgba(41,151,255,.48);
  background: rgba(41,151,255,.14);
}

.mini-link span {
  font-size: 13px;
  font-weight: 800;
}

.mini-link small {
  color: #8fc7ff;
  font-size: 11px;
}

.note-list {
  margin: 14px 0 0;
  padding-left: 22px;
  color: #c7c7cc;
  line-height: 1.65;
}

.trouble details {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  overflow: hidden;
}

.trouble details + details {
  margin-top: 8px;
}

.trouble summary {
  min-height: 44px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 800;
}

.trouble details p,
.trouble details ol {
  margin: 0;
  padding: 0 14px 14px 34px;
  color: #c7c7cc;
  line-height: 1.65;
}

.video-placeholder {
  display: grid;
  gap: 7px;
  border-style: dashed;
}

.video-placeholder span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,214,10,.12);
  color: var(--warning);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.footer {
  padding: 34px 28px 42px;
  border-top: 1px solid var(--line-soft);
  background: #f5f5f7;
  color: #1d1d1f;
}

.footer-columns {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0 auto;
  text-align: center;
}

.footer h3 {
  margin: 0 0 10px;
  font-size: 13px;
}

.footer span {
  display: block;
  margin: 7px 0;
  color: #6e6e73;
  font-size: 12px;
}

.footer-note {
  margin: 26px auto 0;
  color: #6e6e73;
  text-align: center;
  font-size: 12px;
}

.error {
  padding: 40px;
  color: #fff;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 54px;
  }

  .hero-panel {
    min-height: 260px;
  }

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

  .sidebar {
    position: static;
    max-height: none;
  }

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

  .mini-link-grid,
  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .topbar {
    padding: 0 14px;
  }

  .topnav {
    gap: 10px;
    font-size: 12px;
  }

  .hero,
  .layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .info-box {
    align-items: stretch;
    flex-direction: column;
  }

  .mini-link-grid,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .intro-card,
  .tool-card,
  .step-card {
    padding: 24px;
  }
}
