/* ========== Theme Variables — Deep Navy + Acid Lime ========== */
:root {
  --bg-primary: #07111F;
  --bg-secondary: #0D1B2E;
  --bg-tertiary: #13263D;
  --border: rgba(184,255,61,0.1);
  --border-light: rgba(184,255,61,0.06);
  --text-primary: #F7FAF5;
  --text-secondary: #A8B4C2;
  --text-muted: #5E6E82;
  --accent: #B8FF3D;
  --accent-hover: #A3E635;
  --cyan: #39D9C8;
  --orange: #FF8A3D;
  --accent-bg: rgba(184,255,61,0.1);
  --accent-border: rgba(184,255,61,0.2);
  --cyan-bg: rgba(57,217,200,0.1);
  --cyan-border: rgba(57,217,200,0.2);
  --orange-bg: rgba(255,138,61,0.1);
  --orange-border: rgba(255,138,61,0.2);
  --star: #FF8A3D;
  --hero-glow-1: rgba(184,255,61,0.05);
  --hero-glow-2: rgba(57,217,200,0.04);
  --card-hover-border: rgba(184,255,61,0.18);
  --shadow: rgba(0,0,0,0.4);
  --shadow-sm: rgba(0,0,0,0.25);
  --btn-bg: #13263D;
  --btn-hover: #1A3350;
  --icon-color: #B8FF3D;
  --grain: 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.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  --grid: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 0H0v60' fill='none' stroke='rgba(184,255,61,0.03)' stroke-width='0.5'/%3E%3C/svg%3E");
}

[data-theme="light"] {
  --bg-primary: #F4F7F2;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #E8EDE5;
  --border: #D4DCD0;
  --border-light: #E2E9DE;
  --text-primary: #0B1A0F;
  --text-secondary: #4A5D4E;
  --text-muted: #8A9A8E;
  --accent: #4A8C00;
  --accent-hover: #3D7500;
  --cyan: #1A8A7E;
  --orange: #D46A1A;
  --accent-bg: rgba(74,140,0,0.08);
  --accent-border: rgba(74,140,0,0.18);
  --cyan-bg: rgba(26,138,126,0.08);
  --cyan-border: rgba(26,138,126,0.15);
  --orange-bg: rgba(212,106,26,0.08);
  --orange-border: rgba(212,106,26,0.15);
  --star: #D46A1A;
  --hero-glow-1: rgba(74,140,0,0.04);
  --hero-glow-2: rgba(26,138,126,0.03);
  --card-hover-border: #C0CCBA;
  --shadow: rgba(0,20,0,0.06);
  --shadow-sm: rgba(0,20,0,0.04);
  --btn-bg: #E2E9DE;
  --btn-hover: #D4DCD0;
  --icon-color: #4A8C00;
  --grain: 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.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
  --grid: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 0H0v60' fill='none' stroke='rgba(0,0,0,0.03)' stroke-width='0.5'/%3E%3C/svg%3E");
}

/* ========== Base ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text-secondary);
  line-height: 1.7;
  background: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s, color 0.3s;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font: inherit; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* Section tag */
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* Section header */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s ease;
  letter-spacing: 0;
}
.btn-lg { padding: 14px 30px; font-size: 15px; }
.btn-primary {
  background: var(--accent);
  color: #07111F;
  box-shadow: 0 2px 16px rgba(184,255,61,0.2);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 24px rgba(184,255,61,0.3);
  transform: translateY(-1px);
}
.btn-outline {
  border: 1px solid var(--border);
  color: var(--text-primary);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-bg);
}
.btn-white {
  background: var(--accent);
  color: #07111F;
  box-shadow: 0 2px 16px rgba(184,255,61,0.2);
}
.btn-white:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 24px rgba(184,255,61,0.3);
  transform: translateY(-1px);
}

/* ========== Navbar ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.2s ease;
  background: color-mix(in srgb, var(--bg-primary) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar.scrolled {
  border-bottom-color: var(--border-light);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0;
}
.logo svg { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.btn-nav {
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #07111F !important;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.2s;
}
.btn-nav:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Theme toggle */
.theme-toggle {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--btn-bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 16px;
}
.theme-toggle:hover {
  background: var(--btn-hover);
  color: var(--text-primary);
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

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

.mobile-menu-btn {
  display: none;
  color: var(--text-primary);
  padding: 4px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-primary);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Grain texture */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grain);
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 1;
}

/* Dark grid pattern */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grid);
  background-size: 60px 60px;
  pointer-events: none;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.orb-1 {
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(184,255,61,0.04) 0%, transparent 65%);
}
.orb-2 {
  bottom: -20%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(57,217,200,0.04) 0%, transparent 65%);
}
.orb-3 { display: none; }
.grid-pattern { display: none; }

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 72px;
}

.hero-text { flex: 1; }

.hero-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 24px;
  border: 1px solid var(--accent-border);
  letter-spacing: 0.5px;
}

.hero-text h1 {
  font-size: 52px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: 0;
}

.gradient-text {
  color: var(--accent);
}
.mobile-title-break { display: none; }

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Phone mockup */
.hero-visual { flex-shrink: 0; }

.phone-mockup {
  width: 270px;
  background: var(--bg-secondary);
  border-radius: 28px;
  padding: 10px;
  box-shadow: 0 0 0 1px var(--border-light), 0 30px 60px var(--shadow);
  position: relative;
}
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 70px; height: 22px;
  background: var(--bg-primary);
  border-radius: 12px;
}
.phone-screen {
  background: var(--bg-primary);
  border-radius: 20px;
  padding: 38px 14px 14px;
  min-height: 460px;
}

.app-preview { display: flex; flex-direction: column; gap: 10px; }
.app-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0 10px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 15px;
}
.app-logo-small {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #07111F;
}
.app-card {
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 14px;
  border: 1px solid var(--border-light);
}
.app-card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.game-tag {
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}
.status-tag {
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--cyan-bg);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
}
.app-card-body p {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 8px;
}
.app-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 11px;
  z-index: 2;
}
.mouse {
  width: 22px; height: 34px;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  position: relative;
}
.wheel {
  width: 3px; height: 6px;
  background: var(--text-muted);
  border-radius: 2px;
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 2s ease-in-out infinite;
}
@keyframes scroll-wheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

/* ========== Features — Bento Grid ========== */
.features {
  padding: 100px 0;
  background: var(--bg-primary);
  position: relative;
}
.features::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grain);
  background-size: 256px 256px;
  pointer-events: none;
  opacity: 0.5;
}
.features .container { position: relative; z-index: 1; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--bg-secondary);
  border-radius: 14px;
  padding: 28px 24px;
  transition: all 0.25s ease;
  border: 1px solid var(--border-light);
}
.feature-card:hover {
  border-color: var(--card-hover-border);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--shadow-sm);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  /* background set inline per icon via template */
}
.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  letter-spacing: 0;
}
.feature-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== App Section ========== */
.app-section {
  padding: 100px 0;
  background: var(--bg-secondary);
  position: relative;
}
.app-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grain);
  background-size: 256px 256px;
  pointer-events: none;
  opacity: 0.4;
}
.app-section .container { position: relative; z-index: 1; }

.app-content {
  display: flex;
  align-items: center;
  gap: 72px;
}
.app-info { flex: 1; }
.app-info h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
  letter-spacing: 0;
}
.app-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.8;
}
.app-steps { display: flex; flex-direction: column; gap: 24px; }
.step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.step-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent-bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
  border: 1px solid var(--accent-border);
}
.step-text h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  letter-spacing: 0;
}
.step-text p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* QR Code card */
.app-qrcode { flex-shrink: 0; }
.qrcode-card {
  background: var(--bg-tertiary);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  border: 1px solid var(--border-light);
}
.qrcode-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
}
.qrcode-image {
  width: 180px;
  height: 180px;
  display: block;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px var(--shadow-sm);
}
.qrcode-placeholder p {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
}
.qrcode-hint {
  font-size: 12px;
  color: var(--text-muted);
}
.qrcode-label {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* ========== Stats ========== */
.stats {
  padding: 80px 0;
  background: var(--bg-tertiary);
  position: relative;
}
.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grain);
  background-size: 256px 256px;
  pointer-events: none;
  opacity: 0.5;
}
.stats .container { position: relative; z-index: 1; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item {
  padding: 20px;
}
.stat-number {
  font-size: 44px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  display: inline;
  letter-spacing: 0;
}
.stat-suffix {
  font-size: 18px;
  font-weight: 700;
  color: var(--orange);
  display: inline;
  margin-left: 2px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
  font-weight: 500;
}

/* Alternate orange for even stats */
.stat-item:nth-child(even) .stat-number { color: var(--orange); }
.stat-item:nth-child(even) .stat-suffix { color: var(--accent); }

/* ========== Testimonials ========== */
.testimonials {
  padding: 100px 0;
  background: var(--bg-primary);
  position: relative;
}
.testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grain);
  background-size: 256px 256px;
  pointer-events: none;
  opacity: 0.4;
}
.testimonials .container { position: relative; z-index: 1; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.testimonial-card {
  background: var(--bg-secondary);
  border-radius: 14px;
  padding: 28px 24px;
  border: 1px solid var(--border-light);
  transition: all 0.25s ease;
}
.testimonial-card:hover {
  border-color: var(--card-hover-border);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--shadow-sm);
}
.testimonial-stars {
  color: var(--star);
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.testimonial-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.author-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  border: 1px solid var(--accent-border);
}
.author-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.author-game {
  font-size: 12px;
  color: var(--text-muted);
}

/* ========== FAQ ========== */
.faq {
  padding: 100px 0;
  background: var(--bg-secondary);
  position: relative;
}
.faq::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grain);
  background-size: 256px 256px;
  pointer-events: none;
  opacity: 0.3;
}
.faq .container { position: relative; z-index: 1; }

.faq-list {
  max-width: 640px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border-light);
  transition: all 0.2s;
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  letter-spacing: 0;
}
.faq-question svg {
  color: var(--text-muted);
  transition: transform 0.2s, color 0.2s;
  flex-shrink: 0;
}
.faq-item.active .faq-question svg {
  transform: rotate(180deg);
  color: var(--accent);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.active .faq-answer {
  max-height: 200px;
}
.faq-answer p {
  padding: 0 0 18px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ========== CTA ========== */
.cta {
  padding: 100px 0;
  background: var(--bg-primary);
  position: relative;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grain);
  background-size: 256px 256px;
  pointer-events: none;
  opacity: 0.4;
}
.cta .container { position: relative; z-index: 1; }

.cta-content {
  text-align: center;
}
.cta-content h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: 0;
}
.cta-content p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}

/* ========== Footer ========== */
.footer {
  background: var(--bg-primary);
  padding: 64px 0 0;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-light);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  margin-top: 16px;
  color: var(--text-muted);
}
.social-links {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.social-links a {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s;
  border: 1px solid var(--border-light);
}
.social-links a:hover {
  background: var(--btn-hover);
  color: var(--text-primary);
  border-color: var(--border);
}
.footer-links h4,
.footer-contact h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}
.footer-links a {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding: 24px 0;
}
.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 12px;
  row-gap: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
}
.footer-legal > * {
  flex: 0 0 auto;
}
.footer-legal a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--text-primary); }
.footer-legal .separator { color: var(--border); }
.police-beian {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.police-beian img {
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 16px;
  object-fit: contain;
}

/* ========== Back to Top ========== */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 100;
  box-shadow: 0 4px 12px var(--shadow-sm);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--btn-hover);
  border-color: var(--card-hover-border);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .hero-content { gap: 48px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  html { scroll-padding-top: 72px; }
  .container { padding: 0 20px; }

  .navbar { padding: 12px 0; }
  .logo { font-size: 16px; }
  .logo svg { width: 28px; height: 28px; }
  .nav-links { display: none; }
  .nav-right { gap: 8px; }
  .nav-right .theme-toggle { margin-left: 0; }
  .mobile-menu-btn { display: block; }
  .mobile-menu {
    padding: 92px 24px 48px;
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding: 104px 0 56px;
  }
  .hero-content {
    flex-direction: column;
    width: 100%;
    min-width: 0;
    max-width: calc(100vw - 40px);
    gap: 38px;
    text-align: center;
  }
  .hero-text {
    width: 100%;
    min-width: 0;
    max-width: calc(100vw - 40px);
  }
  .hero-badge { margin-bottom: 18px; }
  .hero-text h1 {
    font-size: 36px;
    line-height: 1.16;
    margin-bottom: 18px;
    margin-left: auto;
    margin-right: auto;
    max-width: 580px;
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .mobile-title-break { display: block; }
  .hero-subtitle {
    max-width: 560px;
    width: 100%;
    min-width: 0;
    margin: 0 auto 28px;
    font-size: 16px;
    line-height: 1.75;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .hero-actions {
    width: 100%;
    max-width: calc(100vw - 40px);
    justify-content: center;
    margin: 0 auto;
  }
  .hero-actions .btn {
    justify-content: center;
    min-width: 150px;
  }
  .hero-visual {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
  }

  .phone-mockup { width: min(230px, 78vw); }
  .phone-screen { min-height: 380px; }
  .scroll-indicator { display: none; }

  .features,
  .app-section,
  .testimonials,
  .faq,
  .cta {
    padding: 72px 0;
  }
  .stats { padding: 64px 0; }
  .section-header { margin-bottom: 42px; }

  .section-header h2 { font-size: 26px; }

  .app-content {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }
  .app-info h2 { font-size: 26px; }
  .app-info {
    width: 100%;
    max-width: 100%;
  }
  .app-info h2,
  .section-header h2,
  .cta-content h2 {
    overflow-wrap: anywhere;
  }
  .app-desc { margin-bottom: 28px; }
  .app-steps {
    max-width: 420px;
    margin: 0 auto;
  }
  .step { text-align: left; }
  .app-qrcode { width: 100%; display: flex; justify-content: center; }
  .qrcode-card {
    width: min(100%, 300px);
    padding: 32px 28px;
  }

  .features-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 24px 22px; }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .stat-item { padding: 16px 8px; }
  .stat-number { font-size: 32px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer { padding-top: 48px; }

  .cta-content h2 { font-size: 26px; }

  .footer-legal { flex-direction: column; gap: 4px; }
  .footer-legal .separator { display: none; }
  .back-to-top {
    right: 20px;
    bottom: 20px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .navbar .container { padding: 0 14px; }
  .theme-toggle { width: 34px; height: 34px; }
  .mobile-menu-btn { width: 34px; height: 34px; }
  .mobile-menu a { font-size: 18px; }

  .hero { padding: 92px 0 48px; }
  .hero-content,
  .hero-text,
  .hero-actions {
    max-width: calc(100vw - 32px);
  }
  .hero-text h1 {
    max-width: 300px;
    font-size: 28px;
  }
  .hero-subtitle { font-size: 15px; line-height: 1.7; }
  .hero-actions {
    width: 100%;
    gap: 10px;
  }
  .hero-actions .btn {
    width: 100%;
    min-width: 0;
  }
  .btn-lg { padding: 12px 18px; font-size: 14px; }
  .phone-mockup { width: min(214px, 82vw); }
  .phone-screen {
    min-height: 344px;
    padding: 34px 12px 12px;
  }
  .app-card { padding: 12px; }

  .features,
  .app-section,
  .testimonials,
  .faq,
  .cta {
    padding: 58px 0;
  }
  .stats { padding: 52px 0; }
  .section-header { margin-bottom: 34px; }
  .section-header h2,
  .app-info h2,
  .cta-content h2 { font-size: 24px; }

  .qrcode-card {
    width: 100%;
    padding: 28px 20px;
  }
  .qrcode-placeholder svg {
    width: 96px;
    height: 96px;
  }

  .stat-number { font-size: 28px; }
  .stat-suffix { font-size: 16px; }
  .testimonial-card,
  .feature-card {
    padding: 22px 18px;
  }
  .faq-question {
    gap: 14px;
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .hero-text h1 { font-size: 26px; }
  .phone-mockup { width: min(204px, 82vw); }
}
