/* ── Reset & variables ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple:   #6c47ff;
  --purple-d: #5535e0;
  --dark:     #0d0d1a;
  --dark2:    #13132b;
  --card:     #1a1a35;
  --border:   #2a2a4a;
  --text:     #e8e8f8;
  --muted:    #8888aa;
  --white:    #ffffff;
  --radius:   14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

img { display: block; }

/* ── Layout helpers ──────────────────────────────────────────────────────── */
.nav-inner,
.hero-inner,
.section-inner,
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,13,26,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; color: var(--white);
  text-decoration: none;
}
.nav-brand img { border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--white); text-decoration: none; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: 100px;
  font-weight: 600; font-size: 15px;
  background: var(--purple); color: var(--white);
  border: none; cursor: pointer; transition: background .2s, transform .15s;
  text-decoration: none;
}
.btn:hover { background: var(--purple-d); text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--purple);
  color: var(--purple);
}
.btn-outline:hover { background: var(--purple); color: var(--white); }

/* ── Store badges ────────────────────────────────────────────────────────── */
.store-badges {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); color: #000;
  border-radius: 10px; padding: 9px 18px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  min-width: 155px;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.35); text-decoration: none; }
.store-badge .badge-icon { font-size: 26px; line-height: 1; }
.store-badge .badge-text { display: flex; flex-direction: column; }
.store-badge .badge-label { font-size: 10px; line-height: 1.2; color: #444; }
.store-badge .badge-store { font-size: 16px; font-weight: 700; line-height: 1.3; color: #000; }

/* ── Badge label ─────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  background: rgba(108,71,255,.18); color: #b39dff;
  border: 1px solid rgba(108,71,255,.35);
  border-radius: 100px; padding: 4px 14px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  margin-bottom: 20px;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  padding: 90px 0 80px;
  background: radial-gradient(ellipse 80% 60% at 60% 0%, rgba(108,71,255,.18) 0%, transparent 70%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.15;
  color: var(--white); margin-bottom: 20px;
}
.hero-sub {
  font-size: 17px; color: var(--muted);
  margin-bottom: 36px; max-width: 460px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Mac frame mockup ────────────────────────────────────────────────────── */
.mac-frame {
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
}
.mac-bar {
  background: #1e1e38;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red    { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green  { background: #27c93f; }
.url-bar {
  flex: 1; background: #2a2a4a; border-radius: 6px;
  padding: 4px 10px; font-size: 11px; color: var(--muted);
  text-align: center; margin: 0 8px;
}
.mac-content {
  padding: 20px; background: var(--dark2);
  min-height: 220px; display: flex; justify-content: flex-end;
}

/* ── Popup preview ───────────────────────────────────────────────────────── */
.popup-preview {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px; width: 260px;
  font-size: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
.pp-field { display: flex; flex-direction: column; gap: 3px; margin-bottom: 8px; }
.pp-field label { font-weight: 600; font-size: 11px; color: var(--muted); }
.pp-input {
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: 5px; padding: 5px 7px; color: var(--text);
  font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pp-muted { color: var(--muted); }
.pp-select {
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: 5px; padding: 5px 7px; color: var(--text); font-size: 11px;
}
.pp-row { display: flex; gap: 8px; margin-bottom: 8px; }
.pp-row .pp-field { flex: 1; margin-bottom: 0; }
.pp-actions { margin-top: 4px; }
.pp-save {
  background: #0071e3; color: #fff;
  border: none; border-radius: 6px;
  padding: 6px 14px; font-size: 11px; font-weight: 600;
  cursor: pointer;
}
.pp-footer { margin-top: 8px; text-align: right; font-size: 10px; }
.pp-footer a { color: #0071e3; }

/* ── Features ────────────────────────────────────────────────────────────── */
.features {
  padding: 90px 0;
  border-top: 1px solid var(--border);
}
.features h2, .how h2, .platforms h2, .download-cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800; color: var(--white);
  text-align: center; margin-bottom: 48px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: var(--purple); transform: translateY(-3px); }
.feature-icon { font-size: 28px; margin-bottom: 12px; }
.feature-card h3 { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── How it works ────────────────────────────────────────────────────────── */
.how {
  padding: 90px 0;
  background: var(--dark2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps {
  display: flex; align-items: flex-start;
  gap: 16px; justify-content: center; flex-wrap: wrap;
}
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  flex: 1; min-width: 200px; max-width: 260px;
  text-align: center;
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--purple); color: var(--white);
  font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.step h3 { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.step p  { font-size: 14px; color: var(--muted); }
.step-arrow { font-size: 24px; color: var(--border); align-self: center; padding-top: 0; }

/* ── Platforms ───────────────────────────────────────────────────────────── */
.platforms { padding: 90px 0; }
.platform-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.platform-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px; text-align: center;
}
.platform-icon { font-size: 36px; margin-bottom: 14px; }
.platform-card h3 { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.platform-card p { font-size: 14px; color: var(--muted); }

/* ── Download CTA ────────────────────────────────────────────────────────── */
.download-cta {
  padding: 90px 24px;
  text-align: center;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(108,71,255,.2) 0%, transparent 70%);
  border-top: 1px solid var(--border);
}
.download-cta h2 { margin-bottom: 12px; }
.download-cta p { color: var(--muted); font-size: 16px; margin-bottom: 36px; }
.download-cta .store-badges { justify-content: center; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}
.footer-inner { text-align: center; }
.footer-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--white); margin-bottom: 12px;
}
.footer-brand img { border-radius: 6px; }
.footer-note, .footer-copy { font-size: 13px; color: var(--muted); margin-top: 6px; }
.footer-copy a { color: var(--muted); }
.footer-copy a:hover { color: var(--white); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hero-text h1 { font-size: 2rem; }
  .mac-content { justify-content: center; }
  .step-arrow { display: none; }
  .nav-links a:not(.btn) { display: none; }
}
