:root {
  --pink: #ff75b7;
  --pink-strong: #ff4fa4;
  --pink-soft: #ffd7ea;
  --cream: #fffaf4;
  --violet: #b69cff;
  --blue: #8ee8ff;
  --ink: #332438;
  --muted: #7d667f;
  --glass: rgba(255, 255, 255, 0.62);
  --border: rgba(255, 255, 255, 0.82);
  --shadow: 0 24px 80px rgba(255, 97, 170, 0.24);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 148, 197, 0.5), transparent 30rem),
    radial-gradient(circle at 86% 14%, rgba(142, 232, 255, 0.45), transparent 28rem),
    radial-gradient(circle at 45% 58%, rgba(182, 156, 255, 0.28), transparent 34rem),
    linear-gradient(135deg, #fff8fb 0%, #fff4f8 42%, #f6fbff 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 111, 183, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 200, 255, 0.09) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 1px, transparent 1.5px);
  background-size: 44px 44px, 44px 44px, 96px 96px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2));
}

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

.page-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-shell {
  position: sticky;
  top: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 16px 0 40px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 46px rgba(255, 117, 183, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--violet) 62%, var(--blue));
  box-shadow: 0 12px 28px rgba(255, 79, 164, 0.32);
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #5a465d;
}

.nav-links a {
  padding: 10px 13px;
  border-radius: 999px;
  white-space: nowrap;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.82);
}

.nav-pill {
  color: #fff !important;
  background: linear-gradient(135deg, var(--pink-strong), var(--violet));
  box-shadow: 0 10px 26px rgba(255, 79, 164, 0.2);
}

.nav-pill-soft {
  color: #5b3e65 !important;
  background: rgba(255, 255, 255, 0.9);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.86fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100vh - 148px);
  padding-bottom: 54px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--pink-strong);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 13px;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(46px, 8vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 0;
}

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

.hero-subtitle {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 24px;
}

.btn,
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover,
.copy-btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--pink-strong), #cf87ff);
  box-shadow: 0 18px 46px rgba(255, 79, 164, 0.32);
}

.btn-secondary {
  color: #58314f;
  background: linear-gradient(135deg, #fff, var(--pink-soft));
  box-shadow: 0 16px 38px rgba(255, 117, 183, 0.18);
}

.btn-ghost {
  color: #5e4962;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.82);
}

.base-url-card,
.glass-card,
.terminal-card {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--glass);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.base-url-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  padding: 12px 14px 12px 18px;
  color: var(--muted);
}

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

.base-url-card code,
.example-row code {
  overflow-wrap: anywhere;
  color: #51305a;
  font-weight: 800;
}

.copy-btn {
  min-height: 36px;
  padding: 0 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  font-size: 13px;
}

.terminal-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.terminal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.72), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(142, 232, 255, 0.34), transparent 14rem);
  pointer-events: none;
}

.terminal-top,
.terminal-status,
.terminal-card pre {
  position: relative;
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.terminal-top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pink);
}

.terminal-top span:nth-child(2) {
  background: var(--violet);
}

.terminal-top span:nth-child(3) {
  background: var(--blue);
}

.terminal-top strong {
  margin-left: auto;
  color: #7e6683;
  font-size: 13px;
}

.terminal-card pre,
.code-card pre {
  margin: 0;
  overflow-x: auto;
  color: #493050;
  line-height: 1.75;
  white-space: pre;
}

.terminal-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.terminal-status span {
  padding: 8px 10px;
  border-radius: 999px;
  color: #3a6573;
  background: rgba(142, 232, 255, 0.32);
  font-size: 12px;
  font-weight: 800;
}

.section-grid,
.examples,
.faq {
  padding: 72px 0;
}

.section-heading {
  margin-bottom: 28px;
}

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

.glass-card {
  padding: 24px;
}

.glass-card b {
  color: var(--pink-strong);
  font-size: 28px;
}

.glass-card p {
  color: var(--muted);
  line-height: 1.7;
}

.glass-card a {
  color: var(--pink-strong);
  font-weight: 850;
}

.example-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
}

.example-card {
  display: grid;
  gap: 18px;
}

.example-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.code-card {
  position: relative;
}

.code-card:last-child {
  grid-column: span 2;
}

.floating-copy {
  position: absolute;
  top: 16px;
  right: 16px;
}

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

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

details p {
  margin: 14px 0 0;
}

.auth-page {
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.auth-shell {
  width: min(460px, 100%);
}

.auth-brand {
  justify-content: center;
  margin-bottom: 20px;
}

.auth-card {
  display: grid;
  gap: 24px;
  padding: 30px;
}

.auth-card h1 {
  font-size: 34px;
  line-height: 1.12;
  margin-bottom: 10px;
}

.muted {
  color: var(--muted);
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: #644d68;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255, 117, 183, 0.22);
  border-radius: 18px;
  padding: 0 16px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
}

input:focus {
  border-color: rgba(255, 79, 164, 0.65);
  box-shadow: 0 0 0 5px rgba(255, 117, 183, 0.16);
}

.captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 10px;
}

.captcha-image {
  height: 50px;
  padding: 0;
  border: 1px solid rgba(255, 117, 183, 0.22);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

.captcha-image img {
  width: 100%;
  height: 100%;
  display: block;
}

.submit-btn {
  width: 100%;
  min-height: 52px;
}

.submit-btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-message.error {
  color: #c7356b;
}

.form-message.success {
  color: #168065;
}

.auth-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.auth-foot a {
  color: var(--pink-strong);
  font-weight: 850;
}

@media (max-width: 980px) {
  .nav-shell {
    align-items: flex-start;
    border-radius: 28px;
  }

  .nav-links {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 28px;
  }

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

  .code-card:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .nav-shell,
  .nav-links {
    flex-direction: column;
    align-items: stretch;
  }

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

  h1 {
    font-size: 44px;
  }

  .base-url-card,
  .hero-actions,
  .terminal-status {
    width: 100%;
  }

  .base-url-card {
    flex-wrap: wrap;
  }

  .steps,
  .example-grid,
  .code-card:last-child {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

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

  .floating-copy {
    position: static;
    margin-top: 14px;
  }
}
