/* ════════════════════════════════════════════════════════
   CC Video Studio — Landing Page Styles
   Deep purple dark theme, responsive, modern
   ════════════════════════════════════════════════════════ */

/* ── Design Tokens ──────────────────────────────────── */
:root {
  /* Brand */
  --accent: #7c5cfc;
  --accent-hover: #9b7eff;
  --accent-dim: rgba(124, 92, 252, 0.12);
  --accent-muted: rgba(124, 92, 252, 0.15);
  --accent-glow: rgba(124, 92, 252, 0.35);
  --accent-green: #4ade80;
  --accent-blue: #60a5fa;
  --accent-amber: #fbbf24;
  --accent-red: #f87171;

  /* Background layers */
  --bg-primary: #121212;
  --bg-secondary: #1e1e2e;
  --bg-tertiary: #2a2a3e;
  --bg-hover: rgba(255, 255, 255, 0.04);
  --bg-active: rgba(255, 255, 255, 0.08);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(16px);
  --glass-card: rgba(30, 30, 46, 0.6);
  --glass-elevated: rgba(34, 34, 64, 0.7);

  /* Text */
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0b0;
  --text-muted: #6c6c80;

  /* Borders */
  --border: #2e2e42;
  --border-light: rgba(255, 255, 255, 0.06);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-accent: 0 4px 20px rgba(124, 92, 252, 0.3);
  --shadow-glow: 0 0 30px rgba(124, 92, 252, 0.25);

  /* Radii — glass-style rounded */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-sans: var(--font);
  --font-mono: "SF Mono", "Fira Code", "Cascadia Code", "Consolas", monospace;
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-lg: 16px;
  --text-xl: 18px;
  --text-2xl: 22px;
  --text-3xl: 28px;
  --text-4xl: 36px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;

  /* Layout */
  --max-width: 1120px;
  --nav-h: 64px;

  /* Transition */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Legacy backward compat */
  --bg-card: var(--glass-card);
  --bg-elevated: var(--glass-elevated);
  --green: var(--accent-green);
  --amber: var(--accent-amber);
  --red: var(--accent-red);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent-hover); text-decoration: none; transition: color var(--transition); }
a:hover { color: #b99dff; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ── Utility ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ── SVG Icons ── */
.lp-icon { width: 24px; height: 24px; display: inline-block; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.lp-icon-sm { width: 18px; height: 18px; }
.lp-icon-xs { width: 14px; height: 14px; }
.feature-card .icon svg { width: 28px; height: 28px; }
.section { padding: 80px 0; }
.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ── Scroll Reveal ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}
nav.scrolled { background: rgba(13, 13, 26, 0.85); border-bottom-color: var(--border); }
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary) !important;
}
.nav-logo img, .nav-logo svg { width: 32px; height: 32px; border-radius: 6px; }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  background: var(--accent-dim);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  color: #fff !important;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
}
.nav-cta:hover { background: linear-gradient(135deg, var(--accent-hover), #7eb8ff); transform: translateY(-1px); box-shadow: 0 0 40px rgba(124, 92, 252, 0.4); }
.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 28px; cursor: pointer; padding: 4px; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(124,92,252,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 60%, rgba(96,165,250,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(124,92,252,0.06) 0%, transparent 40%),
    var(--bg-primary);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/screenshots/hero-compare.webp') center/cover no-repeat;
  opacity: 0.05;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124,92,252,0.08) 0%, transparent 70%);
  pointer-events: none;
  transform: translateX(-50%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--max-width);
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--accent-dim);
  color: var(--accent-hover);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(124, 92, 252, 0.2);
}
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent), #b99dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 500px;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none !important;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  color: #fff !important;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--accent-hover), #7eb8ff); transform: translateY(-2px); box-shadow: 0 0 40px rgba(124, 92, 252, 0.4); }
.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary) !important;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(4px);
}
.btn-secondary:hover { border-color: var(--accent); background: var(--accent-dim); transform: translateY(-2px); box-shadow: var(--shadow-glow); }

/* Hero Screenshot */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}
.hero-visual:hover img { transform: translateY(-4px); box-shadow: 0 12px 48px rgba(0, 0, 0, 0.7); }

/* ── Stats Bar ── */
.stats-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item .stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}
.stat-item .stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}
.stat-item .stat-num .plus { font-size: 24px; }

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
}
.feature-card:hover { border-color: var(--accent-dim); transform: translateY(-4px); box-shadow: 0 0 20px rgba(124, 92, 252, 0.15); }
.feature-card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.feature-card h4 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* ── Screenshots Carousel ── */
.carousel-section { background: var(--bg-secondary); }
.carousel-wrap {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
}
.carousel-slide img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: block;
}
.carousel-slide .slide-label {
  position: absolute;
  bottom: 16px; left: 16px;
  padding: 6px 14px;
  background: var(--glass-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
}
.carousel-arrows {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.carousel-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--glass-elevated);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.carousel-arrow:hover { background: linear-gradient(135deg, var(--accent), var(--accent-blue)); border-color: var(--accent); box-shadow: var(--shadow-glow); }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.carousel-dot.active { background: var(--accent); width: 24px; border-radius: 4px; }

/* ── Download Section ── */
.download-section { text-align: center; }
.download-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.download-card .version-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--accent-dim);
  color: var(--accent-hover);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.download-card h3 { font-size: 22px; margin-bottom: 8px; }
.download-card .dl-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.download-card .btn {
  padding: 16px 40px;
  font-size: 18px;
}
.download-card .btn .pulse { display: inline-block; animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.dl-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}
.dl-meta span { display: flex; align-items: center; gap: 4px; }

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.pricing-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 0 20px rgba(124, 92, 252, 0.15); border-color: var(--accent-dim); }
.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(124,92,252,0.08) 0%, var(--bg-secondary) 100%);
  transform: scale(1.05);
  z-index: 1;
  box-shadow: 0 0 30px rgba(124, 92, 252, 0.2);
}
.pricing-card.featured:hover { transform: scale(1.05) translateY(-4px); box-shadow: 0 0 40px rgba(124, 92, 252, 0.3); }
.pricing-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.pricing-card h4 { font-size: 20px; margin-bottom: 4px; }
.pricing-card .price {
  font-size: 42px;
  font-weight: 800;
  margin: 8px 0 4px;
  color: var(--text-primary);
}
.pricing-card .price-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.pricing-card .price .currency { font-size: 20px; vertical-align: super; }
.pricing-card ul { text-align: left; margin: 20px 0; padding: 0; }
.pricing-card li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-card li .check { color: var(--green); font-weight: 700; }
.pricing-card li .cross { color: var(--red); }
.pricing-card .btn { width: 100%; justify-content: center; }

/* ── FAQ ── */
.faq-section { background: var(--bg-secondary); }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover { border-color: var(--accent-dim); }
.faq-q {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  gap: 12px;
}
.faq-q .faq-icon { transition: transform var(--transition); font-size: 14px; color: var(--text-muted); }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-a {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* ── Footer ── */
footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-light);
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; max-width: 300px; }
.footer-col h5 { font-size: 14px; font-weight: 600; margin-bottom: 16px; color: var(--text-primary); }
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 0;
}
.footer-col a:hover { color: var(--accent-hover); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-hover);
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: var(--red); color: #fff; }
.modal h3 { font-size: 22px; margin-bottom: 8px; }
.modal .modal-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.modal .price-tag {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 20px;
}
.modal .contact-list {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 20px;
}
.modal .contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
}
.modal .contact-list .label { color: var(--text-muted); min-width: 56px; }

/* ── WeChat QR in Modal ── */
.modal .wechat-qr {
  text-align: center;
  padding: 12px 0;
}
.modal .wechat-qr img {
  display: inline-block;
  width: 200px;
  height: 200px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: #fff;
  padding: 8px;
  object-fit: contain;
}
.modal .wechat-qr .wechat-hint {
  margin-top: 12px;
  font-size: 14px;
  color: var(--green);
  font-weight: 500;
}

/* ── Responsive ── */

/* Tablet */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero p { margin: 0 auto 32px; }
  .hero-buttons { justify-content: center; }
  .hero h1 { font-size: 36px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Mobile */
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .hero { padding: 100px 20px 60px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .hero .tag { font-size: 12px; }
  .btn { padding: 12px 24px; font-size: 14px; }
  .section-title { font-size: 26px; }
  .stats-grid { gap: 12px; }
  .stat-item .stat-num { font-size: 28px; }
  .download-card { padding: 28px 20px; }
  .pricing-card { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .modal { padding: 28px 20px; }

  /* Mobile Nav */
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--glass-border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; text-align: center; padding: 12px; }
  .nav-toggle { display: block; }
}
