/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --bg: #0b0b12;
  --bg2: #13131e;
  --bg3: #1a1a26;
  --surface: #16161f;
  --surface-alt: #1e1e2d;
  --ink: #e5e5e5;
  --ink-muted: #9ca3af;
  --ink-dim: #6b7280;
  --rule: #262636;
  --rule-strong: #3a3a50;
  --accent: #d946ef;
  --accent-hover: #c026d3;
  --accent-soft: rgba(217, 70, 239, 0.15);
  --accent-glow: rgba(217, 70, 239, 0.4);
  --pro-gold: #fbbf24;
  --green: #22c55e;
  --cross: #ef4444;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.logo-dot {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  box-shadow: 0 0 16px var(--accent-glow);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-muted);
  transition: color .15s;
}
.nav-links a:hover { color: var(--ink); }
.gh-link { color: var(--ink-muted) !important; display: flex; }
.gh-link:hover { color: var(--ink) !important; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .2s;
  white-space: nowrap;
  text-align: center;
}
.btn-sm { padding: 8px 16px; font-size: 14px; border-radius: 8px; }
.btn-lg { padding: 16px 34px; font-size: 17px; border-radius: 12px; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #a855f7);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-ghost:hover {
  background: var(--bg3);
  border-color: var(--ink-dim);
}
.btn.full { width: 100%; }

/* ============ Hero ============ */
.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.hero-copy { z-index: 1; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg3);
  border: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 24px;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent), #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 17px;
  color: var(--ink-muted);
  margin-bottom: 32px;
  max-width: 460px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 32px;
}
.stat strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}
.stat span {
  font-size: 13px;
  color: var(--ink-dim);
}

/* Hero visual - before/after slider */
.hero-visual { z-index: 1; }
.slider-wrap {
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.slider-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  user-select: none;
}
.slider-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slider-before {
  position: absolute;
  inset: 0;
}
.slider-after {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 50% 0 0);
}
.checkerboard-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, #2a2a36 25%, transparent 25%),
    linear-gradient(-45deg, #2a2a36 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #2a2a36 75%),
    linear-gradient(-45deg, transparent 75%, #2a2a36 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0px;
  background-color: #1a1a24;
  z-index: 0;
}
.slider-after img {
  position: relative;
  z-index: 1;
}
.label-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: rgba(0,0,0,0.7);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 6px;
  z-index: 5;
}
.label-badge.after { left: auto; right: 12px; background: var(--accent); color: white; }
.slider-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  cursor: ew-resize;
  z-index: 10;
  transform: translateX(-50%);
}
.handle-line {
  position: absolute;
  inset: 0;
  background: white;
  box-shadow: 0 0 12px rgba(255,255,255,0.5);
}
.handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.slider-hint {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-dim);
}

/* ============ Sections ============ */
.section {
  padding: 96px 0;
  position: relative;
}
.section-alt {
  background: var(--bg2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.section-title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--ink-muted);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto 56px;
}
.section-sub a {
  color: var(--accent);
  text-decoration: underline;
}

/* ============ How it works ============ */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  text-align: center;
}
.step-num {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--ink-muted); font-size: 14px; }
.step-arrow {
  font-size: 24px;
  color: var(--ink-dim);
  font-weight: 700;
}

/* ============ Features ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover {
  border-color: var(--rule-strong);
  transform: translateY(-2px);
}
.feature-card.pro-border {
  border-color: rgba(251, 191, 36, 0.3);
  background: linear-gradient(135deg, rgba(251,191,36,0.05), var(--surface));
}
.pro-tag {
  position: absolute;
  top: 12px; right: 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--pro-gold);
  background: rgba(251,191,36,0.15);
  padding: 3px 8px;
  border-radius: 6px;
}
.feature-icon { font-size: 28px; margin-bottom: 16px; }
.feature-icon.muted { opacity: 0.3; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { color: var(--ink-muted); font-size: 14px; }

/* ============ Compare ============ */
.compare-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}
.compare-col {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
}
.compare-col.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-soft);
}
.featured-tag {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
}
.compare-col.featured { position: relative; }
.compare-header {
  padding: 28px;
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.compare-header.free h3, .compare-header.pro h3 { font-size: 22px; margin-bottom: 8px; }
.compare-header.pro {
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  border-bottom-color: var(--accent-soft);
}
.price {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.price-sub { font-size: 14px; font-weight: 500; color: var(--ink-muted); }
.compare-header p { font-size: 14px; color: var(--ink-muted); margin-top: 4px; }
.compare-list { list-style: none; padding: 20px 24px; }
.compare-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--rule);
}
.compare-list li:last-child { border-bottom: none; }
.compare-list li.disabled { color: var(--ink-dim); }
.check { color: var(--green); font-weight: 700; min-width: 18px; }
.cross { color: var(--cross); font-weight: 700; min-width: 18px; }
.compare-col .btn { margin: 0 24px 24px; }

/* ============ Pricing ============ */
.pricing-inner { max-width: 1040px; }
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.pricing-card {
  position: relative;
  padding: 36px 28px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
}
.pricing-card.spotlight {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(217,70,239,0.08) 0%, var(--surface) 50%);
  box-shadow: 0 0 50px var(--accent-soft);
  transform: scale(1.03);
}
.spotlight-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-card h3 { font-size: 18px; margin-bottom: 12px; }
.big-price {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.perpetual { font-size: 16px; font-weight: 500; color: var(--ink-muted); margin-left: 2px; }
.price-desc { color: var(--ink-muted); font-size: 14px; margin-bottom: 20px; }
.pricing-card ul { list-style: none; margin-bottom: 28px; flex: 1; }
.pricing-card ul li {
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--rule);
}
.pricing-card ul li:last-child { border-bottom: none; }
.pricing-card ul li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 10px; }

/* ============ Download ============ */
.download-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.download-card {
  padding: 36px 28px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
  text-align: center;
}
.download-card.soon { opacity: 0.6; }
.download-icon {
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}
.download-icon.muted { color: var(--ink-dim); }
.download-card h3 { font-size: 18px; margin-bottom: 16px; }
.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.version-note { font-size: 12px; color: var(--ink-dim); }
.soon-text { font-size: 13px; color: var(--ink-muted); }
.source-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.license { font-size: 13px; color: var(--ink-dim); }

/* ============ FAQ ============ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-list details {
  border-bottom: 1px solid var(--rule);
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-icon {
  font-size: 24px;
  font-weight: 300;
  color: var(--accent);
  transition: transform .2s;
  margin-left: 16px;
}
.faq-list details[open] .faq-icon { transform: rotate(45deg); }
.faq-list p {
  padding-bottom: 20px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.7;
}
.faq-list a { color: var(--accent); text-decoration: underline; }
.faq-list code {
  background: var(--bg3);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-family: "SF Mono", Consolas, monospace;
  color: var(--accent);
}

/* ============ CTA ============ */
.cta-section {
  padding: 96px 0;
  text-align: center;
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg2) 50%, var(--bg) 100%);
  border-top: 1px solid var(--rule);
}
.cta-section h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.cta-section p {
  color: var(--ink-muted);
  margin-bottom: 28px;
  font-size: 16px;
}

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--rule);
  background: var(--bg);
  padding-top: 64px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-tag { color: var(--ink-muted); font-size: 14px; margin-top: 12px; max-width: 220px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--ink-muted);
  transition: color .15s;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--rule);
  padding: 20px 0;
}
.footer-bottom p {
  color: var(--ink-dim);
  font-size: 13px;
  text-align: center;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; max-width: 500px; margin: 0 auto; width: 100%; }
  .hero h1 { text-align: center; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; }

  .compare-wrap { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .pricing-card.spotlight { transform: none; }
  .download-row { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .big-price { font-size: 38px; }
  .price { font-size: 36px; }
}
