.marketing-page {
  --paper: #f6f7f8;
  --ink: #182636;
  --muted: #657386;
  --line: #dce2e9;
  --accent: #2856d5;
  --accent-dark: #1d44b1;
  --accent-hover: #1d44b1;
  --soft: #edf2ff;
  --surface: #fff;
  --surface-2: #eef1f5;
  --hero-from: #fff;
  --hero-to: #f2f5fa;
  --panel: #152947;
  --panel-text: #fff;
  --panel-muted: #a4b4cc;
  --panel-line: #4d6381;
  --panel-code: #d8e6ff;
  --panel-accent: #8eacdc;
  background: var(--paper);
  color: var(--ink);
}

.marketing {
  overflow: hidden;
}

.marketing .public-nav {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px clamp(22px, 6vw, 88px);
  gap: 28px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.marketing .public-nav .brand {
  margin: 0;
  color: var(--ink);
  font: 700 23px/1 "Segoe UI", "Microsoft YaHei", sans-serif;
  letter-spacing: -1px;
  white-space: nowrap;
}

.marketing .public-nav .brand span,
.marketing-footer .brand span {
  color: var(--accent);
}

.marketing-nav,
.marketing-actions {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 32px);
}

.marketing-nav a,
.marketing-footer a {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.marketing-nav a:hover,
.marketing-footer a:hover,
.login-link:hover {
  color: var(--accent);
}

.marketing-actions {
  gap: 18px;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #a0a8b2;
  font-size: 12px;
}

.language-switch a {
  color: var(--muted);
  font-size: 12px;
}

.language-switch a:hover {
  color: var(--accent);
}

.login-link {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.marketing .button.primary {
  padding: 10px 15px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}

.marketing .button.primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.marketing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .78fr);
  gap: clamp(46px, 8vw, 120px);
  align-items: center;
  min-height: 570px;
  padding: 78px clamp(24px, 9vw, 132px) 62px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(112deg, var(--hero-from) 0%, var(--hero-to) 100%);
  color: var(--ink);
}

.marketing-hero::after {
  position: absolute;
  right: -210px;
  bottom: -410px;
  width: 600px;
  height: 600px;
  border: 1px solid #18263612;
  border-radius: 50%;
  box-shadow: 0 0 0 44px #18263608, 0 0 0 88px #18263606;
  content: "";
  pointer-events: none;
}

.marketing-hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 2px;
}

.marketing-hero .eyebrow::before {
  width: 24px;
  height: 1px;
  background: currentColor;
  content: "";
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-copy h1 {
  max-width: 720px;
  margin: 20px 0 22px;
  color: var(--ink);
  font: 600 clamp(48px, 6.6vw, 82px)/1.03 Georgia, "Songti SC", serif;
  letter-spacing: -3px;
}

.hero-copy h1 i {
  color: var(--accent);
  font-style: normal;
}

.hero-copy .lead {
  max-width: 610px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.marketing .hero-primary {
  padding: 13px 18px;
  font-size: 13px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.text-link:hover {
  color: var(--accent);
}

.hero-note {
  max-width: 540px;
  margin: 26px 0 0;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.endpoint-card {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 24px 25px 18px;
  border: 1px solid var(--panel-line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: var(--panel);
  color: var(--panel-text);
  box-shadow: 0 12px 38px #14213918;
}

.endpoint-top,
.endpoint-row,
.endpoint-footer,
.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.endpoint-top {
  color: var(--panel-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.endpoint-title {
  max-width: 300px;
  margin: 34px 0 20px;
  font: 600 25px/1.25 Georgia, "Songti SC", serif;
  letter-spacing: -.5px;
}

.endpoint-rule {
  height: 1px;
  background: var(--panel-line);
}

.endpoint-row {
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid var(--panel-line);
}

.endpoint-row code {
  flex: 1;
  color: var(--panel-code);
  font: 12px Consolas, monospace;
}

.endpoint-row b {
  color: var(--panel-accent);
  font: 700 9px Consolas, monospace;
}

.endpoint-footer {
  gap: 12px;
  padding-top: 19px;
  color: var(--panel-muted);
  font-size: 10px;
}

.steps-section,
.pricing-section,
.faq-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 100px clamp(24px, 7vw, 96px);
}

.section-intro {
  max-width: 640px;
  margin-bottom: 43px;
}

.section-intro .eyebrow {
  margin-bottom: 15px;
  color: var(--accent);
}

.section-intro h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font: 600 clamp(34px, 4vw, 50px)/1.12 Georgia, "Songti SC", serif;
  letter-spacing: -1.5px;
}

.section-intro > p:last-child {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.8;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.work-step {
  min-height: 180px;
  padding: 22px 24px 22px 0;
}

.work-step + .work-step {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.step-index {
  display: block;
  margin-bottom: 32px;
  color: var(--accent);
  font: 700 12px Consolas, monospace;
}

.work-step h3 {
  margin-bottom: 9px;
  color: var(--ink);
  font: 700 17px/1.4 "Segoe UI", "Microsoft YaHei", sans-serif;
}

.work-step p {
  max-width: 290px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.pricing-section {
  max-width: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.pricing-section > .section-intro,
.pricing-section > .plan-grid,
.pricing-section > .pricing-note {
  max-width: 1080px;
  margin-right: auto;
  margin-left: auto;
}

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

.plan-card {
  padding: 28px 30px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.plan-card .plan-top > span:first-child {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.plan-mark {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.plan-desc {
  min-height: 42px;
  margin: 22px 0 5px;
  color: var(--muted);
  font-size: 13px;
}

.plan-price {
  color: var(--ink);
  font: 600 47px/1.2 Georgia, "Songti SC", serif;
  letter-spacing: -1px;
}

.plan-price small {
  color: var(--muted);
  font: 500 12px "Segoe UI", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

.plan-features {
  margin: 23px 0;
  padding: 0;
  list-style: none;
}

.plan-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
}

.plan-features li::before {
  margin-right: 10px;
  color: var(--accent);
  content: "+";
  font-weight: 800;
}

.plan-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 13px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.plan-link:hover {
  color: var(--ink);
}

.plan-link span {
  font-size: 18px;
}

.pricing-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px !important;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.pricing-note > span {
  display: grid;
  flex: 0 0 17px;
  place-items: center;
  height: 17px;
  border: 1px solid var(--muted);
  border-radius: 50%;
  font: 700 10px Georgia, serif;
}

.faq-section {
  display: grid;
  grid-template-columns: .72fr 1fr;
  gap: 80px;
}

.faq-section .section-intro {
  margin: 0;
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  color: var(--accent);
  font: 400 20px/1 "Segoe UI", sans-serif;
}

.faq-list details p {
  max-width: 620px;
  margin: -3px 30px 20px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.marketing-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  max-width: 1440px;
  margin: auto;
  padding: 20px clamp(22px, 6vw, 88px) 35px;
  border-top: 1px solid var(--line);
}

.marketing-footer .brand {
  margin: 0;
  color: var(--ink);
  font: 700 16px "Segoe UI", "Microsoft YaHei", sans-serif;
  letter-spacing: -.5px;
}

.marketing-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.marketing-footer > div {
  display: flex;
  gap: 18px;
}

.marketing a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .marketing .public-nav {
    flex-wrap: wrap;
  }

  .marketing-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 8px;
  }

  .marketing-hero {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 68px;
  }

  .hero-copy h1 {
    max-width: 800px;
  }

  .endpoint-card {
    max-width: 550px;
    width: 100%;
  }

  .faq-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 620px) {
  .marketing .public-nav {
    padding: 18px;
    gap: 13px;
  }

  .marketing .public-nav .brand {
    font-size: 20px;
  }

  .marketing-actions {
    gap: 11px;
    margin-left: auto;
  }

  .marketing .public-nav .button.primary {
    padding: 8px 10px;
    font-size: 10px;
  }

  .login-link {
    font-size: 12px;
  }

  .marketing-nav {
    justify-content: flex-start;
    gap: 22px;
    overflow: auto;
  }

  .marketing-nav a {
    white-space: nowrap;
    font-size: 12px;
  }

  .marketing-hero {
    min-height: 0;
    gap: 35px;
    padding: 56px 22px 35px;
  }

  .hero-copy h1 {
    font-size: clamp(46px, 13vw, 70px);
    letter-spacing: -2px;
  }

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

  .hero-actions {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px 18px;
  }

  .marketing .hero-primary {
    padding: 12px 13px;
    font-size: 11px;
  }

  .text-link {
    font-size: 11px;
  }

  .endpoint-card {
    padding: 20px 17px 15px;
  }

  .endpoint-row {
    gap: 8px;
  }

  .endpoint-row code {
    font-size: 10px;
  }

  .endpoint-title {
    font-size: 23px;
  }

  .steps-section,
  .pricing-section,
  .faq-section {
    padding: 72px 22px;
  }

  .section-intro {
    margin-bottom: 30px;
  }

  .section-intro h2 {
    font-size: 36px;
  }

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

  .work-step {
    min-height: 0;
    padding: 20px 0 23px;
  }

  .work-step + .work-step {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .step-index {
    margin-bottom: 19px;
  }

  .plan-card {
    padding: 24px 20px;
  }

  .marketing-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 23px 20px 30px;
  }

  .marketing-footer p {
    line-height: 1.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

@media (prefers-color-scheme: dark) {
  .marketing-page {
    --paper: #111923;
    --ink: #e8edf5;
    --muted: #a2adbc;
    --line: #2e3a4a;
    --accent: #91adff;
    --accent-dark: #b5c7ff;
    --accent-hover: #a8bdff;
    --soft: #1e2d47;
    --surface: #182332;
    --surface-2: #151f2d;
    --hero-from: #131d2b;
    --hero-to: #18273b;
    --panel: #1e314c;
    --panel-text: #f4f7fc;
    --panel-muted: #b5c4d9;
    --panel-line: #425976;
    --panel-code: #dce8ff;
    --panel-accent: #a9c4ff;
  }

  .marketing-hero::after {
    border-color: #ffffff18;
    box-shadow: 0 0 0 44px #ffffff0a, 0 0 0 88px #ffffff06;
  }

  .marketing .button.primary {
    color: #111923;
  }

  .plan-card {
    box-shadow: 0 8px 28px #00000018;
  }
}
