/* ===== CSS Variables ===== */
:root {
  --bg: #1e2029;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --theme: #a3a1ff;
  --theme-hover: #8f8cff;
  --text: #ffffff;
  --text-secondary: #b9bdd1;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC",
    "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans CN",
    sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --header-height: 64px;
  --max-width: 1120px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 1400px 800px at 50% -200px, rgba(163, 161, 255, 0.10), transparent 60%),
    radial-gradient(ellipse 1200px 600px at 50% 110vh, rgba(163, 161, 255, 0.05), transparent 50%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

/* ===== Section ===== */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--theme);
  background: rgba(163, 161, 255, 0.1);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.section-title {
  font-size: 2.125rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
}
.section-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background 0.3s, box-shadow 0.3s;
}
.header.scrolled {
  background: rgba(30, 32, 41, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  flex-shrink: 0;
}
.nav { display: flex; gap: 36px; }
.nav a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: color 0.2s;
  font-weight: 500;
}
.nav a:hover, .nav a.active { color: var(--text); }
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}
.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-btn span + span { margin-top: 6px; }
.menu-btn.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { padding: calc(var(--header-height) + 80px) 0 60px; text-align: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--theme);
  background: rgba(163, 161, 255, 0.1);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 28px;
  border: 1px solid rgba(163, 161, 255, 0.15);
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--theme);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.hero-title span { background: linear-gradient(135deg, var(--theme), #c5b4fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-mockup {
  margin-top: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.hero-mockup-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  letter-spacing: 0.5px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 36px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  font-family: inherit;
  letter-spacing: 0.2px;
}
.btn-primary {
  background: var(--theme);
  color: #1a1a2e;
  box-shadow: 0 4px 20px rgba(163, 161, 255, 0.3);
}
.btn-primary:hover { background: var(--theme-hover); transform: translateY(-1px); box-shadow: 0 6px 28px rgba(163, 161, 255, 0.4); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--border-hover); background: var(--bg-card); }
.btn-lg { padding: 16px 36px; font-size: 1rem; border-radius: 40px; }

/* ===== Glass Card ===== */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
@supports (backdrop-filter: blur(10px)) {
  .glass-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}
.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

/* ===== Product Intro ===== */
.intro-text {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===== Features Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card { text-align: left; padding: 32px 28px; }
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(163, 161, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.25rem;
  color: var(--theme);
}
.feature-card h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.6; }

/* ===== Characters ===== */
.chars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.char-card { padding: 0; overflow: hidden; }
.char-img {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, rgba(163, 161, 255, 0.15), rgba(163, 161, 255, 0.05));
  overflow: hidden;
}
.char-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.char-info { padding: 20px 24px; text-align: center; }
.char-tags {
  font-size: 0.8125rem;
  color: var(--theme);
  margin-bottom: 8px;
  font-weight: 500;
}
.char-info h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.char-quote {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
  min-height: 2.6em;
}
.char-btn {
  display: inline-block;
  text-align: center;
  padding: 10px 28px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.char-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
  color: var(--text);
}

/* ===== Screenshots ===== */
.shots-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.shot-card { padding: 0; overflow: hidden; }
.shot-img {
  width: 100%;
  aspect-ratio: 9/19.5;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}
.shot-label { padding: 16px 20px; text-align: center; font-size: 0.875rem; color: var(--text-secondary); }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: inherit;
}
.faq-q:hover { color: var(--theme); }
.faq-arrow {
  width: 20px; height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s;
  opacity: 0.5;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); opacity: 1; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding-bottom: 22px;
}
.faq-a p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== CTA ===== */
.cta { text-align: center; padding: 120px 0; }
.cta-glow {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 40px;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.cta-glow h2 { font-size: 1.75rem; font-weight: 600; margin-bottom: 12px; }
.cta-glow p { color: var(--text-secondary); margin-bottom: 28px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Testimonials ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card { padding: 28px; }
.testimonial-stars {
  font-size: 0.875rem;
  color: #f5a623;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.testimonial-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  min-height: 0;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--theme), #c5b4fc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #1e2029;
  flex-shrink: 0;
}
.testimonial-name { font-size: 0.9375rem; font-weight: 600; }
.testimonial-role { font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { margin-top: 12px; line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 16px; }
.footer-col a {
  display: block;
  padding: 6px 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--theme); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== Page Header ===== */
.page-header {
  padding: calc(var(--header-height) + 48px) 0 0;
  text-align: center;
}
.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.page-header p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== Content Page ===== */
.content-page { padding: 60px 0 100px; }
.content-page .container { max-width: 800px; }
.content-page h2 { font-size: 1.5rem; font-weight: 600; margin: 48px 0 16px; color: var(--text); }
.content-page h2:first-child { margin-top: 0; }
.content-page h3 { font-size: 1.125rem; font-weight: 600; margin: 32px 0 12px; color: var(--text); }
.content-page p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.content-page ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.content-page li { color: var(--text-secondary); line-height: 1.8; margin-bottom: 6px; }

/* ===== Download Page ===== */
.dl-app-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin: 0 auto 24px;
  display: block;
  box-shadow: 0 8px 32px rgba(163, 161, 255, 0.25);
}
.dl-hero { text-align: center; }
.dl-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 40px 0 60px; }
.dl-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 40px 0; }
.dl-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.dl-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(163, 161, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--theme);
}
.dl-feature-text h4 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 4px; }
.dl-feature-text p { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.5; }
.dl-note {
  background: rgba(163, 161, 255, 0.08);
  border: 1px solid rgba(163, 161, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-top: 32px;
}
.dl-note p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; }
.dl-note strong { color: var(--theme); font-weight: 500; }

/* ===== Feedback ===== */
.feedback-content { max-width: 540px; margin: 0 auto; }
.feedback-info {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}
.feedback-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feedback-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(163, 161, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.125rem;
  color: var(--theme);
}
.feedback-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.feedback-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }
.feedback-card a { color: var(--theme); word-break: break-all; }

/* ===== 404 ===== */
.page-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 40px 24px;
}
.page-404-code {
  font-size: 7rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--theme), #c5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}
.page-404 h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 10px; }
.page-404 p { color: var(--text-secondary); margin-bottom: 32px; font-size: 1.0625rem; }

/* ===== Placeholder ===== */
.placeholder {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

/* ===== Scroll Animation ===== */
.fade-up { opacity: 1; transition: opacity 0.6s ease, transform 0.6s ease; }
.js-enabled .fade-up { opacity: 0; transform: translateY(24px); }
.js-enabled .fade-up.visible { opacity: 1; transform: translateY(0); }


/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .chars-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-height: 56px; }
  .section { padding: 64px 0; }
  .section-title { font-size: 1.625rem; }
  .section-label { font-size: 12px; }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 999;
  }
  .nav.open { opacity: 1; pointer-events: auto; }
  .nav a { font-size: 1.25rem; }
  .menu-btn { display: block; position: relative; z-index: 1001; }

  .hero-title { font-size: 2rem; }
  .hero-desc { font-size: 1rem; }
  .hero-btns { flex-direction: row; }
  .hero-btns .btn { flex: 1 1 0; justify-content: center; }

  .features-grid { grid-template-columns: 1fr; }
  .chars-grid { grid-template-columns: 1fr; }
  .shots-grid { grid-template-columns: 1fr; }
  .dl-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .testimonials-grid { grid-template-columns: 1fr; }

  .cta-glow { padding: 40px 24px; }
  .cta-glow h2 { font-size: 1.375rem; }

  .dl-btns { flex-direction: row; }
  .dl-btns .btn { flex: 1 1 0; }

  .page-header h1 { font-size: 1.75rem; }
  .page-header { padding-top: calc(var(--header-height) + 32px); }

  .page-404-code { font-size: 4rem; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; }
  .dl-btns { flex-direction: column; }
  .dl-btns .btn { width: 100%; }
  .cta-btns { flex-direction: column; }
  .cta-btns .btn { width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
