/* ============================================================
   LETTER ZOO — Kids Learning App Landing Page
   Colorful, playful, kid-friendly design
   ============================================================ */

/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
  --zoo-primary: #FF6B6B;
  --zoo-secondary: #4ECDC4;
  --zoo-accent: #FFD93D;
  --zoo-purple: #6C5CE7;
  --zoo-green: #A8E6CF;
  --zoo-orange: #FF8A5C;
  --zoo-pink: #FF85A2;
  --zoo-blue: #45B7D1;
  --zoo-bg: #FFF8F0;
  --zoo-card: rgba(255, 255, 255, 0.88);
  --zoo-text: #2D2D2D;
  --zoo-muted: #6B6B6B;
  --zoo-shadow: 0 8px 32px rgba(255, 107, 107, 0.12);
  --zoo-shadow-lg: 0 16px 48px rgba(255, 107, 107, 0.18);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --container: min(1180px, calc(100vw - 48px));
  --font-main: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fredoka One", "Nunito", sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--zoo-bg);
  color: var(--zoo-text);
  font-family: var(--font-main);
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   BACKGROUND IMAGE
   ============================================================ */
.zoo-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background-image: url('/assets/images/unnamed (3).png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
}

/* ============================================================
   FLOATING ANIMALS
   ============================================================ */
.floating-elements {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.float-item {
  position: absolute;
  font-size: 2.5rem;
  opacity: 0.2;
  animation: float-around 12s ease-in-out infinite;
  filter: blur(1px);
}

@keyframes float-around {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  25% {
    transform: translateY(-20px) rotate(5deg) scale(1.05);
  }
  50% {
    transform: translateY(10px) rotate(-3deg) scale(0.95);
  }
  75% {
    transform: translateY(-15px) rotate(4deg) scale(1.02);
  }
}

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
.page-wrapper {
  position: relative;
  z-index: 1;
}

/* ============================================================
   HEADER
   ============================================================ */
.zoo-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 0;
  background: rgba(255, 248, 240, 0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 2px solid rgba(255, 107, 107, 0.1);
}

.header-inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 2.2rem;
  line-height: 1;
  animation: bounce-logo 3s ease-in-out infinite;
}

@keyframes bounce-logo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.logo-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--zoo-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.logo-tagline {
  margin: 2px 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--zoo-muted);
  letter-spacing: 0.04em;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(255, 107, 107, 0.15);
  color: var(--zoo-text);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 200ms ease;
}

.back-link:hover {
  background: var(--zoo-primary);
  color: #fff;
  border-color: var(--zoo-primary);
  transform: translateY(-2px);
}

/* ============================================================
   SECTION LABEL & TITLE
   ============================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 107, 107, 0.1);
  color: var(--zoo-primary);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.section-title {
  margin: 0 0 32px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--zoo-text);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-desc {
  margin: -20px 0 32px;
  color: var(--zoo-muted);
  font-size: 1.05rem;
  font-weight: 600;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  width: var(--container);
  margin: 0 auto;
  padding: 60px 0 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  min-height: calc(100vh - 100px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--zoo-accent), #FFB347);
  color: #5A3E00;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(255, 217, 61, 0.3);
  margin-bottom: 16px;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--zoo-text);
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--zoo-primary), var(--zoo-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  margin: 20px 0 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--zoo-text);
}

.hero-desc {
  margin: 16px 0 0;
  color: var(--zoo-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 800;
  transition: all 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--zoo-primary), #E85D5D);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--zoo-text);
  border: 2px solid rgba(255, 107, 107, 0.15);
}

.btn-secondary:hover {
  background: #fff;
  border-color: var(--zoo-primary);
}

.btn-large {
  min-height: 60px;
  padding: 0 36px;
  font-size: 1.1rem;
}

/* ============================================================
   HERO MOCKUP
   ============================================================ */
.hero-mockup {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 0.85;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, #FFE8E8, #FFF0E0);
  border: 4px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--zoo-shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mockup-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px;
  text-align: center;
}

.mockup-emoji {
  font-size: 5rem;
  animation: bounce-logo 2s ease-in-out infinite;
}

.mockup-letter {
  font-family: var(--font-display);
  font-size: 8rem;
  background: linear-gradient(135deg, var(--zoo-primary), var(--zoo-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.mockup-label {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--zoo-text);
  letter-spacing: 0.02em;
}

.mockup-glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.08), transparent 70%);
  pointer-events: none;
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* ============================================================
   LEARNING SECTION
   ============================================================ */
.learning-section {
  width: var(--container);
  margin: 0 auto;
  padding: 80px 0;
}

.learning-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.learn-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--zoo-card);
  border: 2px solid transparent;
  box-shadow: var(--zoo-shadow);
  transition: all 300ms ease;
  position: relative;
  overflow: hidden;
}

.learn-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-color);
  border-radius: 4px 4px 0 0;
}

.learn-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--zoo-shadow-lg);
  border-color: var(--card-color);
}

.learn-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.learn-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--zoo-text);
  letter-spacing: -0.01em;
}

.learn-card p {
  margin: 0;
  color: var(--zoo-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features-section {
  width: var(--container);
  margin: 0 auto;
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--zoo-card);
  border: 2px solid rgba(255, 107, 107, 0.06);
  box-shadow: var(--zoo-shadow);
  transition: all 300ms ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--zoo-shadow-lg);
  border-color: rgba(255, 107, 107, 0.2);
}

.feature-icon {
  font-size: 2.8rem;
  margin-bottom: 14px;
  display: block;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--zoo-text);
}

.feature-card p {
  margin: 0;
  color: var(--zoo-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ============================================================
   SCREENSHOTS GALLERY
   ============================================================ */
.screenshots-section {
  width: var(--container);
  margin: 0 auto;
  padding: 80px 0;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.screenshot-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: #f0e8e0;
  box-shadow: var(--zoo-shadow);
  transition: all 300ms ease;
  aspect-ratio: 0.46;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.screenshot-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: var(--zoo-shadow-lg);
  border-color: var(--zoo-primary);
}

.screenshot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.screenshot-card:hover img {
  transform: scale(1.08);
}

.screenshot-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5) 100%);
  opacity: 0;
  transition: opacity 300ms ease;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.screenshot-card:hover .screenshot-overlay {
  opacity: 1;
}

.screenshot-overlay span {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 350ms ease;
  padding: 24px;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-height: 70vh;
  max-width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  object-fit: contain;
}

.lightbox-info {
  text-align: center;
  color: #fff;
}

.lightbox-counter {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.lightbox-info h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
}

.lightbox-info p {
  margin: 6px 0 0;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 200ms ease;
  z-index: 10;
  display: grid;
  place-items: center;
}

.lightbox-close:hover {
  background: var(--zoo-primary);
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: all 200ms ease;
  z-index: 10;
  display: grid;
  place-items: center;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* ============================================================
   AUDIENCE SECTION
   ============================================================ */
.audience-section {
  width: var(--container);
  margin: 0 auto;
  padding: 80px 0;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.audience-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--zoo-card);
  border: 2px solid rgba(255, 107, 107, 0.06);
  box-shadow: var(--zoo-shadow);
  text-align: center;
  transition: all 300ms ease;
}

.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--zoo-shadow-lg);
  border-color: rgba(255, 107, 107, 0.2);
}

.audience-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
  display: block;
}

.audience-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--zoo-text);
}

.audience-card p {
  margin: 0;
  color: var(--zoo-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  width: var(--container);
  margin: 0 auto;
  padding: 60px 0 80px;
}

.cta-card {
  padding: 60px 48px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #FFE8E8, #FFF0E0, #E8FFE8);
  border: 3px solid rgba(255, 107, 107, 0.1);
  box-shadow: var(--zoo-shadow-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(255, 107, 107, 0.04), transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(78, 205, 196, 0.04), transparent 50%);
  pointer-events: none;
}

.cta-emoji {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: bounce-logo 2s ease-in-out infinite;
}

.cta-card h2 {
  margin: 0 auto;
  max-width: 600px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--zoo-text);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.cta-card p {
  margin: 16px auto 0;
  max-width: 500px;
  color: var(--zoo-muted);
  font-size: 1.1rem;
  font-weight: 600;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.cta-stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.store-link {
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--zoo-text);
  font-size: 0.85rem;
  font-weight: 700;
  border: 2px solid rgba(255, 107, 107, 0.1);
  transition: all 200ms ease;
}

.store-link:hover {
  background: var(--zoo-primary);
  color: #fff;
  border-color: var(--zoo-primary);
  transform: translateY(-2px);
}

.store-divider {
  color: var(--zoo-muted);
  opacity: 0.4;
  font-size: 0.8rem;
}

.cta-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid rgba(255, 107, 107, 0.08);
}

.cta-tags span {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--zoo-muted);
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(255, 107, 107, 0.08);
}

/* ============================================================
   FOOTER
   ============================================================ */
.zoo-footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 2px solid rgba(255, 107, 107, 0.08);
  background: rgba(255, 248, 240, 0.6);
}

.zoo-footer p {
  margin: 0;
  color: var(--zoo-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-tagline {
  margin-top: 6px !important;
  font-size: 0.78rem !important;
  opacity: 0.6;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1080px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding: 40px 0 60px;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-mockup {
    order: -1;
  }

  .mockup-frame {
    max-width: 280px;
  }

  .learning-grid,
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 780px) {
  :root {
    --container: min(100vw - 28px, 100%);
  }

  .header-inner {
    flex-direction: column;
    text-align: center;
  }

  .logo-area {
    flex-direction: column;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .learning-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .screenshots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .cta-card {
    padding: 36px 24px;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .float-item {
    font-size: 1.8rem;
    opacity: 0.12;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
