:root {
  color-scheme: dark;
  --bg: #111111;
  --bg-soft: #151515;
  --panel: #181818;
  --panel-2: #202020;
  --line: #2b2b2b;
  --line-strong: #3a3a3a;
  --text: #f6f6f3;
  --muted: #a7a7a2;
  --muted-2: #737373;
  --white: #f8f8f6;
  --purple: #6f43b8;
  --danger: #8e2828;
  --gold: #d5a72f;
  --shadow: 0 24px 80px rgba(0,0,0,.42);
  --max: 960px;
  --pricing-max: 1320px;
  font-family: "Microsoft YaHei UI", "Segoe UI", system-ui, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f7f4;
  --bg-soft: #f0f0ec;
  --panel: #ffffff;
  --panel-2: #f4f4f0;
  --line: #deded8;
  --line-strong: #c9c9c1;
  --text: #161616;
  --muted: #686864;
  --muted-2: #8b8b86;
  --white: #161616;
  --shadow: 0 24px 70px rgba(0,0,0,.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  background:
    radial-gradient(circle at 50% 0, rgba(255,255,255,0.032), transparent 30rem),
    var(--bg);
}

:root[data-theme="light"] body {
  background:
    radial-gradient(circle at 50% 0, rgba(0,0,0,0.028), transparent 30rem),
    var(--bg);
}

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

button,
input {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
}

.nav {
  height: 58px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-mark {
  width: 64px;
  height: 22px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

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

.mobile-menu-auth {
  display: none;
}

.nav-button {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 16px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.nav-login-button {
  min-width: 70px;
  border-color: var(--white);
  background: var(--white);
  color: var(--bg);
  text-align: center;
  font-weight: 650;
}

.nav-user-link {
  border-color: transparent;
  padding-inline: 8px;
  color: var(--white);
  font-weight: 650;
}

.nav-user-link:hover {
  background: var(--panel);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--line);
  color: var(--text);
  background: var(--panel);
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon.sun,
:root[data-theme="light"] .theme-icon.moon {
  display: none;
}

:root[data-theme="light"] .theme-icon.sun {
  display: block;
}

.language-chip {
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 2px;
  font-size: 13px;
  font-weight: 500;
}

.language-chip svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  padding: 8px 12px;
}

.announcement-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(10px);
}

.announcement-modal {
  width: min(44rem, calc(100vw - 2rem));
  max-height: 90vh;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 94%, var(--panel-2) 6%);
  color: var(--text);
  box-shadow: 0 28px 70px rgba(0,0,0,.5);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.announcement-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 16px 24px;
}

.announcement-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 620;
  letter-spacing: 0;
}

.announcement-title svg,
.announcement-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.announcement-close {
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.announcement-close:hover {
  border-color: transparent;
  background: color-mix(in srgb, var(--panel-2) 72%, transparent);
  color: var(--text);
}

.announcement-close:focus {
  outline: 0;
}

.announcement-tabs button {
  min-height: 28px;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 7px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  cursor: default;
}

.announcement-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  width: fit-content;
  margin: 16px 24px 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: color-mix(in srgb, var(--panel-2) 32%, transparent);
}

.announcement-tabs svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.announcement-tabs button.active {
  background: color-mix(in srgb, var(--panel-2) 72%, transparent);
  color: var(--text);
}

.announcement-tabs button:not(.active) {
  cursor: pointer;
}

.announcement-tabs button:not(.active):hover {
  color: var(--text);
}

.announcement-body {
  overflow: auto;
  border: 0;
  height: 48vh;
  padding: 16px 24px 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.announcement-body blockquote {
  margin: 0;
  border-left: 2px solid var(--line-strong);
  padding: 10px 12px 10px 14px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-2) 34%, transparent);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 560;
}

.announcement-notice-content {
  display: grid;
  gap: 14px;
}

.announcement-pane[hidden] {
  display: none;
}

.announcement-empty {
  color: var(--muted);
  padding: 42px 0;
  text-align: center;
  font-size: 14px;
}

.announcement-timeline {
  display: grid;
}

.announcement-timeline-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 12px;
  padding: 2px 0;
}

.announcement-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-top: 10px;
  background: var(--muted-2);
}

.announcement-dot-ongoing,
.announcement-dot-default {
  background: #6aa0ff;
}

.announcement-dot-success {
  background: #4fb477;
}

.announcement-dot-warning {
  background: #d9a441;
}

.announcement-dot-error {
  background: #d45c5c;
}

.announcement-timeline-main {
  min-width: 0;
}

.announcement-timeline-content {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.announcement-timeline-content p,
.announcement-timeline-extra p {
  margin: 0;
}

.announcement-timeline-extra {
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.6;
  margin-top: 8px;
}

.announcement-timeline-time {
  color: var(--muted-2);
  font-size: 12px;
  margin-top: 8px;
}

.announcement-separator {
  height: 1px;
  background: var(--line);
  margin: 12px 0 12px 26px;
}

.announcement-body h3 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 620;
  letter-spacing: 0;
}

.announcement-body p {
  margin: 0;
}

.announcement-body ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.announcement-body li {
  position: relative;
  padding-left: 20px;
}

.announcement-body li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .86em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--muted);
  opacity: .86;
}

.announcement-body li + li {
  margin-top: 10px;
}

.announcement-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 16px 24px;
  background: color-mix(in srgb, var(--panel-2) 10%, transparent);
}

.announcement-support {
  margin-right: auto;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.announcement-support svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.announcement-support strong {
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 500;
}

.announcement-action-buttons {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.announcement-secondary,
.announcement-primary {
  min-height: 36px;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  cursor: pointer;
}

.announcement-secondary {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

.announcement-primary {
  border: 0;
  background: var(--white);
  color: var(--bg);
}

.support-fab {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 40;
  width: 50px;
  height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--bg);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.support-fab svg,
.support-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-backdrop {
  position: fixed;
  inset: 0;
  z-index: 52;
  background: rgba(0,0,0,.36);
  backdrop-filter: blur(8px);
}

.support-panel {
  position: fixed;
  right: 22px;
  bottom: 88px;
  width: min(390px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
}

.support-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.support-head p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.support-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.support-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.support-body {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
}

.support-body img {
  width: 116px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  object-fit: cover;
  padding: 4px;
}

.support-body strong {
  display: block;
  font-size: 14px;
  line-height: 1.5;
}

.support-body p {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.support-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.support-actions a {
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.support-actions a:last-child {
  border-color: var(--white);
  background: var(--white);
  color: var(--bg);
}

.guide-hero {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 352px;
  padding: 82px 24px 26px;
  text-align: center;
  display: grid;
  justify-items: center;
  align-content: start;
}

.guide-hero.compact {
  min-height: 300px;
}

.guide-hero h1,
.page-hero h1,
.about-panel h1 {
  margin: 0;
  font-size: clamp(34px, 2.65vw, 46px);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 780;
}

.guide-hero p,
.page-hero p,
.about-panel p {
  max-width: 850px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.65;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 40px;
  margin-top: 30px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--white);
  color: var(--bg);
  font-size: 14px;
  font-weight: 750;
}

.platform-tabs {
  margin-top: 118px;
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px;
  background: var(--panel);
}

.platform-tabs button {
  min-width: 104px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.platform-tabs button.active {
  background: var(--white);
  color: var(--bg);
}

.guide {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 78px;
}

.docs-guide {
  padding-top: 18px;
}

.step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 22px;
  margin-top: 44px;
}

.step-no {
  padding-top: 7px;
  color: var(--muted-2);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 15px;
  font-weight: 750;
}

.step h2 {
  margin: 0;
  font-size: clamp(20px, 1.5vw, 26px);
  line-height: 1.2;
  font-weight: 760;
}

.step p {
  margin: 20px 0 14px;
  color: var(--muted);
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.6;
}

.inline-code {
  border-radius: 6px;
  background: var(--panel-2);
  padding: 1px 7px;
  color: var(--white);
  font-family: Consolas, "SFMono-Regular", monospace;
}

.code-window {
  margin: 14px 0 34px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
}

.code-head {
  min-height: 44px;
  padding: 0 15px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted-2);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 13px;
}

.dots {
  width: 43px;
  height: 10px;
  background:
    radial-gradient(circle at 5px 5px, #6a6a70 0 4px, transparent 5px),
    radial-gradient(circle at 21px 5px, #6a6a70 0 4px, transparent 5px),
    radial-gradient(circle at 37px 5px, #6a6a70 0 4px, transparent 5px);
}

.code-head button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
}

pre {
  margin: 0;
  padding: 24px 22px;
  overflow-x: auto;
  color: var(--text);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: clamp(13px, .9vw, 15px);
  line-height: 1.75;
}

.page-hero {
  min-height: 238px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  padding: 38px 24px;
}

.page-hero h1 {
  font-size: clamp(30px, 2.15vw, 38px);
  line-height: 1.08;
  font-weight: 800;
}

.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(14px, .95vw, 17px);
  font-weight: 600;
}

.page-hero p {
  margin: 0;
}

.pricing-section {
  max-width: var(--pricing-max);
  margin: 0 auto;
  padding: 76px 24px;
}

.section-title {
  margin-bottom: 36px;
}

.section-title.with-search {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(24px, 1.65vw, 30px);
  line-height: 1.12;
  font-weight: 800;
}

.section-title p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

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

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

.pricing-section-secondary {
  padding-top: 0;
}

.plan-card {
  position: relative;
  min-height: 398px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.plan-card.sync-plan {
  min-height: 370px;
}

.plan-card.featured {
  border-color: var(--purple);
  box-shadow: inset 0 0 0 1px rgba(111,67,184,0.7);
}

.plan-card.paygo .plan-main {
  min-height: 150px;
  justify-content: center;
}

.plan-main {
  min-height: 148px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 22px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.plan-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
}

.plan-card h3 span {
  color: var(--gold);
}

.plan-main p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.plan-price {
  margin-top: 16px;
  color: var(--text);
  font-size: clamp(28px, 2.1vw, 38px);
  font-weight: 800;
}

.plan-price small {
  color: #888882;
  font-size: 15px;
  font-weight: 550;
}

.plan-card ul {
  list-style: none;
  margin: 0;
  padding: 24px 26px 18px;
  display: grid;
  gap: 13px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.plan-card li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.plan-card li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 10px;
}

.plan-button {
  min-height: 40px;
  margin: auto 28px 28px;
  border: 0;
  border-radius: 7px;
  background: var(--white);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.plan-button:disabled {
  cursor: not-allowed;
  background: #202020;
  color: #777;
}

.status,
.recommend {
  position: absolute;
  right: 16px;
  top: 14px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
}

.status.sold {
  background: var(--danger);
  color: #f3d1d1;
}

.recommend {
  left: 50%;
  right: auto;
  top: 0;
  transform: translateX(-50%);
  border-radius: 0 0 10px 10px;
  background: #8850d4;
  color: #fff;
}

.search-box {
  min-width: 320px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 16px;
  background: var(--panel);
}

.search-box input {
  width: 100%;
  min-height: 58px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 18px;
}

.price-table,
.note-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}

.table-group + .table-group {
  border-top: 1px solid var(--line);
}

.table-group-head {
  min-height: 62px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.table-group-head strong {
  font-size: 19px;
}

.table-group-head span {
  border-radius: 999px;
  background: #292929;
  padding: 7px 14px;
  color: #d4d4cf;
  font-weight: 700;
}

.rate-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr .9fr;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 15px;
}

.rate-row:last-child {
  border-bottom: 0;
}

.rate-row.head {
  color: #969690;
  font-family: "Microsoft YaHei UI", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.note-box {
  margin-top: 42px;
  padding: 26px;
  color: #aaa9a4;
  font-size: 16px;
  line-height: 1.7;
}

.note-box strong {
  display: block;
  margin-bottom: 16px;
  color: var(--text);
  font-size: 18px;
}

.plan-note {
  margin-top: 30px;
}

.about-main {
  flex: 1;
  min-height: calc(100vh - 146px);
  display: grid;
  place-items: center;
  padding: 72px 24px;
}

.about-panel {
  width: min(820px, 100%);
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--white);
  font-size: 17px;
  font-weight: 750;
}

.auth-wrap {
  width: min(1040px, calc(100% - 40px));
  min-height: calc(100vh - 146px);
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, .55fr);
  gap: 24px;
  align-items: stretch;
}

.auth-brand,
.auth-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.auth-brand {
  min-height: 440px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-brand img {
  width: min(360px, 100%);
  height: auto;
  object-fit: contain;
}

.auth-brand h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1;
}

.auth-brand .eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  text-transform: uppercase;
}

.auth-brand .hero-copy {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.auth-panel {
  align-self: center;
  padding: 30px;
}

.auth-panel h2 {
  margin: 0;
  font-size: 25px;
}

.muted {
  color: var(--muted);
  line-height: 1.65;
}

.form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--muted);
  font-size: 14px;
}

.field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: 0;
  background: var(--bg);
  color: var(--text);
  padding: 0 13px;
}

.field input:focus {
  border-color: #eeeeea;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.form-button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--white);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  font-weight: 800;
  cursor: pointer;
}

.form-button.ghost {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
}

.form-message.error {
  color: #ff8f8f;
}

.form-message.success {
  color: #72d58d;
}

.site-footer {
  margin-top: auto;
  min-height: 66px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  color: var(--muted);
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1050px) {
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav {
    height: 64px;
    padding: 0 14px;
    gap: 10px;
  }

  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    padding: 12px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    min-height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 12px;
  }

  .nav-links a:hover,
  .nav-links a[aria-current="page"] {
    background: color-mix(in srgb, var(--panel-2) 52%, transparent);
  }

  .nav-links .mobile-menu-auth {
    margin-top: 4px;
    border: 1px solid var(--line-strong);
    color: var(--text);
    font-weight: 750;
  }

  .nav-links .mobile-menu-login {
    justify-content: center;
    border-color: var(--white);
    background: var(--white);
    color: var(--bg);
  }

  .nav-links .mobile-menu-login:hover {
    background: var(--white);
    color: var(--bg);
  }

  .brand-mark {
    width: 62px;
  }

  .nav-actions {
    margin-left: auto;
    gap: 6px;
  }

  .icon-button {
    width: 34px;
    height: 34px;
  }

  .nav-actions .nav-button {
    display: none;
  }

  .guide-hero {
    min-height: auto;
    padding: 56px 18px 28px;
  }

  .pill-button {
    min-height: 54px;
    margin-top: 34px;
    padding: 0 26px;
    font-size: 18px;
  }

  .platform-tabs {
    width: 100%;
    margin-top: 48px;
  }

  .platform-tabs button {
    min-width: 0;
    min-height: 48px;
    font-size: 16px;
  }

  .guide {
    width: min(100% - 28px, 880px);
  }

  .step {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 48px;
  }

  .step-no {
    padding-top: 0;
  }

  .step p {
    margin-top: 22px;
  }

  .code-head {
    min-height: 52px;
    grid-template-columns: auto 1fr auto;
    padding: 0 14px;
    font-size: 14px;
  }

  .dots {
    width: 43px;
  }

  pre {
    padding: 24px 18px;
  }

  .pricing-section {
    padding: 56px 18px;
  }

  .announcement-backdrop {
    padding: 12px;
    place-items: end center;
  }

  .announcement-head,
  .announcement-actions {
    padding: 16px 18px;
  }

  .announcement-body {
    height: 48vh;
    padding: 16px 18px 8px;
    font-size: 15px;
  }

  .announcement-modal {
    min-height: 0;
    width: 100%;
    max-height: calc(100vh - 24px);
    height: auto;
    border-radius: 12px 12px 0 0;
  }

  .announcement-tabs {
    margin: 14px 18px 0;
  }

  .announcement-title {
    font-size: 16px;
  }

  .announcement-body h3 {
    font-size: 17px;
  }

  .announcement-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .announcement-support {
    display: none;
  }

  .announcement-action-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .plan-grid,
  .section-title.with-search,
  .auth-wrap {
    grid-template-columns: 1fr;
    display: grid;
  }

  .sync-plan .plan-button {
    margin-right: 76px;
  }

  .auth-wrap {
    width: min(100% - 28px, 1180px);
    padding: 40px 0;
  }

  .auth-brand {
    min-height: 360px;
  }

  .search-box {
    min-width: 0;
  }

  .rate-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px;
  }

  .site-footer {
    flex-wrap: wrap;
    gap: 18px;
    padding: 18px;
  }

  .support-fab {
    right: 16px;
    bottom: 18px;
  }

  .support-panel {
    right: 14px;
    bottom: 80px;
  }

  .support-body {
    grid-template-columns: 1fr;
  }

  .support-body img {
    width: 132px;
  }
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-main,
.config-main {
  flex: 1;
}

.home-hero {
  width: min(1200px, calc(100% - 40px));
  min-height: 612px;
  margin: 0 auto;
  padding: 82px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .78fr);
  gap: 58px;
  align-items: center;
}

.home-copy h1,
.config-hero h1 {
  margin: 0;
  max-width: 790px;
  font-size: clamp(44px, 5vw, 76px);
  line-height: 1.02;
  font-weight: 850;
  letter-spacing: 0;
}

.home-copy p:not(.eyebrow),
.config-hero p:not(.eyebrow),
.config-block-head p:not(.eyebrow) {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.75;
  font-weight: 560;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  margin-top: 32px;
}

.home-actions .pill-button {
  margin-top: 0;
}

.ghost-button {
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
}

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

.home-console {
  min-height: 438px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-2) 54%, transparent), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.console-head {
  min-height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.console-head strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 760;
}

.console-flow {
  padding: 28px 20px 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.console-flow span {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: color-mix(in srgb, var(--bg) 46%, transparent);
  font-size: 13px;
  font-weight: 800;
}

.console-flow span:nth-child(2) {
  border-color: color-mix(in srgb, var(--white) 54%, var(--line));
  background: var(--white);
  color: var(--bg);
}

.console-tools {
  padding: 22px 20px 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.console-tools span {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  color: var(--muted);
  background: color-mix(in srgb, var(--panel-2) 42%, transparent);
  font-size: 13px;
  font-weight: 760;
}

.home-section,
.config-section {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 66px 0;
}

.home-section + .home-section,
.config-section + .config-section {
  border-top: 1px solid var(--line);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
}

.tool-card,
.start-item,
.download-card,
.platform-card,
.install-link {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.tool-card {
  min-height: 176px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.tool-mark {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--bg);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 13px;
  font-weight: 850;
}

.tool-card h3,
.platform-card h3 {
  margin: 18px 0 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
}

.tool-card p,
.platform-card p,
.download-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  font-weight: 560;
}

.start-section {
  padding-top: 20px;
}

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

.start-item {
  min-height: 168px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.start-item span,
.platform-card > span,
.download-card > span,
.install-link span {
  color: var(--muted-2);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.start-item strong,
.download-card strong,
.install-link strong {
  margin-top: 18px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 820;
}

.start-item p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.config-hero {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0 50px;
}

.config-hero h1 {
  font-size: clamp(42px, 4.2vw, 64px);
}

.config-hero p:not(.eyebrow) {
  max-width: 1200px;
}

.config-section {
  padding: 54px 0;
}

.downloads-section {
  padding-top: 34px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.download-card {
  min-height: 202px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.download-card.primary {
  border-color: var(--white);
  background: var(--white);
  color: var(--bg);
}

.download-card.primary > span,
.download-card.primary strong,
.download-card.primary p {
  color: var(--bg);
}

.download-card.primary p {
  opacity: .72;
}

.tool-card.recommended,
.download-card.recommended,
.platform-card.recommended,
.install-link.recommended {
  border-color: color-mix(in srgb, var(--white) 42%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-2) 82%, transparent), var(--panel));
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}

.tool-card.recommended .tool-mark {
  border-color: var(--white);
  background: var(--white);
  color: var(--bg);
}

.download-card.recommended > span,
.platform-card.recommended > span,
.install-link.recommended span {
  color: var(--text);
}

.config-block {
  display: grid;
  gap: 24px;
}

.config-block-head h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(26px, 2.2vw, 38px);
  line-height: 1.08;
  font-weight: 850;
}

.config-block-head p:not(.eyebrow) {
  max-width: 1200px;
}

.install-row {
  display: grid;
  grid-template-columns: minmax(240px, .65fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.install-link {
  min-height: 128px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.install-code .code-window,
.compact-code {
  height: 100%;
  margin: 0;
}

.compact-code pre {
  padding: 20px 22px;
}

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

.platform-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.platform-card {
  min-height: 190px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.platform-card .text-link {
  margin-top: auto;
  padding-top: 18px;
  font-size: 15px;
}

.docs-guide .platform-grid {
  margin: 18px 0 20px;
}

.download-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.download-inline a {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  color: var(--text);
  font-size: 13px;
  font-weight: 760;
}

.download-inline a:hover {
  border-color: var(--white);
}

.compat-grid {
  display: grid;
  grid-template-columns: minmax(280px, .75fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.compat-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.compat-list div {
  min-height: 68px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.compat-list div:last-child {
  border-bottom: 0;
}

.compat-list span {
  color: var(--muted-2);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
  font-weight: 850;
}

.compat-list strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 15px;
  font-weight: 760;
}

@media (max-width: 1050px) {
  .home-hero,
  .install-row,
  .compat-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
    padding-top: 66px;
  }

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

  .platform-grid,
  .platform-grid.two,
  .start-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-hero,
  .home-section,
  .config-hero,
  .config-section {
    width: min(100% - 28px, 1200px);
  }

  .home-hero {
    padding: 50px 0 44px;
    gap: 34px;
  }

  .home-copy h1,
  .config-hero h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .home-copy p:not(.eyebrow),
  .config-hero p:not(.eyebrow),
  .config-block-head p:not(.eyebrow) {
    font-size: 15px;
  }

  .home-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-actions .pill-button,
  .ghost-button {
    width: 100%;
    min-height: 46px;
    margin-top: 0;
    font-size: 15px;
  }

  .home-console {
    min-height: auto;
  }

  .console-flow {
    grid-template-columns: 1fr;
  }

  .console-tools,
  .download-grid,
  .platform-grid,
  .platform-grid.two,
  .start-grid {
    grid-template-columns: 1fr;
  }

  .home-section,
  .config-section {
    padding: 46px 0;
  }

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

  .tool-card {
    min-height: 156px;
    padding: 16px;
  }

  .config-hero {
    padding: 50px 0 38px;
  }

  .compat-list div {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
  }
}

