:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --dark: #0b0f19;
  --donate: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
  --accent: linear-gradient(135deg, #0ea5e9 0%, #6366f1 55%, #ec4899 100%);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.center { text-align: center; }
.sub { color: var(--muted); max-width: 600px; margin: 8px auto 32px; }

/* Nav */
.nav-wrap {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 20;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
}

.brand-logo { width: 32px; height: 32px; border-radius: 8px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.nav-links a:hover { color: var(--text); }
.nav-donate { color: #e11d48 !important; }

.btn-dark-sm {
  background: var(--dark);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 9px;
}

/* Hero */
.hero {
  position: relative;
  padding: 86px 0 72px;
  overflow: hidden;
  text-align: center;
}

.hero-glow {
  position: absolute;
  inset: -120px 10% auto;
  height: 440px;
  background: radial-gradient(circle at 30% 40%, rgba(14, 165, 233, 0.14), transparent 55%),
              radial-gradient(circle at 70% 40%, rgba(236, 72, 153, 0.14), transparent 55%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 22px;
}

.badge-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 660px;
  margin: 0 auto 30px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.btn-dark-lg, .btn-donate-lg, .btn-outline-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s;
}

.btn-dark-lg { background: var(--dark); color: #fff; }
.btn-outline-lg { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-donate-lg { background: var(--donate); color: #fff; box-shadow: 0 8px 24px rgba(244, 63, 94, 0.28); }
.btn-dark-lg:hover, .btn-donate-lg:hover, .btn-outline-lg:hover { transform: translateY(-2px); }

.trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
}

/* Sections */
.section { padding: 64px 0; }
.section-sm { padding: 20px 0 40px; }

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 44px;
  align-items: center;
}

.split-copy h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.split-copy p { color: var(--muted); margin-bottom: 18px; }

.feature-checks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14.5px;
  color: var(--muted);
}

.feature-checks strong { color: var(--text); }

/* Popup Mockup */
.browser-frame {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.1);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.dots { display: flex; gap: 6px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.url-bar {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--muted);
}

.popup-mockup {
  margin: 18px;
  background: #0b0f19;
  color: #f1f5f9;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.35);
}

.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.mock-brand { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.mock-brave { font-size: 10px; color: #fb923c; background: rgba(251, 146, 60, 0.15); padding: 2px 7px; border-radius: 999px; font-weight: 700; }
.mock-donate { background: var(--donate); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }

.mock-batch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.16);
  font-size: 12px;
  font-weight: 600;
}

.mock-batch-btn { background: #3b82f6; padding: 4px 10px; border-radius: 6px; font-size: 11px; }

.mock-card {
  display: flex;
  gap: 10px;
  background: #121826;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 10px;
  padding: 10px;
  margin-top: 8px;
}

.mock-thumb {
  position: relative;
  width: 86px;
  height: 52px;
  border-radius: 7px;
  flex-shrink: 0;
}

.mock-thumb.t1 { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.mock-thumb.t2 { background: linear-gradient(135deg, #ec4899, #f59e0b); }
.mock-kind { position: absolute; left: 4px; top: 4px; background: rgba(0,0,0,0.65); font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.mock-dur { position: absolute; right: 4px; bottom: 4px; background: rgba(0,0,0,0.75); font-size: 9px; padding: 1px 5px; border-radius: 4px; }

.mock-meta { flex: 1; min-width: 0; }
.mock-title { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-pills { display: flex; gap: 5px; margin: 4px 0 6px; }
.mpill { font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 4px; background: #1e293b; color: #94a3b8; }
.mpill.hd { background: rgba(16, 185, 129, 0.16); color: #34d399; }
.mpill.cc { background: rgba(59, 130, 246, 0.18); color: #60a5fa; }
.mock-bar { height: 5px; border-radius: 99px; background: #1e293b; overflow: hidden; }
.mock-fill { height: 100%; background: var(--accent); border-radius: 99px; }
.mock-fill.done { background: #10b981; }

/* Stats */
.stats-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}

.stat {
  padding: 26px 24px;
  border-right: 1px solid var(--border);
}

.stat:last-child { border-right: none; }
.stat strong { display: block; font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.stat span { color: var(--muted); font-size: 14px; }

/* Install Grid */
.install-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.install-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}

.install-card h3 { font-size: 16px; margin-bottom: 12px; }
.install-card ol { padding-left: 18px; color: var(--muted); font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.install-card code { background: #e2e8f0; padding: 1px 5px; border-radius: 4px; font-size: 12.5px; color: var(--text); }

/* FAQ */
.faq-wrap { max-width: 760px; }
.faq-wrap h2 { margin-bottom: 24px; font-size: 30px; }

details {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

summary {
  font-weight: 700;
  font-size: 15.5px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::after { content: "+"; font-size: 20px; color: var(--muted); }
details[open] summary::after { content: "−"; }
details p { margin-top: 10px; color: var(--muted); font-size: 14.5px; }

/* CTA */
.cta-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 28px;
  text-align: center;
}

.cta-box h2 { font-size: 30px; margin: 14px 0 8px; }
.cta-box p { color: var(--muted); margin-bottom: 24px; }

/* Footer */
.site-footer {
  background: var(--dark);
  color: #cbd5e1;
  padding: 52px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.footer-brand { color: #fff; margin-bottom: 10px; }
.footer-note { font-size: 13.5px; color: #94a3b8; max-width: 260px; }

.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.site-footer a { display: block; color: #94a3b8; text-decoration: none; font-size: 13.5px; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.copyright { padding-top: 22px; font-size: 12.5px; color: #64748b; }

@media (max-width: 860px) {
  .split-grid, .stats-box, .install-grid, .footer-grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .nav-links a:not(.btn-dark-sm):not(.nav-donate) { display: none; }
}
