:root {
  --bg: #0b0f19;
  --bg-soft: #121828;
  --card: #181f36;
  --border: #2a3350;
  --text: #e7ecf5;
  --muted: #9aa8c2;
  --accent: #8b5cf6;
  --accent-2: #6366f1;
  --accent-3: #c084fc;
  --green: #4ade80;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(139, 92, 246, 0.10), transparent 70%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 10px 18px; border-radius: 0 0 10px 0;
  background: var(--accent); color: #fff; font-weight: 600;
}
.skip-link:focus { left: 0; text-decoration: none; }

/* ---------- Beta banner ---------- */
.beta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(99, 102, 241, 0.10));
  border-bottom: 1px solid rgba(139, 92, 246, 0.35);
  color: var(--text);
  font-size: 14px; font-weight: 500;
  text-align: center;
}
.beta-badge {
  flex: none;
  padding: 2px 10px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 15, 25, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #232c45;
}
.nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; color: var(--text); }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.45);
  color: #fff; font-size: 14px;
}
.nav-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-download {
  color: #fff !important;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 8px 18px; border-radius: 999px; font-weight: 600;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.nav-download:hover { text-decoration: none; filter: brightness(1.12); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 24px 40px;
  text-align: center;
}
.hero::before {
  content: ""; position: absolute; z-index: -1;
  inset: -140px -240px auto -240px; height: 520px;
  background:
    radial-gradient(620px 260px at 50% 0%, rgba(139, 92, 246, 0.20), transparent 70%),
    radial-gradient(480px 220px at 18% 12%, rgba(99, 102, 241, 0.14), transparent 70%),
    radial-gradient(480px 220px at 82% 12%, rgba(192, 132, 252, 0.12), transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(42px, 7vw, 66px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: linear-gradient(90deg, var(--accent), var(--accent-3), var(--accent-2), var(--accent));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: gradient-shift 9s ease-in-out infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.tagline { font-size: clamp(20px, 3vw, 27px); font-weight: 600; margin-top: 10px; }
.lead { max-width: 780px; margin: 18px auto 0; color: var(--muted); font-size: 17px; }
.lead strong { color: var(--text); }
.hero-actions { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.meta { margin-top: 18px; color: var(--muted); font-size: 14px; }
.hero-note { max-width: 640px; margin: 18px auto 0; text-align: center; }
.band-note { max-width: 640px; margin: 18px auto 0; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  max-width: 860px;
  margin: 46px auto 0;
}
.stat {
  text-align: center; padding: 22px 14px;
  background: rgba(24, 31, 54, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}
.stat .num {
  font-size: 34px; font-weight: 800; line-height: 1;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .lbl { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---------- Providers ---------- */
.providers { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.provider {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--muted); font-weight: 600; font-size: 14px;
}
.provider .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.green { background: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, 0.7); }
.dot.blue { background: #60a5fa; box-shadow: 0 0 8px rgba(96, 165, 250, 0.7); }
.dot.pink { background: #f472b6; box-shadow: 0 0 8px rgba(244, 114, 182, 0.7); }
.dot.amber { background: #fbbf24; box-shadow: 0 0 8px rgba(251, 191, 36, 0.7); }
.dot.purple { background: #a78bfa; box-shadow: 0 0 8px rgba(167, 139, 250, 0.7); }

/* ---------- Screenshot ---------- */
.section-screenshot .shot {
  max-width: 880px; margin: 0 auto; text-align: center;
}
.section-screenshot .shot img {
  width: 100%; height: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 0 6px rgba(139, 92, 246, 0.08);
}
.section-screenshot figcaption { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* ---------- Privacy page ---------- */
.privacy h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 10px; letter-spacing: -0.01em; }
.privacy h2 { font-size: 20px; margin: 28px 0 8px; }
.privacy p, .privacy li { color: var(--muted); font-size: 15px; }
.privacy ul { margin: 10px 0 0 20px; color: var(--muted); font-size: 15px; }
.privacy li { margin: 5px 0; }

/* ---------- Docs page ---------- */
.docs-head h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 10px; letter-spacing: -0.01em; }

.provider-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.provider-row {
  display: flex; align-items: flex-start; gap: 16px; text-align: left;
  background: #0e1526; border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px;
}
.provider-row .provider { margin: 0; padding-top: 2px; white-space: normal; }
.provider-row p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- Homepage docs CTA ---------- */
.docs-cta {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  margin-top: 24px;
}
.docs-cta-meta { color: var(--muted); font-size: 13px; }

/* ---------- FAQ "more" link ---------- */
.faq-more { text-align: center; margin-top: 18px; }

/* ---------- Sections ---------- */
.section { max-width: 1080px; margin: 0 auto; padding: 56px 24px; }
.section h2 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.section-intro { color: var(--muted); max-width: 720px; margin-bottom: 30px; }

/* ---------- Feature grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(99, 102, 241, 0.05));
  opacity: 0; transition: opacity 0.18s ease;
  pointer-events: none;
}
.card:hover { transform: translateY(-3px); border-color: rgba(139, 92, 246, 0.55); box-shadow: 0 10px 34px rgba(139, 92, 246, 0.16); }
.card:hover::before { opacity: 1; }
.card h3 { position: relative; font-size: 18px; margin-bottom: 8px; }
.card p { position: relative; color: var(--muted); font-size: 15px; }
.card ul { position: relative; margin: 10px 0 0 18px; color: var(--muted); font-size: 14.5px; }
.card li { margin: 5px 0; }
.icon {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(99, 102, 241, 0.18));
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
}
.icon svg { width: 22px; height: 22px; }

code, .card code, p code, li code {
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 5px;
  padding: 1px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
  color: #c4b5fd;
}

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; margin-top: 12px; }
.steps > li {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px 22px 66px;
  margin-bottom: 16px;
}
.steps > li:not(:last-child)::after {
  content: ""; position: absolute; left: 34px; top: 52px; bottom: -16px; width: 2px;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.6), rgba(139, 92, 246, 0.05));
}
.steps > li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 20px; top: 22px; z-index: 1;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.45);
  color: #fff; font-weight: 700; font-size: 15px;
}
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p, .steps li { color: var(--muted); font-size: 15px; }
.steps ul { margin: 8px 0 0 18px; }
.note {
  margin-top: 8px; padding: 10px 12px;
  border-left: 3px solid var(--accent);
  background: rgba(139, 92, 246, 0.08);
  border-radius: 0 8px 8px 0;
  color: var(--muted); font-size: 14px;
}

/* ---------- Permissions cards ---------- */
.section-permissions .grid .card { text-align: left; }
.card .tag {
  display: inline-block; margin-bottom: 10px;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c4b5fd; font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
}

/* ---------- FAQ ---------- */
details {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  transition: border-color 0.15s ease;
}
details:hover { border-color: rgba(139, 92, 246, 0.4); }
summary { font-weight: 600; cursor: pointer; font-size: 16px; list-style: none; }
summary::before { content: "▸ "; color: var(--accent); }
details[open] summary::before { content: "▾ "; }
details p { color: var(--muted); margin-top: 10px; font-size: 15px; }

/* ---------- Download band ---------- */
.band {
  max-width: 1080px; margin: 0 auto; padding: 0 24px 64px;
}
.band-inner {
  text-align: center;
  padding: 56px 28px;
  border-radius: 20px;
  background:
    radial-gradient(400px 200px at 50% 0%, rgba(139, 92, 246, 0.22), transparent 70%),
    linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.35);
}
.band h2 { font-size: clamp(24px, 4vw, 32px); font-weight: 700; margin-bottom: 10px; }
.band p { color: var(--muted); max-width: 640px; margin: 0 auto 24px; font-size: 16px; }
.band .button { font-size: 17px; padding: 15px 30px; }
.band .file-meta { display: block; margin-top: 16px; color: var(--muted); font-size: 13px; }

/* ---------- Coming soon ---------- */
.soon {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  padding: 7px 16px; border-radius: 999px;
  background: rgba(74, 222, 128, 0.10);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: var(--green); font-weight: 600; font-size: 14px;
}
.soon::before { content: "●"; font-size: 10px; color: var(--green); }
.soon-band { margin-top: 18px; }

/* ---------- Buttons ---------- */
.button {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px;
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}
.button:hover { text-decoration: none; transform: translateY(-1px); filter: brightness(1.08); }
.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}
.button.primary:hover { box-shadow: 0 6px 28px rgba(139, 92, 246, 0.5); }
.button.secondary { background: var(--card); color: var(--text); border: 1px solid var(--border); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid #232c45;
  padding: 36px 24px 28px;
  background: rgba(11, 15, 25, 0.6);
}
.footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.site-footer .copyright { text-align: center; color: var(--muted); font-size: 13px; margin-top: 20px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Reduced motion & a11y ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1 { animation: none; }
  .button, .card { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}