/* ===== Variables & Reset ===== */
:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --bg: #0f0f23;
  --bg-card: #1a1a3e;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --border: rgba(255,255,255,0.1);
  --radius: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15,15,35,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled { background: rgba(15,15,35,0.97); box-shadow: 0 2px 20px rgba(0,0,0,0.3); }

.nav-container {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 700; }
.logo-icon { width: 40px; height: 40px; color: var(--primary-light); }

.nav-links { display: flex; gap: 8px; }
.nav-links a {
  padding: 8px 16px; border-radius: 8px;
  font-size: 0.95rem; color: var(--text-secondary);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* ===== Hero ===== */
.hero {
  min-height: auto; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding-top: 72px;
  padding-bottom: 40px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(99,102,241,0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(236,72,153,0.1), transparent);
}
.hero-particle {
  position: absolute; width: 6px; height: 6px;
  background: var(--primary-light); border-radius: 50%; opacity: 0.4;
  animation: floatParticle 3s ease-in-out infinite alternate;
}
@keyframes floatParticle {
  from { transform: translate(0, 0) scale(1); opacity: 0.4; }
  to   { transform: translate(30px, -30px) scale(1.5); opacity: 0.8; }
}

.hero-content { position: relative; z-index: 1; text-align: center; padding: 32px 24px; max-width: 800px; margin: 0 auto; }

.hero-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.gradient-text {
  background: linear-gradient(135deg, var(--primary-light), #ec4899);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.8; }

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }

/* Hero Tags Scroll */
.hero-tags { margin-top: 24px; overflow: hidden; max-width: 600px; margin-left: auto; margin-right: auto; }
.tags-scroll { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.tag { display: inline-block; padding: 6px 16px; background: rgba(255,107,53,0.12); border: 1px solid rgba(255,107,53,0.25); border-radius: 20px; font-size: 0.88rem; color: #FF6B35; white-space: nowrap; transition: 0.3s; }
.tag:hover { background: rgba(255,107,53,0.25); transform: translateY(-2px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 12px;
  font-size: 1rem; font-weight: 600;
  transition: var(--transition); cursor: pointer;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), #7c3aed); color: white; box-shadow: 0 4px 20px rgba(99,102,241,0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(99,102,241,0.5); }
.btn-outline { border: 2px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary-light); color: var(--primary-light); }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }

/* Hero Stats */
.hero-stats { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--primary-light); }
.stat-label { font-size: 0.9rem; color: var(--text-secondary); margin-top: 4px; }

/* ===== Section Common ===== */
.section-header { text-align: center; margin-bottom: 24px; }
.section-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 4px; }
.section-subtitle { font-size: 0.95rem; color: var(--text-secondary); }

/* ===== Features ===== */
.features { padding: 60px 0; background: linear-gradient(180deg, var(--bg), #13132d); }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 20px;
  transition: var(--transition); cursor: default;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(99,102,241,0.3); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.feature-icon { width: 56px; height: 56px; margin-bottom: 12px; color: var(--primary-light); }
.feature-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

/* Feature Icons Colors */
.icon-location { color: #6366f1; }
.icon-heart { color: #ec4899; }
.icon-chat { color: #06b6d4; }
.icon-shield { color: #10b981; }
.icon-aa { color: #f59e0b; }
.icon-merchant { color: #f97316; }

/* ===== Interests ===== */
.interests { padding: 40px 0; background: linear-gradient(180deg, var(--bg), #13132d); }
.interests-showcase {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.interest-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 8px; text-align: center;
  transition: var(--transition); position: relative; overflow: hidden;
}
.interest-card.featured { border-color: rgba(255,107,53,0.3); }
.interest-card:hover { transform: translateY(-2px); border-color: rgba(255,107,53,0.4); box-shadow: 0 4px 16px rgba(255,107,53,0.1); }
.interest-icon { font-size: 1.5rem; margin-bottom: 4px; }
.interest-card h3 { font-size: 0.85rem; font-weight: 700; margin-bottom: 2px; }
.interest-card p { color: var(--text-secondary); font-size: 0.72rem; line-height: 1.3; margin-bottom: 4px; }
.interest-stat { font-size: 0.68rem; color: #FF6B35; font-weight: 600; }

@media (max-width: 900px) {
  .interests-showcase { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .interests-showcase { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .interest-card { padding: 10px 6px; }
}

/* ===== Testimonials ===== */
.testimonials { padding: 60px 0; }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 20px;
  transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); border-color: rgba(255,107,53,0.3); }
.testimonial-stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: 16px; }
.testimonial-text { color: var(--text); font-size: 0.95rem; line-height: 1.8; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, #FF6B35, #f59e0b);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 1.1rem;
}
.author-name { font-weight: 700; font-size: 0.95rem; }
.author-info { font-size: 0.82rem; color: var(--text-secondary); }

/* ===== Scenarios ===== */
.scenarios { padding: 60px 0; }
.scenarios-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.scenario-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 20px;
  transition: var(--transition);
}
.scenario-card:hover { transform: translateY(-4px); border-color: rgba(99,102,241,0.3); }
.scenario-emoji { font-size: 2.8rem; margin-bottom: 16px; }
.scenario-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.scenario-card p { color: var(--text-secondary); font-size: 0.93rem; line-height: 1.7; margin-bottom: 16px; }
.scenario-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.scenario-tags span {
  padding: 4px 12px; border-radius: 20px; font-size: 0.8rem;
  background: rgba(99,102,241,0.1); color: var(--primary-light);
  border: 1px solid rgba(99,102,241,0.2);
}

/* ===== Download ===== */
.download { padding: 60px 0; }
.download-card {
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(236,72,153,0.1));
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 24px; padding: 48px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
}
.download-content { flex: 1; min-width: 280px; }
.download-content h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.download-content > p { color: var(--text-secondary); margin-bottom: 28px; font-size: 1.05rem; }

.download-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.download-btn {
  display: inline-flex; align-items: center; padding: 14px 28px;
  border-radius: 14px; transition: var(--transition);
}
.btn-content { display: flex; align-items: center; gap: 12px; }
.btn-small { font-size: 0.75rem; opacity: 0.8; }
.btn-large { font-size: 1.2rem; font-weight: 700; }
.btn-ios { background: #1a1a3e; border: 1px solid var(--border); color: white; }
.btn-ios:hover { background: #2a2a4e; transform: translateY(-2px); }
.btn-android { background: linear-gradient(135deg, #10b981, #059669); color: white; box-shadow: 0 4px 16px rgba(16,185,129,0.3); }
.btn-android:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(16,185,129,0.4); }
.download-note { font-size: 0.85rem; color: var(--text-secondary); }

.download-qr { flex-shrink: 0; }
.qr-placeholder {
  width: 160px; height: 160px;
  background: white; border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: #333; font-size: 0.85rem;
}
.qr-placeholder svg { width: 100px; height: 100px; }

/* ===== Contact ===== */
.contact { padding: 50px 0; }
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.contact-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 20px; text-align: center;
  transition: var(--transition);
}
.contact-card:hover { transform: translateY(-4px); border-color: rgba(99,102,241,0.3); }
.contact-icon { font-size: 2.5rem; margin-bottom: 12px; }
.contact-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.contact-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* ===== Footer ===== */
.footer {
  background: #0a0a1a; border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px; margin-bottom: 48px;
}
.footer-brand p { color: var(--text-secondary); margin-top: 12px; font-size: 0.9rem; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 700; }
.footer-links h4 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.footer-links a {
  display: block; padding: 6px 0; font-size: 0.9rem;
  color: var(--text-secondary); transition: var(--transition);
}
.footer-links a:hover { color: var(--primary-light); }

.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.85rem; color: var(--text-secondary); }

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.6s ease-out both; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.active {
    display: flex; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: rgba(15,15,35,0.98);
    padding: 16px; border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: flex; }
  .hero-title { font-size: 2rem; }
  .hero-stats { gap: 24px; }
  .stat-number { font-size: 1.6rem; }
  .download-card { flex-direction: column; text-align: center; padding: 40px 24px; }
  .download-btns { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
}
