:root {
  --brand-primary: #6c5ce7;
  --brand-primary-rgb: 108, 92, 231;
  --brand-primary-muted: rgba(108, 92, 231, 0.12);
  --brand-primary-strong: #5649c0;
  --text-primary: rgba(18, 16, 26, 0.95);
  --text-body: #2a2640;
  --text-secondary: #6b6580;
  --text-muted: #857e99;
  --text-on-primary: #ffffff;
  --surface-base: rgba(255, 255, 255, 0.55);
  --surface-soft: rgba(247, 245, 255, 0.4);
  --bg-page: #f7f5ff;
  --border-subtle: rgba(18, 16, 26, 0.05);
  --border-default: rgba(18, 16, 26, 0.09);
  --shadow-card: 0 4px 12px rgba(48, 36, 120, 0.04), 0 14px 36px rgba(48, 36, 120, 0.08);
  --radius-md: 8px;
  --radius-card: 16px;
  --radius-pill: 999px;
  --font-display: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-sans: "Manrope", "PingFang SC", "Microsoft YaHei", sans-serif;
  --scrollbar-size: 8px;
  --scrollbar-track: transparent;
  --scrollbar-thumb: rgba(0, 0, 0, 0.18);
  --scrollbar-thumb-hover: rgba(0, 0, 0, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 180ms;
  --success: #27ae60;
  --warning: #f5a524;
  --danger: #e74c3c;
}

[data-theme="dark"] {
  --text-primary: rgba(255, 255, 255, 0.92);
  --text-body: #e2dff0;
  --text-secondary: #b0a9c8;
  --text-muted: #9a93b0;
  --surface-base: rgba(26, 22, 42, 0.62);
  --surface-soft: rgba(36, 30, 56, 0.58);
  --bg-page: #0c0a14;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.10);
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.45);
  --scrollbar-thumb: rgba(255, 255, 255, 0.14);
  --scrollbar-thumb-hover: rgba(255, 255, 255, 0.26);
  --brand-primary-muted: rgba(var(--brand-primary-rgb), 0.22);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
*::-webkit-scrollbar { width: var(--scrollbar-size); height: var(--scrollbar-size); }
*::-webkit-scrollbar-track { background: var(--scrollbar-track); }
*::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background-color: var(--scrollbar-thumb-hover); }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
html, body { margin: 0; padding: 0; }
::selection { background: var(--brand-primary); color: #fff; }

body {
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.625;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 70% at 8% -5%, rgba(var(--brand-primary-rgb), 0.28), transparent 55%),
    radial-gradient(ellipse 70% 55% at 98% 12%, rgba(162, 155, 254, 0.22), transparent 50%),
    radial-gradient(ellipse 60% 50% at 50% 105%, rgba(var(--brand-primary-rgb), 0.14), transparent 55%),
    radial-gradient(ellipse 45% 40% at 75% 55%, rgba(162, 155, 254, 0.1), transparent 60%),
    linear-gradient(180deg, #f4f0ff 0%, #f7f5ff 42%, #faf8ff 100%);
}
[data-theme="dark"] body::before {
  background:
    radial-gradient(ellipse 90% 70% at 8% -5%, rgba(var(--brand-primary-rgb), 0.38), transparent 55%),
    radial-gradient(ellipse 70% 55% at 98% 12%, rgba(162, 155, 254, 0.22), transparent 50%),
    radial-gradient(ellipse 60% 50% at 50% 105%, rgba(var(--brand-primary-rgb), 0.2), transparent 55%),
    radial-gradient(ellipse 45% 40% at 75% 55%, rgba(162, 155, 254, 0.12), transparent 60%),
    linear-gradient(180deg, #100e1a 0%, #0e0c16 45%, #0c0a14 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  background-image: radial-gradient(rgba(var(--brand-primary-rgb), 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
}
[data-theme="dark"] body::after {
  opacity: 0.28;
  background-image: radial-gradient(rgba(162, 155, 254, 0.12) 1px, transparent 1px);
}

#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
#particles .particles-container,
#particles.particles-container {
  width: 100%;
  height: 100%;
}

.container {
  max-width: 1160px;
  width: calc(100% - 48px);
  margin: 0 auto;
  padding: 28px 0 100px;
  position: relative;
  z-index: 1;
}

a { color: var(--brand-primary); }
button { font-family: inherit; cursor: pointer; }
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: inherit;
  box-sizing: border-box;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  margin-bottom: 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eyebrow i { font-size: 11px; color: var(--text-secondary); }
[data-theme="dark"] .eyebrow {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
}

h1, h2, h3 { font-family: var(--font-display); }
h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 14px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1.125rem;
  margin: 0 0 10px;
  line-height: 1.35;
  font-weight: 700;
}
p { margin: 0; font-size: 15px; color: var(--text-body); line-height: 1.65; }
.section-lead {
  max-width: 40em;
  color: var(--text-secondary);
  margin: 0 auto 36px;
  text-align: center;
}
.section > .eyebrow {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.section > h2 { text-align: center; }
.section { margin-top: 88px; padding: 0; }
.anchor-offset { scroll-margin-top: 88px; }

.section-split {
  display: grid;
  grid-template-columns: minmax(200px, 0.85fr) minmax(0, 1.35fr);
  gap: 40px 56px;
  align-items: start;
}
.section-split__intro .eyebrow { margin-left: 0; margin-right: 0; }
.section-split__intro h2 { text-align: left; margin: 0 0 14px; }
.section-split__intro .section-lead {
  margin: 0;
  text-align: left;
  max-width: 28em;
}

.nav-shell {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 20px 0 0;
  overflow: visible;
  transition: padding-top .28s var(--ease);
}
.nav-shell:has(.top-nav.is-scrolled) {
  padding-top: 10px;
}
.nav-shell__inner {
  width: calc(100% - 48px);
  max-width: 1160px;
  margin: 0 auto;
}

.card.top-nav,
.feature-card,
.step-pill,
.export-card,
.faq-item,
.mode-card,
.template-card,
.theme-studio,
.value-panel,
.price-card,
.get-access-panel {
  background: var(--surface-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: visible;
  transition: border-color var(--duration) var(--ease);
}
.card.top-nav {
  overflow: hidden;
}
.value-panel { overflow: hidden; }
.feature-card:hover,
.step-pill:hover,
.export-card:hover,
.faq-item:hover,
.mode-card:hover,
.template-card:hover,
.value-panel:hover,
.price-card:hover,
.get-access-panel:hover {
  border-color: color-mix(in srgb, var(--brand-primary) 35%, var(--border-default));
}

.section--hidden {
  display: none !important;
}

.spotlight-host {
  --mouse-x: 50%;
  --mouse-y: 50%;
  --spotlight-size: 400px;
  --spotlight-alpha: 0.11;
  --spotlight-mid: 0.04;
  position: relative;
  overflow: visible;
}
.spotlight-glow {
  position: absolute !important;
  inset: 0;
  border-radius: inherit;
  z-index: 3 !important;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
  background: radial-gradient(
    var(--spotlight-size) circle at var(--mouse-x) var(--mouse-y),
    rgba(var(--brand-primary-rgb), var(--spotlight-alpha)),
    rgba(var(--brand-primary-rgb), var(--spotlight-mid)) 42%,
    transparent 72%
  );
}
.spotlight-host:hover > .spotlight-glow { opacity: 1; }
.spotlight-host:has(.spotlight-host:hover) > .spotlight-glow { opacity: 0; }
.spotlight-host > *:not(.spotlight-glow) {
  position: relative;
  z-index: 1;
}
[data-theme="dark"] .spotlight-host {
  --spotlight-alpha: 0.18;
  --spotlight-mid: 0.07;
}

.top-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 14px 20px;
  transition: width .28s var(--ease), margin .28s var(--ease), padding .28s var(--ease), max-width .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.top-nav.is-scrolled {
  width: calc(100% + 80px);
  max-width: calc(100% + 80px);
  margin-left: -40px;
  margin-right: -40px;
  padding: 14px 28px;
  box-shadow: 0 8px 24px rgba(48, 36, 120, 0.1), 0 18px 48px rgba(48, 36, 120, 0.12);
  border-color: color-mix(in srgb, var(--brand-primary) 18%, var(--border-subtle));
}
[data-theme="dark"] .top-nav.is-scrolled {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.42), 0 24px 64px rgba(0, 0, 0, 0.28);
  border-color: color-mix(in srgb, var(--brand-primary) 22%, var(--border-subtle));
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text-primary);
  justify-self: start;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -0.02em;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.menu {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.menu::-webkit-scrollbar { display: none; }
.menu a {
  text-decoration: none;
  height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  color: var(--text-body);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .15s ease;
}
.menu a:hover { color: var(--brand-primary); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .12s var(--ease);
}
.btn:disabled,
.btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--text-on-primary);
  box-shadow: 0 8px 20px rgba(var(--brand-primary-rgb), 0.28);
}
.btn-primary:hover {
  background: var(--brand-primary-strong);
  border-color: var(--brand-primary-strong);
}
.btn-primary:active,
.btn-secondary:active { transform: scale(0.98); }
.btn-secondary {
  background: rgba(var(--brand-primary-rgb), 0.14);
  border-color: rgba(var(--brand-primary-rgb), 0.28);
  color: var(--brand-primary);
}
.btn-secondary:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--text-on-primary);
}
.btn-outline {
  background: transparent;
  border-color: var(--border-default);
  color: var(--text-secondary);
}
.btn-outline:hover {
  border-color: var(--brand-primary);
  background: var(--brand-primary-muted);
  color: var(--brand-primary);
}
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; }
.header-actions .btn-icon {
  width: 32px;
  padding: 0;
  justify-content: center;
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  margin: 0;
  padding: 24px 22px 22px;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-primary);
  opacity: 0.92;
  pointer-events: none;
  z-index: 2;
}
.feature-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--text-on-primary);
  background: var(--brand-primary);
  font-size: 14px;
}
.feature-card h3 { margin: 0 0 10px; }
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.export-card {
  padding: 28px 22px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: border-color .15s ease, box-shadow .2s ease;
}
.export-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 0 18px 40px rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .export-card:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}
.export-ext {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(var(--brand-primary-rgb), 0.28);
  background: var(--brand-primary-muted);
  color: var(--brand-primary-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  font-family: ui-monospace, Consolas, monospace;
}
[data-theme="dark"] .export-ext {
  background: rgba(var(--brand-primary-rgb), 0.14);
  border-color: rgba(var(--brand-primary-rgb), 0.32);
  color: var(--brand-primary);
}
.export-card h3 { font-size: 16px; margin: 0 0 10px; }
.export-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 16em;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.step-pill {
  padding: 28px 18px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.step-pill__num {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-primary);
  color: #fff;
  border-radius: 12px;
  font-weight: 800;
  font-size: 16px;
  font-family: var(--font-display);
  box-shadow: 0 8px 20px rgba(var(--brand-primary-rgb), 0.28);
}
.step-pill__title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.step-pill__meta {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { overflow: hidden; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary .faq-q {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.faq-item summary .faq-index {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--brand-primary);
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(0, 0, 0, 0.02);
  color: var(--text-secondary);
  font-size: 15px;
}
[data-theme="dark"] .faq-item summary::after {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}
.faq-item[open] summary::after {
  content: "×";
  color: var(--brand-primary);
  border-color: rgba(var(--brand-primary-rgb), 0.18);
  background: rgba(var(--brand-primary-rgb), 0.06);
}
.faq-item .faq-a {
  padding: 0 18px 18px 52px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.cta-band {
  margin-top: 88px;
  padding: 44px 40px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  text-align: left;
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-card);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(var(--brand-primary-rgb), 0.3);
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  top: -56px;
  right: -40px;
  pointer-events: none;
}
.cta-band__copy,
.cta-band .actions { position: relative; z-index: 1; }
.cta-band h2 {
  color: #fff;
  margin: 0 0 8px;
  font-size: clamp(24px, 3.5vw, 32px);
}
.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  max-width: 36em;
  font-size: 15px;
}
.cta-band .actions { margin-top: 0; justify-content: flex-end; display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-primary {
  background: #fff;
  border-color: #fff;
  color: var(--brand-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.cta-band .btn-primary:hover {
  background: #fff;
  color: var(--brand-primary-strong);
}
.cta-band .btn-outline {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}
.cta-band .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.floating-tools {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tool-btn {
  width: 56px;
  min-height: 56px;
  padding: 8px 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: var(--surface-base);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  color: var(--brand-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.tool-btn i { font-size: 15px; color: var(--brand-primary); }
.tool-btn:hover {
  color: var(--text-on-primary);
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}
.tool-btn:hover i { color: var(--text-on-primary); }
.tool-btn.back-to-top {
  display: none;
  opacity: 0;
  pointer-events: none;
}
.tool-btn.back-to-top.visible {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
}
.modal.is-open { display: block; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
}
[data-theme="dark"] .modal-overlay { background: rgba(0, 0, 0, 0.62); }
.modal-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(360px, calc(100vw - 40px));
  z-index: 1;
}
.modal-panel {
  position: relative;
  width: 100%;
  border-radius: var(--radius-card);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
  text-align: center;
  overflow: visible;
}
[data-theme="dark"] .modal-panel {
  background: #161322;
  border-color: rgba(255, 255, 255, 0.12);
}
.modal.is-open .modal-dialog { animation: modal-in 220ms var(--ease) both; }
@keyframes modal-in {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 8px)) scale(0.99); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.modal-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.78);
  color: #ffffff;
}
.modal-close:active {
  transform: scale(0.96);
}
.modal-wechat-body { padding: 36px 22px 40px; }
.modal-wechat-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}
.modal-wechat-desc {
  margin: 0 0 22px;
  padding:0 12px;
  font-size: 14px;
  color: var(--text-secondary);
}
.modal-wechat-qr {
  margin: 0 auto;
  display: inline-block;
  padding: 4px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  line-height: 0;
}
[data-theme="dark"] .modal-wechat-qr {
  border-color: rgba(255, 255, 255, 0.12);
}
.modal-wechat-qr img {
  display: block;
  width: 200px;
  height: 200px;
  border-radius: 0;
  object-fit: contain;
}
body.modal-open { overflow: hidden; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.field input,
.field textarea,
.combo {
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.field textarea { height: auto; padding: 10px 12px; min-height: 88px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.combo:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-primary-muted);
}
.field-error {
  font-size: 12px;
  color: var(--danger);
}
.field.is-error input,
.field.is-error textarea {
  border-color: var(--danger);
}
[data-theme="dark"] .field input,
[data-theme="dark"] .field textarea,
[data-theme="dark"] .combo {
  background: rgba(26, 22, 42, 0.92);
}

.check,
.radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-body);
  cursor: pointer;
}
.check input,
.radio input {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border-default);
  border-radius: 4px;
  background: #fff;
  display: grid;
  place-content: center;
}
.radio input { border-radius: 50%; }
.check input:checked,
.radio input:checked {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
}
.check input:checked::after {
  content: "";
  width: 8px;
  height: 5px;
  border: 2px solid #fff;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}
.radio input:checked::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.toggle {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  border: 0;
  background: rgba(18, 16, 26, 0.18);
  position: relative;
  padding: 0;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--duration) var(--ease);
}
.toggle.is-on {
  background: var(--brand-primary);
}
.toggle.is-on::after { transform: translateX(18px); }

.alert {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--surface-soft);
  color: var(--text-body);
  font-size: 13px;
}
.alert-success { border-color: rgba(39, 174, 96, 0.28); background: rgba(39, 174, 96, 0.1); }
.alert-danger { border-color: rgba(231, 76, 60, 0.28); background: rgba(231, 76, 60, 0.1); }

.toast-stack {
  position: fixed;
  top: 16px;
  right: 0;
  left: 0;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0 20px;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  max-width: min(420px, calc(100vw - 40px));
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(18, 16, 26, 0.04);
  box-shadow: 0 10px 28px rgba(48, 36, 120, 0.1);
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.45;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(calc(100% + 28px));
  transition:
    transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 300ms var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.toast.is-leaving {
  opacity: 0;
  transform: translateX(calc(100% + 28px));
  transition-duration: 260ms;
}

.toast__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand-primary-muted);
  color: var(--brand-primary);
  flex-shrink: 0;
  font-size: 13px;
}

.toast__text {
  flex: 1;
  min-width: 0;
}

[data-theme="dark"] .toast {
  background: #232324;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--border-default);
  background: #fff;
  color: var(--text-primary);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
[data-theme="dark"] kbd { background: rgba(26, 22, 42, 0.92); }

.site-footer {
  margin-top: 72px;
  padding: 22px 4px 4px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}
.site-footer__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.site-footer__copy a {
  color: inherit;
  text-decoration: none;
}
.site-footer__copy a:hover { color: var(--brand-primary); }
.site-footer__sep { color: var(--border-default); user-select: none; }
.site-footer__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 0;
  font-weight: 600;
}
.site-footer__nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 2px 0;
}
.site-footer__nav a:hover { color: var(--brand-primary); }
.site-footer__nav .site-footer__sep { margin: 0 10px; font-weight: 400; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-shell,
  .top-nav,
  .btn,
  .hero-demo,
  .shiny-text::after { transition: none; animation: none; }
}

@media (max-width: 960px) {
  .feature-grid, .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; }
  .step-grid { grid-template-columns: 1fr 1fr; }
  .menu { display: none; }
  .top-nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 14px 20px;
  }
  .top-nav.is-scrolled {
    width: calc(100% + 20px);
    max-width: calc(100% + 20px);
    margin-left: -10px;
    margin-right: -10px;
    padding: 14px 20px;
  }
  .nav-shell__inner { width: calc(100% - 28px); }
  .section { margin-top: 64px; }
  .section-split { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 28px); padding: 18px 0 72px; }
  .feature-grid, .grid-4, .grid-3, .grid-2, .step-grid { grid-template-columns: 1fr; }
  .top-nav {
    padding: 12px 16px;
  }
  .top-nav.is-scrolled {
    width: calc(100% + 20px);
    max-width: calc(100% + 20px);
    margin-left: -10px;
    margin-right: -10px;
    padding: 12px 16px;
  }
  .cta-band { padding: 32px 22px; margin-top: 64px; }
  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .floating-tools { display: none !important; }
  .faq-item .faq-a { padding-left: 18px; }
}
