*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0f;
  --bg-alt: #1a1a1a;
  --surface: #2b2b2b;
  --sidebar: #121212;
  --accent: #2135ad;
  --accent-hover: #2a42c4;
  --accent-glow: rgba(33, 53, 173, 0.35);
  --cyan: #0096ff;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.65);
  --text-dim: rgba(255, 255, 255, 0.4);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.lang-switch {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn:hover {
  color: var(--text-muted);
}

.lang-btn.active {
  background: var(--accent);
  color: #fff;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-outline:hover {
  background: rgba(33, 53, 173, 0.1);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

/* ── Hero ── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 140px 24px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 32px;
  transition: all 0.2s;
}

.pill:hover {
  color: var(--text);
  background: rgba(33, 53, 173, 0.08);
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Mockups ── */
.mockups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 100px;
}

.mockup-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mockup-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
}

.mockup-window {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.mockup-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.mockup-body {
  display: flex;
  min-height: 280px;
}

.mock-sidebar {
  width: 130px;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  padding: 16px 10px;
  flex-shrink: 0;
}

.mock-sidebar-logo {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 16px;
  padding: 0 6px;
}

.mock-nav-item {
  font-size: 11px;
  padding: 7px 8px;
  border-radius: 6px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.mock-nav-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.mock-main {
  flex: 1;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.mock-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mock-card p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

.mock-tags {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.mock-tags span {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(33, 53, 173, 0.25);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(33, 53, 173, 0.4);
}

.mock-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mock-suggestions span {
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.mock-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.mock-log {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.log-line {
  font-size: 11px;
  color: var(--text-dim);
  font-family: ui-monospace, 'Consolas', monospace;
}

.log-line.done { color: rgba(75, 181, 67, 0.85); }
.log-line.active { color: var(--cyan); }

.log-time {
  color: var(--text-dim);
  margin-right: 6px;
}

/* ── Sections ── */
.features,
.pricing,
.faq,
.download-cta {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.features h2,
.pricing h2,
.faq h2,
.download-cta h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 48px;
}

/* ── Features grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(33, 53, 173, 0.4);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: left;
}

.price-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s;
}

.price-card:hover {
  transform: translateY(-3px);
}

.price-card.featured {
  border-color: var(--accent);
  background: rgba(33, 53, 173, 0.08);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.price-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 8px;
}

.price-amount {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price-period {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.price-card ul {
  list-style: none;
  flex: 1;
  margin-bottom: 20px;
}

.price-card li {
  font-size: 13px;
  color: var(--text-muted);
  padding: 5px 0;
  padding-left: 16px;
  position: relative;
}

.price-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 11px;
}

/* ── FAQ ── */
.faq-list {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item summary {
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--text-dim);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Download CTA ── */
.download-cta {
  background: rgba(33, 53, 173, 0.06);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: 100%;
}

.download-cta p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--border);
}

.footer-logo {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer-links a,
.footer-wechat {
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav { display: none; }

  .mockups {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .header {
    padding: 14px 16px;
  }

  .header-actions .btn {
    display: none;
  }

  .lang-switch {
    flex-shrink: 0;
  }

  .hero {
    padding-top: 100px;
  }

  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .btn-lg {
    width: 100%;
  }
}
