:root {
  --bg: #0e0f14;
  --bg-alt: #15171f;
  --card: #1b1e29;
  --text: #e7e9f0;
  --muted: #9aa0b4;
  --accent: #7c83fd;
  --accent-2: #5cd6c0;
  --border: #272b3a;
}

* { box-sizing: border-box; }

/* Offset in-page anchor jumps so headings don't land under the sticky nav. */
html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* Hero glow lives on the body so it sits behind the (now sticky, out-of-hero) nav.
     no-repeat + a solid base keeps it from tiling down the tall page. */
  background: radial-gradient(1200px 600px at 50% -200px, #2a2f55 0%, var(--bg) 60%) no-repeat var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }

/* Hero */
.hero {
  padding-bottom: 80px;
}

nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, backdrop-filter .25s ease,
              border-color .25s ease, box-shadow .25s ease;
}
/* Frosted-glass bar once the page is scrolled. At the very top it stays transparent,
   sitting over the hero gradient; the .scrolled class is toggled by a scroll listener.
   The solid-ish rgba background is a graceful fallback where backdrop-filter is unsupported. */
nav.scrolled {
  background: rgba(14, 15, 20, 0.7);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
}

.brand { font-weight: 700; font-size: 1.2rem; display: inline-flex; align-items: center; gap: 8px; }
.brand-icon { width: 26px; height: 26px; border-radius: 6px; vertical-align: middle; }
.nav-links a { margin-left: 22px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

.hero-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 24px 0;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin: 0 0 18px;
}

.tagline { font-size: 1.2rem; color: var(--muted); margin: 0 auto 32px; max-width: 620px; }

.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid var(--border);
}
.btn.primary { background: var(--accent); color: #0e0f14; border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); }

.fineprint { color: var(--muted); font-size: 0.9rem; margin-top: 18px; }

/* Sections */
.section { max-width: 1080px; margin: 0 auto; padding: 80px 24px; }
.section.alt { background: var(--bg-alt); max-width: none; }
.section.alt > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.section h2 { font-size: 2rem; text-align: center; margin: 0 0 12px; }
.lead { text-align: center; color: var(--muted); max-width: 720px; margin: 0 auto 40px; }

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }
.card.coin .addr {
  display: block;
  margin-top: 14px;
  padding: 10px 12px;
  background: #0e0f14;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  word-break: break-all;
  color: var(--accent-2);
}
.muted { color: var(--muted); }

/* Compare */
.compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.compare-col {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.compare-col.us { border-color: var(--accent); }
.compare-col h3 { margin-top: 0; }
.compare-col ul { list-style: none; padding: 0; margin: 0; }
.compare-col li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.compare-col li:last-child { border-bottom: none; }

/* Downloads */
.downloads { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* The per-processor chooser at /applications/android/ (generated by scripts/deploy-website.sh).
   One card per build: the button, then what it's for, then its SHA-256 to check. */
.downloads-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.downloads-list li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.downloads-list li p { margin: 12px 0 0; color: var(--muted); }
.downloads-list .hash {
  display: block;
  margin-top: 12px;
  padding: 10px 12px;
  background: #0e0f14;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8rem;
  word-break: break-all;
  color: var(--accent-2);
}

/* Footer */
footer {
  text-align: center;
  padding: 50px 24px;
  border-top: 1px solid var(--border);
  color: var(--text);
}
footer .muted { font-size: 0.9rem; }

@media (max-width: 600px) {
  .hero-content h1 { font-size: 2.2rem; }
  .nav-links { display: none; }
}

/* Security notice — used for the "update, this build is superseded" banner on the download
   section. Amber rather than red: this is a "you should act" message, not a breach report. */
.notice {
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid #6b5a2a;
  border-left: 3px solid #d0a13a;
  border-radius: 8px;
  background: #1e1a12;
  color: var(--text);
}
.notice h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #f0c464;
}
.notice p { margin: 0 0 8px; }
.notice p:last-child { margin-bottom: 0; }
.notice .muted { color: var(--muted); }
