:root {
  --bg: #0f172a;
  --bg-2: #1e293b;
  --panel: #111c2e;
  --text: #e8edf2;
  --muted: #9aa5b1;
  --accent: #4ade80;
  --accent-2: #22c55e;
  --warn: #fbbf24;
  --bad: #f87171;
  --border: rgba(255,255,255,0.08);
  --radius: 10px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #1a2540 0%, var(--bg) 60%);
  min-height: 100vh;
}

a { color: #60a5fa; text-decoration: none; }
a:hover { text-decoration: underline; }

main { max-width: 920px; margin: 0 auto; padding: 0 24px 80px; }

/* Nav */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  max-width: 920px;
  margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 700; font-size: 16px;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--accent); color: var(--bg);
  border-radius: 8px; font-weight: 900;
}
.nav nav a { margin-left: 18px; color: var(--muted); }
.nav nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 64px 0 32px; text-align: center; }
.hero h1 {
  font-size: 42px; font-weight: 800; letter-spacing: -1px;
  margin: 0 0 16px;
}
.lead { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 auto 28px; }
.microcopy { font-size: 13px; color: var(--muted); margin-top: 16px; }

.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta {
  display: inline-block; padding: 12px 22px; border-radius: 8px;
  font-weight: 700; font-size: 15px;
}
.cta.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--bg);
}
.cta.primary:hover { filter: brightness(1.08); text-decoration: none; }
.cta.secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
}
.cta.secondary:hover { background: rgba(255,255,255,0.10); text-decoration: none; }

/* Screenshot */
.screenshot { margin: 32px 0 24px; text-align: center; }
.screenshot img {
  max-width: 100%; height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.screenshot-gallery {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin: 0 0 64px;
}
.screenshot-gallery img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.screenshot-gallery a:hover img { filter: brightness(1.05); }

/* Sections */
section { padding: 32px 0; border-top: 1px solid var(--border); }
section:first-of-type { border-top: none; }
section h2 {
  font-size: 24px; font-weight: 700; margin: 0 0 24px; text-align: center;
}

/* Features */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--panel); padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--border);
}
.feature h3 { margin: 0 0 8px; font-size: 16px; color: var(--accent); }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* Pricing */
.plan-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.plan-grid.single { max-width: 320px; margin: 0 auto; }
.plan {
  background: var(--panel); padding: 28px 24px; border-radius: var(--radius);
  border: 1px solid var(--border); text-align: center; position: relative;
}
.plan.featured { border-color: var(--accent); }
.plan .badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--bg);
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.plan h3 { margin: 0 0 12px; font-size: 18px; }
.plan .price { margin-bottom: 16px; }
.plan .amount { font-size: 36px; font-weight: 800; }
.plan .per { color: var(--muted); margin-left: 4px; }
.plan ul {
  list-style: none; padding: 0; margin: 0 0 20px;
  color: var(--muted); font-size: 14px;
}
.plan ul li { padding: 4px 0; }
.plan ul li::before { content: '✓ '; color: var(--accent); font-weight: 700; }

/* Install */
.install { text-align: center; }
.install-row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin: 16px 0;
}
.install-row.tight { margin: 8px 0; }
.store-btn {
  display: inline-block; padding: 10px 18px; border-radius: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: var(--text); font-weight: 600; font-size: 14px;
}
.store-btn:hover { background: rgba(255,255,255,0.10); text-decoration: none; }

/* FAQ */
.faq details {
  background: var(--panel); padding: 14px 18px; border-radius: var(--radius);
  border: 1px solid var(--border); margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '＋ '; color: var(--muted); }
.faq details[open] summary::before { content: '－ '; color: var(--accent); }
.faq p { color: var(--muted); margin: 8px 0 0; font-size: 14px; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  max-width: 920px; margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--muted); font-size: 13px;
}
footer a { color: var(--muted); }

/* Success page */
.success { padding-top: 48px; }
.success-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px; text-align: center;
}
.success-mark {
  width: 56px; height: 56px; line-height: 56px;
  background: var(--accent); color: var(--bg);
  border-radius: 50%; font-size: 28px; font-weight: 800;
  margin: 0 auto 16px;
}
.success-card h1 { margin: 0 0 8px; font-size: 28px; }
.success-card h3 { margin: 28px 0 12px; font-size: 16px; }
.key-box {
  display: flex; gap: 8px; margin: 20px 0 4px; justify-content: center;
}
.key-box input {
  flex: 1; max-width: 380px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 10px 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}
.key-box button {
  background: var(--accent); color: var(--bg);
  border: none; border-radius: 6px; padding: 10px 18px;
  font-weight: 700; cursor: pointer;
}
.key-box button:hover { filter: brightness(1.05); }
.steps {
  text-align: left; max-width: 480px; margin: 0 auto;
  color: var(--muted); padding-left: 24px;
}
.steps li { margin: 10px 0; }

/* Legal pages (privacy, terms) */
.legal { max-width: 720px; padding-top: 32px; }
.legal h1 { font-size: 32px; margin: 0 0 8px; }
.legal h2 {
  font-size: 18px; font-weight: 700;
  margin: 28px 0 10px; text-align: left;
  border-top: 1px solid var(--border); padding-top: 20px;
}
.legal section:first-of-type h2 { border-top: none; padding-top: 0; }
.legal p, .legal li { color: var(--text); font-size: 15px; }
.legal .muted { color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.legal ul { padding-left: 24px; }
.legal li { margin: 6px 0; }
.legal code {
  background: var(--panel); padding: 1px 6px; border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px;
}

/* Responsive */
@media (max-width: 600px) {
  .hero { padding: 40px 0 20px; }
  .hero h1 { font-size: 32px; }
  .lead { font-size: 16px; }
  .nav nav a { margin-left: 12px; }
}
