:root {
  color-scheme: light;
  --bg: #f7fbff;
  --ink: #07122f;
  --muted: #53627d;
  --line: rgba(72, 86, 128, 0.16);
  --cyan: #14d6e8;
  --purple: #8d42ff;
  --blue: #2f6cff;
  --green: #19c88a;
  --panel: rgba(255, 255, 255, 0.82);
  --shadow: 0 24px 70px rgba(36, 63, 126, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter,
    "PingFang SC",
    "Microsoft YaHei",
    Arial,
    sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(20, 214, 232, 0.22), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(141, 66, 255, 0.24), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, var(--bg) 42%, #eef4ff 100%);
  min-height: 100vh;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 900;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.nav a {
  padding: 10px 12px;
  border-radius: 10px;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(47, 108, 255, 0.08);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(56px, 8vw, 108px) clamp(20px, 5vw, 72px) 44px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 920px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-text {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 900;
  border: 1px solid var(--line);
}

.button.primary {
  color: white;
  border: 0;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  box-shadow: 0 16px 34px rgba(74, 91, 255, 0.28);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.78);
}

.hero-panel,
.code-card,
.steps article,
.notice,
.faq details {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  position: relative;
  min-height: 420px;
  padding: 28px;
  border-radius: 28px;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(141, 66, 255, 0.42), rgba(20, 214, 232, 0.32));
  filter: blur(18px);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 9px 13px;
  color: #078562;
  border-radius: 999px;
  background: rgba(25, 200, 138, 0.12);
  font-weight: 900;
}

.status span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(25, 200, 138, 0.15);
}

dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

dl div {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 18px;
  font-weight: 900;
}

.section {
  padding: 56px clamp(20px, 5vw, 72px);
}

.section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: 0;
}

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

.steps article {
  min-height: 250px;
  padding: 24px;
  border-radius: 24px;
}

.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  color: white;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  font-weight: 900;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.steps p,
.split p,
.notice p,
.faq p {
  color: var(--muted);
  line-height: 1.75;
}

.steps a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--blue);
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  align-items: center;
  gap: 28px;
}

.code-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 24px;
}

.code-card h3 {
  margin-right: 84px;
}

.copy {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 12px;
  cursor: pointer;
  color: white;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  font-weight: 900;
}

pre {
  margin: 0;
  overflow-x: auto;
  color: #eaf2ff;
  border-radius: 18px;
  background: #08142f;
}

code {
  display: block;
  padding: 22px;
  font-family:
    "JetBrains Mono",
    Consolas,
    monospace;
  font-size: 14px;
  line-height: 1.75;
  white-space: pre;
}

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

.notice {
  padding: 24px;
  border-radius: 24px;
}

.notice p {
  margin: 0;
  font-size: 18px;
}

.faq {
  display: grid;
  gap: 14px;
}

.faq details {
  padding: 20px 22px;
  border-radius: 20px;
}

summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.faq p {
  margin: 14px 0 0;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer span {
  color: var(--ink);
  font-weight: 900;
}

.footer a {
  color: var(--blue);
  font-weight: 900;
}

@media (max-width: 980px) {
  .hero,
  .split {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
  }

  h1 {
    font-size: 42px;
  }

  .hero {
    padding-top: 40px;
  }

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

  .button {
    width: 100%;
  }

  .hero-panel {
    min-height: auto;
  }
}
