:root {
  --bg: #141210;
  --surface: #1e1b18;
  --text: #f5f0ea;
  --muted: rgba(245, 240, 234, 0.6);
  --amber: #c97932;
  --amber-soft: rgba(201, 121, 50, 0.16);
  --hairline: rgba(245, 240, 234, 0.12);
  --glass-top: rgba(255, 255, 255, 0.10);
  --glass-bottom: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.14);
  --maxw: 1080px;
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Helvetica Neue", "Segoe UI", Roboto, "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient backdrop matching the app */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      900px 700px at 12% -5%,
      rgba(201, 121, 50, 0.20),
      transparent 60%
    ),
    radial-gradient(
      1000px 900px at 100% 100%,
      rgba(90, 60, 120, 0.16),
      transparent 60%
    ),
    var(--bg);
}

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

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

/* ---- language toggle ---- */
:root[data-lang="en"] .lang-zh { display: none; }
:root[data-lang="zh"] .lang-en { display: none; }

/* ---- top bar ---- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  background: rgba(20, 18, 16, 0.72);
  border-bottom: 1px solid var(--hairline);
}
.topbar .container {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.2px;
}
.brand .dot {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--amber), #9b5a24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.topbar nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 15px;
  color: var(--muted);
}
.topbar nav a:hover { color: var(--text); }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  overflow: hidden;
  font-size: 13px;
}
.lang-switch button {
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 6px 12px;
  cursor: pointer;
  font: inherit;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--amber);
  color: #17130f;
  font-weight: 700;
}

/* ---- glass card ---- */
.glass {
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(var(--glass-top), var(--glass-bottom)),
    rgba(30, 27, 24, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

/* ---- hero ---- */
.hero {
  padding: 96px 0 72px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
  margin: 0 0 20px;
  font-weight: 850;
  letter-spacing: -0.5px;
}
.hero .sub {
  font-size: clamp(17px, 2.4vw, 22px);
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 18px;
}
.hero .note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}
.badge {
  display: inline-block;
  font-size: 13px;
  color: var(--amber);
  border: 1px solid var(--amber-soft);
  background: var(--amber-soft);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 22px;
  font-weight: 700;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 16px;
  border: 1px solid var(--glass-border);
  transition: transform 0.14s ease, background 0.14s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--amber), #9b5a24);
  color: #17130f;
  border-color: transparent;
}
.btn-ghost { color: var(--text); }

/* ---- sections ---- */
section { padding: 56px 0; }
.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 820;
  margin: 0 0 8px;
  text-align: center;
}
.section-lead {
  color: var(--muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  padding: 26px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 19px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.card .ico {
  font-size: 26px;
  margin-bottom: 14px;
  display: block;
}

/* source pills */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.pill {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 15px;
  font-weight: 600;
}

/* platforms */
.platforms {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 16px;
}

/* pricing */
.price-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 860px;
  margin: 0 auto;
}
.price {
  padding: 30px 26px;
  text-align: center;
}
.price .amt {
  font-size: 40px;
  font-weight: 850;
  margin: 8px 0 2px;
}
.price .per { color: var(--muted); font-size: 14px; }
.price.featured { border-color: var(--amber); }
.price .tag {
  display: inline-block;
  font-size: 12px;
  color: var(--amber);
  font-weight: 700;
  margin-bottom: 6px;
}
.disclaimer {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  max-width: 720px;
  margin: 26px auto 0;
}

/* ---- legal / doc pages ---- */
.doc { padding: 56px 0 40px; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 6px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.doc h2 {
  font-size: 21px;
  margin: 34px 0 10px;
  padding-top: 8px;
}
.doc h3 { font-size: 17px; margin: 20px 0 8px; }
.doc p, .doc li { color: rgba(245, 240, 234, 0.82); font-size: 16px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--amber); }
.doc .callout {
  padding: 18px 22px;
  margin: 20px 0;
  border-left: 3px solid var(--amber);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 14px 14px 0;
}

/* ---- footer ---- */
footer {
  border-top: 1px solid var(--hairline);
  padding: 40px 0;
  color: var(--muted);
  font-size: 14px;
}
footer .cols {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
footer .beian { margin-top: 18px; font-size: 12.5px; opacity: 0.8; }

@media (max-width: 640px) {
  .topbar nav a:not(.lang-switch) { display: none; }
}
