/* ── Reset & Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #5B6EE8;
  --primary-dark:  #3A50D4;
  --primary-light: #8B9EF5;
  --secondary:     #FF9B4E;
  --accent:        #4DD0A8;
  --bg:            #FAF8FF;
  --surface:       #FFFFFF;
  --text:          #1A1A2E;
  --text-2:        #6B7280;
  --text-3:        #B0B8C5;
  --radius:        16px;
  --radius-sm:     10px;
  --shadow:        0 4px 24px rgba(91,110,232,.10);
  --shadow-lg:     0 12px 48px rgba(91,110,232,.18);
  --nav-h:         68px;
  --max-w:         1140px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(91,110,232,.35);
}
.btn-dark { background: #1A1A2E; color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 12px 26px;
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-paypal { background: #003087; color: #fff; box-shadow: 0 4px 16px rgba(0,48,135,.3); width: 100%; justify-content: center; }

/* ── Reveal animation ────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }

/* ── Nav ─────────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250,248,255,.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(91,110,232,.08);
  transition: box-shadow .2s;
}
.nav.scrolled { box-shadow: 0 4px 24px rgba(91,110,232,.10); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-2);
  transition: color .15s;
}
.nav-links a:hover { color: var(--primary); }

.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .25s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px 20px;
  gap: 16px;
  border-top: 1px solid rgba(91,110,232,.08);
}
.nav-mobile a { font-weight: 700; font-size: 16px; color: var(--text-2); }
.nav-mobile.open { display: flex; }

/* ── Hero ─────────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
}

.hero-bg-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(91,110,232,.12), transparent 70%);
  top: -100px; right: -100px;
}
.blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(77,208,168,.10), transparent 70%);
  bottom: -80px; left: -80px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(91,110,232,.10);
  color: var(--primary);
  border: 1px solid rgba(91,110,232,.20);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-heading {
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Phone mockup */
.hero-visual { display: flex; justify-content: center; }

.phone-mockup {
  width: 280px;
  background: #1A1A2E;
  border-radius: 40px;
  padding: 16px;
  box-shadow: 0 32px 80px rgba(26,26,46,.35), 0 0 0 1px rgba(255,255,255,.06);
}

.phone-screen {
  background: var(--bg);
  border-radius: 28px;
  overflow: hidden;
  padding: 16px;
}

.phone-ui-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.phone-dot {
  width: 10px; height: 10px;
  background: var(--primary);
  border-radius: 50%;
}
.phone-ui-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.phone-theme-strip {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  overflow: hidden;
}
.theme-pill {
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  background: #F0EEF8;
  color: var(--text-2);
  white-space: nowrap;
}
.theme-pill.active {
  background: var(--primary);
  color: #fff;
}

.phone-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(91,110,232,.10);
  margin-bottom: 14px;
}
.phone-card-img { font-size: 52px; margin-bottom: 8px; }
.phone-card-letter {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}
.phone-card-word { font-size: 13px; font-weight: 700; color: var(--text-2); }

.phone-progress {
  height: 6px;
  background: #E8E6F5;
  border-radius: 3px;
  overflow: hidden;
}
.phone-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
}

/* ── Section base ─────────────────────────────────────────────────────────────── */
.section { padding: 100px 0; }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-heading {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.65;
}

/* ── Story ─────────────────────────────────────────────────────────────────────── */
.section-story { background: var(--surface); }

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.story-text .section-eyebrow { display: block; margin-bottom: 12px; }
.story-text .section-heading { text-align: left; margin-bottom: 24px; }
.story-text p { color: var(--text-2); margin-bottom: 16px; line-height: 1.7; font-size: 16px; }
.story-text p:last-of-type { margin-bottom: 28px; }
.story-text strong { color: var(--text); font-weight: 800; }
.story-text em { color: var(--primary); font-style: normal; font-weight: 700; }

.story-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.story-stat-card {
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid rgba(91,110,232,.10);
  padding: 24px;
  text-align: center;
}
.stat-emoji { font-size: 28px; margin-bottom: 8px; }
.stat-value { font-size: 32px; font-weight: 900; color: var(--primary); line-height: 1; }
.stat-label { font-size: 13px; color: var(--text-2); font-weight: 600; margin-top: 4px; }

/* ── Who it's for ─────────────────────────────────────────────────────────────── */
.section-for { background: var(--bg); }

.needs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.needs-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(91,110,232,.10);
  padding: 28px;
  transition: transform .2s, box-shadow .2s;
}
.needs-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.needs-icon { font-size: 32px; margin-bottom: 12px; }
.needs-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.needs-card p { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* ── Features ─────────────────────────────────────────────────────────────────── */
.section-features { background: var(--surface); }

.features-list { display: flex; flex-direction: column; gap: 24px; }

.feature-row {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid rgba(91,110,232,.08);
  padding: 32px;
  transition: transform .2s, box-shadow .2s;
}
.feature-row:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.feature-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.feature-body h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.feature-body p { color: var(--text-2); line-height: 1.65; font-size: 15px; }

/* ── Themes ─────────────────────────────────────────────────────────────────────── */
.section-themes { background: var(--bg); }

.themes-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.theme-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 2px solid color-mix(in srgb, var(--tc) 20%, transparent);
  padding: 20px 16px;
  min-width: 90px;
  cursor: default;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.theme-card:hover {
  transform: translateY(-4px);
  border-color: var(--tc);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--tc) 20%, transparent);
}
.theme-card-emoji { font-size: 32px; }
.theme-card-name { font-size: 12px; font-weight: 800; color: var(--text-2); }
.theme-card-soon { position: relative; opacity: 0.7; }
.theme-soon-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: #FF9B4E;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

/* ── Soon button ──────────────────────────────────────────────────────────────── */
.btn-soon {
  background: #D1D5DB;
  color: #6B7280;
  cursor: not-allowed;
  box-shadow: none;
  gap: 8px;
}
.btn-soon:hover { transform: none; box-shadow: none; }
.soon-tag {
  background: #FF9B4E;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  margin-left: 4px;
  letter-spacing: 0.3px;
}

/* ── Download ─────────────────────────────────────────────────────────────────── */
.section-download { background: var(--surface); }

.download-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 28px;
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: 0 24px 60px rgba(91,110,232,.30);
}
.download-text h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.download-text p { color: rgba(255,255,255,.75); font-size: 16px; margin-bottom: 28px; }
.download-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.download-box .btn-primary { background: #fff; color: var(--primary); box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.download-box .btn-dark { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.20); }
.download-emoji { font-size: 96px; line-height: 1; flex-shrink: 0; }

/* ── Donate ─────────────────────────────────────────────────────────────────────── */
.section-donate { background: var(--bg); }

.donate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.donate-text .section-eyebrow { display: block; margin-bottom: 12px; }
.donate-text .section-heading { text-align: left; margin-bottom: 20px; }
.donate-text p { color: var(--text-2); margin-bottom: 14px; line-height: 1.7; }

.donate-list {
  list-style: none;
  margin: 16px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.donate-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.5;
}
.donate-list li span { font-size: 18px; flex-shrink: 0; }
.donate-note {
  font-size: 14px;
  color: var(--text-3) !important;
  font-style: italic;
}

.donate-card {
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid rgba(91,110,232,.12);
  padding: 36px;
  box-shadow: var(--shadow);
}
.donate-card-header {
  text-align: center;
  margin-bottom: 28px;
}
.donate-heart { font-size: 40px; display: block; margin-bottom: 10px; }
.donate-card-header h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.donate-card-header p { font-size: 14px; color: var(--text-2); }

.donate-btn { width: 100%; justify-content: center; font-size: 16px; padding: 16px; }

.donate-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 700;
}
.donate-divider::before,
.donate-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(91,110,232,.10);
}

.donate-email-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(91,110,232,.15);
  background: rgba(91,110,232,.04);
  transition: border-color .2s, background .2s;
  cursor: pointer;
  text-align: center;
}
.donate-email-row:hover {
  border-color: var(--primary);
  background: rgba(91,110,232,.08);
}
.donate-email-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(91,110,232,.10);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.donate-email-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.donate-email-body strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}
.donate-email-body span {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}
.donate-email-arrow { display: none; }

.donate-secure {
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 700;
  margin-top: 16px;
}

/* ── Footer ────────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--text);
  color: rgba(255,255,255,.6);
  padding: 60px 0 32px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.footer-logo { font-size: 22px; font-weight: 900; color: #fff; display: block; margin-bottom: 8px; }
.footer-brand p { font-size: 14px; max-width: 280px; line-height: 1.6; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.footer-links a { font-size: 14px; font-weight: 700; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; text-align: center; font-size: 13px; }

/* ── Responsive ────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .phone-mockup { width: 240px; }
  .story-grid { grid-template-columns: 1fr; gap: 48px; }
  .needs-grid { grid-template-columns: repeat(2, 1fr); }
  .donate-grid { grid-template-columns: 1fr; gap: 48px; }
  .download-box { flex-direction: column; text-align: center; padding: 48px 32px; }
  .download-emoji { font-size: 64px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }
  .hero { padding-top: 48px; }
  .section { padding: 72px 0; }
  .needs-grid { grid-template-columns: 1fr; }
  .story-cards { grid-template-columns: 1fr 1fr; }
  .feature-row { flex-direction: column; gap: 16px; }
  .download-box { padding: 36px 24px; }
  .donate-card { padding: 24px; }
  .footer-inner { flex-direction: column; gap: 28px; }
}

@media (max-width: 400px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .story-cards { grid-template-columns: 1fr; }
}

/* ── Heart Counter Bar ───────────────────────────────────────────────────────── */
.heart-bar {
  background: linear-gradient(120deg, #EEF0FD 0%, #E6F4FC 50%, #EAF8F3 100%);
  border-bottom: 1px solid rgba(91,110,232,0.10);
  padding: 12px 0 8px;
  text-align: center;
  margin-top: var(--nav-h);
}

.heart-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hb-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  gap: 2px;
  line-height: 1;
  border-radius: 50px;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.hb-btn:hover { transform: scale(1.18); }
.hb-btn:active { transform: scale(0.88); }
.hb-btn.poured { cursor: default; }
.hb-btn.poured:hover { transform: scale(1); }

.hb-dino {
  font-size: 22px;
  display: inline-block;
  animation: hb-dino-look 4s ease-in-out infinite;
}
@keyframes hb-dino-look {
  0%,80%,100% { transform: rotate(0deg) translateY(0); }
  87%          { transform: rotate(-10deg) translateY(-2px); }
  94%          { transform: rotate(6deg) translateY(-1px); }
}

.hb-heart {
  font-size: 26px;
  display: inline-block;
  animation: hb-pulse 2.2s ease-in-out infinite;
}
@keyframes hb-pulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.16); }
}
.hb-btn.pouring .hb-heart {
  animation: hb-burst 0.55s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes hb-burst {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.7); }
  70%  { transform: scale(0.85); }
  100% { transform: scale(1.1); }
}
.hb-btn.poured .hb-heart {
  animation: hb-float 3.5s ease-in-out infinite;
}
@keyframes hb-float {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-4px) scale(1.07); }
}

.hb-msg {
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}

.hb-count {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), color 0.2s;
  min-width: 1ch;
}
.hb-count.bump { transform: scale(1.3); color: #3A50D4; }

.hb-label {
  font-weight: 700;
  color: var(--text-2);
  font-size: 14px;
}

.hb-hint {
  font-size: 12px;
  color: var(--text-3);
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: 0.01em;
  transition: opacity 0.4s;
}
.hb-hint.hidden { opacity: 0; pointer-events: none; }

@media (max-width: 480px) {
  .hb-msg { font-size: 13px; }
  .hb-count { font-size: 17px; }
  .hb-label { font-size: 12px; }
}
