:root {
  --primary: #4a5eff;
  --secondary: #8a5cff;
  --bg-light: #f5f6fc;
  --bg-dark: #1a1b2e;
  --text-main: #1e2036;
  --text-muted: #5a5e7a;
  --radius: 18px;
  --gradient-color: linear-gradient(90deg, #ff4d4f, #ff9c40, #ffeb3b, #00e676, #00b0ff, #7c4dff);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Typography */
h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.5px; line-height: 1.3; }
h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.8rem; }
h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; }
p { font-size: 0.95rem; color: var(--text-muted); }

/* Header / Nav */
.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img {
  height: 32px;
  width: 32px;
  border-radius: 8px;
  object-fit: cover;
}
.brand span {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}
.nav-links {
  display: none;
  gap: 1.5rem;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
}
.nav-links a:hover {
  color: var(--primary);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}
.nav-links a:hover::after {
  width: 100%;
}
.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  padding: 1rem;
  border-bottom: 1px solid #eee;
}
.mobile-nav.active {
  display: flex;
}
.mobile-nav a {
  padding: 0.6rem 0;
  font-size: 1rem;
  color: var(--text-main);
  border-bottom: 1px solid #f0f0f0;
}
.mobile-nav a:last-child { border-bottom: none; }

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #eef1ff 0%, #f9f0ff 100%);
  padding: 2rem 1.2rem 0;
  overflow: hidden;
  position: relative;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.hero-text {
  text-align: center;
}
.hero-text h1 span {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.hero-text p {
  margin-top: 0.5rem;
  font-size: 1rem;
}
.download-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 1.2rem;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(74,94,255,0.3);
}
.btn-download.outline {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.hero-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.hero-gallery::-webkit-scrollbar { display: none; }
.hero-gallery img {
  flex: 0 0 85%;
  max-width: 280px;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  scroll-snap-align: center;
  object-fit: cover;
}
/* Marquee */
.marquee-wrap {
  background: #fff;
  padding: 0.6rem 0;
  overflow: hidden;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-top: 1.5rem;
}
.marquee {
  display: flex;
  white-space: nowrap;
  animation: scroll 18s linear infinite;
}
.marquee span {
  font-size: 1.1rem;
  font-weight: 800;
  background: var(--gradient-color);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 300% 100%;
  animation: flow 4s linear infinite;
  padding: 0 1.5rem;
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Sections */
.section-wrap {
  padding: 3rem 1.2rem;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  margin-bottom: 2rem;
}
.section-title h2 {
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--primary);
}
.bg-alt { background: #fff; }
.bg-tint { background: #f0f2ff; }
.bg-warm { background: #fff9f0; }

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.feature-card {
  background: #fff;
  padding: 1.2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-3px); }
.feature-card h3 {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.feature-card h3::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.feature-card p { font-size: 0.88rem; margin-top: 0.3rem; }

/* Split Layout */
.split {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.split-text { flex: 1; }
.split-img {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.split-img img {
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  max-width: 100%;
  object-fit: cover;
}
.split-list {
  margin-top: 1rem;
}
.split-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.4rem 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.split-list li::before {
  content: '✦';
  color: var(--primary);
  font-size: 0.8rem;
  margin-top: 2px;
}

/* FAQ / QA */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.2rem;
  border: 1px solid rgba(0,0,0,0.04);
}
.faq-item h3 {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}
.faq-item p { font-size: 0.88rem; }

/* Reviews */
.reviews-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
}
.review-card {
  flex: 0 0 85%;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  scroll-snap-align: start;
}
.review-card .user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.8rem;
}
.review-card .user img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.review-card .user span {
  font-weight: 600;
  font-size: 0.9rem;
}
.review-card p {
  font-size: 0.88rem;
  color: var(--text-main);
}

/* Feedback */
.feedback-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  border: 1px dashed var(--primary);
}
.feedback-box p { max-width: 500px; margin: 0 auto 1rem; }

/* Install Steps */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.step-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.step-item h3 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.step-item p { font-size: 0.85rem; }

/* Download Zone */
.download-zone {
  background: linear-gradient(135deg, #1a1b2e 0%, #2d2f4a 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
}
.download-zone h2 { color: #fff; }
.download-zone p { color: rgba(255,255,255,0.7); margin-bottom: 1.2rem; }
.download-zone .btn-download {
  background: #fff;
  color: #1a1b2e;
}
.download-zone .btn-download.outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.download-zone img {
  max-width: 200px;
  margin: 1.5rem auto 0;
  border-radius: 12px;
}

/* Footer */
.site-footer {
  background: #f8f9fc;
  padding: 2rem 1.2rem 1.5rem;
  border-top: 1px solid #e8eaf0;
  font-size: 0.8rem;
  color: #8a8fa8;
  text-align: center;
}
.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links a {
  color: #8a8fa8;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}
.footer-info a {
  color: #8a8fa8;
}
.time-tag {
  font-size: 0.75rem;
  color: #b0b4c8;
}

/* Floating Download */
.floating-dl {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 40px;
  padding: 0.5rem 0.6rem 0.5rem 1rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 200;
  border: 1px solid rgba(0,0,0,0.06);
  width: max-content;
  max-width: 90vw;
}
.floating-dl img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}
.floating-dl .fl-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.floating-dl .fl-info strong {
  font-size: 0.85rem;
  color: var(--text-main);
}
.floating-dl .fl-info span {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.floating-dl .btn-download {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  border-radius: 20px;
  white-space: nowrap;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
}
.modal-box p { margin-bottom: 1rem; }
.modal-box input {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--text-main);
  background: #f5f6fc;
}
.modal-box .btn-download { width: 100%; }

/* Breakpoints */
@media (min-width: 768px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 2rem; }
  .hero { padding: 3rem 2rem 0; }
  .hero-inner { flex-direction: row; align-items: center; gap: 2rem; }
  .hero-text { text-align: left; flex: 1; }
  .hero-gallery { flex: 1; }
  .hero-gallery img { flex: 0 0 100%; max-width: 100%; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .split { flex-direction: row; align-items: center; }
  .split.reverse { flex-direction: row-reverse; }
  .faq-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-track .review-card { flex: 0 0 45%; }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-links { display: flex; }
  .mobile-menu-btn { display: none; }
  .mobile-nav { display: none !important; }
  .site-footer { text-align: left; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .footer-info { align-items: flex-start; }
}

@media (min-width: 1024px) {
  h1 { font-size: 3rem; }
  .hero-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; overflow: visible; }
  .hero-gallery img { width: 100%; height: auto; border-radius: var(--radius); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .faq-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-track { flex-wrap: wrap; overflow: visible; }
  .reviews-track .review-card { flex: 1 1 30%; min-width: 280px; }
  .download-zone { display: flex; align-items: center; justify-content: space-between; text-align: left; padding: 3rem; }
  .download-zone .dl-text { flex: 1; }
  .download-zone img { margin: 0; max-width: 280px; }
  .floating-dl { left: auto; right: 2rem; transform: none; bottom: 2rem; }
}