:root {
  --bg: #060608;
  --bg-elevated: #0f0f14;
  --bg-card: #14141c;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f8;
  --text-muted: #8b8b9a;
  --accent: #d4a017;
  --accent-soft: rgba(212, 160, 23, 0.15);
  --accent-glow: rgba(212, 160, 23, 0.35);
  --cyan: #4ecdc4;
  --red-rec: #ff3b30;
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  --font-body: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  --container: 1120px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(6, 6, 8, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.logo span { color: var(--accent); }

.nav-links {
  display: none;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.lang-select {
  position: relative;
}

.lang-select-btn {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  user-select: none;
}

.lang-select-btn::-webkit-details-marker { display: none; }

.lang-select-btn::marker { content: ""; }

.lang-select-btn::after {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s;
}

.lang-select[open] .lang-select-btn::after {
  transform: rotate(-135deg) translateY(1px);
}

.lang-select-btn:hover,
.lang-select[open] .lang-select-btn {
  border-color: var(--accent);
  color: var(--text);
}

.lang-select-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 8.5rem;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 200;
}

.lang-select-menu a,
.lang-select-current {
  display: block;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
}

.lang-select-menu a:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.lang-select-current {
  color: var(--accent);
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #b8860b);
  color: #0a0a0a;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover { border-color: rgba(255,255,255,0.2); }

/* Hero */
.hero {
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-copy { order: 1; }
.hero-visual { order: 2; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-phone {
  width: min(400px, 92vw);
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 32px 64px rgba(0, 0, 0, 0.55));
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

html[lang="zh-Hans"] .eyebrow,
html[lang="zh-Hant"] .eyebrow {
  text-transform: none;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

html[lang="zh-Hans"] .hero h1,
html[lang="zh-Hant"] .hero h1 {
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-stats strong {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-stats span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.glow-1 {
  width: 360px;
  height: 360px;
  background: var(--accent-glow);
  top: 5%;
  left: -5%;
}

.glow-2 {
  width: 260px;
  height: 260px;
  background: rgba(78, 205, 196, 0.15);
  bottom: 5%;
  right: -5%;
}

/* Trust bar */
.trust {
  border-block: 1px solid var(--border);
  padding: 1.5rem 0;
  background: var(--bg-elevated);
}

.trust-inner p {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Sections */
.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

html[lang="zh-Hans"] .section-head h2,
html[lang="zh-Hant"] .section-head h2 {
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}

.features { padding: 5rem 0; }

.feature-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

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

.feature-card:hover {
  border-color: rgba(212, 160, 23, 0.3);
  transform: translateY(-2px);
}

.feature-card--highlight {
  border-color: rgba(212, 160, 23, 0.25);
  background: linear-gradient(145deg, var(--bg-card), rgba(212, 160, 23, 0.06));
}

.feature-icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Privacy */
.privacy {
  padding: 4rem 0;
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.privacy-inner {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  max-width: 40rem;
  margin-inline: auto;
}

.privacy-badge {
  font-size: 2rem;
  flex-shrink: 0;
}

.privacy h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.privacy p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Compare table */
.compare { padding: 5rem 0; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 560px;
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: var(--bg-elevated);
  font-weight: 600;
  font-size: 0.85rem;
}

.compare-table tbody tr:last-child td { border-bottom: none; }

.col-highlight {
  background: rgba(212, 160, 23, 0.06);
}

.compare-table .yes { color: var(--cyan); font-weight: 600; }
.compare-table .no { color: var(--text-muted); }

/* Pricing */
.pricing {
  padding: 5rem 0;
  background: var(--bg-elevated);
}

.pricing-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: start;
}

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

.price-card--featured {
  border-color: rgba(212, 160, 23, 0.4);
  box-shadow: 0 0 40px rgba(212, 160, 23, 0.08);
}

.price-badge {
  position: absolute;
  top: -0.65rem;
  left: 1.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.price-badge--gold {
  border-color: var(--accent);
  color: var(--accent);
}

.price-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

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

.price-card ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.price-card li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.4rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.price-card .btn { width: 100%; }

/* CTA */
.cta {
  padding: 6rem 0;
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

html[lang="zh-Hans"] .cta-inner h2,
html[lang="zh-Hant"] .cta-inner h2 {
  font-weight: 600;
  letter-spacing: 0;
}

.cta-inner > p {
  color: var(--text-muted);
  max-width: 28rem;
  margin: 0 auto 2rem;
}

.app-store-badge {
  display: inline-block;
  transition: transform 0.2s;
}

.app-store-badge:hover { transform: scale(1.03); }

.app-store-badge svg {
  width: 160px;
  height: auto;
}

.cta-note {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  gap: 2rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* SEO content pages */
.page {
  padding: calc(var(--header-h) + 3rem) 0 5rem;
}

.page-inner {
  max-width: 720px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--accent); }

.page-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.page-content .lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.page-content h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.page-content p,
.page-content li {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.page-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

.page-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-cta .btn {
  color: #0a0a0a;
  text-decoration: none;
}

.page-cta .btn:hover {
  color: #0a0a0a;
}

.page-cta {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq-item p {
  padding: 0 1.25rem 1rem;
  margin: 0;
}

.feature-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}

.feature-link:hover { text-decoration: underline; }

.compare-more {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.compare-more a {
  color: var(--accent);
}

.compare-more a:hover { text-decoration: underline; }

/* Responsive */
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .nav-links { display: flex; margin-left: auto; }
  .nav-actions { margin-left: 0; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
  .hero-visual { order: 1; }
  .hero-copy { order: 2; padding-top: 1rem; }
  .hero-phone { width: min(400px, 44vw); }
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .footer-copy { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-card--highlight { grid-column: span 1; }
  .hero-grid { grid-template-columns: 0.95fr 1.05fr; gap: 2rem; align-items: start; }
  .hero-phone { width: min(440px, 42vw); }
}
