:root {
  --bg: #0a0a0f;
  --bg-alt: #12121a;
  --surface: #1a1a24;
  --surface-2: #22222e;
  --text: #f4f4f6;
  --muted: #9ca3af;
  --primary: #ef4444;
  --primary-hover: #dc2626;
  --accent: #6366f1;
  --radius: 14px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans SC", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
code {
  font-size: 0.8125rem;
  background: rgba(255,255,255,0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.875rem 0;
}
.logo { display: flex; align-items: baseline; gap: 0.5rem; }
.logo-mark { font-weight: 700; font-size: 1.25rem; color: var(--primary); }
.logo-sub { color: var(--muted); font-weight: 500; font-size: 0.9375rem; }
.nav { display: none; gap: 1.25rem; font-size: 0.9rem; }
.nav a:hover { color: var(--primary); }
@media (min-width: 900px) { .nav { display: flex; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: 0.9375rem; transition: background 0.2s;
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.22); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.45); }

/* Hero */
.hero {
  padding: 3.5rem 0 4.5rem;
  background:
    radial-gradient(ellipse 80% 55% at 20% -10%, rgba(239, 68, 68, 0.18), transparent),
    radial-gradient(ellipse 55% 45% at 100% 0%, rgba(99, 102, 241, 0.14), transparent);
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.badge {
  display: inline-block; padding: 0.35rem 0.85rem; border-radius: 999px;
  background: rgba(239, 68, 68, 0.14); color: #fca5a5;
  font-size: 0.8125rem; font-weight: 500; margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(1.875rem, 4.5vw, 2.65rem); line-height: 1.22; margin: 0 0 1rem; font-weight: 700; }
.lead { color: var(--muted); font-size: 1.02rem; max-width: 36rem; margin: 0 0 1.5rem; }
.lead strong { color: #e5e7eb; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }
.hero-stats { list-style: none; padding: 0; margin: 0; display: flex; gap: 2rem; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 1.35rem; color: var(--text); }
.hero-stats span { font-size: 0.8125rem; color: var(--muted); }

.phone-frame {
  max-width: 290px; margin-inline: auto; padding: 14px;
  border-radius: 38px;
  background: linear-gradient(155deg, #353545, #14141c);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.55);
  position: relative;
}
.phone-notch {
  width: 96px; height: 22px; background: #0a0a0f;
  border-radius: 0 0 14px 14px; margin: -4px auto 8px;
}
.phone-screen {
  border-radius: 26px; background: #0f0f16;
  padding: 0.75rem; display: flex; flex-direction: column; gap: 0.65rem;
  min-height: 420px;
}
.mock-tabs {
  display: flex; justify-content: space-between; gap: 2px;
  font-size: 0.62rem; color: var(--muted); padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mock-tabs .active { color: var(--primary); font-weight: 600; }
.mock-card {
  flex: 1; border-radius: 10px; min-height: 3.5rem;
  display: flex; align-items: flex-end; padding: 0.5rem 0.65rem;
  font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.92);
}
.mock-card.c1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.mock-card.c2 { background: linear-gradient(135deg, #ef4444, #f97316); }
.mock-card.c3 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; font-size: 1.75rem; margin: 0 0 0.5rem; font-weight: 700; }
.section-title.align-left { text-align: left; }
.section-sub { text-align: center; color: var(--muted); margin: 0 0 2.5rem; max-width: 36rem; margin-inline: auto; margin-bottom: 2.5rem; }

/* Modules */
.module-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.module-card {
  background: var(--surface); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius); padding: 1.35rem;
}
.module-num {
  font-size: 0.75rem; font-weight: 700; color: var(--primary);
  letter-spacing: 0.06em; margin-bottom: 0.35rem;
}
.module-card h3 { margin: 0 0 0.5rem; font-size: 1.0625rem; }
.module-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Features */
.feature-grid {
  display: grid; gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.feature-card {
  background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius); padding: 1.35rem;
}
.feature-card .icon { font-size: 1.65rem; margin-bottom: 0.65rem; }
.feature-card h3 { margin: 0 0 0.45rem; font-size: 1.0625rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.tag-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.65rem; }
.tag {
  padding: 0.5rem 1rem; border-radius: 999px;
  background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
}
.template-note {
  text-align: center; color: var(--muted); font-size: 0.875rem;
  margin-top: 1.5rem; max-width: 32rem; margin-inline: auto;
}

/* Download + QR */
.download-grid {
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 860px) {
  .download-grid { grid-template-columns: 1fr auto; }
}
.download-lead { color: var(--muted); margin: 0 0 1.25rem; max-width: 32rem; }
.download-list {
  margin: 0 0 1.5rem; padding-left: 1.15rem; color: var(--muted); font-size: 0.9rem;
}
.download-list li { margin-bottom: 0.35rem; }

.store-btn {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  padding: 0.65rem 1.35rem; border-radius: 10px;
  background: #fff; color: #111; min-width: 168px;
  transition: opacity 0.2s;
}
.store-btn:hover { opacity: 0.92; }
.store-btn.disabled { opacity: 0.55; pointer-events: none; }
.store-label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.03em; }
.store-name { font-size: 1.15rem; font-weight: 700; }
.store-status { margin-top: 0.85rem; font-size: 0.8125rem; color: var(--muted); }

.qr-panel { display: flex; justify-content: center; }
.qr-card {
  background: #fff; border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem; text-align: center;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.qr-card canvas { display: block; margin: 0 auto; border-radius: 8px; }
.qr-caption { margin: 0.85rem 0 0.25rem; color: #111; font-size: 0.9375rem; font-weight: 600; }
.qr-hint { margin: 0; color: #6b7280; font-size: 0.75rem; max-width: 220px; }

/* About */
.about-grid {
  display: grid; gap: 2rem;
}
@media (min-width: 768px) { .about-grid { grid-template-columns: 1.2fr 0.8fr; } }
.about-grid p { color: var(--muted); margin: 0; }
.about-grid strong { color: #e5e7eb; }
.about-meta {
  background: var(--surface); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; border: 1px solid rgba(255,255,255,0.06);
}
.about-meta dl { margin: 0; display: grid; gap: 0.75rem; }
.about-meta dt { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.about-meta dd { margin: 0.15rem 0 0; font-size: 0.9375rem; }
.about-meta a { color: #93c5fd; }
.about-meta a:hover { text-decoration: underline; }

.contact { text-align: center; }
.contact a { color: var(--primary); }
.contact a:hover { text-decoration: underline; }

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.75rem 0;
}
.footer-inner { text-align: center; font-size: 0.8125rem; color: var(--muted); }
.footer-inner p { margin: 0.3rem 0; }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--text); }
