/* ============================================
   PARENTOLOGY — Main Stylesheet v2
   ============================================ */

:root {
  --purple: #7C3AED;
  --purple-light: #EDE9FE;
  --purple-dark: #5B21B6;
  --coral: #FF6B35;
  --coral-light: #FFF0EB;
  --yellow: #F59E0B;
  --yellow-light: #FEF3C7;
  --teal: #14B8A6;
  --teal-light: #CCFBF1;
  --red: #EF4444;
  --red-light: #FEE2E2;
  --green: #22C55E;
  --green-light: #DCFCE7;
  --bg: #FFFBF7;
  --white: #ffffff;
  --text: #1E1B4B;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --shadow: 0 4px 24px rgba(124,58,237,0.08);
  --shadow-lg: 0 12px 48px rgba(124,58,237,0.15);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'Baloo 2', cursive; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { color: var(--text-muted); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

.gradient-text {
  background: linear-gradient(135deg, #A855F7, #FF6B35, #F59E0B);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ============================================
   PARTICLE CANVAS
   ============================================ */
#particleCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,0.3), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--purple);
  color: white;
  border-color: var(--purple);
}
.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(124,58,237,0.4);
}

.btn-nav { font-size: 0.9rem; padding: 10px 20px; }
.btn-full { width: 100%; justify-content: center; }

/* Sparkle btn effect */
.btn-sparkle { animation: spinStar 2s linear infinite; display: inline-block; }
@keyframes spinStar {
  0%,100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.3) rotate(180deg); }
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
  padding: 10px 0;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

/* ---- Logo image (replaces emoji) ---- */
.nav-logo-img-wrap {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(8px);
}
.navbar.scrolled .nav-logo-img-wrap {
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.nav-logo:hover .nav-logo-img-wrap {
  transform: scale(1.04);
}

.nav-logo-img {
  height: 38px;
  width: auto;
  display: block;
  /* keep logo sharp */
  image-rendering: -webkit-optimize-contrast;
}
.navbar.scrolled .nav-logo-img {
  height: 34px;
}

/* Footer logo — invert to white on dark background */
.footer-logo {
  margin-bottom: 16px;
}
.footer-logo-img {
  height: 40px;
  width: auto;
  /* invert the black wordmark to white + keep colours readable */
  filter: brightness(0) invert(1);
  opacity: 0.92;
  transition: opacity 0.3s, transform 0.3s;
}
.footer-logo-img:hover {
  opacity: 1;
  transform: scale(1.04);
}

/* Page-hero (tools/about/apps pages) — logo on dark purple banner */
.page-hero .nav-logo-img-wrap {
  background: rgba(255,255,255,0.92);
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-12deg); }
  75% { transform: rotate(12deg); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  transition: all 0.25s;
}
.navbar.scrolled .nav-link { color: var(--text-muted); }
.nav-link:hover,
.navbar.scrolled .nav-link:hover {
  background: var(--purple-light);
  color: var(--purple);
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-link--dropdown { cursor: pointer; display: flex; align-items: center; gap: 4px; }
.dropdown-arrow { font-size: 0.7rem; transition: transform 0.3s; }
.nav-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: white;
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  border: 1px solid var(--border);
  min-width: 260px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text);
  transition: background 0.2s;
  border-bottom: 1px solid var(--border);
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: var(--purple-light); }

.di-icon {
  width: 36px; height: 36px;
  background: var(--purple-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.dropdown-item strong { display: block; font-size: 0.88rem; font-weight: 700; }
.dropdown-item small { font-size: 0.78rem; color: var(--text-muted); }

.nav-cta { flex-shrink: 0; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 25px; height: 2.5px;
  background: white;
  border-radius: 4px;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center;
}
.navbar.scrolled .hamburger span { background: var(--text); }

/* Animate to X when open */
.hamburger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); background: var(--purple); }
.hamburger.is-open span:nth-child(2) { transform: scaleX(0); opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); background: var(--purple); }

/* ============================================
   FLOATING ELEMENTS
   ============================================ */
.floaties { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }

.floaty {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-size: 1.6rem;
  animation: floatAround 6s ease-in-out infinite;
  animation-delay: var(--d);
  opacity: 0.75;
  user-select: none;
}
.floaty.star { font-size: 1.2rem; animation-name: twinkle; }
.floaty.cloud { font-size: 2rem; animation-duration: 12s; opacity: 0.45; }

@keyframes floatAround {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(6deg); }
  75% { transform: translateY(-10px) rotate(-6deg); }
}
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.75; }
  50% { transform: scale(1.4) rotate(20deg); opacity: 1; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #1E1B4B 0%, #4C1D95 35%, #7C3AED 65%, #C026D3 85%, #DB2777 100%);
  background-size: 200% 200%;
  animation: heroBg 12s ease infinite;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 24px 60px;
}

@keyframes heroBg {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }

.shape { position: absolute; border-radius: 50%; opacity: 0.08; }
.shape-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #F59E0B, transparent);
  top: -250px; right: -100px;
  animation: pulseSlow 8s ease-in-out infinite;
}
.shape-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #14B8A6, transparent);
  bottom: -200px; left: -100px;
  animation: pulseSlow 11s ease-in-out infinite reverse;
}
.shape-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #FF6B35, transparent);
  top: 40%; left: 30%;
  animation: pulseSlow 6s ease-in-out infinite;
}
.shape-4 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, #F0ABFC, transparent);
  top: 20%; left: 50%;
  animation: pulseSlow 9s ease-in-out infinite 2s;
  opacity: 0.12;
}

@keyframes pulseSlow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

.hero-container {
  max-width: 640px;
  z-index: 10;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 28px;
  animation: fadeInDown 0.9s ease both;
}

.badge-pulse {
  width: 8px; height: 8px;
  background: #22C55E;
  border-radius: 50%;
  animation: livePulse 1.5s ease infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.hero-title {
  color: white;
  margin-bottom: 24px;
  animation: fadeInUp 0.9s ease 0.2s both;
}
.hero-title-sub {
  font-size: 0.7em;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  font-family: 'Nunito', sans-serif;
}

/* Typewriter */
.typewriter { min-width: 260px; display: inline-block; }
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  background: white;
  animation: blink 0.8s step-end infinite;
  margin-left: 2px;
  vertical-align: middle;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-subtitle {
  color: rgba(255,255,255,0.82);
  font-size: 1.12rem;
  margin-bottom: 36px;
  animation: fadeInUp 0.9s ease 0.4s both;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
  animation: fadeInUp 0.9s ease 0.6s both;
}

.btn-hero-primary {
  background: white;
  color: var(--purple);
  font-size: 1.05rem;
  padding: 16px 36px;
  box-shadow: 0 8px 32px rgba(255,255,255,0.2);
}
.btn-hero-primary:hover {
  background: var(--yellow-light);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(255,255,255,0.35);
}

.btn-hero-ghost {
  background: rgba(255,255,255,0.1);
  color: white;
  border-color: rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
  font-size: 1.05rem;
  padding: 16px 32px;
}
.btn-hero-ghost:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.5);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  animation: fadeInUp 0.9s ease 0.8s both;
  flex-wrap: wrap;
}

.stat-item { display: flex; flex-direction: column; }
.stat-number {
  font-family: 'Baloo 2', cursive;
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.65); font-weight: 600; margin-top: 2px; }
.stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.2); }

/* Hero illustration */
.hero-illustration {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 440px;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.hero-central-blob {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blob-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12);
  animation: ripple 5s ease-in-out infinite;
}
.ring-1 { width: 200px; height: 200px; animation-delay: 0s; }
.ring-2 { width: 290px; height: 290px; animation-delay: 1s; }
.ring-3 { width: 380px; height: 380px; animation-delay: 2s; }

@keyframes ripple {
  0%, 100% { transform: scale(1); opacity: 0.25; }
  50% { transform: scale(1.06); opacity: 0.55; }
}

.blob-emoji {
  font-size: 5rem;
  animation: floatAround 5s ease-in-out infinite;
  z-index: 2;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
}

.hero-card-float {
  position: absolute;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.28);
  color: white;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 0.83rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.card-float-1 { top: 30px; right: 30px; animation: floatAround 5s ease-in-out infinite; }
.card-float-2 { top: 48%; right: -20px; animation: floatAround 6s ease-in-out infinite reverse; }
.card-float-3 { bottom: 80px; right: 50px; animation: floatAround 7s ease-in-out infinite 1s; }
.card-float-4 { bottom: 30px; right: 5px; animation: floatAround 5.5s ease-in-out infinite 0.5s; }

.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
}
.hero-wave svg { display: block; width: 100%; height: 70px; }

/* ============================================
   SECTION COMMONS
   ============================================ */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header h2 { margin: 12px 0; }
.section-header p { max-width: 560px; margin: 0 auto; font-size: 1.05rem; line-height: 1.75; }

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--purple-light);
  color: var(--purple);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* ============================================
   TOOLS SECTION
   ============================================ */
.tools-section {
  padding: 100px 0;
  background: var(--white);
  position: relative;
}

.tools-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--purple), var(--coral), var(--yellow), var(--teal), var(--purple));
  background-size: 200% 100%;
  animation: rainbowBar 4s linear infinite;
}
@keyframes rainbowBar {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.tool-card {
  position: relative;
  display: block;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  text-decoration: none;
}
.tool-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: transparent;
  box-shadow: 0 20px 60px rgba(124,58,237,0.18);
}

.tool-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(124,58,237,0.04));
  opacity: 0;
  transition: opacity 0.4s;
}
.tool-card:hover .tool-card-bg { opacity: 1; }

.tool-icon-wrap {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--ic, var(--purple-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.tool-card:hover .tool-icon-wrap { transform: scale(1.15) rotate(-5deg); }

.tool-card h3 { margin-bottom: 10px; font-size: 1.15rem; color: var(--text); transition: color 0.3s; }
.tool-card:hover h3 { color: var(--purple); }
.tool-card p { font-size: 0.9rem; line-height: 1.65; margin-bottom: 20px; }

.tool-arrow {
  width: 36px; height: 36px;
  background: var(--purple-light);
  color: var(--purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tool-card:hover .tool-arrow {
  background: var(--purple);
  color: white;
  transform: translateX(5px);
}

.tool-sparkles {
  position: absolute;
  top: 16px; right: 16px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.3s;
}
.tool-sparkles span {
  font-size: 0.6rem;
  color: var(--icc, var(--purple));
  animation: sparkleFloat 1.5s ease-in-out infinite;
}
.tool-sparkles span:nth-child(2) { animation-delay: 0.2s; }
.tool-sparkles span:nth-child(3) { animation-delay: 0.4s; }
.tool-card:hover .tool-sparkles { opacity: 1; }

@keyframes sparkleFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.3); }
}

/* ============================================
   APPS SECTION
   ============================================ */
.apps-section {
  padding: 100px 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.apps-section-bg { position: absolute; inset: 0; pointer-events: none; }
.apps-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.07;
}
.apps-blob-1 {
  width: 600px; height: 600px;
  background: var(--purple);
  top: -200px; right: -150px;
  animation: pulseSlow 10s ease-in-out infinite;
}
.apps-blob-2 {
  width: 500px; height: 500px;
  background: var(--coral);
  bottom: -150px; left: -100px;
  animation: pulseSlow 8s ease-in-out infinite reverse;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.app-card {
  position: relative;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.app-card:hover {
  transform: translateY(-10px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.app-card--featured {
  border-color: var(--purple);
  box-shadow: 0 8px 40px rgba(124,58,237,0.18);
  transform: translateY(-8px);
}
.app-card--featured:hover { transform: translateY(-18px); }

.app-card-glow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(circle at 50% 0%, rgba(124,58,237,0.07), transparent 70%);
}
.app-card:hover .app-card-glow { opacity: 1; }

.featured-ribbon {
  position: absolute;
  top: 18px; right: -28px;
  background: linear-gradient(135deg, var(--purple), var(--coral));
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 36px;
  transform: rotate(45deg);
  width: 130px;
  text-align: center;
}

.app-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.app-icon-wrap {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--icon-bg, var(--purple-light));
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.app-card:hover .app-icon-wrap { transform: scale(1.12) rotate(-6deg); }
.app-icon { font-size: 1.8rem; }

.app-tag {
  background: var(--tag-bg, var(--purple-light));
  color: var(--tag-color, var(--purple));
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.73rem;
  font-weight: 700;
}
.app-name { font-size: 1.45rem; margin-bottom: 12px; color: var(--text); }
.app-desc { margin-bottom: 20px; font-size: 0.93rem; line-height: 1.7; }
.app-features { margin-bottom: 28px; display: flex; flex-direction: column; gap: 9px; }
.app-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.89rem;
  font-weight: 600;
  color: var(--text);
}
.feat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c, var(--purple));
  flex-shrink: 0;
}

.app-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--btn-color, var(--purple));
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.93rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  border: none;
}
.app-cta span { transition: transform 0.3s; }
.app-cta:hover {
  background: var(--btn-hover, var(--purple-dark));
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.app-cta:hover span { transform: translateX(5px); }

/* ============================================
   NUMBER BANNER
   ============================================ */
.number-banner {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple), #9333EA);
  padding: 48px 24px;
  position: relative;
  overflow: hidden;
}
.number-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='20' cy='20' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
}

.number-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.nb-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 48px;
}
.nb-num {
  font-family: 'Baloo 2', cursive;
  font-size: 2.4rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}
.nb-label { font-size: 0.82rem; color: rgba(255,255,255,0.65); font-weight: 600; margin-top: 4px; }
.nb-divider { width: 1px; height: 60px; background: rgba(255,255,255,0.15); }

/* ============================================
   WHY SECTION
   ============================================ */
.why-section {
  padding: 100px 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.why-bg { position: absolute; inset: 0; pointer-events: none; }
.why-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.07;
}
.why-blob-1 { width: 500px; height: 500px; background: var(--purple); top: -150px; right: -100px; animation: pulseSlow 9s ease-in-out infinite; }
.why-blob-2 { width: 400px; height: 400px; background: var(--coral); bottom: -100px; left: -80px; animation: pulseSlow 11s ease-in-out infinite reverse; }

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

.why-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--coral));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}
.why-card:hover::before { transform: scaleX(1); }
.why-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-light);
  background: white;
}

.why-icon-wrap {
  width: 60px; height: 60px;
  background: var(--purple-light);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.why-card:hover .why-icon-wrap { transform: scale(1.12) rotate(-8deg); }
.why-icon { font-size: 1.8rem; }
.why-card h3 { margin-bottom: 10px; }
.why-card p { font-size: 0.93rem; line-height: 1.7; }

/* ============================================
   COMING SOON
   ============================================ */
.coming-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #4C1D95 100%);
  position: relative;
  overflow: hidden;
}

.coming-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/svg%3E");
}

.coming-section .section-header h2 { color: white; }
.coming-section .section-header p { color: rgba(255,255,255,0.65); }

.coming-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.coming-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.coming-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-8px);
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.coming-icon { font-size: 2.5rem; display: block; margin-bottom: 12px; }
.coming-tag {
  display: inline-block;
  background: rgba(245,158,11,0.18);
  color: #FCD34D;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.73rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.coming-card h3 { color: white; margin-bottom: 10px; font-size: 1.05rem; }
.coming-card p { color: rgba(255,255,255,0.6); font-size: 0.88rem; margin-bottom: 20px; }

.coming-progress {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--yellow), var(--coral));
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.progress-label { font-size: 0.73rem; color: rgba(255,255,255,0.45); font-weight: 600; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
  padding: 100px 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.testi-bg-shape {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--purple-light) 0%, transparent 65%);
  top: -300px; left: -200px;
  pointer-events: none;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testi-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.testi-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-light);
}
.testi-card--featured {
  background: var(--purple);
  border-color: var(--purple);
}
.testi-card--featured .testi-text { color: rgba(255,255,255,0.92) !important; }
.testi-card--featured strong { color: white !important; }
.testi-card--featured span { color: rgba(255,255,255,0.65) !important; }

.testi-stars { font-size: 1rem; margin-bottom: 16px; }
.testi-text {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 24px;
  font-style: italic;
}
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--av-bg, var(--purple-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.testi-author strong { display: block; font-size: 0.88rem; color: var(--text); }
.testi-author span { font-size: 0.78rem; color: var(--text-muted); }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 120px 0;
  background: linear-gradient(135deg, #FEF3C7, #FFF0EB 40%, #EDE9FE 80%, #FEF3C7);
  background-size: 200% 200%;
  animation: heroBg 10s ease infinite;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-floaties { position: absolute; inset: 0; pointer-events: none; }

.cta-content { position: relative; z-index: 2; }
.cta-content h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.cta-content p { font-size: 1.1rem; margin-bottom: 36px; }

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.btn-cta-primary {
  background: var(--purple);
  color: white;
  font-size: 1.1rem;
  padding: 18px 44px;
  box-shadow: 0 8px 32px rgba(124,58,237,0.35);
}
.btn-cta-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-5px);
  box-shadow: 0 20px 56px rgba(124,58,237,0.5);
}

.btn-cta-ghost {
  background: white;
  color: var(--purple);
  border-color: var(--purple);
  font-size: 1.1rem;
  padding: 18px 36px;
}
.btn-cta-ghost:hover {
  background: var(--purple-light);
  transform: translateY(-5px);
}

.cta-app-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* FIXED: app-badge-pill is now an <a> tag */
.app-badge-pill {
  background: white;
  border: 1.5px solid var(--border);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  cursor: pointer;
}
.app-badge-pill:hover {
  transform: translateY(-4px);
  border-color: var(--purple);
  color: var(--purple);
  box-shadow: 0 8px 24px rgba(124,58,237,0.18);
}

/* ============================================
   PAGE HERO
   ============================================ */
.page-hero {
  padding: 160px 24px 100px;
  background: linear-gradient(135deg,
    var(--hero-color1, #1E1B4B) 0%,
    var(--hero-color2, #4C1D95) 50%,
    var(--hero-color3, #7C3AED) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero-content { position: relative; z-index: 10; }
.page-hero-content h1 { color: white; margin: 12px 0; }
.page-hero-content p { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

.page-hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
}
.page-hero-wave svg { display: block; width: 100%; height: 50px; }

.tool-breadcrumb {
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  margin-bottom: 12px;
}
.tool-breadcrumb a { color: rgba(255,255,255,0.7); }
.tool-breadcrumb a:hover { color: white; }

/* ============================================
   TOOL PAGES
   ============================================ */
.tool-section { padding: 80px 0 100px; }

.tool-card-main {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 60px;
  box-shadow: var(--shadow);
}

.tool-card-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.tool-card-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--purple-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.tool-card-header h2 { margin-bottom: 4px; font-size: 1.6rem; }
.tool-card-header p { font-size: 0.92rem; }

.tool-sub-heading {
  font-size: 1.6rem;
  margin-bottom: 28px;
  color: var(--text);
}

/* Tool form */
.tool-form { display: flex; flex-direction: column; gap: 20px; }
.tool-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 0.93rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus { outline: none; border-color: var(--purple); background: white; box-shadow: 0 0 0 4px rgba(124,58,237,0.08); }

/* Growth result */
.growth-result {
  margin-top: 28px;
  background: var(--purple-light);
  border-radius: var(--radius-sm);
  padding: 28px;
  animation: fadeInUp 0.5s ease both;
}
.growth-result-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.growth-emoji { font-size: 3rem; animation: floatAround 3s ease-in-out infinite; }
.growth-result-header h3 { margin-bottom: 4px; font-size: 1.4rem; }

.growth-bars { display: flex; flex-direction: column; gap: 20px; margin-bottom: 20px; }
.gbar-item {}
.gbar-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 700; font-size: 0.9rem; }
.gbar-status { font-size: 0.85rem; }
.gbar-track {
  height: 12px;
  background: rgba(124,58,237,0.1);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 6px;
}
.gbar-fill {
  height: 100%;
  background: var(--gc, var(--green));
  border-radius: 8px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: gbarFill 1.2s ease both;
}
@keyframes gbarFill { from { width: 0; } to { width: var(--gp); } }
.gbar-note { font-size: 0.78rem; color: var(--text-muted); }

.growth-tip-good {
  background: var(--green-light);
  color: #15803D;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}
.growth-tip-warn {
  background: var(--yellow-light);
  color: #92400E;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Growth table */
.growth-table-wrap { overflow-x: auto; margin-bottom: 60px; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.growth-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 0.9rem;
}
.growth-table th {
  background: var(--purple);
  color: white;
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
  font-size: 0.85rem;
}
.growth-table td { padding: 12px 18px; border-bottom: 1px solid var(--border); }
.growth-table tr:nth-child(even) td { background: var(--bg); }
.growth-table tr:hover td { background: var(--purple-light); transition: background 0.2s; }

/* Tips grid */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 0;
}

.tip-card {
  background: var(--tc, var(--yellow-light));
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  transition: transform 0.3s ease;
}
.tip-card:hover { transform: translateY(-5px); }
.tip-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.tip-card h4 { color: var(--tcc, var(--yellow)); margin-bottom: 8px; font-size: 1rem; }
.tip-card p { font-size: 0.88rem; }

/* Vaccine age selector */
.vaccine-age-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.vax-btn {
  padding: 8px 18px;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: var(--bg);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.vax-btn:hover { border-color: var(--purple); color: var(--purple); transform: translateY(-2px); }
.vax-btn.active {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
  box-shadow: 0 4px 16px rgba(124,58,237,0.3);
}

/* Vaccine cards */
.vax-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  animation: fadeInUp 0.4s ease both;
}

.vax-card {
  border-radius: var(--radius-sm);
  padding: 20px;
  border: 2px solid var(--border);
  background: white;
  transition: all 0.3s ease;
}
.vax-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.vax-card--free { border-color: rgba(34,197,94,0.3); }
.vax-card--paid { border-color: rgba(245,158,11,0.3); }

.vax-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.vax-name { font-weight: 800; font-family: 'Baloo 2', cursive; font-size: 1.05rem; }
.vax-badge { padding: 3px 10px; border-radius: 50px; font-size: 0.72rem; font-weight: 700; }
.vax-free { background: var(--green-light); color: #15803D; }
.vax-paid { background: var(--yellow-light); color: #92400E; }
.vax-full { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 8px; }
.vax-disease { font-size: 0.85rem; margin-bottom: 6px; font-weight: 600; }
.vax-dose { font-size: 0.82rem; color: var(--purple); font-weight: 700; }
.vax-notes { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; background: var(--bg); padding: 6px 10px; border-radius: 6px; }

/* Full schedule grid */
.vaccine-schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  margin-bottom: 60px;
}

.schedule-col { text-align: center; }
.schedule-age {
  background: var(--purple);
  color: white;
  padding: 8px 6px;
  border-radius: 8px 8px 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.schedule-item {
  padding: 5px 4px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 3px;
  text-align: center;
}
.si-free { background: var(--green-light); color: #15803D; }
.si-paid { background: var(--yellow-light); color: #92400E; }

/* Meal plan */
.meal-plan-block {
  background: var(--mpbg, var(--purple-light));
  border-radius: var(--radius-sm);
  padding: 28px;
  animation: fadeInUp 0.4s ease both;
}
.meal-plan-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.meal-emoji { font-size: 2.5rem; }
.meal-plan-header h3 { font-size: 1.3rem; color: var(--text); }
.meal-note {
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.88rem;
  margin-bottom: 20px;
  color: var(--text);
}
.meal-schedule { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.meal-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.8);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: transform 0.2s;
}
.meal-row:hover { transform: translateX(6px); }
.meal-time { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); min-width: 100px; }
.meal-icon { font-size: 1.3rem; }
.meal-desc { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.meal-tips { background: rgba(255,255,255,0.6); border-radius: var(--radius-sm); padding: 16px 20px; }
.meal-tips h4 { margin-bottom: 10px; font-size: 0.95rem; }
.meal-tips ul { display: flex; flex-direction: column; gap: 6px; }
.meal-tips li { font-size: 0.85rem; color: var(--text-muted); padding-left: 12px; position: relative; }
.meal-tips li::before { content: '•'; position: absolute; left: 0; color: var(--purple); }

/* Nutrition pillars */
.nutrition-pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.pillar-card {
  background: var(--pc, var(--yellow-light));
  border-radius: var(--radius-sm);
  padding: 24px 18px;
  text-align: center;
  transition: transform 0.3s ease;
}
.pillar-card:hover { transform: translateY(-6px); }
.pillar-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.pillar-card h3 { font-size: 1rem; color: var(--pcc, var(--yellow)); margin-bottom: 8px; }
.pillar-card p { font-size: 0.82rem; line-height: 1.6; margin-bottom: 12px; }
.pillar-foods { font-size: 1.3rem; letter-spacing: 4px; }

/* Avoid grid */
.avoid-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.avoid-card {
  background: var(--red-light);
  border-radius: var(--radius-sm);
  padding: 24px;
}
.avoid-card h4 { color: var(--red); margin-bottom: 14px; }
.avoid-card ul { display: flex; flex-direction: column; gap: 8px; }
.avoid-card li { font-size: 0.88rem; color: var(--text); }

/* Milestone */
.milestone-block { animation: fadeInUp 0.4s ease both; }
.milestone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}
.milestone-header h3 { font-size: 1.4rem; }
.milestone-progress-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.milestone-progress-wrap span { font-size: 0.82rem; color: var(--text-muted); font-weight: 700; }
.ms-progress-bar { width: 180px; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.ms-progress-fill { height: 100%; background: linear-gradient(90deg, var(--purple), var(--coral)); border-radius: 4px; transition: width 0.5s ease; }

.milestone-cats { display: flex; flex-direction: column; gap: 24px; }
.milestone-cat h4 { font-size: 1rem; color: var(--purple); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.milestone-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }

.milestone-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  user-select: none;
}
.milestone-item:hover { border-color: var(--purple); background: var(--purple-light); }
.milestone-item input { display: none; }
.ms-checkbox {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-radius: 6px;
  flex-shrink: 0;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.milestone-item input:checked ~ .ms-checkbox {
  background: var(--purple);
  border-color: var(--purple);
}
.milestone-item input:checked ~ .ms-checkbox::after {
  content: '✓';
  color: white;
  font-size: 0.75rem;
  font-weight: 900;
}
.milestone-item input:checked ~ span:last-child { text-decoration: line-through; color: var(--text-muted); }

/* Red flags */
.redflags-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.redflag-card {
  background: #FFF5F5;
  border: 2px solid #FEE2E2;
  border-radius: var(--radius-sm);
  padding: 24px;
}
.redflag-card h4 { color: var(--red); margin-bottom: 14px; font-size: 1rem; }
.redflag-card ul { display: flex; flex-direction: column; gap: 8px; }
.redflag-card li { font-size: 0.86rem; color: var(--text); padding-left: 16px; position: relative; }
.redflag-card li::before { content: '⚠️'; position: absolute; left: -2px; font-size: 0.65rem; top: 3px; }

.redflag-note {
  background: var(--purple-light);
  color: var(--purple);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 60px;
}

/* Activities */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 0;
}
.activity-card {
  background: var(--ac, var(--yellow-light));
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  transition: transform 0.3s ease;
}
.activity-card:hover { transform: translateY(-5px); }
.ac-age { display: inline-block; background: rgba(0,0,0,0.07); color: var(--text); padding: 3px 10px; border-radius: 50px; font-size: 0.72rem; font-weight: 700; margin-bottom: 10px; }
.activity-card h4 { font-size: 0.95rem; margin-bottom: 8px; }
.activity-card p { font-size: 0.82rem; line-height: 1.6; }

/* ============================================
   APPS DETAIL (Apps page)
   ============================================ */
.apps-detail-section { padding: 80px 0; }

.app-detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 100px;
}
.app-detail-row--reverse { direction: rtl; }
.app-detail-row--reverse > * { direction: ltr; }

.app-detail-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.app-detail-blob {
  position: absolute;
  inset: 0;
  border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
  background: var(--blob-color, var(--purple-light));
  z-index: -1;
  animation: blobMorph 9s ease-in-out infinite;
}
@keyframes blobMorph {
  0%, 100% { border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%; }
  25% { border-radius: 40% 60% 45% 55% / 55% 45% 60% 40%; }
  50% { border-radius: 55% 45% 60% 40% / 40% 60% 45% 55%; }
  75% { border-radius: 45% 55% 40% 60% / 60% 40% 55% 45%; }
}

.app-mockup {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0,0,0,0.1);
  overflow: hidden;
  width: 100%;
  max-width: 300px;
  animation: floatAround 6s ease-in-out infinite;
}

.mockup-screen { padding: 0 0 20px; }
.mockup-header { padding: 16px 20px; font-weight: 700; font-size: 0.93rem; background: var(--mh-bg, var(--purple-light)); margin-bottom: 12px; }
.mockup-item { display: flex; align-items: center; gap: 12px; padding: 10px 20px; font-size: 0.88rem; font-weight: 600; color: var(--text); }
.mockup-item--active { background: var(--purple-light); color: var(--purple); border-left: 3px solid var(--purple); }
.mockup-item span { font-size: 1.2rem; }

.mockup-scan { padding: 20px; text-align: center; font-size: 0.88rem; font-weight: 600; color: var(--text-muted); position: relative; overflow: hidden; background: #FAFAFA; margin: 0 12px; border-radius: var(--radius-sm); }
.scan-line { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--red), transparent); animation: scanMove 2s ease-in-out infinite; }
@keyframes scanMove { 0% { top: 10%; } 100% { top: 90%; } }
.mockup-result { display: flex; gap: 8px; padding: 12px 20px; flex-wrap: wrap; }
.sugar-badge { padding: 5px 12px; border-radius: 50px; font-size: 0.78rem; font-weight: 700; }
.sugar-badge--warn { background: var(--yellow-light); color: #D97706; }
.sugar-badge--ok { background: var(--green-light); color: #16A34A; }

.mockup-story { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.story-cover { width: 44px; height: 44px; border-radius: 10px; background: var(--purple-light); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.story-info strong { display: block; font-size: 0.86rem; color: var(--text); }
.story-info span { font-size: 0.76rem; color: var(--text-muted); }

.app-detail-badge { display: inline-block; background: var(--badge-bg, var(--purple-light)); color: var(--badge-color, var(--purple)); padding: 5px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; margin-bottom: 16px; }
.app-detail-content h2 { margin-bottom: 16px; }
.app-detail-desc { font-size: 1.03rem; line-height: 1.8; margin-bottom: 32px; }

.feature-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--fi-bg, var(--purple-light)); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.feature-item strong { display: block; margin-bottom: 4px; color: var(--text); }
.feature-item p { font-size: 0.88rem; margin: 0; }

/* ============================================
   ABOUT
   ============================================ */
.about-mission-section { padding: 80px 0; }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.mission-text .section-badge { margin-bottom: 16px; }
.mission-text h2 { margin-bottom: 24px; }
.mission-text p { font-size: 1rem; line-height: 1.8; margin-bottom: 16px; }
.mission-text em { color: var(--purple); }
.mission-visual { position: relative; }
.mission-blob { position: absolute; inset: -40px; border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%; background: linear-gradient(135deg, var(--purple-light), var(--yellow-light)); z-index: 0; animation: blobMorph 10s ease-in-out infinite; }
.mission-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative; z-index: 1; }
.mission-stat-card { background: white; border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow); border-top: 4px solid var(--mc, var(--purple)); transition: transform 0.3s ease; }
.mission-stat-card:hover { transform: translateY(-4px); }
.mc-num { display: block; font-family: 'Baloo 2', cursive; font-size: 2rem; font-weight: 800; color: var(--mc, var(--purple)); }
.mc-label { font-size: 0.83rem; font-weight: 600; color: var(--text-muted); }

.values-section { padding: 80px 0; background: var(--bg); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 24px; text-align: center; transition: all 0.3s ease; }
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.value-icon { font-size: 2.5rem; display: block; margin-bottom: 16px; }
.value-card h3 { margin-bottom: 10px; }
.value-card p { font-size: 0.88rem; }

.team-section { padding: 80px 0; }
.team-cta-block { text-align: center; background: var(--purple-light); border-radius: var(--radius); padding: 60px; }
.team-emoji-row { font-size: 2.5rem; letter-spacing: 8px; display: block; margin-bottom: 20px; }
.team-cta-block p { font-size: 1.05rem; margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ============================================
   CONTACT
   ============================================ */
.contact-section { padding: 80px 0 100px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { margin-bottom: 36px; line-height: 1.8; }
.contact-items { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-item-icon { width: 44px; height: 44px; background: var(--purple-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-item strong { display: block; font-size: 0.88rem; color: var(--text); margin-bottom: 2px; }
.contact-item a, .contact-item span { font-size: 0.88rem; color: var(--purple); }
.contact-item a:hover { text-decoration: underline; }
.contact-apps h4 { margin-bottom: 12px; }
.contact-app-pills { display: flex; flex-direction: column; gap: 8px; }
.contact-pill { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--border); padding: 10px 16px; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 600; color: var(--text); transition: all 0.2s; }
.contact-pill:hover { border-color: var(--purple); color: var(--purple); background: var(--purple-light); }

.contact-form-wrap { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-success { display: none; background: var(--green-light); border: 1px solid #BBF7D0; color: #15803D; padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.88rem; align-items: center; gap: 10px; }
.form-success.visible { display: flex; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #1E1B4B;
  position: relative;
  overflow: hidden;
}

.footer-bubbles { position: absolute; inset: 0; pointer-events: none; }
.footer-bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  animation: pulseSlow 8s ease-in-out infinite;
}
.footer-bubble:nth-child(1) { width: 400px; height: 400px; top: -200px; right: 100px; }
.footer-bubble:nth-child(2) { width: 250px; height: 250px; bottom: 50px; left: 200px; animation-delay: 2s; }
.footer-bubble:nth-child(3) { width: 180px; height: 180px; top: 100px; left: 50px; animation-delay: 4s; }

.footer-container { max-width: 1200px; margin: 0 auto; padding: 64px 24px 40px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 80px; }
/* .footer-logo now uses .footer-logo-img — see logo block above */
.footer-tagline { color: rgba(255,255,255,0.55); font-size: 0.93rem; line-height: 1.65; margin-bottom: 24px; max-width: 320px; }
.footer-social { display: flex; gap: 12px; }
.social-icon { width: 40px; height: 40px; background: rgba(255,255,255,0.08); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); transition: all 0.25s; }
.social-icon svg { width: 18px; height: 18px; }
.social-icon:hover { background: var(--purple); color: white; transform: translateY(-3px); }

.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 { color: white; font-size: 0.93rem; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.5); font-size: 0.88rem; transition: color 0.2s; }
.footer-col a:hover { color: rgba(255,255,255,0.9); }

.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 20px 24px; border-top: 1px solid rgba(255,255,255,0.07); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.83rem; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.4); font-size: 0.83rem; }
.footer-bottom-links a:hover { color: white; }

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

.reveal-left { transform: translateY(40px) translateX(-30px); }
.reveal-left.revealed { transform: translateY(0) translateX(0); }

.reveal-right { transform: translateY(40px) translateX(30px); }
.reveal-right.revealed { transform: translateY(0) translateX(0); }

.reveal-up { transform: translateY(50px); transition-delay: var(--delay, 0ms); }
.reveal-up.revealed { transform: translateY(0); }

/* ============================================
   KEYFRAMES
   ============================================ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes gbarFill { from { width: 0; } to { width: var(--gp); } }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .apps-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .app-card--featured { transform: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .coming-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .hero-illustration { display: none; }
  .hero-container { max-width: 100%; }
  .app-detail-row { grid-template-columns: 1fr; gap: 40px; }
  .app-detail-row--reverse { direction: ltr; }
  .mission-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; gap: 40px; }
  .nutrition-pillars { grid-template-columns: repeat(3, 1fr); }
  .activities-grid { grid-template-columns: repeat(3, 1fr); }
  .redflags-grid { grid-template-columns: repeat(2, 1fr); }
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: white;
    padding: 16px 20px 24px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 999;
    border-top: 3px solid var(--purple-light);
  }

  /* Force dark text in open mobile menu regardless of scroll state */
  .nav-links.open .nav-link,
  .nav-links.open .nav-link--dropdown {
    color: var(--text) !important;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .nav-links.open .nav-link:hover,
  .nav-links.open .nav-link--dropdown:hover {
    background: var(--purple-light);
    color: var(--purple) !important;
  }

  /* Dropdown inside mobile menu — show inline, not floating */
  .nav-links.open .dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: all !important;
    box-shadow: none;
    border: none;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 6px 0;
    margin: 4px 0 8px 16px;
    display: none;
  }
  .nav-links.open .nav-dropdown.expanded .dropdown-menu {
    display: block;
  }
  .nav-links.open .dropdown-item {
    padding: 10px 14px;
    color: var(--text);
  }
  .nav-links.open .dropdown-item strong { color: var(--text); }
  .nav-links.open .dropdown-item small { color: var(--text-muted); }

  /* Divider between nav items */
  .nav-links.open li {
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open li:last-child {
    border-bottom: none;
  }

  /* CTA button at bottom of mobile menu */
  .nav-links.open + .nav-cta {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    padding: 0 20px 20px;
    background: white;
    border-radius: 0 0 var(--radius) var(--radius);
    margin-top: calc(100% + 10px);
  }
  .hamburger { display: flex; }
  .hero { padding: 100px 20px 60px; }
  .hero-stats { gap: 16px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .why-grid { grid-template-columns: 1fr; }
  .coming-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .team-cta-block { padding: 40px 20px; }
  .contact-form-wrap { padding: 28px 20px; }
  .number-banner-inner { gap: 0; }
  .nb-item { padding: 12px 20px; }
  .nb-divider { height: 40px; }
  .tools-grid { grid-template-columns: 1fr; }
  .nutrition-pillars { grid-template-columns: 1fr 1fr; }
  .activities-grid { grid-template-columns: 1fr 1fr; }
  .redflags-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr 1fr; }
  .avoid-grid { grid-template-columns: 1fr; }
  .tool-card-main { padding: 24px 20px; }
  .dropdown-menu { left: 0; transform: translateX(0) translateY(-8px); }
  .nav-dropdown:hover .dropdown-menu { transform: translateX(0) translateY(0); }
}

@media (max-width: 480px) {
  .stat-divider { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 14px; }
  .nb-divider { display: none; }
  .number-banner-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .nb-item { padding: 10px; }
  .nutrition-pillars { grid-template-columns: 1fr; }
  .activities-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .mission-cards { grid-template-columns: 1fr 1fr; }
}
