:root {
  color-scheme: dark;
  --bg: #07111d;
  --panel: rgba(11, 26, 44, 0.82);
  --panel-border: rgba(120, 180, 255, 0.18);
  --text: #e9f2ff;
  --muted: #9ab1c8;
  --accent: #53b6ff;
  --accent-2: #6ef0b8;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    "SF Pro Display",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  background:
    radial-gradient(circle at top left, rgba(83, 182, 255, 0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(110, 240, 184, 0.14), transparent 28%),
    linear-gradient(180deg, #07111d 0%, #091623 100%);
  color: var(--text);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 17, 29, 0.78);
  backdrop-filter: blur(16px);
}

.site-shell {
  max-width: 1120px;
  margin: 0 auto;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.top-nav a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a.active {
  color: var(--text);
}

.hero {
  padding: 72px 24px 28px;
}

.hero-home {
  padding-top: 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.showcase-section {
  padding-top: 6px;
}

.showcase-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.75fr);
  gap: 22px;
  align-items: stretch;
}

.browser-mockup,
.side-card {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 18, 30, 0.84);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.browser-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.browser-dots {
  display: inline-flex;
  gap: 8px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.browser-address {
  min-width: 0;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-family: "SFMono-Regular", "Consolas", monospace;
  font-size: 13px;
}

.browser-canvas {
  position: relative;
  min-height: 520px;
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(83, 182, 255, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(12, 28, 47, 0.92), rgba(8, 23, 35, 0.98));
}

.canvas-hero {
  max-width: 600px;
  padding: 28px;
  border-radius: 26px;
  border: 1px solid rgba(110, 240, 184, 0.28);
  background: rgba(16, 42, 54, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.canvas-eyebrow {
  margin: 0 0 12px;
  color: #7cdfff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.canvas-hero h3 {
  margin: 0;
  font-size: clamp(28px, 4.4vw, 48px);
  line-height: 1.02;
}

.canvas-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: 620px;
}

.canvas-title-line {
  display: block;
}

.canvas-target {
  position: relative;
  border: 2px dashed rgba(110, 240, 184, 0.92);
  background: rgba(110, 240, 184, 0.07);
}

.canvas-title-target {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  max-width: 100%;
  padding: 14px 60px 14px 18px;
  border-radius: 24px;
}

.buttons-target {
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 24px;
}

.canvas-hero p {
  margin: 16px 0 0;
  max-width: 480px;
  color: var(--muted);
  line-height: 1.7;
}

.canvas-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 0;
}

.canvas-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 154px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 700;
}

.canvas-button.primary {
  background: linear-gradient(135deg, #53b6ff 0%, #6ef0b8 100%);
  color: #062136;
}

.annotation-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #53b6ff 0%, #2f79ff 100%);
  border: 3px solid rgba(255, 255, 255, 0.92);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 12px 30px rgba(27, 97, 255, 0.28);
}

.canvas-title-target .annotation-badge {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
}

.annotation-badge-secondary {
  position: absolute;
  left: 16px;
  bottom: -17px;
}

.floating-toolbar {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  padding: 4px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(22, 22, 22, 0.96);
  box-shadow:
    0 8px 28px rgba(15, 23, 42, 0.28),
    0 2px 8px rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(14px);
}

.preview-toolbar-handle {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-right: 2px;
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.66);
}

.preview-toolbar-glyph {
  width: 18px;
  height: 18px;
}

.preview-toolbar-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.72);
}

.preview-toolbar-button.is-active {
  background: #60a5fa;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.preview-toolbar-button.is-active::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 17px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
}

.preview-toolbar-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.preview-toolbar-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: #3b82f6;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92);
}

.preview-toolbar-count-secondary {
  background: #3b82f6;
}

.preview-toolbar-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92);
}

.preview-toolbar-divider {
  width: 1px;
  height: 18px;
  margin: 0 2px;
  background: rgba(255, 255, 255, 0.08);
}

.side-stack {
  display: grid;
  gap: 18px;
}

.side-card {
  padding: 22px;
}

.side-label {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.preview-panel h3 {
  margin: 0 0 14px;
  font-size: 28px;
}

.metrics-card {
  display: grid;
  gap: 14px;
}

.metric-chip {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-value {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
}

.metric-label {
  color: var(--muted);
  font-size: 14px;
}

.mini-card {
  padding: 20px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.mini-card h3 {
  margin: 8px 0 8px;
  font-size: 24px;
}

.mini-label {
  margin: 0;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 860px;
  font-size: 54px;
  line-height: 0.98;
}

.subtitle {
  margin: 20px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

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

.button {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: 160ms ease;
  padding: 12px 18px;
  font-weight: 600;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent) 0%, #2f79ff 100%);
  border-color: transparent;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
}

.language-switch {
  position: relative;
  display: inline-flex;
  margin-top: 18px;
}

.nav-bar .language-switch {
  margin-top: 0;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: 160ms ease;
}

.lang-trigger:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.lang-trigger:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
}

.lang-chevron {
  width: 12px;
  height: 12px;
  color: var(--muted);
  transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-trigger[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 28, 48, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(-6px) scale(0.96);
  pointer-events: none;
  transition: opacity 180ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 180ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.lang-menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 120ms ease;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.06);
}

.lang-check {
  width: 14px;
  height: 14px;
  color: var(--accent);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 150ms ease, transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-option.is-selected .lang-check {
  opacity: 1;
  transform: scale(1);
}

.section {
  padding: 8px 24px 28px;
}

.section-muted {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

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

.section-head p {
  color: var(--muted);
  line-height: 1.75;
}

.feature-grid,
.package-grid,
.steps,
.doc-links,
.compare-grid,
.audience-grid,
.faq-list {
  display: grid;
  gap: 20px;
}

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

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

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

.doc-links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

.feature-card,
.package-card,
.step-card,
.doc-card,
.compare-card,
.audience-card,
.cta-card,
.faq-item {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.feature-card h3,
.package-card h3,
.step-card h3,
.doc-card h3,
.compare-card h3,
.audience-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.feature-card p,
.package-card p,
.step-card p,
.doc-card p,
.compare-card p,
.audience-card p,
.cta-card p,
.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.compare-card.accent {
  background:
    linear-gradient(180deg, rgba(83, 182, 255, 0.12), rgba(83, 182, 255, 0.04)),
    var(--panel);
}

.plain-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.plain-list li + li {
  margin-top: 6px;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, #2f79ff 100%);
  font-weight: 800;
}

.doc-card {
  color: inherit;
  text-decoration: none;
}

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

.faq-list {
  grid-template-columns: 1fr;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  font-size: 18px;
  font-weight: 700;
}

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

.faq-item[open] summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-item p {
  padding: 18px 22px 22px;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.doc-page {
  padding: 30px 24px 80px;
}

.doc-hero {
  margin-bottom: 22px;
}

.doc-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
}

.toc {
  position: sticky;
  top: 24px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.toc a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.toc a:hover {
  color: var(--text);
}

.content {
  display: grid;
  gap: 20px;
}

.card {
  padding: 26px;
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

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

.card ul,
.card ol {
  margin: 14px 0 0;
  padding-left: 22px;
}

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

.code-block {
  overflow-x: auto;
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.code-block.compact {
  margin-top: 18px;
}

pre {
  margin: 0;
  font-family: "SFMono-Regular", "Consolas", monospace;
  font-size: 14px;
  line-height: 1.6;
  color: #d8f3ff;
}

.link-list {
  list-style: none;
  padding: 0;
}

.link-list li + li {
  margin-top: 10px;
}

.link-list a {
  color: var(--accent-2);
  text-decoration: none;
}

.link-list a:hover {
  text-decoration: underline;
}

.site-footer {
  padding: 16px 24px 36px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

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

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .nav-bar,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-grid,
  .showcase-shell,
  .doc-layout,
  .feature-grid,
  .package-grid,
  .steps,
  .doc-links,
  .compare-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .two-up {
    grid-template-columns: 1fr;
  }

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .browser-canvas {
    min-height: 460px;
    padding: 20px;
  }

  .canvas-title-target {
    padding-right: 62px;
  }

  .buttons-target {
    width: calc(100% - 8px);
  }

  .canvas-buttons {
    width: 100%;
  }

  .floating-toolbar {
    left: 20px;
    right: 20px;
    bottom: 18px;
    justify-content: center;
    gap: 3px;
    overflow-x: auto;
  }
}
