:root {
  --bg: #f4f6fb;
  --bg-elevated: #ffffff;
  --bg-subtle: #edf1fa;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(50, 92, 232, 0.22);
  --accent: #325ce8;
  --accent-hover: #2448c8;
  --accent-soft: rgba(50, 92, 232, 0.11);
  --gold: #b45309;
  --gold-soft: rgba(245, 158, 11, 0.15);
  --green: #0d6e3e;
  --green-soft: rgba(16, 185, 129, 0.14);
  --shadow-card: 0 10px 30px -12px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.03);
  --shadow-phone: 0 28px 64px -16px rgba(15, 23, 42, 0.26), 0 6px 18px rgba(15, 23, 42, 0.08);
  --nav-bg: rgba(244, 246, 251, 0.78);
  --hero-glow: radial-gradient(62% 55% at 50% 0%, rgba(50, 92, 232, 0.16) 0%, rgba(50, 92, 232, 0.0) 100%);
  --phone-frame: #151922;
  --phone-bezel: rgba(255, 255, 255, 0.18);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

html[data-theme="dark"] {
  --bg: #0b0f1a;
  --bg-elevated: #141a29;
  --bg-subtle: #1a2236;
  --text: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(96, 165, 250, 0.28);
  --accent: #5b82ff;
  --accent-hover: #7496ff;
  --accent-soft: rgba(91, 130, 255, 0.18);
  --gold: #fcd34d;
  --gold-soft: rgba(245, 158, 11, 0.2);
  --green: #5ce6a0;
  --green-soft: rgba(16, 185, 129, 0.18);
  --shadow-card: 0 12px 34px -12px rgba(0, 0, 0, 0.52);
  --shadow-phone: 0 32px 72px -12px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --nav-bg: rgba(11, 15, 26, 0.78);
  --hero-glow: radial-gradient(62% 55% at 50% 0%, rgba(70, 110, 255, 0.26) 0%, rgba(11, 15, 26, 0) 100%);
  --phone-frame: #1c2230;
  --phone-bezel: rgba(255, 255, 255, 0.16);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

/* Bilingual toggle visibility */
html[data-lang="zh"] [data-i18n="en"] { display: none !important; }
html[data-lang="en"] [data-i18n="zh"] { display: none !important; }

/* Icon light/dark swap */
.app-icon-dark { display: none; }
html[data-theme="dark"] .app-icon-light { display: none; }
html[data-theme="dark"] .app-icon-dark { display: block; }

/* Layout container */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

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

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

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.icon-btn:active {
  transform: scale(0.96);
}

/* Hero */
.hero {
  position: relative;
  padding: 68px 0 56px;
  background: var(--hero-glow);
}

.hero-content {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  margin-bottom: 22px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.hero-sub {
  margin: 0 auto 30px;
  max-width: 620px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 52px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2244c2);
  color: #ffffff;
  box-shadow: 0 10px 26px -8px rgba(50, 92, 232, 0.52);
}

.btn-primary:hover {
  box-shadow: 0 14px 32px -8px rgba(50, 92, 232, 0.66);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-card);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

/* 3-Phone Triptych Showcase */
.triptych {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

.phone-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.phone-card.featured {
  transform: translateY(-14px);
}

.phone-frame {
  width: 100%;
  max-width: 280px;
  padding: 10px;
  border-radius: 40px;
  background: var(--phone-frame);
  box-shadow: var(--shadow-phone);
  border: 1px solid var(--phone-bezel);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.phone-frame:hover {
  transform: translateY(-6px);
}

.phone-frame img {
  width: 100%;
  border-radius: 31px;
  display: block;
}

.phone-caption {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Trust Strip */
.trust-strip {
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.trust-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.trust-num {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.trust-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Section Headers */
.section {
  padding: 72px 0;
}

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

.section-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.6vw, 38px);
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.section-head p {
  margin: 0;
  font-size: 16px;
  color: var(--text-secondary);
}

/* Bento Feature Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bento-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ffffff;
  font-weight: 700;
}

.bento-card h3 {
  margin: 2px 0 0;
  font-size: 18px;
  letter-spacing: -0.015em;
}

.bento-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}

.chip {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

/* Split Dark Showcase */
.split-card {
  background: linear-gradient(145deg, #131b31 0%, #0d111c 100%);
  color: #f8fafc;
  border-radius: 32px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px -18px rgba(11, 15, 26, 0.55);
}

.split-card h2 {
  margin: 8px 0 14px;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.split-card p {
  color: #cbd5e1;
  font-size: 15.5px;
  margin: 0 0 20px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
}

.check-dot {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  margin-top: 2px;
}

.split-visual {
  display: flex;
  justify-content: center;
}

.split-visual .phone-frame {
  max-width: 264px;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 880px;
  margin: 0 auto;
}

.price-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.price-card.pro {
  border: 2px solid var(--accent);
  position: relative;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg-elevated) 28%);
}

.pro-tag {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-amount strong {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.price-amount span {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
}

.price-desc {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* Prose / Legal / Support Pages */
.page-hero {
  padding: 54px 0 28px;
  background: var(--hero-glow);
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
}

.page-hero p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.prose-card {
  max-width: 820px;
  margin: 18px auto 72px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  box-shadow: var(--shadow-card);
}

.prose-card h2 {
  font-size: 20px;
  margin: 30px 0 10px;
  letter-spacing: -0.015em;
}

.prose-card h2:first-child {
  margin-top: 0;
}

.prose-card p, .prose-card li {
  color: var(--text-secondary);
  font-size: 15px;
}

.prose-card ul {
  padding-left: 20px;
}

.prose-card a {
  color: var(--accent);
  font-weight: 600;
}

.callout {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 14.5px;
  margin-bottom: 24px;
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 18px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 18px;
  color: var(--accent);
  font-weight: 600;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-body {
  padding: 0 18px 16px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

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

/* Responsive */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split-card {
    grid-template-columns: 1fr;
    padding: 30px 24px;
  }
  .triptych {
    gap: 14px;
  }
  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
  }
  .hero {
    padding: 44px 0 36px;
  }
  .triptych {
    grid-template-columns: 1fr;
    max-width: 300px;
    gap: 24px;
  }
  .phone-card.featured {
    transform: none;
    order: -1;
  }
  .bento-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .prose-card {
    padding: 24px 20px;
  }
  .section {
    padding: 52px 0;
  }
}
