:root {
  --bg: #0b1220;
  --bg-alt: #111827;
  --surface: #1e293b;
  --border: #1f2937;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #6366f1;
  --accent-hi: #818cf8;
  --accent-glow: rgba(99,102,241,.35);
  --ok: #22c55e;
  --warn: #f59e0b;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
}

a { color: var(--accent-hi); text-decoration: none; }
a:hover { color: #a5b4fc; text-decoration: underline; }

code {
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .9em;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

/* ---- Hero ---------------------------------------------------------- */

.hero {
  position: relative;
  background:
    radial-gradient(circle at 20% 0%, rgba(99,102,241,.18), transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(139,92,246,.15), transparent 60%),
    var(--bg);
  padding-bottom: 80px;
  overflow: hidden;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px;
}
.logo {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border-radius: 8px;
  font-size: 18px;
}
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover { color: var(--text); }

.hero-inner {
  max-width: 880px;
  margin: 60px auto 0;
  padding: 0 24px;
  text-align: center;
}
.badge {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(99,102,241,.15);
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 12px;
  color: var(--accent-hi);
  letter-spacing: .5px;
  margin-bottom: 20px;
}
h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  margin: 0 0 24px;
  font-weight: 700;
  letter-spacing: -1px;
}
h1 em {
  background: linear-gradient(135deg, #818cf8, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}
.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 660px;
  margin: 0 auto 36px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 28px;
}
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none !important;
  transition: transform .1s, box-shadow .15s, background .15s;
  line-height: 1.3;
}
.btn span { display: inline-flex; align-items: center; gap: 8px; }
.btn small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  opacity: .8;
  margin-top: 3px;
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  box-shadow: 0 10px 35px var(--accent-glow);
}
.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px var(--accent-glow);
}
.btn.ghost {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  color: var(--text);
  padding: 16px 26px;
}
.btn.ghost:hover { border-color: var(--accent); background: rgba(99,102,241,.08); }

.trust {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 8px 18px;
  list-style: none; padding: 0; margin: 24px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.trust li::before { color: var(--ok); }

/* ---- Sections ------------------------------------------------------ */

.section {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.section.dark {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: none;
  margin-left: 0; margin-right: 0;
}
.section.dark > * { max-width: 1100px; margin-left: auto; margin-right: auto; }

h2 {
  font-size: 30px;
  margin: 0 0 40px;
  text-align: center;
  font-weight: 700;
  letter-spacing: -.5px;
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  position: relative;
}
.step .num {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff; border-radius: 10px;
  font-weight: 700; font-size: 16px;
  margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { color: var(--muted); margin: 0; font-size: 14px; }

/* platforms */
.platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.platforms article {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.platforms h3 {
  margin: 0 0 8px; font-size: 18px;
}
.status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.status.ok { background: rgba(34,197,94,.15); color: var(--ok); }
.status.warn { background: rgba(245,158,11,.15); color: var(--warn); }
.platforms p { color: var(--muted); font-size: 14px; margin: 0; }

/* install */
.install-steps {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 28px 28px 56px;
  font-size: 15px;
}
.install-steps li { margin-bottom: 14px; }
.install-steps li:last-child { margin-bottom: 0; }

.hint { color: var(--muted); font-size: 13px; margin-top: 16px; text-align: center; }

/* privacy */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.privacy-grid > div {
  padding: 20px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.privacy-grid h3 { margin: 0 0 8px; font-size: 17px; }
.privacy-grid p { color: var(--muted); font-size: 14px; margin: 0; }

/* faq */
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 12px;
  cursor: pointer;
}
details[open] { border-color: var(--accent); }
summary {
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  position: relative;
  padding-right: 24px;
}
summary::after {
  content: '+';
  position: absolute; right: 0; top: 0;
  color: var(--accent-hi); font-size: 20px; line-height: 1;
}
details[open] summary::after { content: '−'; }
details p { color: var(--muted); margin: 12px 0 0; font-size: 14px; }

/* footer */
footer {
  border-top: 1px solid var(--border);
  padding: 30px 24px;
  background: var(--bg-alt);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--accent-hi); }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .steps, .platforms, .privacy-grid { grid-template-columns: 1fr; }
  h1 { font-size: 36px; }
  .section { padding: 56px 20px; }
}
