:root {
  --bg: #141218;
  --bg-soft: #1c1b1f;
  --bg-card: #211f26;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e6e1e5;
  --text-dim: #cac4d0;
  --berry: #ffb3b7;
  --berry-deep: #942b38;
  --green: #82d9a8;
  --blue: #aec6ff;
  --gradient: linear-gradient(135deg, #942b38 0%, #b83b4a 100%);
  --radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
    "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 18, 24, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--text-dim);
}

.nav-links a:hover { color: var(--text); }

.nav-download {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff !important;
  font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 24px 96px;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
}

.hero-glow-1 {
  width: 480px;
  height: 480px;
  top: -160px;
  left: -120px;
  background: #942b38;
}

.hero-glow-2 {
  width: 420px;
  height: 420px;
  right: -100px;
  bottom: -160px;
  background: #455e8c;
}

.hero-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 179, 183, 0.35);
  background: rgba(255, 179, 183, 0.08);
  color: var(--berry);
  font-size: 13px;
  font-weight: 600;
}

h1 {
  margin-top: 18px;
  font-size: clamp(44px, 7vw, 72px);
  line-height: 1.05;
  background: linear-gradient(135deg, #ffb3b7 0%, #ffd9dc 45%, #aec6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 1px;
}

.hero-sub {
  margin-top: 18px;
  max-width: 520px;
  color: var(--text-dim);
  font-size: 17px;
}

.hero-meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 30px rgba(148, 43, 56, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(148, 43, 56, 0.5);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: var(--bg-card);
}

.btn-ghost:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.2); }

.btn-lg { padding: 16px 34px; font-size: 17px; }

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(202, 196, 208, 0.75);
}

/* ---------- Phone mockup ---------- */
.hero-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.phone-frame {
  position: relative;
  width: 248px;
  padding: 12px 10px 14px;
  border-radius: 38px;
  background: linear-gradient(160deg, #3b383e, #1c1b1f 60%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.phone-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.phone-frame img {
  width: 100%;
  border-radius: 28px;
}

.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 22px;
  border-radius: 12px;
  background: #000;
  z-index: 2;
}

.qr-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 14px;
  background: #fff;
  color: #1f2329;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.qr-card img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
}

/* ---------- Sections ---------- */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 24px;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  margin-top: 14px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
}

.section-dark {
  max-width: none;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 179, 183, 0.3);
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature-icon.berry { background: rgba(255, 179, 183, 0.12); }
.feature-icon.green { background: rgba(130, 217, 168, 0.12); }
.feature-icon.blue { background: rgba(174, 198, 255, 0.12); }

.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-dim); }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.step-num {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 40px;
  font-weight: 800;
  color: rgba(255, 179, 183, 0.16);
}

.step h3 { margin-bottom: 8px; font-size: 17px; }
.step p { font-size: 14px; color: var(--text-dim); }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  padding-bottom: 96px;
}

.cta h2 { font-size: clamp(24px, 4vw, 34px); }
.cta p { margin: 12px 0 26px; color: var(--text-dim); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px 28px;
  background: var(--bg-soft);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand strong { display: block; font-size: 15px; }
.footer-brand span { font-size: 13px; color: var(--text-dim); }

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--text-dim);
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  max-width: 1120px;
  margin: 22px auto 0;
  font-size: 12px;
  color: rgba(202, 196, 208, 0.6);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-phone { order: -1; }
  .feature-grid, .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .nav-links a:not(.nav-download) { display: none; }
  .hero { padding-top: 48px; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; }
}
