:root {
  --bg: #0b1220;
  --bg-alt: #0f172a;
  --bg-soft: #111827;
  --surface: #1a2332;
  --surface-elevated: #243044;
  --surface-highlight: #2a3a52;
  --text: #f1f5f9;
  --muted: #a8b4c4;
  --muted-warm: #c4cdd9;
  --mint: #00ffb8;
  --mint-dark: #00e6a8;
  --mint-soft: rgba(0, 255, 184, 0.12);
  --mint-glow: rgba(0, 255, 184, 0.35);
  --border: rgba(148, 163, 184, 0.14);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --font: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.topbar .logo img {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(240px, 42vw);
  object-fit: contain;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.25));
}

.logo-footer img {
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.topbar nav a:not(.btn) {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.topbar nav a:not(.btn):hover { color: var(--text); }

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--mint);
  color: #0b1220;
  box-shadow: 0 8px 28px var(--mint-glow);
}

.btn-primary:hover {
  background: var(--mint-dark);
  box-shadow: 0 10px 32px var(--mint-glow);
}

.topbar .btn-ghost {
  border: 1.5px solid rgba(0, 255, 184, 0.4);
  background: var(--surface);
  color: var(--mint);
  box-shadow: none;
}

.topbar .btn-ghost:hover {
  background: var(--mint-soft);
  border-color: var(--mint);
  color: var(--mint);
}

.btn-ghost {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(0, 255, 184, 0.35);
  background: var(--surface-elevated);
}

.btn-play {
  font-size: 0.75rem;
  line-height: 1;
}

.btn-lg { padding: 0.9rem 1.5rem; font-size: 1rem; }

.btn-block { width: 100%; }

.hero {
  padding: 0;
  text-align: center;
  background: linear-gradient(180deg, #0b1220 0%, #0f172a 50%, #111827 100%);
}

.hero-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 2rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--mint);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 255, 184, 0.22);
}

.hero h1 {
  font-family: var(--font);
  font-size: clamp(2.1rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1.25rem;
  letter-spacing: -0.03em;
}

.hero-lead {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--muted-warm);
  max-width: 620px;
  margin: 0 auto 0.5rem;
  line-height: 1.75;
}

.hero-lead-sub {
  margin-bottom: 2rem;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.hero-price-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--surface-elevated);
  border: 1.5px solid rgba(0, 255, 184, 0.35);
  box-shadow: 0 0 24px rgba(0, 255, 184, 0.08);
}

.hero-price-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.hero-price-amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--mint);
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero-price-period {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.hero-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}

.hero-trust {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 2.5rem;
}

.hero-trust::before {
  content: "✓ ";
  color: var(--mint);
}

.hero-demo { margin-top: 0.5rem; }

.demo-window {
  max-width: 520px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  text-align: left;
}

.demo-bar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  background: var(--surface-elevated);
  border-bottom: 1px solid var(--border);
}

.demo-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #475569;
}

.demo-chat { padding: 1.25rem; display: grid; gap: 0.85rem; }

.demo-chat-animated {
  min-height: 220px;
}

.demo-panel .demo-chat-animated {
  min-height: 320px;
}

.msg-enter {
  animation: msg-fade-in 0.35s ease;
}

@keyframes msg-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg-typing::after {
  content: "▍";
  display: inline-block;
  margin-left: 2px;
  color: var(--mint);
  animation: cursor-blink 0.9s step-end infinite;
}

@keyframes cursor-blink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .msg-enter { animation: none; }
  .msg-typing::after { content: none; }
}

.msg {
  max-width: 88%;
  padding: 0.85rem 1.05rem;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.msg-user {
  justify-self: end;
  background: var(--surface-elevated);
  color: var(--text);
  border-bottom-right-radius: 4px;
}

.msg-bot {
  justify-self: start;
  background: var(--mint-soft);
  border: 1px solid rgba(0, 255, 184, 0.28);
  border-bottom-left-radius: 4px;
  color: #ecfdf5;
}

/* Partner marquee */
.partner-marquee {
  margin-top: 0;
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(0, 255, 184, 0.1);
  width: 100%;
  overflow: hidden;
  background: transparent;
}

.partner-marquee-label {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.5rem;
  padding: 0 1rem;
}

.partner-marquee-viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.partner-marquee-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: partner-marquee-scroll 48s linear infinite;
}

.partner-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes partner-marquee-scroll {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.partner-marquee-group {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2.75rem;
  flex-shrink: 0;
  padding-right: 2.75rem;
}

.partner-chip {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  flex-shrink: 0;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.partner-chip:hover {
  opacity: 1;
}

.partner-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.partner-chip figcaption {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  letter-spacing: 0.01em;
  line-height: 1;
}

.partner-chip .lbl-en {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.partner-chip .lbl-cn {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--mint);
}

/* How it works */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.kb-panel,
.demo-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.1rem;
  background: var(--surface-elevated);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 600;
}

.panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
}

.panel-dot-live {
  background: var(--mint);
  box-shadow: 0 0 0 4px var(--mint-soft);
}

.kb-list {
  list-style: none;
  margin: 0;
  padding: 1rem 1.1rem;
}

.kb-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.kb-list li:last-child { border-bottom: none; }

.kb-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mint);
  background: var(--mint-soft);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.35rem;
}

.kb-list p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
}

.kb-foot {
  margin: 0;
  padding: 0.75rem 1.1rem 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px dashed var(--border);
}

.demo-panel .demo-chat-tall {
  padding: 1.15rem 1.15rem 1.35rem;
  max-height: 520px;
  overflow-y: auto;
}

.demo-chat-live .msg {
  max-width: 92%;
  padding: 1rem 1.15rem;
  font-size: 1rem;
  line-height: 1.6;
}

.demo-chat-live { gap: 1rem; }

.section {
  padding: 6rem 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}

.section-alt {
  max-width: none;
  background: var(--bg-alt);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  border-top: 1px solid var(--border);
}

.section-alt > * {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-head h2 {
  font-family: var(--font);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.025em;
}

.section-head p {
  color: var(--muted-warm);
  margin: 0;
  line-height: 1.75;
  font-size: 1.05rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(0, 255, 184, 0.2);
  transform: translateY(-2px);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: var(--mint-soft);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 255, 184, 0.18);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.compare-col {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
}

.compare-us {
  border-color: rgba(0, 255, 184, 0.4);
  box-shadow: var(--shadow);
  background: var(--surface-elevated);
}

.compare-col h3 {
  margin-top: 0;
  font-weight: 700;
}

.compare-col ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.75;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
}

.price-featured {
  background: linear-gradient(165deg, var(--surface-highlight) 0%, var(--surface-elevated) 100%);
  border-color: var(--mint);
  box-shadow: 0 0 0 1px rgba(0, 255, 184, 0.15), var(--shadow);
  transform: scale(1.03);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--mint);
  color: #0b1220;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
}

.price-card h3 {
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.price-options {
  margin-bottom: 1.25rem;
  padding: 1rem;
  border-radius: 12px;
  background: var(--bg-alt);
  border: 1px solid rgba(0, 255, 184, 0.15);
}

.price-featured .price-options {
  background: rgba(11, 18, 32, 0.5);
  border-color: rgba(0, 255, 184, 0.25);
}

.price-row { text-align: center; }

.price-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.price-or {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0.65rem 0;
}

.price-row-annual { padding-top: 0.15rem; }

.price {
  font-size: 2.75rem;
  font-weight: 800;
  margin: 0;
  line-height: 1;
  letter-spacing: -0.02em;
}

.price-year {
  font-size: 2.25rem;
  color: var(--mint);
}

.price span:first-child { font-size: 1.5rem; vertical-align: super; }

.price-year span:first-child { font-size: 1.25rem; }

.price-period { font-size: 1rem; font-weight: 500; color: var(--muted); }

.price-equiv {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.price-equiv strong { color: var(--text); }

.save {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 700;
}

.price-card ul {
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.75;
}

.pricing-foot {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 2rem;
  line-height: 1.65;
}

.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.35rem 0;
}

.faq-item dt {
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.faq-item dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.cta-final {
  text-align: center;
  padding-bottom: 6rem;
}

.cta-final h2 {
  font-family: var(--font);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.cta-final p {
  color: var(--muted-warm);
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 3rem 1.5rem;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.footer-inner p { color: var(--muted); margin: 0.5rem 0; }

.footer-stat {
  font-size: 0.95rem;
  color: var(--muted-warm);
}

.footer-stat strong { color: var(--mint); }

.footer-stripe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.75rem 0;
}

.footer-stripe img {
  opacity: 0.85;
}

.footer nav {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 1rem 0;
}

.footer nav a { color: var(--muted); font-weight: 500; }

.copy { font-size: 0.85rem; }

@media (prefers-reduced-motion: reduce) {
  .partner-marquee-track { animation-duration: 80s; }
}

@media (max-width: 768px) {
  .hero-inner { padding-top: 3rem; }

  .hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
    letter-spacing: -0.025em;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn,
  .hero-price-pill {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .hero-price-pill { padding: 0.85rem 1.25rem; }

  .how-grid { grid-template-columns: 1fr; }

  .price-featured { transform: none; }

  .section { padding: 4.5rem 1.25rem; }

  .topbar nav { display: none; }

  .topbar nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
  }

  .menu-toggle { display: block; }
}
