/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --primary:        #0095f6;
  --primary-dark:   #007fd6;
  --gradient:       linear-gradient(135deg, #405DE6 0%, #833AB4 35%, #E1306C 65%, #FCAF45 100%);
  --gradient-btn:   linear-gradient(135deg, #405DE6 0%, #E1306C 100%);
  --text:           #1a1a1a;
  --text-muted:     #666;
  --bg:             #fafafa;
  --bg-card:        #ffffff;
  --bg-alt:         #f0f2f5;
  --border:         #e0e0e0;
  --radius:         15px;
  --radius-sm:      8px;
  --shadow:         0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover:   0 12px 40px rgba(0, 0, 0, 0.15);
  --transition:     all 0.25s ease;
  --max-width:      1200px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  background: #eef1f5;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  word-break: break-all;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 88px 0;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text);
  letter-spacing: -0.5px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 52px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 2px solid #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.16);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(225, 48, 108, 0.45);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  transition: box-shadow 0.25s;
}

.site-nav.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.09);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #000;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand img {
  border-radius: 8px;
}

.nav-brand:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  color: #000;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--gradient);
  padding: 100px 0 88px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Subtle radial highlights for depth */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(255, 255, 255, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin: 0 auto 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: 0.9;
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-donate {
  display: flex;
  justify-content: center;
}

.hero-donate img {
  border-radius: 8px;
  transition: transform 0.2s;
}

.hero-donate a:hover img {
  transform: scale(1.04);
}

/* ============================================================
   HERO SCREENSHOT
   ============================================================ */
.hero-screenshot {
  background: var(--bg-alt);
  padding: 52px 0 60px;
}

.hero-img {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.18);
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-img:hover {
  transform: scale(1.01);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.24);
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  line-height: 1;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  background: var(--bg-alt);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(225, 48, 108, 0.4);
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============================================================
   SCREENSHOTS GALLERY
   ============================================================ */
.screenshots {
  background: var(--bg);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.screenshots-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  background: var(--bg-alt);
}

.screenshots-grid figure:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.screenshots-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  cursor: zoom-in;
  display: block;
  transition: opacity 0.2s;
}

.screenshots-grid figure:hover img {
  opacity: 0.92;
}

.screenshots-grid figcaption {
  padding: 12px 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 500;
}

/* ============================================================
   PRIVACY FIRST
   ============================================================ */
.privacy-first {
  background: var(--bg-alt);
}

.privacy-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.privacy-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.privacy-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.privacy-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1;
}

.privacy-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.privacy-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* ============================================================
   SUPPORT / DONATE
   ============================================================ */
.support {
  background: var(--bg);
}

.support-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.support-inner h2 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.support-inner p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.support-inner img {
  margin: 0 auto;
  border-radius: 8px;
  transition: transform 0.2s;
}

.support-inner a:hover img {
  transform: scale(1.05);
}

/* ============================================================
   PRIVACY POLICY SECTION
   ============================================================ */
.privacy-policy-section {
  background: var(--bg-alt);
}

.policy-box {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 52px 56px;
  box-shadow: var(--shadow);
  max-width: 860px;
  margin: 0 auto;
  line-height: 1.75;
}

.policy-box > p:first-child {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.policy-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 36px 0 10px;
  color: var(--text);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.policy-box h3:first-of-type {
  margin-top: 20px;
  border-top: none;
  padding-top: 0;
}

.policy-box p {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.policy-box ul {
  list-style: disc;
  padding-left: 24px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.policy-box ul li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.policy-box a {
  color: var(--primary);
}

.policy-box a:hover {
  color: var(--primary-dark);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #111;
  color: rgba(255, 255, 255, 0.65);
  padding: 44px 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.site-footer p {
  font-size: 0.875rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-disclaimer {
  font-size: 0.775rem !important;
  opacity: 0.45;
  margin-top: 6px;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#lightbox.active {
  opacity: 1;
  pointer-events: all;
}

#lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.6);
  object-fit: contain;
  display: block;
}

#lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

#lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

#lightbox-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ============================================================
   SCROLL-REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 900px) {
  .policy-box {
    padding: 36px 32px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  /* Collapse text nav links; keep the CTA button */
  .nav-links li:not(:last-child) {
    display: none;
  }

  .hero {
    padding: 72px 0 64px;
  }

  .hero-icon {
    width: 80px;
    height: 80px;
  }

  .policy-box {
    padding: 28px 20px;
  }

  .policy-box h3 {
    margin: 28px 0 8px;
  }

  .btn {
    padding: 12px 26px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .features-grid,
  .steps-grid,
  .screenshots-grid,
  .privacy-cards {
    grid-template-columns: 1fr;
  }
}
