/* Now — project home page. Dark, matching the app's Material 3 palette. */

:root {
  color-scheme: dark;
  --bg: #0E1017;
  --bg-elev: #161925;
  --bg-card: #1A1D2B;
  --on-bg: #E3E1E9;
  --muted: #A9A9B6;
  --primary: #B9C1FF;
  --on-primary: #1A2367;
  --primary-container: #343A8F;
  --teal: #7FDCD4;
  --outline: #90919D;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--on-bg);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
}

.hidden {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(14, 16, 23, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(144, 145, 157, 0.18);
}

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

.wordmark {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 6px;
  color: var(--on-bg);
}

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

.nav a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--on-bg);
}

.nav .nav-download {
  color: var(--primary);
  font-weight: 500;
}

@media (max-width: 640px) {
  .nav a:not(.nav-download) {
    display: none;
  }
}

/* ---------- hero ---------- */

.hero {
  padding: 96px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-art {
  position: relative;
  width: 220px;
  height: 220px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hero-art canvas {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  animation: heroSpin 60s linear infinite;
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
  pointer-events: none;
}

.hero-ring.r1 {
  width: 100%;
  height: 100%;
  border-color: rgba(185, 193, 255, 0.14);
  border-width: 1.5px;
}

.hero-ring.r2 {
  width: 121.2%;
  height: 121.2%;
  border-color: rgba(185, 193, 255, 0.08);
  border-width: 1px;
}

@keyframes heroSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-title {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 600;
  letter-spacing: -1px;
  max-width: 720px;
}

.hero-sub {
  margin-top: 20px;
  max-width: 620px;
  font-size: 18px;
  color: var(--muted);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-badges span {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: var(--primary);
  border: 1px solid rgba(185, 193, 255, 0.35);
  background: rgba(52, 58, 143, 0.18);
  border-radius: 999px;
  padding: 6px 16px;
}

/* ---------- sections ---------- */

section {
  padding: 72px 0;
}

.section-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.5px;
  text-align: center;
}

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

/* ---------- download ---------- */

.download {
  background: var(--bg-elev);
  border-top: 1px solid rgba(144, 145, 157, 0.14);
  border-bottom: 1px solid rgba(144, 145, 157, 0.14);
}

.download-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-buttons {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 440px;
}

.btn-android,
.btn-pwa {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 18px;
  padding: 18px 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-android {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 8px 28px rgba(78, 91, 214, 0.35);
}

.btn-android:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(78, 91, 214, 0.45);
}

.btn-pwa {
  background: transparent;
  color: var(--on-bg);
  border: 1px solid rgba(144, 145, 157, 0.45);
}

.btn-pwa:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.android-icon,
.pwa-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-title {
  font-size: 18px;
  font-weight: 600;
}

.btn-sub {
  font-size: 13px;
  opacity: 0.75;
  margin-top: 2px;
}

.or-sep {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  width: 100%;
}

.or-sep::before,
.or-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(144, 145, 157, 0.3);
}

/* ---------- features ---------- */

.feature-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature {
  background: var(--bg-card);
  border: 1px solid rgba(144, 145, 157, 0.16);
  border-radius: 18px;
  padding: 22px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.feature:hover {
  border-color: rgba(185, 193, 255, 0.5);
  transform: translateY(-3px);
}

.feature-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: var(--primary);
}

.feature h3 {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 600;
}

.feature p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- how it works ---------- */

.steps {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 720px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  text-align: center;
  padding: 28px 20px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid rgba(144, 145, 157, 0.16);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-container);
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
}

.step p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- privacy ---------- */

.privacy {
  background: var(--bg-elev);
  border-top: 1px solid rgba(144, 145, 157, 0.14);
  border-bottom: 1px solid rgba(144, 145, 157, 0.14);
}

.privacy-list {
  list-style: none;
  margin: 40px auto 0;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.privacy-list li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
  font-size: 16px;
}

.privacy-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal);
  font-weight: 700;
}

.privacy-list code {
  color: var(--on-bg);
  background: rgba(185, 193, 255, 0.12);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 14px;
}

/* ---------- screenshots ---------- */

.shot-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .shot-grid {
    grid-template-columns: 1fr;
  }
}

.shot {
  cursor: zoom-in;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(144, 145, 157, 0.16);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.shot:hover {
  border-color: rgba(185, 193, 255, 0.5);
  transform: translateY(-3px);
}

.shot img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  background: #000;
}

.shot figcaption {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(6, 7, 11, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.lightbox-figure {
  max-width: min(420px, 92vw);
  text-align: center;
}

.lightbox-figure img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(144, 145, 157, 0.35);
}

.lightbox-figure figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--on-bg);
  font-size: 18px;
  border: none;
  cursor: pointer;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 48px 0;
  border-top: 1px solid rgba(144, 145, 157, 0.14);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-note {
  color: var(--muted);
  font-size: 13px;
}

/* ---------- ko-fi widget (bottom-left) ---------- */

#kofi-widget {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 50;
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-art canvas {
    animation: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}