:root {
  --bg: #0c0d14;
  --bg2: #12141c;
  --surface: #1a1d27;
  --surface2: #232838;
  --border: #2a2f40;
  --text: #eef0f6;
  --text-dim: #9298ad;
  --accent: #6b4ce8;
  --accent2: #3ddc9a;
  --accent-grad: linear-gradient(135deg, #6b4ce8, #3ddc9a);
  --warn: #f59e0b;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-dim); }
a { color: inherit; text-decoration: none; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12,13,20,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand em { color: var(--accent2); font-style: normal; }
.topnav { display: flex; gap: 28px; flex: 1; justify-content: center; }
.topnav a { color: var(--text-dim); font-size: 14px; font-weight: 500; transition: color .15s; }
.topnav a:hover { color: var(--text); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  background: var(--surface2); border: 1px solid var(--border); color: var(--text-dim);
  border-radius: 8px; padding: 8px 12px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.lang-switch:hover { color: var(--text); border-color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 10px; padding: 10px 18px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn-primary { background: var(--accent-grad); color: #0c0d14; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(107,76,232,0.35); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 12px; }

/* Hero */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 480px;
  background: radial-gradient(60% 60% at 30% 20%, rgba(107,76,232,0.25), transparent 70%),
              radial-gradient(50% 50% at 80% 10%, rgba(61,220,154,0.18), transparent 70%);
  z-index: -1;
}
.hero-inner { text-align: center; }
.badge {
  display: inline-block; background: var(--surface); border: 1px solid var(--border);
  color: var(--accent2); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 { font-size: 44px; line-height: 1.15; margin: 0 0 20px; max-width: 780px; margin-inline: auto; letter-spacing: -0.02em; }
.hero-sub { font-size: 17px; color: var(--text-dim); max-width: 640px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hero-stats strong { font-size: 24px; color: var(--accent2); }
.hero-stats span { font-size: 13px; color: var(--text-dim); }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-size: 30px; text-align: center; margin: 0 0 12px; letter-spacing: -0.01em; }
.section-sub { text-align: center; color: var(--text-dim); max-width: 560px; margin: 0 auto 48px; font-size: 15px; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.feature-card h3 { margin: 0 0 8px; font-size: 17px; }
.feature-card p { margin: 0; color: var(--text-dim); font-size: 14px; }
.feature-icon { font-size: 28px; margin-bottom: 14px; }

/* Pricing */
.grid-pricing { grid-template-columns: repeat(3, 1fr); }
.pricing-skeleton { grid-column: 1 / -1; text-align: center; color: var(--text-dim); padding: 40px; }
.plan-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 14px; position: relative;
  transition: transform .15s, border-color .15s;
}
.plan-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.plan-card.is-featured {
  border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              var(--accent-grad) border-box;
  box-shadow: 0 10px 40px rgba(107,76,232,0.25);
}
.plan-ribbon {
  position: absolute; top: -12px; right: 20px; background: var(--accent-grad);
  color: #0c0d14; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  letter-spacing: 0.02em;
}
.plan-name { font-size: 16px; font-weight: 700; }
.plan-price { font-size: 34px; font-weight: 800; display: flex; align-items: baseline; gap: 6px; }
.plan-price small { font-size: 13px; font-weight: 500; color: var(--text-dim); }
.plan-desc { color: var(--text-dim); font-size: 13px; flex: 1; }
.plan-cta {
  text-align: center; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px; font-weight: 600; font-size: 13px; color: var(--text);
}
.plan-card.is-featured .plan-cta { background: var(--accent-grad); color: #0c0d14; border: none; }
.plan-free .plan-price { color: var(--accent2); }

/* Download */
.download-wrap { display: flex; justify-content: center; }
.download-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 48px; text-align: center; max-width: 520px; width: 100%; box-shadow: var(--shadow);
}
.download-icon { font-size: 36px; margin-bottom: 12px; }
.download-card h2 { margin: 0 0 8px; font-size: 24px; }
.download-version { color: var(--text-dim); font-size: 14px; margin: 0 0 24px; }
.download-btn { width: 100%; justify-content: center; }
.btn-disabled { opacity: 0.4; pointer-events: none; }
.hidden { display: none !important; }
.wip-box {
  background: linear-gradient(135deg, rgba(107,76,232,0.12), rgba(61,220,154,0.08));
  border: 1px solid var(--border); border-radius: 12px; padding: 22px; margin-top: 4px;
}
.wip-badge { display: inline-block; font-size: 13px; font-weight: 700; color: var(--warn); margin-bottom: 8px; }
.wip-box p { margin: 0; color: var(--text-dim); font-size: 13px; line-height: 1.6; }
.download-meta { color: var(--text-dim); font-size: 12px; margin: 16px 0 0; }
.download-changelog { color: var(--text-dim); font-size: 13px; margin: 12px 0 0; white-space: pre-line; text-align: left; background: var(--bg2); border-radius: 8px; padding: 12px; }

/* Changelog */
.changelog-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.changelog-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.changelog-item .cv { font-weight: 700; color: var(--accent2); }
.changelog-item .cd { color: var(--text-dim); font-size: 12px; margin-left: 8px; }
.changelog-item p { margin: 10px 0 0; color: var(--text-dim); font-size: 13px; white-space: pre-line; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-dim); }

@media (max-width: 860px) {
  .topnav { display: none; }
  .hero h1 { font-size: 32px; }
  .grid-3, .grid-pricing { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
}
