:root {
  --bg: #0b1020;
  --bg-alt: #0f1730;
  --surface: #131b35;
  --surface-2: #1a2342;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef2ff;
  --text-dim: #a3acc7;
  --accent: #4ad6a0;
  --accent-2: #5b8cff;
  --danger: #ff6b6b;
  --gold: #f5c249;
  --radius: 14px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --max-w: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 16, 32, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand-icon { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--text-dim); font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06112a;
}
.btn-primary:hover { box-shadow: 0 8px 24px -10px rgba(74, 214, 160, .6); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* HERO */
.hero {
  position: relative;
  padding: 80px 0 120px;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(91, 140, 255, .18), transparent 60%),
    radial-gradient(700px 400px at 10% 30%, rgba(74, 214, 160, .12), transparent 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
  padding: 6px 12px; border: 1px solid rgba(74, 214, 160, .3);
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1; margin: 0 0 22px;
  letter-spacing: -0.02em;
}
.accent { background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 17px; color: var(--text-dim); max-width: 540px; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-meta { font-size: 13px; color: var(--text-dim); margin: 0; }

.hero-phone {
  display: flex; align-items: center; justify-content: center;
  gap: 28px;
}
.qr-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; text-align: center;
  box-shadow: var(--shadow);
}
.qr-img { width: 140px; height: 140px; margin: 0 auto 10px; background: #fff; border-radius: 8px; padding: 8px; }
.qr-img img, .qr-img canvas { width: 100% !important; height: 100% !important; }
.qr-card p { font-size: 12px; color: var(--text-dim); margin: 0; }

.phone-mock {
  width: 240px; height: 480px;
  background: linear-gradient(180deg, #1a2342, #0f1730);
  border-radius: 34px;
  border: 8px solid #0a1024;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.04);
  padding: 18px 12px;
  position: relative;
  overflow: hidden;
}
.phone-mock::before {
  content: ''; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 70px; height: 6px; background: #0a1024; border-radius: 999px;
}
.phone-screen { margin-top: 22px; }
.ticker .row {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 10px; padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 13px; font-variant-numeric: tabular-nums;
}
.ticker .row span:first-child { color: var(--text); font-weight: 600; }
.ticker .row span:nth-child(2) { color: var(--text-dim); }
.ticker .row.up span:last-child { color: var(--accent); }
.ticker .row.down span:last-child { color: var(--danger); }

/* SECTION HEAD */
.section-head { text-align: center; margin-bottom: 64px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 42px); margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.section-head p { color: var(--text-dim); margin: 0; }

/* FEATURES */
.features { padding: 100px 0; background: var(--bg-alt); }
.feature {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  padding: 50px 0;
}
.feature.reverse .feature-text { order: 2; }
.feature-text .badge {
  display: inline-block;
  width: 44px; height: 44px;
  background: rgba(74, 214, 160, .12); color: var(--accent);
  border-radius: 12px;
  font-weight: 700; font-size: 16px;
  line-height: 44px; text-align: center;
  margin-bottom: 18px;
}
.feature-text h3 { font-size: 28px; margin: 0 0 14px; letter-spacing: -0.01em; }
.feature-text p { color: var(--text-dim); font-size: 16px; margin: 0 0 18px; max-width: 460px; }
.link { color: var(--accent); font-weight: 600; font-size: 14px; }
.link:hover { text-decoration: underline; }

.feature-art {
  height: 320px; border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.feature-art::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.art-1 { background: radial-gradient(circle at 30% 30%, rgba(74,214,160,.35), transparent 60%), var(--surface); }
.art-2 { background: radial-gradient(circle at 70% 30%, rgba(91,140,255,.35), transparent 60%), var(--surface); }
.art-3 { background: radial-gradient(circle at 50% 50%, rgba(245,194,73,.3), transparent 60%), var(--surface); }
.art-4 { background: radial-gradient(circle at 30% 70%, rgba(255,107,107,.25), transparent 60%), var(--surface); }
.art-5 { background: radial-gradient(circle at 70% 70%, rgba(74,214,160,.3), rgba(91,140,255,.25), transparent 70%), var(--surface); }

.feature-art::before {
  content: ''; position: absolute; inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
  opacity: .9;
  z-index: 1;
}
.art-1::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100'><polyline fill='none' stroke='%234ad6a0' stroke-width='2' points='0,60 25,55 50,40 75,48 100,30 125,42 150,22 175,28 200,15'/><circle cx='200' cy='15' r='4' fill='%234ad6a0'/></svg>"); }
.art-2::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100'><rect x='10' y='40' width='30' height='40' rx='4' fill='%235b8cff' opacity='.6'/><rect x='55' y='25' width='30' height='55' rx='4' fill='%234ad6a0' opacity='.6'/><rect x='100' y='50' width='30' height='30' rx='4' fill='%23f5c249' opacity='.6'/><rect x='145' y='15' width='30' height='65' rx='4' fill='%23ff6b6b' opacity='.6'/></svg>"); }
.art-3::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><circle cx='100' cy='100' r='70' fill='none' stroke='%23f5c249' stroke-width='1' opacity='.4'/><circle cx='100' cy='100' r='45' fill='none' stroke='%234ad6a0' stroke-width='1' opacity='.6'/><circle cx='100' cy='100' r='20' fill='%235b8cff' opacity='.7'/><circle cx='100' cy='100' r='6' fill='%23f5c249'/></svg>"); }
.art-4::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100'><path d='M0 60 L40 50 L40 70 L80 30 L80 60 L120 20 L120 50 L160 35 L200 25' fill='none' stroke='%234ad6a0' stroke-width='2'/><path d='M0 80 L40 75 L80 60 L120 65 L160 50 L200 55' fill='none' stroke='%23ff6b6b' stroke-width='2' opacity='.7'/></svg>"); }
.art-5::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100'><g fill='%234ad6a0' opacity='.7'><rect x='10' y='70' width='12' height='15'/><rect x='30' y='60' width='12' height='25'/><rect x='50' y='50' width='12' height='35'/><rect x='70' y='40' width='12' height='45'/></g><g fill='%235b8cff' opacity='.7'><rect x='95' y='55' width='12' height='30'/><rect x='115' y='35' width='12' height='50'/><rect x='135' y='25' width='12' height='60'/><rect x='155' y='15' width='12' height='70'/></g></svg>"); }

/* STATS */
.stats { padding: 60px 0; background: var(--bg); }
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; text-align: center;
}
.stat-grid > div {
  padding: 28px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
}
.stat-grid strong {
  display: block; font-size: 32px; color: var(--accent);
  font-weight: 700; margin-bottom: 6px;
}
.stat-grid span { color: var(--text-dim); font-size: 14px; }

/* DOWNLOAD */
.download {
  padding: 100px 0; background: var(--bg-alt);
  background-image:
    radial-gradient(800px 400px at 50% 0%, rgba(91, 140, 255, .15), transparent 60%);
}
.download-grid {
  display: grid; grid-template-columns: 1.4fr .6fr; gap: 60px; align-items: center;
}
.download h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 16px; letter-spacing: -0.02em; }
.download > .container > div > p { color: var(--text-dim); font-size: 16px; max-width: 500px; }
.dl-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin: 24px 0 12px; }
.qr-large {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; text-align: center;
  box-shadow: var(--shadow);
}
#qrcode-lg { width: 180px; height: 180px; background: #fff; border-radius: 10px; padding: 10px; margin: 0 auto 12px; }
#qrcode-lg img, #qrcode-lg canvas { width: 100% !important; height: 100% !important; }
.qr-large p { color: var(--text-dim); font-size: 13px; margin: 0; }

/* CONTACT */
.contact { padding: 100px 0; background: var(--bg); }
.contact-card {
  text-align: center; max-width: 640px; margin: 0 auto;
  padding: 60px 40px;
  background: linear-gradient(135deg, rgba(74,214,160,.12), rgba(91,140,255,.12));
  border: 1px solid var(--border); border-radius: var(--radius);
}
.contact-card h2 { font-size: 32px; margin: 0 0 12px; letter-spacing: -0.02em; }
.contact-card p { color: var(--text-dim); margin: 0 0 28px; }

/* FOOTER */
.site-footer { padding: 60px 0 40px; background: var(--bg-alt); border-top: 1px solid var(--border); }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px;
  align-items: start;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { display: block; font-size: 16px; }
.footer-brand p { margin: 4px 0 0; color: var(--text-dim); font-size: 13px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a { color: var(--text-dim); font-size: 14px; }
.footer-links a:hover { color: var(--accent); }
.copyright { grid-column: 1 / -1; text-align: center; color: var(--text-dim);
  font-size: 13px; margin: 30px 0 0; padding-top: 24px; border-top: 1px solid var(--border); }

/* LEGAL PAGES */
.legal { padding: 80px 0 100px; background: var(--bg); }
.legal-wrap { max-width: 820px; margin: 0 auto; }
.legal h1 {
  font-size: clamp(32px, 4vw, 44px); margin: 0 0 8px; letter-spacing: -0.02em;
}
.legal .updated { color: var(--text-dim); font-size: 14px; margin: 0 0 40px; }
.legal h2 {
  font-size: 22px; margin: 36px 0 12px; color: var(--text);
  border-left: 3px solid var(--accent); padding-left: 12px;
}
.legal h3 { font-size: 17px; margin: 24px 0 8px; color: var(--text); }
.legal p, .legal li { color: var(--text-dim); font-size: 15px; line-height: 1.75; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }
.legal .contact-box {
  margin-top: 36px; padding: 20px 24px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.legal .contact-box strong { color: var(--text); }

/* RESPONSIVE */
@media (max-width: 920px) {
  .hero { padding: 60px 0 80px; }
  .hero-grid, .feature, .feature.reverse, .download-grid, .footer-grid {
    grid-template-columns: 1fr; gap: 40px;
  }
  .feature.reverse .feature-text { order: 0; }
  .hero-phone { flex-direction: column-reverse; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn) { display: none; }
  .footer-links { justify-content: flex-start; }
}
