/* Minimal, self-contained stylesheet. No build step. */
:root {
  --color-bg: #0b1220;
  --color-surface: #141f36;
  --color-surface-2: #1b2947;
  --color-text: #f4f6fa;
  --color-text-muted: #9aa6bf;
  --color-accent: #ffcc29;
  --color-primary: #2f6df0;
  --color-border: #253457;
  --radius: 10px;
  --container-max: 1120px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.85; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--color-border);
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
}
.brand-mark { font-size: 22px; }
.primary-nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: var(--color-text-muted);
}
.primary-nav a:hover { color: var(--color-text); }
.lang-switcher {
  display: inline-flex;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  overflow: hidden;
}
.lang-switcher button {
  background: transparent;
  border: 0;
  color: var(--color-text-muted);
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.lang-switcher button.active {
  background: var(--color-primary);
  color: #fff;
}

/* Hero */
.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(47, 109, 240, 0.35), transparent 60%),
    radial-gradient(900px 500px at 10% 20%, rgba(255, 204, 41, 0.12), transparent 55%);
}
.hero-inner { max-width: 860px; }
.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 204, 41, 0.15);
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 20px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  margin: 0 0 32px;
  max-width: 640px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  font-weight: 600;
  border-radius: 10px;
  font-size: 15px;
  transition: transform 0.08s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: var(--color-accent);
  color: #111;
}
.btn-primary:hover { opacity: 1; transform: translateY(-1px); }
.btn-ghost {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

/* Features */
.features { padding: 80px 0; }
.features h2 {
  font-size: clamp(26px, 3.5vw, 34px);
  margin: 0 0 40px;
  font-weight: 700;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px;
}
.feature-icon { font-size: 28px; margin-bottom: 10px; }
.feature-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.feature-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14.5px;
}

/* Download */
.download {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(180deg, transparent, var(--color-surface) 80%);
}
.download h2 { margin: 0 0 12px; font-size: clamp(26px, 3.5vw, 34px); }
.download > .container > p,
.download-inner > p {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}
.store-badges {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.store-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 180px;
  padding: 10px 18px;
  background: #111;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  text-align: left;
}
.store-small { font-size: 11px; color: var(--color-text-muted); }
.store-large { font-size: 18px; font-weight: 700; }
.store-badge-placeholder { opacity: 0.55; cursor: default; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 0 30px;
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 14px;
}
.footer-inner { display: grid; gap: 20px; }
.footer-brand .brand-name { color: var(--color-text); }
.footer-tagline { margin: 8px 0 0; font-size: 13.5px; }
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-links a:hover { color: var(--color-text); }
.footer-copy { font-size: 12.5px; opacity: 0.8; }

/* Doc pages (privacy / terms) */
.doc-page { background: var(--color-bg); }
.doc-main { padding: 60px 0 80px; }
.doc-article { max-width: 780px; }
.doc-article h1 { font-size: 36px; margin: 0 0 8px; }
.doc-article h2 { font-size: 20px; margin: 32px 0 10px; }
.doc-article p, .doc-article li { font-size: 15.5px; color: #d4dbec; }
.doc-article ul { padding-left: 20px; }
.doc-article li { margin-bottom: 6px; }
.doc-article a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
.doc-meta { color: var(--color-text-muted); font-size: 13.5px; }

/* Responsive */
@media (max-width: 640px) {
  .primary-nav { display: none; }
  .hero { padding: 64px 0 40px; }
}
