:root {
  color-scheme: dark;
  --page: #050505;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: #11131a;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --quiet: #71717a;
  --blue: #3b82f6;
  --blue-bright: #60a5fa;
  --green: #07c160;
  --radius: 26px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--text);
  font-feature-settings: "cv02", "cv03", "cv04", "ss01";
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 40px 40px;
  content: "";
  pointer-events: none;
}

body::after {
  position: fixed;
  top: -240px;
  left: 50%;
  z-index: -1;
  width: min(1200px, 100vw);
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14), transparent 68%);
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

button,
input {
  font: inherit;
}

button:not(:disabled),
a {
  cursor: pointer;
}

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

img {
  display: block;
  max-width: 100%;
}

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

.container {
  width: min(1280px, calc(100% - 40px));
  margin-inline: auto;
}

.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(22px);
}

.site-nav__inner {
  display: grid;
  width: min(1280px, calc(100% - 40px));
  height: 78px;
  margin-inline: auto;
  align-items: center;
  grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
  gap: 28px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.brand-mark__icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, #86868b);
  box-shadow: 0 12px 38px rgba(255, 255, 255, 0.08);
  transition: transform 300ms ease;
}

.brand-mark:hover .brand-mark__icon {
  transform: rotate(12deg);
}

.brand-mark__diamond {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #050505;
  transform: rotate(45deg);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.desktop-nav a,
.mobile-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: #fff;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 15px;
  padding: 0 21px;
  background: #fff;
  color: #050505;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease, opacity 220ms ease;
}

.button:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button--outline {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
}

.button--outline:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
}

.button--blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 16px 44px rgba(59, 130, 246, 0.2);
}

.button--blue:hover {
  background: #2563eb;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
  transform: none;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.mobile-menu-button span,
.mobile-menu-button::before,
.mobile-menu-button::after {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transition: transform 200ms ease, opacity 200ms ease;
}

.mobile-menu-button span {
  margin-block: 4px;
}

.mobile-menu-button[aria-expanded="true"] span {
  opacity: 0;
}

.mobile-menu-button[aria-expanded="true"]::before {
  transform: translateY(5.5px) rotate(45deg);
}

.mobile-menu-button[aria-expanded="true"]::after {
  transform: translateY(-5.5px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  background: rgba(17, 19, 26, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.mobile-nav.is-open {
  display: grid;
}

.mobile-nav a {
  border-radius: 12px;
  padding: 13px 14px;
}

.page-main {
  min-height: calc(100vh - 180px);
  padding-top: 78px;
}

.hero {
  padding: 86px 20px 72px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.9);
}

.hero h1,
.page-heading h1 {
  margin: 26px auto 24px;
  background: linear-gradient(180deg, #fff, #8b8b94);
  background-clip: text;
  color: transparent;
  font-size: clamp(48px, 7vw, 86px);
  font-weight: 820;
  letter-spacing: -0.07em;
  line-height: 0.96;
}

.hero p,
.page-heading p {
  max-width: 800px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 360;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  margin-top: 36px;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.gallery-section {
  padding: 0 0 104px;
}

.section-kicker {
  display: flex;
  margin-bottom: 22px;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-kicker svg {
  color: var(--blue-bright);
}

.gallery-grid {
  columns: 4;
  column-gap: 18px;
}

.gallery-item {
  margin: 0 0 18px;
  break-inside: avoid;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 27px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
}

.gallery-item img {
  width: 100%;
  height: auto;
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  .gallery-item:hover img {
    transform: scale(1.055);
  }
}

.page-heading {
  padding: 72px 20px 52px;
  text-align: center;
}

.page-heading h1 {
  max-width: 900px;
  font-size: clamp(42px, 6vw, 70px);
}

.page-heading--compact {
  padding-bottom: 38px;
}

.page-heading--compact h1 {
  font-size: clamp(40px, 5vw, 62px);
}

.docs-layout {
  display: grid;
  padding-bottom: 96px;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.docs-nav {
  position: sticky;
  top: 106px;
  display: grid;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: rgba(17, 19, 26, 0.94);
  backdrop-filter: blur(18px);
}

.docs-nav__label {
  padding: 8px 10px 13px;
  color: #666873;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.docs-nav a {
  border-radius: 11px;
  padding: 10px 12px;
  color: #c3c4cb;
  font-size: 13px;
  font-weight: 650;
  transition: background 180ms ease, color 180ms ease;
}

.docs-nav a:hover,
.docs-nav a.is-active {
  background: rgba(56, 189, 248, 0.1);
  color: #e0f2fe;
}

.docs-nav a span {
  display: inline-block;
  width: 23px;
  color: #555762;
  font-size: 11px;
  font-weight: 850;
}

.docs-nav a.is-active span {
  color: #7dd3fc;
}

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

.doc-section {
  scroll-margin-top: 106px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(17, 19, 26, 0.82);
}

.doc-section__body {
  padding: clamp(24px, 4vw, 40px);
}

.doc-section h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.04em;
}

.doc-section h3 {
  margin: 30px 0 12px;
  font-size: 17px;
}

.doc-section p,
.doc-section li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.doc-section ol,
.doc-section ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.endpoint {
  display: flex;
  margin: 22px 0;
  align-items: center;
  gap: 11px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(56, 189, 248, 0.055);
}

.endpoint__method {
  border-radius: 8px;
  padding: 6px 8px;
  background: rgba(34, 197, 94, 0.13);
  color: #86efac;
  font-size: 11px;
  font-weight: 850;
}

.endpoint code {
  min-width: 0;
  overflow: auto;
  color: #e4e4e7;
  font-size: 13px;
  white-space: nowrap;
}

.info-grid {
  display: grid;
  margin-top: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.info-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.info-card strong {
  display: block;
  margin-bottom: 7px;
  color: #fff;
  font-size: 14px;
}

.info-card p {
  margin: 0;
  font-size: 13px;
}

.code-block {
  position: relative;
  overflow: auto;
  margin: 18px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 17px;
  padding: 22px;
  background: #090a0e;
  color: #d4d4d8;
  font: 12px/1.75 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  tab-size: 2;
  white-space: pre;
}

.code-token {
  color: #7dd3fc;
}

.parameter-table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  font-size: 13px;
}

.parameter-table th,
.parameter-table td {
  border-bottom: 1px solid var(--line);
  padding: 13px 12px;
  text-align: left;
  vertical-align: top;
}

.parameter-table th {
  color: #777985;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.parameter-table td {
  color: #b7b8c0;
  line-height: 1.65;
}

.parameter-table code {
  color: #bae6fd;
}

.team-stage {
  display: grid;
  min-height: calc(100vh - 210px);
  padding: 58px 20px 92px;
  place-items: center;
}

.verify-card {
  width: min(540px, 100%);
  border: 1px solid var(--line);
  border-radius: 36px;
  padding: clamp(27px, 5vw, 42px);
  background:
    radial-gradient(circle at 0 0, rgba(14, 165, 233, 0.2), transparent 40%),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.38);
}

.verify-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(56, 189, 248, 0.1);
  color: #bae6fd;
  font-size: 12px;
  font-weight: 800;
}

.verify-card h1 {
  margin: 27px 0 12px;
  font-size: 29px;
  letter-spacing: -0.04em;
}

.verify-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

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

.field {
  width: 100%;
  min-height: 53px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  padding: 0 17px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field::placeholder {
  color: #5c5d66;
}

.field:focus {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.08);
}

.form-message {
  display: none;
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(56, 189, 248, 0.09);
  color: #bae6fd;
  font-size: 13px;
  line-height: 1.6;
}

.form-message.is-visible {
  display: block;
}

.pricing-section {
  padding: 0 0 100px;
}

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

.plan-card {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0;
  background: rgba(17, 19, 26, 0.9);
  color: inherit;
  text-align: left;
  box-shadow: 0 14px 46px rgba(0, 0, 0, 0.2);
  transform: translateZ(0);
  transition:
    transform 340ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 260ms ease,
    box-shadow 260ms ease,
    background 260ms ease;
}

.plan-card:focus-visible {
  outline: 3px solid rgba(96, 165, 250, 0.36);
  outline-offset: 3px;
}

.plan-card[aria-pressed="true"] {
  border-color: rgba(96, 165, 250, 0.8);
  background: rgba(26, 35, 53, 0.96);
  box-shadow: 0 22px 70px rgba(37, 99, 235, 0.2), inset 0 0 0 1px rgba(96, 165, 250, 0.18);
}

@media (hover: hover) {
  .plan-card:hover {
    z-index: 2;
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 28px 78px rgba(0, 0, 0, 0.4);
    transform: translateY(-8px) scale(1.035);
  }

  .plan-card[aria-pressed="true"]:hover {
    border-color: rgba(96, 165, 250, 0.95);
  }
}

.plan-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.16;
  background: #17181e;
}

.plan-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  .plan-card:hover .plan-card__media img {
    transform: scale(1.055);
  }
}

.plan-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(5, 5, 5, 0.66);
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  backdrop-filter: blur(12px);
}

.plan-card__check {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.62);
  color: transparent;
  font-size: 16px;
  font-weight: 900;
  backdrop-filter: blur(12px);
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.plan-card[aria-pressed="true"] .plan-card__check {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.plan-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 19px;
}

.plan-card__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.plan-card__title strong {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.plan-card__unit {
  color: var(--quiet);
  font-size: 10px;
}

.plan-card__description {
  min-height: 42px;
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.plan-card__price {
  display: flex;
  margin-top: auto;
  align-items: end;
  gap: 5px;
  color: #fff;
}

.plan-card__price span {
  margin-bottom: 4px;
  color: var(--blue-bright);
  font-size: 13px;
  font-weight: 850;
}

.plan-card__price strong {
  color: var(--blue-bright);
  font-size: 30px;
  letter-spacing: -0.05em;
}

.plan-card__price small {
  margin: 0 0 4px auto;
  border-radius: 7px;
  padding: 4px 7px;
  background: rgba(249, 115, 22, 0.1);
  color: #fdba74;
  font-size: 9px;
  font-weight: 800;
}

.purchase-bar {
  display: flex;
  margin-top: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 23px;
  padding: 18px 20px 18px 24px;
  background: rgba(17, 19, 26, 0.9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.purchase-summary {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.purchase-summary strong {
  display: block;
  color: #fff;
  font-size: 17px;
}

.purchase-bar .button {
  min-width: 170px;
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  visibility: hidden;
  padding: 20px;
  place-items: center;
  background: rgba(0, 0, 0, 0.75);
  opacity: 0;
  backdrop-filter: blur(12px);
  transition: opacity 220ms ease, visibility 220ms ease;
}

.dialog-backdrop.is-open {
  visibility: visible;
  opacity: 1;
}

.payment-dialog {
  position: relative;
  width: min(520px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  padding: 30px;
  background: #101116;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.62);
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
}

.dialog-backdrop.is-open .payment-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.dialog-close {
  position: absolute;
  top: 17px;
  right: 17px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 22px;
}

.payment-dialog h2 {
  margin: 0 42px 8px 0;
  font-size: 27px;
  letter-spacing: -0.04em;
}

.payment-dialog > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.dialog-order {
  display: flex;
  margin-top: 23px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.dialog-order span {
  display: block;
  color: var(--quiet);
  font-size: 11px;
}

.dialog-order strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.dialog-order__price {
  color: var(--blue-bright);
  font-size: 24px;
  font-weight: 850;
}

.payment-options {
  display: grid;
  margin-top: 16px;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.payment-option {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.025);
  color: #fff;
  text-align: left;
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
}

.payment-option:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.payment-option__icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.payment-option--alipay .payment-option__icon {
  background: #1677ff;
}

.payment-option--wechat .payment-option__icon {
  background: var(--green);
}

.payment-option strong,
.payment-option small {
  display: block;
}

.payment-option strong {
  font-size: 14px;
}

.payment-option small {
  margin-top: 5px;
  color: var(--quiet);
  font-size: 10px;
}

.payment-demo-message {
  display: none;
  margin-top: 14px;
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(59, 130, 246, 0.1);
  color: #bfdbfe;
  font-size: 12px;
  line-height: 1.6;
}

.payment-demo-message.is-visible {
  display: block;
}

.dialog-note {
  margin-top: 16px;
  color: #666873;
  font-size: 11px;
  line-height: 1.7;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  padding: 38px 0 44px;
  background: rgba(0, 0, 0, 0.2);
}

.site-footer__inner {
  display: flex;
  width: min(1280px, calc(100% - 40px));
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #5d5e66;
  font-size: 12px;
}

.site-footer__links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-footer a:hover {
  color: #fff;
}

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

  .gallery-grid {
    columns: 3;
  }
}

@media (max-width: 860px) {
  .site-nav__inner {
    grid-template-columns: 1fr auto;
  }

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

  .mobile-menu-button {
    display: inline-flex;
    flex-direction: column;
  }

  .hero {
    padding-top: 70px;
  }

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

  .docs-nav {
    position: sticky;
    top: 78px;
    z-index: 12;
    display: flex;
    overflow-x: auto;
    border-radius: 0;
    padding: 9px 0;
  }

  .docs-nav__label {
    display: none;
  }

  .docs-nav a {
    flex: none;
    white-space: nowrap;
  }

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

@media (max-width: 620px) {
  .container,
  .site-nav__inner,
  .mobile-nav,
  .site-footer__inner {
    width: min(100% - 28px, 1280px);
  }

  .site-nav__inner {
    height: 70px;
  }

  .brand-mark {
    font-size: 16px;
  }

  .brand-mark__icon {
    width: 34px;
    height: 34px;
  }

  .brand-mark__diamond {
    width: 15px;
    height: 15px;
  }

  .page-main {
    padding-top: 70px;
  }

  .hero {
    padding: 58px 16px 56px;
  }

  .hero h1 {
    font-size: clamp(45px, 15vw, 64px);
  }

  .hero p,
  .page-heading p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .gallery-grid {
    columns: 2;
    column-gap: 11px;
  }

  .gallery-item {
    margin-bottom: 11px;
    border-radius: 19px;
  }

  .page-heading {
    padding: 54px 16px 38px;
  }

  .docs-layout {
    gap: 15px;
  }

  .docs-nav {
    top: 70px;
  }

  .doc-section {
    border-radius: 19px;
  }

  .info-grid,
  .payment-options {
    grid-template-columns: 1fr;
  }

  .parameter-table {
    display: block;
    overflow-x: auto;
  }

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

  .plan-card__media {
    aspect-ratio: 1.45;
  }

  .purchase-bar {
    align-items: stretch;
    flex-direction: column;
    padding: 17px;
  }

  .purchase-bar .button {
    width: 100%;
  }

  .payment-dialog {
    padding: 24px 20px 21px;
  }

  .dialog-order {
    align-items: flex-start;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Lightweight front-end-only studio */
.studio-page,
.credits-page {
  background: #020202;
}

.studio-page::before,
.studio-page::after,
.credits-page::before,
.credits-page::after {
  display: none;
}

.studio-main {
  display: grid;
  min-height: 100vh;
  padding: 98px 18px 20px;
  grid-template-columns: minmax(320px, 3fr) minmax(520px, 4fr) minmax(320px, 3fr);
  gap: 16px;
  background: #020202;
}

.studio-controls,
.studio-stoves,
.studio-libraries {
  min-width: 0;
}

.studio-controls {
  overflow: hidden;
  border: 1px solid #171717;
  border-radius: 30px;
  padding: 20px;
  background: #030303;
}

.studio-section {
  margin-bottom: 18px;
}

.studio-label {
  margin: 0 0 8px 4px;
  color: #777982;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.studio-label--split {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.studio-models,
.studio-choice-grid,
.ratio-list {
  display: grid;
  gap: 7px;
}

.studio-models {
  grid-template-columns: 1fr 1fr;
}

.studio-model,
.studio-choice,
.ratio-choice {
  border: 1px solid #27272a;
  background: #090909;
  color: #d4d4d8;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.studio-model {
  min-height: 64px;
  border-radius: 13px;
  padding: 10px;
}

.studio-model strong,
.studio-model small {
  display: block;
}

.studio-model strong {
  font-size: 13px;
}

.studio-model small {
  margin-top: 5px;
  color: #6b6b72;
  font-size: 9px;
}

.studio-model.is-selected,
.studio-choice.is-selected,
.ratio-choice.is-selected {
  border-color: #ff7100;
  background: #ff7100;
  color: #fff;
  box-shadow: 0 10px 28px rgba(255, 113, 0, 0.17);
}

.studio-model.is-selected small {
  color: rgba(255, 255, 255, 0.78);
}

.reference-add {
  display: grid;
  width: 98px;
  aspect-ratio: 1;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 2px dashed #242429;
  border-radius: 17px;
  background: #060606;
  color: #686872;
}

.reference-add span {
  font-size: 24px;
}

.reference-add small {
  font-size: 9px;
}

.reference-add:hover {
  border-color: #ff7100;
  color: #fb923c;
}

.studio-prompt {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border: 1px solid #242429;
  border-radius: 19px;
  padding: 17px;
  outline: none;
  background: #060606;
  color: #f4f4f5;
  font: inherit;
  font-size: 14px;
  line-height: 1.7;
}

.studio-prompt::placeholder {
  color: #55555d;
}

.studio-prompt:focus {
  border-color: rgba(255, 113, 0, 0.72);
  box-shadow: 0 0 0 4px rgba(255, 113, 0, 0.08);
}

.studio-parameter-row {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 12px;
}

.studio-choice-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

.studio-choice-grid--two {
  grid-template-columns: repeat(2, 1fr);
}

.studio-choice,
.ratio-choice {
  min-height: 40px;
  border-radius: 10px;
  padding: 6px;
  font-size: 12px;
  font-weight: 850;
}

.ratio-list {
  grid-template-columns: repeat(8, minmax(40px, 1fr));
}

.ratio-choice {
  min-width: 0;
  padding-inline: 4px;
  font-size: 10px;
}

.studio-balance {
  margin: -3px 0 13px 4px;
  color: #73737c;
  font-size: 11px;
}

.studio-balance a {
  color: #38bdf8;
  font-weight: 800;
}

.studio-order-row {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 12px;
}

.studio-order-settings {
  display: grid;
  border: 1px solid #242429;
  border-radius: 16px;
  padding: 10px;
  background: #070707;
  gap: 10px;
}

.studio-order-settings > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #aaaab1;
  font-size: 10px;
}

.studio-order-settings strong {
  color: #fff;
}

.demo-switch {
  width: 34px;
  height: 19px;
  border-radius: 999px;
  background: #303038;
}

.demo-switch::after {
  display: block;
  width: 15px;
  height: 15px;
  margin: 2px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.studio-order-button {
  border: 0;
  border-radius: 17px;
  background: #ff7100;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(255, 113, 0, 0.28);
  transition: transform 180ms ease, background 180ms ease;
}

.studio-order-button:hover {
  background: #ff8126;
  transform: translateY(-2px);
}

.studio-message,
.credits-demo-message {
  display: none;
  margin-top: 12px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(56, 189, 248, 0.08);
  color: #bae6fd;
  font-size: 11px;
  line-height: 1.6;
}

.studio-message.is-visible,
.credits-demo-message.is-visible {
  display: block;
}

.studio-stoves {
  border-radius: 30px;
}

.studio-panel-heading {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #1f1f22;
  border-radius: 20px;
  padding: 0 18px;
  background: linear-gradient(135deg, #141414, #090909);
}

.studio-panel-heading strong {
  font-size: 13px;
}

.studio-panel-heading span {
  color: #73737b;
  font-size: 10px;
}

.stove-list {
  display: grid;
  margin-top: 10px;
  gap: 10px;
}

.stove-card {
  display: grid;
  min-height: 150px;
  align-items: center;
  border: 1px solid #242426;
  border-radius: 25px;
  padding: 22px 28px;
  background: linear-gradient(135deg, #151515, #090909);
  grid-template-columns: 112px 1fr auto;
  gap: 14px;
}

.stove-card > div {
  display: grid;
  height: 104px;
  place-items: center;
  border: 1px dashed #333338;
  border-radius: 17px;
  background: radial-gradient(circle, #101010, #050505 70%);
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 800;
}

.stove-card strong {
  display: grid;
  height: 104px;
  place-items: center;
  border: 1px solid #1b1b1d;
  border-radius: 17px;
  background: #050505;
  font-size: 12px;
}

.stove-card small {
  color: #7dd3fc;
  font-size: 9px;
}

.studio-libraries {
  display: grid;
  grid-template-rows: 1.15fr 1fr 1fr;
  gap: 10px;
}

.library-panel {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  border: 1px solid #1e1e21;
  border-radius: 27px;
  padding: 18px;
  background: #040404;
}

.library-panel::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 22%;
  content: "";
  opacity: 0.22;
}

.library-panel--served::after {
  background: linear-gradient(transparent, #7c2d12);
}

.library-panel--backup::after {
  background: linear-gradient(transparent, #075985);
}

.library-panel--discarded::after {
  background: linear-gradient(transparent, #27272a);
}

.library-panel header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.library-panel header strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.library-panel header strong span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
}

.library-panel header small {
  color: #6b6b73;
  font-size: 9px;
}

.library-content {
  margin-top: 22px;
}

.library-content img {
  width: 88px;
  height: 88px;
  border: 1px solid #333;
  border-radius: 10px;
  object-fit: cover;
}

.library-panel p {
  position: absolute;
  right: 18px;
  bottom: 10px;
  z-index: 1;
  margin: 0;
  color: #67e8f9;
  font-size: 9px;
}

.library-empty {
  position: absolute;
  inset: 64px 18px 24px;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.42);
  color: #4b4b53;
  font-size: 11px;
}

/* Lightweight front-end-only credits catalog */
.credits-main {
  width: min(1500px, calc(100% - 40px));
  min-height: 100vh;
  margin-inline: auto;
  padding: 104px 0 60px;
}

.credits-hero {
  display: flex;
  min-height: 250px;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  overflow: hidden;
  border: 1px solid rgba(249, 115, 22, 0.34);
  border-radius: 30px;
  padding: clamp(30px, 5vw, 50px);
  background:
    linear-gradient(150deg, rgba(59, 20, 8, 0.52), rgba(5, 8, 16, 0.94) 68%),
    #070707;
}

.credits-badge {
  display: inline-flex;
  border: 1px solid rgba(251, 146, 60, 0.38);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(249, 115, 22, 0.12);
  color: #fed7aa;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.credits-hero h1 {
  margin: 20px 0 8px;
  font-size: clamp(48px, 6vw, 74px);
  letter-spacing: -0.07em;
  line-height: 1;
}

.credits-hero p {
  max-width: 850px;
  margin: 0;
  color: #8f9099;
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.7;
}

.credits-hero ul {
  margin: 0 0 10px;
  padding: 0;
  color: #d4d4d8;
  font-size: 13px;
  font-weight: 700;
  line-height: 2.2;
  list-style: none;
  white-space: nowrap;
}

.credits-hero li::before {
  margin-right: 9px;
  color: #22d3ee;
  content: "✓";
}

.credits-catalog {
  margin-top: 48px;
  overflow-x: auto;
  padding: 2px 1px 14px;
  scrollbar-color: #29292e transparent;
}

.credits-grid {
  display: grid;
  min-width: 1210px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.credit-card {
  grid-column: span 3;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #28282c;
  border-radius: 25px;
  padding: 0;
  background: #0a0a0a;
  color: #fff;
  text-align: left;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms ease, box-shadow 220ms ease;
}

.credit-card:nth-child(-n + 3) {
  grid-column: span 4;
}

.credit-card:hover {
  border-color: #44444b;
  transform: translateY(-6px) scale(1.018);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
}

.credit-card.is-selected {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15), 0 24px 70px rgba(37, 99, 235, 0.12);
}

.credit-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1.04;
  overflow: hidden;
  background: #111;
}

.credit-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.credit-card:hover .credit-card__media img {
  transform: scale(1.05);
}

.credit-card__media > span {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  background: rgba(14, 14, 16, 0.7);
  color: transparent;
  font-size: 17px;
  backdrop-filter: blur(10px);
}

.credit-card.is-selected .credit-card__media > span {
  border-color: #3b82f6;
  background: #3b82f6;
  color: #fff;
}

.credit-card__body {
  display: block;
  padding: 20px;
}

.credit-card__body > strong,
.credit-card__body > small {
  display: block;
}

.credit-card__body > strong {
  font-size: 19px;
  letter-spacing: -0.03em;
}

.credit-card__body > small {
  overflow: hidden;
  margin-top: 8px;
  color: #63636c;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.credit-card__footer {
  display: flex;
  margin-top: 22px;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
}

.credit-card__footer b {
  color: #58a6ff;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.credit-card__footer em {
  border-radius: 9px;
  padding: 7px 8px;
  background: rgba(249, 115, 22, 0.13);
  color: #fed7aa;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.credits-payment {
  margin-top: 36px;
  border: 1px solid #27272c;
  border-radius: 27px;
  padding: 30px 34px;
  background: rgba(5, 5, 5, 0.95);
}

.credits-payment__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.credits-payment h2 {
  margin: 0;
  font-size: 24px;
}

.credits-payment p {
  margin: 7px 0 0;
  color: #707078;
  font-size: 12px;
}

.credits-payment__heading > strong {
  color: #7dd3fc;
  font-size: 14px;
}

.credits-payment__options {
  display: grid;
  margin-top: 24px;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.credits-pay {
  display: flex;
  min-height: 104px;
  align-items: center;
  gap: 20px;
  border: 1px solid #29292e;
  border-radius: 22px;
  padding: 18px 24px;
  background: #080808;
  color: #fff;
  text-align: left;
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
}

.credits-pay:hover {
  border-color: #4b5563;
  background: #0d0d10;
  transform: translateY(-2px);
}

.credits-pay > span {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.credits-pay--alipay {
  border-color: rgba(59, 130, 246, 0.55);
  background: rgba(30, 64, 175, 0.12);
}

.credits-pay--alipay > span {
  background: #1677ff;
}

.credits-pay--wechat {
  border-color: rgba(34, 197, 94, 0.34);
  background: rgba(22, 101, 52, 0.1);
}

.credits-pay--wechat > span {
  background: #08783f;
}

.credits-pay strong,
.credits-pay small {
  display: block;
}

.credits-pay strong {
  font-size: 17px;
}

.credits-pay small {
  margin-top: 7px;
  color: #6d6d75;
  font-size: 11px;
  font-weight: 600;
}

@media (max-width: 1180px) {
  .studio-main {
    grid-template-columns: minmax(300px, 0.9fr) minmax(480px, 1.3fr);
  }

  .studio-libraries {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: none;
  }

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

@media (max-width: 820px) {
  .studio-main {
    display: block;
    padding: 86px 14px 24px;
  }

  .studio-controls,
  .studio-stoves,
  .studio-libraries {
    margin-bottom: 14px;
  }

  .studio-libraries {
    display: grid;
    grid-template-columns: 1fr;
  }

  .stove-card {
    min-height: 128px;
    grid-template-columns: 92px 1fr;
  }

  .stove-card > div,
  .stove-card strong {
    height: 86px;
  }

  .stove-card small {
    display: none;
  }

  .credits-main {
    width: min(100% - 28px, 1500px);
    padding-top: 88px;
  }

  .credits-hero,
  .credits-payment__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .credits-hero ul {
    white-space: normal;
  }
}

@media (max-width: 620px) {
  .studio-controls {
    border-radius: 22px;
    padding: 16px;
  }

  .studio-models,
  .studio-parameter-row,
  .studio-order-row,
  .credits-payment__options {
    grid-template-columns: 1fr;
  }

  .ratio-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .studio-order-button {
    min-height: 64px;
  }

  .stove-card {
    padding: 14px;
    grid-template-columns: 78px 1fr;
  }

  .stove-card > div {
    padding: 6px;
    text-align: center;
  }

  .credits-hero {
    min-height: 0;
    border-radius: 24px;
    padding: 26px 22px;
  }

  .credits-hero h1 {
    font-size: 48px;
  }

  .credits-catalog {
    margin-top: 30px;
  }

  .credits-grid {
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .credit-card {
    display: grid;
    grid-column: auto;
    grid-template-columns: 42% 1fr;
  }

  .credit-card:nth-child(-n + 3) {
    grid-column: auto;
  }

  .credit-card__media {
    height: 100%;
    aspect-ratio: auto;
  }

  .credits-payment {
    border-radius: 22px;
    padding: 22px 18px;
  }
}
