/* ===== CSS Variables & Reset ===== */
:root {
  --primary: #0a1628;
  --primary-light: #112240;
  --accent: #00d4aa;
  --accent-hover: #00f0c0;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dark: #1e293b;
  --white: #ffffff;
  --card-bg: rgba(17, 34, 64, 0.6);
  --border: rgba(0, 212, 170, 0.15);
  --gradient-1: linear-gradient(135deg, #0a1628 0%, #1a2744 100%);
  --gradient-accent: linear-gradient(135deg, #00d4aa 0%, #3b82f6 100%);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --radius: 12px;
  --radius-lg: 20px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--primary);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Navigation ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.navbar.scrolled { background: rgba(10, 22, 40, 0.95); box-shadow: var(--shadow); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 72px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.5rem; font-weight: 800; color: var(--white);
}
.nav-logo .logo-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--gradient-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--primary);
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; position: relative; }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: width 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  padding: 10px 24px; border-radius: 8px; font-weight: 600; font-size: 0.9rem;
  background: var(--gradient-accent); color: var(--primary); border: none; cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0, 212, 170, 0.4); }
.mobile-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

/* ===== Hero ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 212, 170, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
              var(--gradient-1);
}
.hero-grid {
  position: absolute; inset: 0; opacity: 0.03;
  background-image: linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 50px;
  background: rgba(0, 212, 170, 0.1); border: 1px solid rgba(0, 212, 170, 0.2);
  font-size: 0.85rem; color: var(--accent); margin-bottom: 32px;
}
.hero-badge .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
.hero h1 {
  font-size: 3.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--white) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 .highlight {
  background: var(--gradient-accent);
  -webkit-background-clip: text; background-clip: text;
}
.hero-subtitle { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 48px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-features {
  display: flex; justify-content: center; gap: 40px; margin-bottom: 48px; flex-wrap: wrap;
}
.hero-feature {
  display: flex; align-items: center; gap: 10px; font-size: 1rem; color: var(--text);
}
.hero-feature .icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(0, 212, 170, 0.1); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px; border-radius: 12px; font-weight: 700; font-size: 1.05rem;
  background: var(--gradient-accent); color: var(--primary); border: none; cursor: pointer;
  transition: all 0.3s; text-decoration: none;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0, 212, 170, 0.35); color: var(--primary); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px; border-radius: 12px; font-weight: 600; font-size: 1.05rem;
  background: transparent; color: var(--text); border: 1px solid var(--border); cursor: pointer;
  transition: all 0.3s; text-decoration: none;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.hero-stats {
  display: flex; justify-content: center; gap: 60px; margin-top: 64px;
  padding-top: 40px; border-top: 1px solid var(--border);
}
.hero-stat-num { font-size: 2rem; font-weight: 800; color: var(--accent); }
.hero-stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ===== Sections ===== */
.section { padding: 100px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-label {
  display: inline-block; padding: 6px 16px; border-radius: 50px;
  background: rgba(0, 212, 170, 0.1); color: var(--accent);
  font-size: 0.85rem; font-weight: 600; margin-bottom: 16px;
}
.section-title {
  font-size: 2.5rem; font-weight: 800; margin-bottom: 16px;
  color: var(--white);
}
.section-desc { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* ===== Feature Cards ===== */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
}
.feature-card {
  padding: 36px; border-radius: var(--radius-lg);
  background: var(--card-bg); border: 1px solid var(--border);
  transition: all 0.4s; position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-accent); opacity: 0; transition: opacity 0.4s;
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(0, 212, 170, 0.3); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(0, 212, 170, 0.1); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }
.feature-tags { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.feature-tag {
  padding: 4px 12px; border-radius: 6px; font-size: 0.8rem;
  background: rgba(59, 130, 246, 0.1); color: var(--blue-light);
}

/* ===== App Showcase ===== */
.app-section { background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary) 100%); }
.app-showcase {
  display: flex; align-items: center; gap: 80px;
}
.app-info { flex: 1; }
.app-info h2 { font-size: 2.2rem; font-weight: 800; color: var(--white); margin-bottom: 20px; }
.app-info p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 32px; }
.app-features-list { list-style: none; margin-bottom: 36px; }
.app-features-list li {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  color: var(--text); font-size: 1rem;
}
.app-features-list li .check {
  width: 24px; height: 24px; border-radius: 6px;
  background: rgba(0, 212, 170, 0.15); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem;
}
.app-screenshots { flex: 1; position: relative; }
.screenshots-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  transform: perspective(1000px) rotateY(-5deg);
}
.screenshot-item {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--primary-light);
  aspect-ratio: 9/16; display: flex; align-items: center; justify-content: center;
  position: relative;
}
.screenshot-item .screen-mock {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  padding: 20px; gap: 12px;
}
.screen-mock .mock-bar {
  height: 8px; border-radius: 4px; background: rgba(0, 212, 170, 0.2);
}
.screen-mock .mock-bar.short { width: 60%; }
.screen-mock .mock-bar.medium { width: 80%; }
.screen-mock .mock-chart {
  flex: 1; border-radius: 8px; background: rgba(59, 130, 246, 0.1);
  display: flex; align-items: flex-end; gap: 6px; padding: 16px;
}
.mock-chart .bar {
  flex: 1; border-radius: 4px 4px 0 0;
  background: var(--gradient-accent); opacity: 0.6;
}
.screen-mock .mock-grid {
  flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.mock-grid .cell {
  border-radius: 6px; background: rgba(0, 212, 170, 0.08);
  border: 1px solid rgba(0, 212, 170, 0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: var(--accent);
}
.screenshot-label {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  font-size: 0.75rem; color: var(--text-muted); white-space: nowrap;
  background: rgba(10, 22, 40, 0.8); padding: 4px 12px; border-radius: 6px;
}

/* ===== Download Section ===== */
.download-section {
  text-align: center;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 212, 170, 0.06) 0%, transparent 70%);
}
.download-cards { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.download-card {
  padding: 48px 40px; border-radius: var(--radius-lg);
  background: var(--card-bg); border: 1px solid var(--border);
  text-align: center; min-width: 300px; flex: 1; max-width: 400px;
  transition: all 0.4s;
}
.download-card:hover { transform: translateY(-6px); border-color: rgba(0, 212, 170, 0.3); }
.download-card .platform-icon {
  width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 24px;
  background: rgba(0, 212, 170, 0.1); display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.download-card h3 { font-size: 1.4rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.download-card p { color: var(--text-muted); margin-bottom: 28px; }
.download-card .btn-primary { width: 100%; justify-content: center; }
.download-steps {
  display: flex; justify-content: center; gap: 48px; margin-top: 64px; flex-wrap: wrap;
}
.download-step { text-align: center; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 12px;
  background: var(--gradient-accent); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
}
.download-step p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden; transition: all 0.3s;
}
.faq-item:hover { border-color: rgba(0, 212, 170, 0.3); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; cursor: pointer; background: var(--card-bg);
  font-weight: 600; color: var(--white); font-size: 1rem;
  border: none; width: 100%; text-align: left;
}
.faq-question .arrow { transition: transform 0.3s; color: var(--accent); font-size: 1.2rem; }
.faq-item.active .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s;
  padding: 0 24px;
}
.faq-item.active .faq-answer { max-height: 300px; padding: 0 24px 20px; }
.faq-answer p { color: var(--text-muted); line-height: 1.8; }

/* ===== Footer ===== */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--primary-light);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 300px; }
.footer-col h4 { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.85rem;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  padding: 100px 0 20px; font-size: 0.9rem;
}
.breadcrumb ol { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb li::after { content: '/'; margin-left: 8px; color: var(--text-muted); }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb li:last-child { color: var(--accent); }

/* ===== Page Content ===== */
.page-hero {
  padding: 140px 0 60px; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 212, 170, 0.06) 0%, transparent 60%);
}
.page-hero h1 { font-size: 2.8rem; font-weight: 800; color: var(--white); margin-bottom: 16px; }
.page-hero p { color: var(--text-muted); font-size: 1.15rem; max-width: 600px; margin: 0 auto; }

.content-section { padding: 60px 0; }
.content-block {
  max-width: 800px; margin: 0 auto 48px;
  padding: 36px; border-radius: var(--radius-lg);
  background: var(--card-bg); border: 1px solid var(--border);
}
.content-block h2 { font-size: 1.5rem; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.content-block h3 { font-size: 1.2rem; font-weight: 600; color: var(--accent); margin-bottom: 12px; margin-top: 24px; }
.content-block p { color: var(--text-muted); margin-bottom: 12px; }
.content-block ul { color: var(--text-muted); padding-left: 20px; margin-bottom: 12px; }
.content-block li { margin-bottom: 6px; }

/* ===== Data Table ===== */
.data-table-wrap { overflow-x: auto; margin: 24px 0; }
.data-table {
  width: 100%; border-collapse: collapse; font-size: 0.95rem;
}
.data-table th, .data-table td {
  padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border);
}
.data-table th {
  background: rgba(0, 212, 170, 0.08); color: var(--accent);
  font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px;
}
.data-table td { color: var(--text); }
.data-table tr:hover td { background: rgba(0, 212, 170, 0.03); }

/* ===== Chart Placeholder ===== */
.chart-container {
  width: 100%; height: 300px; border-radius: var(--radius);
  background: rgba(0, 212, 170, 0.03); border: 1px solid var(--border);
  display: flex; align-items: flex-end; justify-content: center;
  gap: 8px; padding: 24px; margin: 24px 0; position: relative;
}
.chart-bar {
  width: 32px; border-radius: 6px 6px 0 0;
  background: var(--gradient-accent); opacity: 0.7;
  transition: opacity 0.3s, height 0.5s;
}
.chart-bar:hover { opacity: 1; }
.chart-label {
  position: absolute; bottom: -28px; font-size: 0.75rem; color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .nav-links.active {
    display: flex; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: rgba(10, 22, 40, 0.98);
    padding: 24px; gap: 16px; border-bottom: 1px solid var(--border);
  }
  .hero h1 { font-size: 2.4rem; }
  .hero-stats { gap: 32px; }
  .app-showcase { flex-direction: column; gap: 48px; }
  .screenshots-grid { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 2rem; }
  .hero-features { flex-direction: column; align-items: center; gap: 16px; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .section-title { font-size: 2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .download-cards { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ===== Animations ===== */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--primary); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 212, 170, 0.3); }
