/* ====== Reset & Base ====== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-card: #1a1a2e;
  --bg-card-hover: #22223a;
  --border: #2a2a3e;
  --text-primary: #e8e8ed;
  --text-secondary: #a0a0b8;
  --text-muted: #666680;
  --accent: #4fc3f7;
  --accent-hover: #7ad6ff;
  --accent-glow: rgba(79, 195, 247, 0.25);
  --success: #66bb6a;
  --error: #ef5350;
  --warning: #ffa726;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1100px;
  --nav-height: 60px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; display: block; }

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

/* ====== Nav ====== */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary) !important;
}
.nav-brand img { border-radius: 8px; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ====== Section Common ====== */
section { padding: 80px 0; }

.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: #fff;
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 48px;
}

/* ====== Hero ====== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(79, 195, 247, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(102, 187, 106, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(79, 195, 247, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 680px;
}

.hero-icon {
  margin: 0 auto 24px;
  border-radius: 22px;
  box-shadow: 0 0 60px var(--accent-glow);
  animation: heroFloat 3s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #4fc3f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-tagline {
  font-size: 22px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-weight: 500;
}

.hero-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.btn-mac {
  background: var(--accent);
  color: #0f0f1a !important;
}
.btn-mac:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-win {
  background: transparent;
  border-color: var(--border);
  color: var(--text-primary) !important;
}
.btn-win:hover {
  border-color: var(--accent);
  background: rgba(79, 195, 247, 0.08);
  transform: translateY(-2px);
}

.hero-version {
  font-size: 13px;
  color: var(--text-muted);
}

/* ====== Intro ====== */
#intro { padding-top: 0; }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.intro-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.intro-icon { font-size: 40px; margin-bottom: 12px; }
.intro-card h3 { font-size: 20px; margin-bottom: 10px; color: #fff; }
.intro-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.8; }

.problem { border-color: rgba(239, 83, 80, 0.3); }
.solution { border-color: rgba(102, 187, 106, 0.3); }

.intro-arrow {
  font-size: 32px;
  color: var(--accent);
  font-weight: 700;
}

/* ====== Features ====== */
#features {
  background: linear-gradient(180deg, transparent 0%, rgba(79, 195, 247, 0.02) 50%, transparent 100%);
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
}
.feature-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon { font-size: 32px; margin-bottom: 14px; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; color: #fff; }
.feature-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

/* ====== Workflow ====== */
.workflow-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.wf-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 140px;
}

.wf-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  transition: all 0.3s;
}
.wf-step:hover .wf-num {
  background: var(--accent);
  color: #0f0f1a;
  box-shadow: 0 0 24px var(--accent-glow);
}

.wf-content h4 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 6px;
}
.wf-content p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.wf-connector {
  width: 40px;
  height: 2px;
  background: var(--border);
  margin-top: 26px;
  flex-shrink: 0;
}

/* ====== Screenshots ====== */
#screenshots {
  background: linear-gradient(180deg, rgba(79, 195, 247, 0.02) 0%, transparent 50%, rgba(79, 195, 247, 0.02) 100%);
}

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

.screenshot-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}
.screenshot-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.screenshot-card img {
  width: 100%;
  aspect-ratio: 16/12;
  object-fit: cover;
  object-position: top;
}
.screenshot-card p {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
}

/* ====== Download ====== */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 680px;
  margin: 0 auto 28px;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.3s;
}
.download-card:hover {
  border-color: var(--accent);
}

.download-platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--accent);
}
.download-platform h3 { font-size: 22px; color: #fff; }

.download-arch { font-size: 14px; color: var(--text-secondary); margin-bottom: 4px; }
.download-req { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }

.btn-dl {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: #0f0f1a !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
}
.btn-dl:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-dl-soon {
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--text-muted) !important;
  cursor: default;
}
.btn-dl-soon:hover {
  background: transparent;
  transform: none;
  box-shadow: none;
  border-color: var(--text-muted);
}

.download-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.8;
}
.download-note strong { color: var(--warning); }

/* ====== FAQ ====== */
#faq {
  background: linear-gradient(180deg, rgba(79, 195, 247, 0.02) 0%, transparent 100%);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.2s;
}
.faq-question:hover { background: rgba(79, 195, 247, 0.05); }

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--text-muted);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 20px 18px;
}
.faq-answer p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ====== Footer ====== */
#footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 10px;
}
.footer-col p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-qr {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  width: 150px;
  height: 150px;
  object-fit: cover;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { font-size: 13px; }

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ====== Lightbox ====== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

/* ====== Responsive ====== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-arrow { transform: rotate(90deg); }
  .wf-connector { display: none; }
  .workflow-steps { gap: 16px; }
  .wf-step { width: 120px; }
}

@media (max-width: 768px) {
  section { padding: 56px 0; }
  .section-title { font-size: 26px; }

  .hero-content h1 { font-size: 34px; }
  .hero-tagline { font-size: 18px; }
  .hero-actions { flex-direction: column; align-items: center; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(12px);
    padding: 16px 24px;
    gap: 12px;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: flex; }

  .features-grid { grid-template-columns: 1fr; }
  .screenshots-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-qr { margin: 0 auto; }

  .workflow-steps {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .wf-step { flex-direction: row; width: 100%; max-width: 320px; gap: 16px; text-align: left; }
  .wf-num { flex-shrink: 0; margin-bottom: 0; }
  .wf-connector {
    width: 2px;
    height: 24px;
    margin-top: 0;
    margin-left: 26px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 28px; }
  .btn-download { padding: 12px 24px; font-size: 14px; }
}
