/* Typography & base */
:root {
  --bg: #fefefe;
  --text: #2d3748; /* gray-700 */
  --muted: #718096; /* gray-500 */
  --light-gray: #f7fafc; /* gray-50 */
  --card: #ffffff;
  --border: #e2e8f0; /* gray-200 */
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.08);
  --shadow-button: 0 2px 8px rgba(0, 0, 0, 0.1);

  /* Clean pastel palette */
  --pastel-blue: #dbeafe; /* blue-100 */
  --pastel-purple: #e9d5ff; /* purple-100 */
  --pastel-pink: #fce7f3; /* pink-100 */
  --pastel-green: #d1fae5; /* emerald-100 */
  --pastel-yellow: #fef3c7; /* amber-100 */
  --pastel-orange: #fed7aa; /* orange-100 */
  
  /* Accent colors (solid pastels) */
  --accent-blue: #3b82f6; /* blue-500 */
  --accent-purple: #8b5cf6; /* violet-500 */
  --accent-pink: #ec4899; /* pink-500 */
  --accent-green: #10b981; /* emerald-500 */
  --accent-orange: #f59e0b; /* amber-500 */
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  background: #000;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* Pastel background blobs */
.bg-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.blob {
  position: absolute;
  filter: blur(50px);
  opacity: 0.45;
  transform: translate3d(0,0,0);
}
.blob-1 {
  width: 520px; height: 520px;
  left: -120px; top: -120px;
  background: radial-gradient(closest-side, var(--accent-2), transparent 70%);
  animation: float 18s ease-in-out infinite;
}
.blob-2 {
  width: 620px; height: 620px;
  right: -180px; top: 20vh;
  background: radial-gradient(closest-side, var(--accent-1), transparent 70%);
  animation: float 22s ease-in-out infinite reverse;
}
.blob-3 {
  width: 520px; height: 520px;
  left: 10vw; bottom: -200px;
  background: radial-gradient(closest-side, var(--accent-5), transparent 70%);
  animation: float 26s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-16px) scale(1.02); }
}

/* Background Circles */
.bg-circles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  animation: float-circle 25s infinite linear;
}

.circle-1 {
  width: 180px;
  height: 180px;
  background: var(--pastel-blue);
  top: 15%;
  left: 8%;
  animation-delay: 0s;
}

.circle-2 {
  width: 120px;
  height: 120px;
  background: var(--pastel-purple);
  top: 65%;
  right: 12%;
  animation-delay: -8s;
}

.circle-3 {
  width: 90px;
  height: 90px;
  background: var(--pastel-pink);
  bottom: 25%;
  left: 15%;
  animation-delay: -16s;
}

.circle-4 {
  width: 150px;
  height: 150px;
  background: var(--pastel-green);
  top: 35%;
  right: 25%;
  animation-delay: -4s;
}

.circle-5 {
  width: 100px;
  height: 100px;
  background: var(--pastel-yellow);
  top: 80%;
  left: 60%;
  animation-delay: -12s;
}

@keyframes float-circle {
  0%, 100% { 
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  25% { 
    transform: translateY(-20px) translateX(15px) rotate(90deg);
  }
  50% { 
    transform: translateY(-10px) translateX(-10px) rotate(180deg);
  }
  75% { 
    transform: translateY(15px) translateX(20px) rotate(270deg);
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);

  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.5rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; position: relative; }
.brand .logo { 
  font-size: 1.25rem;
  color: var(--accent-blue);
  transition: transform 0.2s ease;
}
.brand .logo:hover {
  transform: scale(1.05);
}
.brand-name { font-weight: 700; letter-spacing: 0.2px; }
.brand-badge {
  background: var(--pastel-purple);
  color: var(--accent-purple);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 0.3rem;
  border: 1px solid var(--accent-purple);
}
.nav { display: flex; gap: 1rem; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  opacity: 0.8;
  padding: 0.5rem 0.75rem;
  border-radius: 0.6rem;
  transition: all 0.2s ease;
}
.nav-link:hover { 
  opacity: 1;
  background: var(--pastel-blue);
  color: var(--accent-blue);
}
.nav-link i {
  width: 16px;
  height: 16px;
}

/* Hero */
.hero { position: relative; z-index: 1; overflow: hidden; }
.hero-inner {
  padding: 7rem 0 4rem;
  text-align: center;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.headline { margin: 0 0 1rem; line-height: 1.15; }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--pastel-green);
  color: var(--accent-green);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  border: 2px solid var(--accent-green);
}
.status-badge i {
  width: 16px;
  height: 16px;
}


.gradient-text {
  display: block;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--text);
}
.headline-accent {
  display: block;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: var(--muted);
  margin-top: 0.5rem;
  opacity: 0.9;
}


.subhead {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: #334155; /* slate-700 */
  margin: 0 auto 2rem;
  max-width: 780px;
  line-height: 1.7;
}
.launch-highlight {
  display: inline-block;
  background: var(--pastel-pink);
  color: var(--accent-pink);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 0.9em;
  margin-top: 0.5rem;
  border: 1px solid var(--accent-pink);
}

.cta { display: flex; gap: 0.8rem; justify-content: center; margin-top: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: translateY(1px); }
.btn:hover { transform: translateY(-2px); }
.btn i {
  width: 18px;
  height: 18px;
}
.btn-primary {
  color: white;
  background: var(--accent-blue);
  box-shadow: var(--shadow-button);
  border: none;
}
.btn-primary:hover { 
  background: #2563eb; /* blue-600 */
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-secondary {
  color: var(--accent-purple);
  background: var(--pastel-purple);
  border: 1px solid var(--accent-purple);
}
.btn-secondary:hover {
  background: var(--accent-purple);
  color: white;
  box-shadow: var(--shadow);
}
.btn-ghost { 
  background: transparent; 
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { 
  background: var(--pastel-blue);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}
.btn-success {
  color: white;
  background: var(--accent-green);
  border: none;
}
.btn-success:hover {
  background: #059669; /* emerald-600 - darker green */
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Countdown */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 2rem auto 0;
  max-width: 760px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1rem;
  box-shadow: var(--shadow-lg);

  position: relative;
}

.unit {
  display: grid;
  grid-template-rows: auto auto auto;
  align-items: center;
  justify-items: center;
  padding: 1rem 0.5rem;
  border-radius: 0.9rem;
  background: var(--card);
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.2s ease;
}
.unit:hover {
  transform: translateY(-2px);
}
.unit-icon {
  margin-bottom: 0.5rem;
  color: var(--accent-blue);
}
.unit-icon i {
  width: 20px;
  height: 20px;
}
.value {
  font-variant-numeric: tabular-nums; 
  font-weight: 800; 
  letter-spacing: -0.02em; 
  font-size: clamp(1.8rem, 4.8vw, 2.8rem);
  color: var(--accent-blue);
}
.label { 
  color: var(--muted); 
  font-weight: 600; 
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* Sections */
.section-title {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}
.section-title i {
  color: var(--accent-blue);
  width: 24px;
  height: 24px;
}
.lead { color: #334155; margin: 0 0 1.5rem; }

/* Hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
}
.stat {
  text-align: center;
}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-purple);
  margin-bottom: 0.25rem;
}
.stat-label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Sections */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header.text-center {
  text-align: center;
}
.about .section-header .lead {
  text-align: left;
  max-width: none;
}
.about-inner, .donate-inner { padding: 5rem 0 3.5rem; }
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 1.25rem 0 0;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);

  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-blue);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--pastel-blue);
  border: 2px solid var(--accent-blue);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent-blue);
}
.feature-icon i {
  width: 24px;
  height: 24px;
}
.feature-card h3 { 
  margin: 0 0 0.75rem; 
  font-size: 1.1rem;
  font-weight: 700;
}
.feature-card p { 
  margin: 0;
  color: #475569;
  line-height: 1.6;
}
.feature-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--pastel-green);
  color: var(--accent-green);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 0.5rem;
  text-transform: uppercase;
  border: 1px solid var(--accent-green);
}
.about-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Donation section */
.donate-content {
  max-width: 800px;
  margin: 0 auto;
}
.donation-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.donation-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;

}
.donation-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.donation-card.featured {
  border: 2px solid var(--accent-blue);
  background: var(--pastel-blue);
}
.donation-card.recurring {
  border: 2px solid var(--accent-green);
  background: var(--pastel-green);
}
.donation-icon {
  width: 60px;
  height: 60px;
  background: var(--pastel-purple);
  border: 2px solid var(--accent-purple);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--accent-purple);
}
.donation-icon i {
  width: 28px;
  height: 28px;
}
.donation-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 700;
}
.donation-card p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.support-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-top: 2rem;
}
.support-note i {
  color: var(--accent-blue);
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
  flex-shrink: 0;
}
.support-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.support-note a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
}
.support-note a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer { 
  border-top: 1px solid var(--border); 
  background: var(--light-gray);

}
.footer-inner { 
  padding: 3rem 0 1.5rem;
}
.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2rem;
}
.footer-brand .brand {
  margin-bottom: 1rem;
}
.footer-description {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  max-width: 300px;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.link-group h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
  color: var(--text);
}
.link-group a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}
.link-group a:hover {
  color: var(--accent-blue);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--muted);
  transition: all 0.2s ease;
}
.footer-social a:hover {
  background: var(--pastel-blue);
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}
.footer-social i {
  width: 18px;
  height: 18px;
}

.noscript {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #111827; color: #fff; text-align: center; padding: 0.5rem; font-size: 0.9rem;
}

/* Narratives Section */
.narratives {
  position: relative;
  z-index: 1;
  background: var(--light-gray);
}
.narratives-inner {
  padding: 5rem 0 4rem;
}
.narratives .section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.narratives-description {
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* Screenshots Gallery */
.screenshots-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.screenshot-item {
  position: relative;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
}
.screenshot-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-blue);
}
.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}
.screenshot-item:hover img {
  transform: scale(1.02);
}
.screenshot-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(59, 130, 246, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
  font-weight: 600;
}
.screenshot-item:hover .screenshot-overlay {
  opacity: 1;
}
.screenshot-overlay i {
  width: 48px;
  height: 48px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}
.lightbox.active {
  display: flex;
}
.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text);
  z-index: 10000;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: white;
  transform: scale(1.1);
}
.lightbox-close {
  top: 2rem;
  right: 2rem;
}
.lightbox-prev {
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-close i,
.lightbox-prev i,
.lightbox-next i {
  width: 24px;
  height: 24px;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive */
@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; }
  .header-inner { padding: 0.75rem 0.5rem; }
  .hero-inner { padding: 5rem 0 3rem; }
  .hero-stats { grid-template-columns: 1fr; gap: 1rem; }
  .countdown { 
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    max-width: 100%;
  }
  .donation-options { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .nav {
    gap: 0.5rem;
  }
  .nav-link span {
    display: none;
  }
  .cta {
    flex-direction: column;
    align-items: center;
  }
  
  /* Mobile brand name truncation - hide v3.0 part */
  .version-text {
    display: none;
  }
  
  /* Mobile countdown adjustments */
  .unit {
    padding: 0.75rem 0.25rem;
    min-width: auto;
  }
  .unit-icon {
    margin-bottom: 0.25rem;
  }
  .unit-icon i {
    width: 16px;
    height: 16px;
  }
  .value {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    line-height: 1;
  }
  .label {
    font-size: 0.7rem;
    margin-top: 0.15rem;
  }
  
  /* Adjust circles for mobile */
  .circle-1 { width: 120px; height: 120px; }
  .circle-2 { width: 80px; height: 80px; }
  .circle-3 { width: 60px; height: 60px; }
  .circle-4 { width: 100px; height: 100px; }
  .circle-5 { width: 70px; height: 70px; }
  
  /* Narratives mobile */
  .narratives-inner {
    padding: 3rem 0 2.5rem;
  }
  .screenshots-gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
  }
  .lightbox-prev {
    left: 1rem;
  }
  .lightbox-next {
    right: 1rem;
  }
}

@media (max-width: 480px) {
  .footer-links { grid-template-columns: 1fr; }
  
  /* Keep version text hidden on mobile phones */
  .version-text {
    display: none;
  }
  
  /* Mobile phone countdown - keep horizontal */
  .countdown { 
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
    padding: 0.75rem;
  }
  .unit {
    padding: 0.6rem 0.2rem;
  }
  .value {
    font-size: clamp(1rem, 5vw, 1.4rem);
  }
  .label {
    font-size: 0.65rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .circle { animation: none !important; }
}


