:root {
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --text: #0d0f12;
  --text-soft: #666d78;
  --text-faint: #9298a3;
  --line: #e8ebf0;
  --line-strong: #dfe3e9;
  --blue: #3aa8ef;
  --blue-deep: #247de8;
  --purple: #9a52ff;
  --cyan: #39d9c5;
  --green: #12b76a;
  --orange: #f79009;
  --red: #f04438;
  --code: #101827;
  --code-line: #263246;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 16px 50px rgba(41, 62, 92, 0.08);
  --page: 1312px;
  color-scheme: light;
}

html.dark {
  --bg: #0d1216;
  --bg-soft: #11171b;
  --surface: rgba(21, 27, 32, 0.94);
  --surface-solid: #151b20;
  --text: #f2f4f6;
  --text-soft: #a8b0b8;
  --text-faint: #7f8992;
  --line: #293138;
  --line-strong: #354049;
  --code: #0b111d;
  --code-line: #273343;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Public Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 560px;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 5%, rgba(95, 181, 255, 0.22), transparent 34%),
    radial-gradient(circle at 78% 4%, rgba(72, 221, 199, 0.17), transparent 31%),
    radial-gradient(circle at 55% 14%, rgba(151, 94, 255, 0.1), transparent 28%);
}

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

button,
input {
  font: inherit;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(232, 235, 240, 0.72);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

html.dark .site-header {
  padding: 8px 16px;
  border-bottom: 0;
  background: rgba(13, 18, 22, 0.88);
}

html.dark .header-inner {
  height: 68px;
  padding-inline: 22px;
  border: 1px solid #2b3339;
  border-radius: 22px;
  background: rgba(22, 27, 31, 0.96);
}

.header-inner {
  max-width: var(--page);
  height: 76px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  box-shadow: 0 8px 22px rgba(126, 77, 255, 0.28);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 12px;
  color: #535861;
  font-weight: 600;
  white-space: nowrap;
  transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px var(--line);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #343a42;
  background: transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

.icon-button:hover {
  border-color: var(--line);
  background: rgba(127, 137, 150, 0.08);
}

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

.notification-count {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.theme-light,
.theme-dark {
  display: none;
}

#themeButton .theme-system {
  display: none;
}

#themeButton .theme-light {
  display: block;
}

html.dark #themeButton .theme-light {
  display: none;
}

html.dark #themeButton .theme-dark {
  display: block;
}

html.dark .icon-button {
  color: #f0f2f3;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  color: var(--text-soft);
  font-size: 12px;
  white-space: nowrap;
}

.status-chip i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #aab0b8;
}

.status-chip.is-online {
  color: #098b53;
}

.status-chip.is-online i {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(18, 183, 106, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: #25282d;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

html.dark .btn {
  color: #e8ebed;
  background: rgba(31, 38, 43, 0.86);
}

.btn:hover {
  transform: translateY(-1px);
  border-color: #d5dbe4;
  box-shadow: 0 8px 22px rgba(31, 50, 81, 0.08);
}

.btn-primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #45b5f1, #348eea);
}

html.dark .btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #42aff0, #338fe7);
}

.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(52, 142, 234, 0.25);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
}

.page {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 16px 80px;
}

.hero {
  padding: 74px 0 52px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: 70px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(64, 156, 242, 0.28);
  border-radius: 999px;
  color: #287fea;
  background: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3c8ff2;
  box-shadow: 0 0 0 4px rgba(60, 143, 242, 0.1);
}

.hero h1 {
  max-width: 710px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(90deg, #49aaf1 5%, #766df4 52%, #b34dff 96%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-lead {
  max-width: 650px;
  margin: 0;
  color: var(--text-soft);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 230, 236, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 30px 80px rgba(44, 72, 115, 0.12);
}

html.dark body::before {
  background:
    radial-gradient(circle at 12% 5%, rgba(38, 118, 172, 0.2), transparent 34%),
    radial-gradient(circle at 78% 4%, rgba(33, 139, 126, 0.15), transparent 31%),
    radial-gradient(circle at 55% 14%, rgba(110, 68, 177, 0.12), transparent 28%);
}

html.dark .hero-panel {
  border-color: #2a3339;
  background: rgba(20, 26, 31, 0.9);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

html.dark .hero-panel::before {
  background: linear-gradient(135deg, rgba(44, 129, 188, 0.1), transparent 45%, rgba(117, 68, 184, 0.1));
}

html.dark .hero-code pre,
html.dark .request-line {
  color: #bdc5cc;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(71, 169, 244, 0.08), transparent 40%, rgba(157, 81, 255, 0.06));
}

.panel-tabs,
.code-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 54px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
}

.panel-tab {
  appearance: none;
  padding: 8px 0;
  border: 0;
  color: #8b9098;
  background: transparent;
  font-size: 13px;
  font-weight: 650;
  font-family: inherit;
  cursor: pointer;
  transition: color 160ms ease, transform 160ms ease;
}

.panel-tab:hover,
.panel-tab:focus-visible {
  color: var(--text);
}

.panel-tab:focus-visible {
  outline: 2px solid rgba(52, 142, 234, 0.55);
  outline-offset: 4px;
  border-radius: 4px;
}

.panel-tab.active {
  color: #07985c;
}

.panel-status {
  margin-left: auto;
  color: #9a9fa7;
  font: 10px/1 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.1em;
}

.panel-status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
}

.hero-code {
  position: relative;
  min-height: 350px;
  padding: 24px 24px 28px;
}

.hero-code[hidden] {
  display: none;
}

.request-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: #515963;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 8px;
  color: #078853;
  background: #e6f8f0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.method.blue {
  color: #2c67d8;
  background: #edf3ff;
}

.method.purple {
  color: #7a48dc;
  background: #f2ecff;
}

.hero-code pre {
  margin: 0;
  color: #3d4651;
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.token-blue { color: #196fe4; }
.token-orange { color: #d75a00; }
.token-green { color: #008b5c; }
.token-purple { color: #9e33ef; }

.live-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin: 12px 0 58px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--line);
}

.live-item {
  min-width: 0;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.94);
}

html.dark .live-item,
html.dark .docs-sidebar,
html.dark .step-card,
html.dark .info-card,
html.dark .client-card,
html.dark .protocol-card,
html.dark .error-card,
html.dark .announcement,
html.dark .legal-card,
html.dark .metric,
html.dark .group-tag {
  background: var(--surface-solid);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.14);
}

html.dark .live-value,
html.dark .copy-value {
  color: #eef1f3;
}

.live-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-faint);
  font-size: 12px;
}

.live-value {
  display: block;
  overflow: hidden;
  color: #22262d;
  font-size: 15px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  align-items: start;
  gap: 42px;
}

.docs-sidebar {
  position: sticky;
  top: 98px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 35px rgba(41, 62, 92, 0.05);
  backdrop-filter: blur(16px);
}

.side-title {
  margin: 15px 10px 7px;
  color: #9b9fa7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.side-title:first-child {
  margin-top: 3px;
}

.side-link {
  display: flex;
  align-items: center;
  min-height: 38px;
  margin: 2px 0;
  padding: 7px 10px;
  border-radius: 10px;
  color: #555b65;
  font-size: 13px;
  transition: 0.2s ease;
}

.side-link:hover,
.side-link.active {
  color: #176ed9;
  background: #edf5ff;
}

html.dark .side-link:hover,
html.dark .side-link.active {
  color: #74baff;
  background: rgba(48, 128, 208, 0.15);
}

html.dark .main-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

html.dark .main-nav a.active {
  color: #fff;
  background: transparent;
  box-shadow: none;
}

.hero h1,
.doc-section h2,
.legal-card h1 {
  overflow-wrap: anywhere;
}

.docs-content {
  min-width: 0;
}

.doc-section {
  margin-bottom: 72px;
  scroll-margin-top: 100px;
}

.section-kicker {
  margin-bottom: 8px;
  color: #327fe3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc-section h2,
.legal-card h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.doc-section h3,
.legal-card h2 {
  margin: 28px 0 10px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.section-lead {
  max-width: 820px;
  margin: 0 0 25px;
  color: var(--text-soft);
  font-size: 16px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.step-card,
.info-card,
.client-card,
.protocol-card,
.error-card,
.announcement,
.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
  box-shadow: 0 8px 26px rgba(41, 62, 92, 0.04);
}

.step-card {
  position: relative;
  min-height: 155px;
  padding: 22px 22px 20px 66px;
}

.step-number {
  position: absolute;
  top: 22px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #6d76f4);
  font-size: 12px;
  font-weight: 800;
}

.step-card h3,
.client-card h3,
.protocol-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.step-card p,
.client-card p,
.protocol-card p,
.info-card p,
.error-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.text-link {
  color: #2678df;
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
}

.address-grid,
.client-grid,
.protocol-grid,
.error-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.info-card,
.client-card,
.protocol-card,
.error-card {
  padding: 21px;
}

.info-card.featured {
  border-color: rgba(57, 157, 238, 0.3);
  background: linear-gradient(135deg, rgba(239, 248, 255, 0.86), #fff 58%);
}

html.dark .info-card.featured {
  border-color: rgba(61, 154, 229, 0.4);
  background: linear-gradient(135deg, rgba(25, 55, 75, 0.9), var(--surface-solid) 62%);
}

.card-label {
  display: inline-flex;
  margin-bottom: 12px;
  color: #8c929b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.copy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 8px 0;
}

.copy-value {
  min-width: 0;
  overflow: hidden;
  color: #263142;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: #525966;
  font-size: 11px;
  cursor: pointer;
}

html.dark .copy-button,
html.dark .api-tab {
  color: #c7cdd3;
  border-color: #313a42;
  background: #1d242a;
}

.copy-button:hover {
  border-color: #cfd6e1;
}

.note,
.warning,
.success-note {
  margin: 18px 0;
  padding: 15px 17px;
  border-radius: 13px;
  color: #535b67;
  background: #f4f8ff;
  border: 1px solid #dfebff;
}

html.dark .note {
  color: #b8c3cf;
  border-color: #29425e;
  background: #172434;
}

html.dark .warning {
  color: #d9c099;
  border-color: #584528;
  background: #2a2115;
}

html.dark .success-note {
  color: #acd6c2;
  border-color: #28503e;
  background: #162b22;
}

.warning {
  background: #fff8eb;
  border-color: #fde5b8;
}

.success-note {
  background: #effbf5;
  border-color: #d4f1e2;
}

.client-card {
  min-height: 186px;
}

.client-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 17px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #42b1ef, #895ef5);
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(89, 111, 236, 0.2);
}

.mini-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #555d68;
  font-size: 13px;
}

.mini-list li + li {
  margin-top: 5px;
}

.pricing-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.metric {
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: center;
}

.metric strong {
  display: block;
  font-size: 25px;
  line-height: 1.2;
}

.metric span {
  color: var(--text-faint);
  font-size: 11px;
}

.group-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.group-tag {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #5e6570;
  background: #fff;
  font-size: 12px;
}

.protocol-card {
  display: flex;
  flex-direction: column;
  min-height: 170px;
}

.protocol-card .endpoint-line {
  margin-top: auto;
  padding-top: 18px;
  color: #303949;
  font: 12px/1.5 "SFMono-Regular", Consolas, monospace;
}

.code-block {
  overflow: hidden;
  margin: 16px 0 22px;
  border: 1px solid var(--code-line);
  border-radius: var(--radius);
  background: var(--code);
  box-shadow: var(--shadow);
}

.code-toolbar {
  min-height: 42px;
  padding: 0 14px;
  color: #aab8cd;
  border-color: var(--code-line);
  font-size: 11px;
}

.code-toolbar .copy-button {
  margin-left: auto;
  color: #cbd6e8;
  border-color: #2d3a50;
  background: #1d293c;
}

.code-block pre {
  margin: 0;
  padding: 18px;
  overflow: auto;
  color: #ecf4ff;
  font-size: 12px;
  line-height: 1.75;
}

.api-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.api-tab {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #646b75;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.api-tab.active {
  color: #176ed9;
  border-color: #cfe2fc;
  background: #edf5ff;
}

html.dark .api-tab.active {
  color: #78baff;
  border-color: #365a7d;
  background: #172b3e;
}

.api-example[hidden] {
  display: none;
}

.error-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 9px;
  color: #b54708;
  background: #fff4e5;
  font: 700 12px/1 "SFMono-Regular", Consolas, monospace;
}

.announcements {
  display: grid;
  gap: 12px;
}

.announcement {
  padding: 19px 20px;
}

.announcement-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-weight: 750;
}

.announcement-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.announcement p {
  margin: 0;
  color: var(--text-soft);
  white-space: pre-line;
}

.site-footer {
  max-width: var(--page);
  margin: 0 auto 28px;
  padding: 0 16px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: #777d87;
  background: rgba(255, 255, 255, 0.86);
  font-size: 12px;
}

html.dark .footer-inner {
  background: rgba(21, 27, 32, 0.9);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a:hover {
  color: #287fea;
}

.legal-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 70px 16px 90px;
}

.legal-card {
  padding: clamp(28px, 6vw, 64px);
}

.legal-meta {
  margin-bottom: 28px;
  color: var(--text-faint);
}

.legal-card p,
.legal-card li {
  color: #555d68;
}

.legal-card ol,
.legal-card ul {
  padding-left: 22px;
}

.legal-card li + li {
  margin-top: 8px;
}

.about-page {
  padding-top: 64px;
}

.about-hero {
  padding-top: 66px;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.85fr);
  align-items: center;
  gap: clamp(38px, 7vw, 90px);
}

.about-hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 270px;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(241, 248, 255, 0.9));
  box-shadow: var(--shadow);
}

.about-hero-panel::after {
  content: "";
  position: absolute;
  right: -72px;
  bottom: -92px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 167, 255, 0.28), rgba(151, 94, 255, 0.08) 52%, transparent 70%);
}

.about-hero-panel p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
}

.about-protocols {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.about-protocols span {
  padding: 7px 11px;
  border: 1px solid rgba(52, 139, 230, 0.2);
  border-radius: 999px;
  color: #2277d8;
  background: rgba(238, 247, 255, 0.86);
  font-size: 12px;
  font-weight: 750;
}

html.dark .about-hero-panel {
  background: linear-gradient(145deg, rgba(21, 27, 32, 0.96), rgba(20, 38, 51, 0.94));
}

html.dark .about-protocols span {
  border-color: rgba(93, 174, 255, 0.28);
  color: #83c2ff;
  background: rgba(48, 128, 208, 0.14);
}

.about-layout {
  margin-top: 66px;
}

.about-overview-card,
.about-contact-card {
  padding: clamp(22px, 4vw, 32px);
}

.about-overview-card p,
.about-contact-card p {
  font-size: 15px;
  line-height: 1.8;
}

.about-capability-grid .step-card {
  min-height: 128px;
}

.about-capability-grid .step-card h3 {
  line-height: 1.55;
}

.about-note {
  padding: 24px 26px;
  color: var(--text-soft);
  line-height: 1.85;
}

.about-contact-card .hero-actions {
  margin-top: 22px;
}

html.dark .legal-card p,
html.dark .legal-card li {
  color: var(--text-soft);
}

@media (max-width: 1060px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    right: 16px;
    left: 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  html.dark .main-nav {
    background: rgba(21, 27, 32, 0.98);
  }

  .main-nav.open {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .main-nav a {
    text-align: center;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .about-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

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

  .docs-sidebar {
    position: static;
    display: flex;
    gap: 7px;
    max-height: none;
    padding: 10px;
    overflow-x: auto;
    border-radius: 14px;
  }

  .side-title {
    display: none;
  }

  .side-link {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .pricing-summary {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .header-inner {
    height: 66px;
  }

  .status-chip {
    display: none;
  }

  .header-actions {
    gap: 2px;
  }

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

  html.dark .site-header {
    padding: 6px 8px;
  }

  html.dark .header-inner {
    height: 56px;
    padding-inline: 12px;
    border-radius: 16px;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .main-nav {
    top: 60px;
  }

  .main-nav.open {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding: 52px 0 36px;
  }

  .hero h1 {
    font-size: clamp(39px, 13vw, 54px);
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-panel {
    border-radius: 20px;
  }

  .panel-tabs {
    gap: 14px;
    overflow-x: auto;
  }

  .hero-code {
    min-height: 320px;
    padding: 19px 16px 22px;
  }

  .hero-code pre {
    font-size: 10.5px;
  }

  .live-strip,
  .steps,
  .address-grid,
  .client-grid,
  .protocol-grid,
  .error-grid {
    grid-template-columns: 1fr;
  }

  .live-item {
    padding: 16px 18px;
  }

  .doc-section {
    margin-bottom: 56px;
  }

  .pricing-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .legal-page {
    padding-top: 42px;
  }

  .about-page {
    padding-top: 58px;
  }

  .about-hero {
    padding-top: 46px;
  }

  .about-hero-panel {
    min-height: 0;
  }
}

/* Match the main site's expanding/collapsing floating navigation. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

.header-inner {
  width: calc(100% - 32px);
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: auto;
  transition:
    max-width 700ms cubic-bezier(0.16, 1, 0.3, 1),
    height 700ms cubic-bezier(0.16, 1, 0.3, 1),
    margin 700ms cubic-bezier(0.16, 1, 0.3, 1),
    padding 700ms cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 700ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 700ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 700ms cubic-bezier(0.16, 1, 0.3, 1),
    backdrop-filter 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.is-scrolled .header-inner {
  max-width: 808px;
  height: 48px;
  margin-top: 12px;
  padding: 0 6px 0 16px;
  border-radius: 29px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.04),
    0 2px 16px -6px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(40px);
}

html.dark .site-header {
  padding: 0;
  background: transparent;
}

html.dark .header-inner {
  height: 64px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

html.dark .site-header.is-scrolled .header-inner {
  height: 48px;
  padding: 0 6px 0 16px;
  border-radius: 29px;
  background: rgba(22, 27, 31, 0.6);
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.05),
    0 2px 16px -6px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(40px);
}

.site-header .brand,
.site-header .brand img,
.site-header .main-nav a,
.site-header .icon-button,
.site-header .btn {
  transition: all 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.is-scrolled .brand {
  gap: 8px;
  font-size: 14px;
}

.site-header.is-scrolled .brand img {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

.site-header.is-scrolled .main-nav a {
  padding: 7px 9px;
  border-radius: 9px;
  font-size: 13px;
}

.site-header.is-scrolled .icon-button {
  width: 32px;
  height: 34px;
  border-radius: 9px;
}

.site-header.is-scrolled .icon-button svg {
  width: 18px;
  height: 18px;
}

.site-header.is-scrolled .header-actions .btn-primary {
  min-height: 36px;
  padding-inline: 13px;
  border-radius: 12px;
  font-size: 12px;
}

.site-header .status-chip {
  display: none;
}

/* Exact desktop navigation proportions and controls used by the main site. */
.site-header .header-inner {
  gap: 20px;
  padding-inline: 24px;
}

.site-header .brand {
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-header .brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.site-header .main-nav {
  gap: 2px;
  margin-left: auto;
}

.site-header .main-nav a {
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  background: transparent;
  box-shadow: none;
}

.site-header .main-nav a:hover,
.site-header .main-nav a.active {
  color: var(--text);
  background: transparent;
  box-shadow: none;
}

.site-header .header-actions {
  gap: 2px;
}

.header-divider {
  flex: 0 0 auto;
  width: 1px;
  height: 16px;
  margin: 0 8px;
  background: var(--line);
  opacity: 0.7;
}

.site-header .icon-button {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.site-header .icon-button svg {
  width: 19px;
  height: 19px;
}

.site-header .account-control {
  min-width: 54px;
  min-height: 32px;
  margin-left: 11px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
}

.site-header .account-control.is-avatar {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 50%;
  color: #26320b;
  background: #c7df45;
  font-size: 15px;
  font-weight: 700;
}

.site-header.is-scrolled .header-divider {
  margin-inline: 5px;
}

.site-header.is-scrolled .account-control.is-avatar {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
}

.header-popover {
  position: fixed;
  z-index: 1000;
  min-width: 164px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 55px rgba(20, 28, 40, 0.18);
  backdrop-filter: blur(24px);
  animation: header-popover-in 140ms ease-out;
}

html.dark .header-popover {
  background: rgba(43, 43, 43, 0.98);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
}

@keyframes header-popover-in {
  from { opacity: 0; transform: translateY(-5px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.header-menu-list {
  display: grid;
  gap: 1px;
}

.header-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border: 0;
  border-radius: 7px;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.header-menu-item:hover {
  background: rgba(127, 137, 150, 0.12);
}

.header-menu-item svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-popover {
  width: min(416px, calc(100vw - 24px));
  height: min(612px, calc(100vh - 124px));
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
}

.notification-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px 16px 16px;
}

.notification-heading {
  display: grid;
  margin-bottom: 14px;
}

.notification-heading strong {
  font-size: 16px;
}

.notification-heading span,
.account-summary small,
.notification-body small {
  color: var(--text-soft);
  font-size: 12px;
}

.notification-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: 9px;
  background: rgba(127, 137, 150, 0.08);
}

.notification-content {
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.notification-tabs button {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--text-soft);
  background: transparent;
  cursor: pointer;
}

.notification-tabs button.active {
  border-color: var(--line-strong);
  color: var(--text);
  background: var(--surface-solid);
}

.notification-body {
  height: 100%;
  overflow: auto;
  color: var(--text-soft);
  line-height: 1.65;
}

.notification-footer {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  padding-top: 14px;
}

.notification-footer button {
  min-width: 72px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  color: #17191c;
  background: #f4f4f5;
  font-weight: 650;
  cursor: pointer;
}

.notification-footer button:hover {
  background: #ffffff;
}

.notification-body[hidden] {
  display: none;
}

.notification-body p {
  margin: 0;
}

.notification-empty {
  display: grid;
  min-height: 100%;
  place-items: center;
  color: var(--text-soft);
  text-align: center;
}

.notice-rich-content {
  min-height: 100%;
}

.notice-rich-text {
  color: var(--text-soft);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.notice-image {
  margin: 14px 0;
}

.notice-image a {
  display: block;
}

.notice-image img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  object-fit: fill;
  background: rgba(0, 0, 0, 0.08);
}

.notification-notice {
  overflow-y: auto;
  overflow-x: hidden;
}

.notification-timeline article {
  position: relative;
  padding: 2px 4px 16px 28px;
  border-bottom: 1px solid var(--line);
}

.notification-timeline article + article {
  padding-top: 16px;
}

.notification-timeline p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.notification-timeline small {
  display: block;
  margin-top: 8px;
}

.notification-timeline article > i {
  position: absolute;
  top: 9px;
  left: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c8cbd0;
}

.notification-timeline strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
}

.account-popover {
  width: min(286px, calc(100vw - 24px));
  padding: 0;
  overflow: hidden;
}

.account-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.account-summary > span:last-child {
  display: grid;
}

.account-summary strong {
  font-size: 16px;
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #26320b;
  background: #c7df45;
  font-weight: 800;
}

.account-links {
  display: grid;
  padding: 8px;
}

.account-links a,
.account-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 7px;
}

.account-links a:hover,
.account-logout:hover {
  background: rgba(127, 137, 150, 0.1);
}

.account-logout {
  border-top: 1px solid var(--line);
  border-radius: 0;
  color: #ef5350;
}

@media (max-width: 720px) {
  .header-popover {
    right: 8px !important;
  }
}

@media (max-width: 1060px) {
  .site-header.is-scrolled .header-inner {
    max-width: calc(100% - 28px);
  }

  .main-nav {
    top: 58px;
  }
}

@media (max-width: 720px) {
  .header-inner,
  html.dark .header-inner {
    width: calc(100% - 16px);
    height: 56px;
    padding-inline: 12px;
  }

  .site-header.is-scrolled .header-inner,
  html.dark .site-header.is-scrolled .header-inner {
    width: calc(100% - 16px);
    max-width: none;
    height: 48px;
    margin-top: 8px;
    padding: 0 8px 0 12px;
    border-radius: 20px;
  }

  .site-header .header-actions .icon-button {
    display: none;
  }

  .main-nav {
    top: 56px;
  }
}
