:root {
  --bg: #060a12;
  --bg-elevated: #0c1220;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf4;
  --text-muted: #8b95a8;
  --accent: #007bff;
  --accent-soft: rgba(0, 123, 255, 0.15);
  --accent-glow: rgba(0, 123, 255, 0.45);
  --premium: #7c5cff;
  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 72px;
  --font: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-w: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(100% - 40px, var(--max-w));
  margin-inline: auto;
}

/* ── Nav ── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.scrolled {
  background: rgba(6, 10, 18, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 40px, var(--max-w));
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 0 20px rgba(0, 123, 255, 0.35);
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-cta {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 24px var(--accent-glow);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 99;
  background: rgba(6, 10, 18, 0.96);
  backdrop-filter: blur(20px);
  padding: 24px;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.mobile-drawer.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-drawer a {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 600px;
  max-height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: 10%;
  right: -10%;
  filter: blur(60px);
  pointer-events: none;
  animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 48px 0 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px #22c55e;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.hero h1 .gradient {
  background: linear-gradient(120deg, #fff 30%, var(--accent) 70%, #00d4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin-top: 20px;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 36em;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 28px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px var(--accent-glow);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

.stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Sections ── */
section {
  padding: 96px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  max-width: 32em;
  margin-bottom: 48px;
  font-size: 1.02rem;
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--surface) 0%, transparent 100%);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 123, 255, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Pricing ── */
#pricing {
  background: linear-gradient(180deg, transparent, rgba(0, 123, 255, 0.04) 50%, transparent);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.pricing-card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.pricing-card.featured {
  border-color: rgba(0, 123, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.2), 0 24px 60px rgba(0, 123, 255, 0.12);
}

.pricing-card.premium-tier {
  border-color: rgba(124, 92, 255, 0.4);
}

.pricing-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
}

.pricing-card.premium-tier .pricing-badge {
  background: var(--premium);
}

.plan-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.plan-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-price small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.plan-price .free {
  color: var(--accent);
}

.plan-meta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.plan-meta li {
  list-style: none;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-meta li::before {
  content: "";
  width: 10px;
  height: 6px;
  flex: 0 0 auto;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) translateY(-1px);
}

.pricing-card .btn {
  margin-top: auto;
  padding-top: 24px;
  width: 100%;
}

.pricing-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px;
  color: var(--text-muted);
}

/* ── Download ── */
.download-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.download-visual {
  position: relative;
  aspect-ratio: 4/5;
  max-height: 480px;
  border-radius: 24px;
  background: linear-gradient(145deg, var(--bg-elevated), rgba(0, 123, 255, 0.08));
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-mock {
  width: 55%;
  max-width: 220px;
  aspect-ratio: 9/19;
  border-radius: 28px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  background: #0a0e17;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  padding: 12px 8px;
  position: relative;
  z-index: 2;
}

.phone-screen {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(180deg, #0f1628 0%, #060a12 100%);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-screen .app-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.phone-screen .node-line {
  height: 8px;
  border-radius: 4px;
  background: var(--surface);
}

.phone-screen .node-line.active {
  background: linear-gradient(90deg, var(--accent), transparent);
  width: 80%;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: background 0.2s, transform 0.2s var(--ease);
}

.store-btn:hover {
  background: var(--surface-hover);
  transform: translateX(4px);
}

.store-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.store-btn span {
  display: block;
  text-align: left;
}

.store-btn .small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.store-btn .big {
  font-size: 1rem;
  font-weight: 600;
}

.download-note {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid rgba(0, 123, 255, 0.2);
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-card {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.about-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.about-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.value-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
}

.value-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

/* ── Footer ── */
.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile sticky CTA ── */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(6, 10, 18, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}

.mobile-cta-bar .btn {
  width: 100%;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .download-wrap,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .download-visual {
    max-height: 360px;
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta-desktop {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-drawer {
    display: flex;
  }

  section {
    padding: 72px 0;
  }

  .hero-stats {
    gap: 24px;
  }

  .mobile-cta-bar {
    display: block;
  }

  body {
    padding-bottom: 72px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 32px, var(--max-w));
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
