:root {
  --bg: #0f1014;
  --bg-2: #17181d;
  --card: #1d1f25;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e6e7ea;
  --muted: #a9adb6;
  --strong: #ffffff;
  --brand: #5865f2;
  --brand-hover: #4752c4;
  --green: #3ba55d;
  --radius: 16px;
  --max: 1120px;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(var(--max), 100% - 32px); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 16, 20, 0.8);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; color: var(--strong); }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a.link { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 8px; font-weight: 500; }
.nav a.link:hover { color: var(--strong); background: rgba(255, 255, 255, 0.05); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 16px;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 24px rgba(88, 101, 242, 0.35); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: var(--strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn-small { padding: 9px 16px; font-size: 14px; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 88px 0 64px;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(88, 101, 242, 0.35), transparent 60%),
    radial-gradient(700px 500px at 95% 10%, rgba(155, 92, 246, 0.28), transparent 60%),
    var(--bg);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #b6bcff; background: rgba(88, 101, 242, 0.16); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.05; font-weight: 900; color: var(--strong); letter-spacing: -0.02em; }
.lead { margin-top: 18px; font-size: 19px; color: var(--muted); max-width: 520px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-shot { position: relative; }
.hero-shot .desktop { border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.hero-shot .phone {
  position: absolute; right: -12px; bottom: -40px; width: 34%;
  border-radius: 22px; border: 6px solid #0b0b0e; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

/* Sections */
section { padding: 80px 0; }
.section-title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; color: var(--strong); letter-spacing: -0.01em; }
.section-lead { color: var(--muted); font-size: 18px; margin-top: 10px; max-width: 640px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 40px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(88, 101, 242, 0.18); color: #b6bcff; margin-bottom: 16px; }
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { color: var(--strong); font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); }
.theme-dots { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.theme-dots span { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); }

.band {
  background: linear-gradient(135deg, #1d1035 0%, #3b1658 45%, #6b1f5e 100%);
  border-radius: 24px; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.band h2 { font-size: clamp(26px, 3.4vw, 36px); color: #fff; font-weight: 800; }
.band p { color: rgba(255, 255, 255, 0.8); margin-top: 8px; }

/* Download page */
.download-hero { padding: 72px 0 32px; text-align: center; }
.download-hero .lead { margin-left: auto; margin-right: auto; }
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 40px; }
.dl-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.dl-card.featured { border-color: rgba(88, 101, 242, 0.6); box-shadow: 0 0 0 1px rgba(88, 101, 242, 0.35), 0 20px 60px rgba(88, 101, 242, 0.15); }
.dl-card h2 { color: var(--strong); font-size: 22px; display: flex; align-items: center; gap: 10px; }
.dl-card h2 svg { width: 26px; height: 26px; }
.dl-card p { color: var(--muted); }
.dl-card .btn { align-self: flex-start; }
.meta { font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.meta code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; word-break: break-all; color: var(--text); }
.steps { counter-reset: step; display: grid; gap: 14px; margin-top: 8px; }
.steps li { list-style: none; position: relative; padding-left: 44px; color: var(--text); }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(88, 101, 242, 0.2); color: #b6bcff; font-weight: 800; font-size: 14px;
}
.steps li span { color: var(--muted); display: block; font-size: 14px; }
.note { margin-top: 24px; padding: 14px 16px; border-radius: 12px; background: rgba(250, 166, 26, 0.1); border: 1px solid rgba(250, 166, 26, 0.3); color: #f3d6a6; font-size: 14px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; margin-left: 16px; }
.site-footer a:hover { color: var(--strong); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 860px) {
  .hero { padding: 56px 0 72px; }
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero-shot .phone { right: 8px; bottom: -28px; width: 30%; border-width: 4px; border-radius: 16px; }
  section { padding: 56px 0; }
  .band { padding: 32px 24px; }
  .nav a.link { display: none; }
}

/* Changelog (generated from CHANGELOG.md by deploy/deploy-site.sh) */
.changelog h2 { color: var(--strong); font-size: 26px; margin: 40px 0 6px; }
.changelog h2 small { color: var(--muted); font-size: 15px; font-weight: 500; margin-left: 8px; }
.changelog h3, .changelog-entry h3 { color: var(--strong); font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; margin: 20px 0 8px; }
.changelog p { color: var(--muted); }
.changelog ul, .changelog-entry ul { margin: 0 0 8px 20px; display: grid; gap: 6px; }
.changelog li, .changelog-entry li { color: var(--text); }
.changelog code, .changelog-entry code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: rgba(255,255,255,0.08); padding: 1px 5px; border-radius: 4px; }
.changelog-entry { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 24px 16px; margin-top: 20px; }
.section-lead a, .changelog a { color: #b6bcff; }
