/* ============================================================
   Design System — tokens
   ============================================================ */
:root {
  /* Brand accents */
  --accent: #6d8bff;
  --accent-2: #a86bff;
  --accent-3: #38d9c4;

  /* Surfaces (dark theme) */
  --bg: #0a0b14;
  --bg-soft: #11131f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #eef0f7;
  --text-soft: #aeb3c6;
  --text-faint: #757a90;

  /* Layout */
  --maxw: 1120px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.6);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-soft: #ffffff;
  --surface: rgba(15, 18, 40, 0.03);
  --surface-strong: rgba(15, 18, 40, 0.05);
  --border: rgba(15, 18, 40, 0.1);
  --border-strong: rgba(15, 18, 40, 0.18);
  --text: #14172a;
  --text-soft: #4a4f63;
  --text-faint: #82869a;
  --shadow: 0 18px 50px -24px rgba(20, 23, 42, 0.28);
}

/* ============================================================
   Reset / base
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.muted { color: var(--text-soft); }

.gradient-text {
  background: linear-gradient(110deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px -12px var(--accent-2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px var(--accent-2); }

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

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 6px 16px -6px var(--accent-2);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); background: var(--surface); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }

.nav-toggle { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  z-index: 0;
  animation: float 14s ease-in-out infinite;
}
.hero-blob.b1 { width: 420px; height: 420px; background: var(--accent); top: -120px; left: -80px; }
.hero-blob.b2 { width: 360px; height: 360px; background: var(--accent-2); top: -40px; right: -60px; animation-delay: -4s; }
.hero-blob.b3 { width: 300px; height: 300px; background: var(--accent-3); bottom: -140px; left: 40%; animation-delay: -8s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -24px) scale(1.08); }
}

.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  font-weight: 800;
  margin-bottom: 20px;
}
.hero p.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--text-soft);
  max-width: 620px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 56px;
  position: relative;
  z-index: 1;
}
.stat .num { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.stat .label { color: var(--text-faint); font-size: 0.88rem; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 80px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--text-soft); font-size: 1.05rem; }

/* ============================================================
   Product cards
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.product-card {
  position: relative;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--accent) 16%, transparent), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.product-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.product-card:hover::before { opacity: 1; }

.app-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 2.1rem;
  color: #fff;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.5);
}
.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.product-card h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 2px; }
.product-card .en-sub {
  color: var(--text-faint);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
}
.product-card .tagline { color: var(--text-soft); margin-bottom: 18px; min-height: 48px; }

.badge-soon {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  box-shadow: 0 6px 16px -6px var(--accent-2);
}

.platforms { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.pill {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--text-soft);
}
.product-links { display: flex; gap: 12px; align-items: center; }
.product-links a { font-size: 0.9rem; font-weight: 600; color: var(--accent); }
.product-links a:hover { text-decoration: underline; }

/* ============================================================
   Feature grid
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.feature {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.feature .f-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  margin-bottom: 16px;
}
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { color: var(--text-soft); font-size: 0.95rem; margin: 0; }

/* ============================================================
   FAQ / accordion
   ============================================================ */
.faq-list { display: grid; gap: 14px; max-width: 820px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 600;
  padding: 20px 22px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
}
.faq-q .chevron { transition: transform 0.25s ease; color: var(--text-faint); }
.faq-item.open .chevron { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-soft);
}
.faq-a-inner { padding: 0 22px 22px; }
.faq-a a { color: var(--accent); }

/* ============================================================
   Contact / support cards
   ============================================================ */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-bottom: 56px;
}
.support-card {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}
.support-card .f-icon {
  width: 52px; height: 52px; margin: 0 auto 16px;
  border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.support-card h3 { margin-bottom: 8px; }
.support-card p { color: var(--text-soft); margin: 0 0 16px; font-size: 0.95rem; }

/* ============================================================
   Blog
   ============================================================ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.post-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.post-card .date { font-size: 0.82rem; color: var(--text-faint); margin-bottom: 10px; }
.post-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.post-card p { color: var(--text-soft); font-size: 0.94rem; flex: 1; margin: 0 0 16px; }
.post-card .read { color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  margin-bottom: 14px;
  align-self: flex-start;
}

/* Article body */
.article { max-width: 760px; margin-inline: auto; padding: 60px 0; }
.article-head { margin-bottom: 40px; }
.article-head h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: 16px; }
.article-meta { color: var(--text-faint); font-size: 0.9rem; }
.prose { font-size: 1.06rem; color: var(--text); }
.prose h2 { font-size: 1.5rem; margin: 40px 0 14px; }
.prose h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.prose p { margin: 0 0 18px; color: var(--text-soft); }
.prose ul { padding-left: 1.2em; list-style: disc; margin: 0 0 18px; color: var(--text-soft); }
.prose ol { padding-left: 1.3em; list-style: decimal; margin: 0 0 18px; color: var(--text-soft); }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); }
.prose strong { color: var(--text); }
.prose code {
  background: var(--surface-strong);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.92em;
}

/* ============================================================
   Privacy pages
   ============================================================ */
.policy-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.policy-nav a {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.policy-nav a:hover, .policy-nav a.active { color: var(--text); border-color: var(--accent); }
.policy-nav .nav-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
}

/* Privacy top bar with language switch */
.policy-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  margin-bottom: 24px;
}
.lang-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  gap: 2px;
}
.lang-switch a,
.lang-switch button {
  display: inline-block;
  border: none;
  background: none;
  color: var(--text-soft);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}
.lang-switch a.on,
.lang-switch button.on {
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
}
.lang-switch a:not(.on):hover,
.lang-switch button:not(.on):hover { color: var(--text); }

.meta-badge {
  color: var(--accent);
  font-weight: 600;
}
.lead-muted {
  font-size: 1.08rem;
  color: var(--text-soft);
}
.policy-section { margin-bottom: 8px; }
.policy-section h2 { scroll-margin-top: 90px; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(120deg,
    color-mix(in srgb, var(--accent) 22%, var(--bg-soft)),
    color-mix(in srgb, var(--accent-2) 22%, var(--bg-soft)));
  border: 1px solid var(--border-strong);
}
.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 14px; }
.cta-band p { color: var(--text-soft); max-width: 540px; margin: 0 auto 26px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 50px 0 40px;
  margin-top: 40px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 36px;
}
.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: var(--text-soft);
  font-size: 0.94rem;
  padding: 5px 0;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.86rem;
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset: 66px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 22px 24px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.28s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: grid; }
  .hero-stats { gap: 28px; }
  .footer-grid { flex-direction: column; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
