/* Base styles */
:root {
  --bg: #0f172a; /* slate-900 */
  --surface: #111827; /* gray-900 */
  --text: #e5e7eb; /* gray-200 */
  --muted: #a1a1aa; /* zinc-400 */
  --primary: #22c55e; /* green-500 */
  --primary-700: #15803d; /* green-700 */
  --border: #374151; /* gray-700 */
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Landing specific elements */
#top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  cursor: pointer;
}
.topIcon img { width: 40px; height: 40px; }
.topTitle { font-size: 20px; font-weight: 700; }
.bg { display: block; width: 100%; height: auto; border-radius: 8px; }

/* Hero APK badge overlay */

.downBtn {
  position: absolute; /* overlay within heroWrap, not viewport-fixed */
  left: 50%;
  transform: translateX(-50%);
  bottom: 120px; /* move upward above policy bar */
  width: 75%;
  max-width: 420px;
  height: 48px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(59,130,246,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  z-index: 3;
}
.downBtn:hover { filter: brightness(1.08); }
.downBtn:active { transform: translateX(-50%) scale(0.98); }

.downBtn .online {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e; /* green */
  margin-left: 8px;
  box-shadow: 0 0 0 2px rgba(34,197,94,0.25);
}

.footer { margin-top: 20px; }

/* Fixed policy bar above the download button */
.policyBar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px; /* overlay near bottom of image */
  width: 92%;
  max-width: 520px;
  background: transparent;
  border: none;
  border-radius: 16px;
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-evenly;
  z-index: 2;
}
.policyLink {
  background: transparent;
  color: var(--text);
  border: none;
  text-decoration: underline;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 14px;
}
.policyLink:hover { background: #0b1220; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  position: relative; /* anchor for dropdown nav */
}
.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.site-nav {
  display: none; /* collapsed by default */
  gap: 18px;
}
.site-nav.open {
  display: flex;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  padding: 6px;
  width: min(92vw, 300px);
  z-index: 60;
  flex-direction: column;
  gap: 2px;
  padding-top: 2px;
}
.site-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
}
.site-nav a:hover {
  background: #0b1220;
}
.nav-toggle {
  display: inline-block; /* show on desktop too */
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 16px;
  padding: 5px 7px;
  border-radius: 6px;
  line-height: 1;
}

/* Hero */
.hero {
  padding: 64px 0 40px;
  background: linear-gradient(180deg, rgba(34,197,94,0.08), transparent 55%);
}
.hero h1 {
  font-size: 38px;
  margin: 0 0 12px;
}
.hero p {
  color: var(--muted);
  max-width: 720px;
}
.hero-actions {
  margin-top: 22px;
}
.btn {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-right: 10px;
}
.btn.primary {
  background: var(--primary);
  color: #06200f;
  border: none;
}
.btn.primary:hover { background: var(--primary-700); color: #fff; }

/* Features */
.features { padding: 24px 0 60px; }
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 12px;
}
.card h3 { margin-top: 0; }
.link { color: var(--primary); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 0 40px;
}
.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.site-footer h4 { margin: 0 0 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 4px 0; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.copyright { color: var(--muted); margin-top: 18px; }

/* Content pages */
.page { padding: 40px 0 60px; }
.page h1 { margin-top: 0; }
.prose { color: var(--muted); line-height: 1.7; }
.prose-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-top: 24px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}
.prose h2 {
  color: var(--text);
  margin: 16px 0 8px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.2px;
  position: relative;
  padding-left: 10px;
}
.prose h2:not(:first-child) {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.prose h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--primary);
  border-radius: 2px;
}
.prose p { margin: 0 0 12px; }
.section { margin: 18px 0; }

/* Responsive */
@media (max-width: 860px) {
  .prose-block { padding: 16px; margin-top: 18px; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-columns { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .header-inner { position: relative; padding: 6px 0; }
  .nav-toggle { display: inline-block; margin-left: auto; }
  .nav-toggle.active { background: #0b1220; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
    padding: 6px;
    width: min(92vw, 300px);
    z-index: 60;
  }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 2px;
  }
  .site-nav a { padding: 6px 8px; font-size: 14px; }
}