:root {
  --ink: #17171d;
  --ink-soft: #34343d;
  --muted: #6f6e78;
  --paper: #f5f4ef;
  --surface: #fff;
  --line: #deded8;
  --line-dark: #c9c8c1;
  --violet: #6657e8;
  --violet-dark: #4d3ed0;
  --violet-soft: #eeebff;
  --lime: #c9f172;
  --shadow: 0 18px 60px rgba(28, 27, 36, 0.08);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button {
  color: inherit;
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

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

:focus-visible {
  outline: 3px solid rgba(102, 87, 232, 0.4);
  outline-offset: 3px;
}

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

.site-header {
  border-bottom: 1px solid rgba(23, 23, 29, 0.08);
  background: rgba(245, 244, 239, 0.94);
}

.header-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  font-weight: 780;
  letter-spacing: -0.025em;
}

.brand b {
  color: var(--violet);
}

.brand-logo {
  display: block;
  width: 148px;
  height: auto;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 11px;
  background: var(--lime);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 15px;
  font-weight: 900;
  transform: rotate(-2deg);
}

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

.text-link {
  padding: 10px 12px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 680;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 760;
  transition: transform 160ms var(--ease-out), box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 10px 28px rgba(102, 87, 232, 0.24);
}

.button-primary:hover {
  background: var(--violet-dark);
}

.button-secondary {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.5);
}

.detail-hero {
  display: grid;
  min-height: 590px;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.7fr);
  align-items: center;
  gap: 70px;
  padding-block: 76px;
}

.eyebrow {
  margin-bottom: 24px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.12em;
}

h1 {
  max-width: 780px;
  margin-bottom: 25px;
  font-size: clamp(48px, 5.8vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

h1 span {
  color: var(--violet);
}

.hero-lead {
  max-width: 660px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

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

.price-card {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.price-card-top {
  padding: 32px;
  background: var(--ink);
  color: #fff;
}

.price-card-top span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.price-card-top strong {
  font-size: 54px;
  letter-spacing: -0.04em;
}

.price-card-top small {
  margin-left: 5px;
  color: var(--lime);
  font-size: 14px;
  font-weight: 760;
}

.price-list {
  display: grid;
  margin: 0;
  padding: 8px 28px 24px;
}

.price-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 17px;
  border-bottom: 1px solid var(--line);
}

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

.price-list dt {
  color: var(--muted);
  font-size: 13px;
}

.price-list dd {
  margin: 0;
  text-align: right;
  font-size: 13px;
  font-weight: 760;
}

.proof-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}

.proof-bar div {
  display: grid;
  min-height: 86px;
  place-items: center;
  padding: 18px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.proof-bar div + div {
  border-left: 1px solid var(--line);
}

.section {
  padding-block: 94px;
  border-bottom: 1px solid rgba(23, 23, 29, 0.08);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 40px;
}

h2 {
  margin-bottom: 17px;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-heading p,
.section-copy {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

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

.feature-card {
  min-height: 210px;
  padding: 26px;
  border: 1px solid var(--line-dark);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  transition: transform 200ms var(--ease-out), border-color 180ms ease, background-color 180ms ease;
}

.feature-card:hover {
  border-color: rgba(102, 87, 232, 0.5);
  background: #fff;
  transform: translateY(-4px);
}

.feature-card span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 32px;
  border-radius: 11px;
  background: var(--violet-soft);
  color: var(--violet-dark);
  font-size: 12px;
  font-weight: 850;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

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

.api-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(500px, 1.22fr);
  align-items: center;
  gap: 64px;
}

.steps {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.step {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 14px;
  font-weight: 680;
}

.step i {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.code-panel {
  overflow: hidden;
  border: 1px solid #303039;
  border-radius: 24px;
  background: #17171d;
  box-shadow: var(--shadow);
  color: #f8f7ff;
}

.code-head {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px;
  border-bottom: 1px solid #303039;
  color: #aaa8b5;
  font-size: 12px;
}

.copy-button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid #45434e;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 720;
}

.copy-button:hover {
  border-color: var(--lime);
  color: var(--lime);
}

pre {
  margin: 0;
  overflow: auto;
  padding: 26px 24px 30px;
  font-size: 13px;
  line-height: 1.85;
  white-space: pre;
}

.code-purple {
  color: #b8adff;
}

.code-green {
  color: #c9f172;
}

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

.related-link {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  font-weight: 760;
  transition: border-color 180ms ease, transform 180ms var(--ease-out);
}

.related-link:hover {
  border-color: var(--violet);
  transform: translateY(-3px);
}

.related-link span {
  color: var(--violet-dark);
}

.cta {
  padding-block: 70px 96px;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  padding: 46px 50px;
  border-radius: 28px;
  background: var(--violet);
  color: #fff;
  box-shadow: 0 22px 60px rgba(102, 87, 232, 0.24);
}

.cta-panel h2 {
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 46px);
}

.cta-panel p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  line-height: 1.7;
}

.button-light {
  background: #fff;
  color: var(--ink);
}

footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
}

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

.footer-links a:hover {
  color: var(--violet-dark);
}

@media (max-width: 900px) {
  .detail-hero,
  .api-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .price-card {
    max-width: 560px;
  }

  .feature-grid,
  .related-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .header-nav .text-link {
    display: none;
  }

  .detail-hero {
    min-height: 0;
    padding-block: 58px 66px;
  }

  h1 {
    font-size: clamp(43px, 13vw, 58px);
  }

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

  .proof-bar {
    grid-template-columns: 1fr;
    padding-block: 8px;
  }

  .proof-bar div {
    min-height: 56px;
    justify-items: start;
    text-align: left;
  }

  .proof-bar div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section {
    padding-block: 76px;
  }

  .cta-panel {
    grid-template-columns: 1fr;
    padding: 36px 28px;
  }

  .footer-inner {
    min-height: 122px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 440px) {
  .brand {
    font-size: 17px;
  }

  .brand-logo {
    width: 132px;
  }

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

  .header-nav .button {
    min-height: 40px;
    padding-inline: 14px;
    font-size: 12px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .price-card-top strong {
    font-size: 46px;
  }

  .code-head {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
