/* =====================================================
   Animal World — Landing Page Styles
   ToodlerEdu.com
   ===================================================== */

/* Design tokens */
:root {
  --amber:        #F49321;
  --amber-dark:   #C97200;
  --amber-light:  #FFF5DF;
  --amber-glow:   rgba(244, 147, 33, 0.30);

  --green:        #3E8C32;
  --green-dark:   #27601E;
  --green-light:  #EAF5E6;

  --bg:           #FFFCF5;
  --bg-alt:       #FFF6E4;
  --text:         #1C1207;
  --text-muted:   #6B5940;
  --border:       #EFD9A8;

  --radius:       16px;
  --radius-lg:    24px;
  --radius-xl:    32px;
  --shadow:       0 4px 24px rgba(28, 18, 7, 0.08);
  --shadow-lg:    0 12px 48px rgba(28, 18, 7, 0.13);

  --font:         'Nunito', system-ui, sans-serif;
  --max-w:        1200px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Anchor offset for fixed nav ── */
section[id] {
  scroll-margin-top: 96px;
}

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

/* ── Typography ── */
h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
h3 { font-size: 1.2rem; font-weight: 700; }
p   { font-size: 1.0625rem; color: var(--text-muted); }

em { font-style: normal; color: var(--amber-dark); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--amber);
  color: #fff;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.0625rem;
  padding: 15px 30px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px var(--amber-glow);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--amber-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--amber-glow);
}
.btn-primary:active { transform: translateY(0); }

.btn-primary svg { flex-shrink: 0; }

/* Small nav variant */
.btn-sm { padding: 10px 20px; font-size: 0.9375rem; }

/* ── Trust pills ── */
.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trust-pills span {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 6px 14px;
  border-radius: 50px;
}

/* ── Badge ── */
.badge {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--amber-dark);
  background: var(--amber-light);
  border: 1.5px solid var(--border);
  padding: 6px 14px;
  border-radius: 50px;
}

/* ── Section header ── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header p {
  margin-top: 12px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Section backgrounds ── */
.section-alt { background: var(--bg-alt); }

/* ======================================================
   Navigation
   ====================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 12px 0;
  transition: background 0.25s, box-shadow 0.25s;
}
.nav.scrolled {
  background: rgba(255, 252, 245, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(28, 18, 7, 0.07);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 60px;
  width: auto;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-roadmap-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  border: 2px solid var(--border);
  padding: 8px 18px;
  border-radius: 50px;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-roadmap-link:hover {
  border-color: var(--amber);
  color: var(--amber-dark);
}

/* ======================================================
   Hero
   ====================================================== */
.hero {
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero-text h1 { max-width: 540px; }
.hero-sub {
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.launch-note {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.device-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 0 0 1.5px rgba(28,18,7,0.07),
    0 24px 64px rgba(28,18,7,0.16),
    0 8px 24px rgba(28,18,7,0.08);
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease;
}
.device-frame:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}
.device-frame img {
  display: block;
  width: 100%;
  transition: opacity 0.5s ease;
}
.device-frame img.fading { opacity: 0; }

/* ======================================================
   Features
   ====================================================== */
.features {
  padding: 96px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1.5px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1;
}
.feature-card h3 {
  margin-bottom: 10px;
  color: var(--text);
}
.feature-card p {
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ======================================================
   Screenshots
   ====================================================== */
.screenshots {
  padding: 96px 0;
}
.screenshots-track {
  margin-top: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 16px 24px 32px;
  cursor: grab;
}
.screenshots-track:active { cursor: grabbing; }
.screenshots-track::-webkit-scrollbar { display: none; }

.screenshots-inner {
  display: flex;
  gap: 20px;
  width: max-content;
  max-width: none;
  padding: 0 max(24px, calc((100vw - var(--max-w)) / 2));
}
.screenshot-item {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: clamp(280px, 38vw, 420px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.screenshot-item img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  border: 1.5px solid rgba(28,18,7,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
.screenshot-item:hover img {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.screenshot-item span {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ======================================================
   CTA Section
   ====================================================== */
.cta-section {
  padding: 96px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  background: var(--bg);
  border-radius: var(--radius-xl);
  padding: 56px 64px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
}
.cta-mascot {
  width: 140px;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 24px rgba(28,18,7,0.12));
}
.cta-inner > div {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cta-inner h2 { max-width: 480px; }

/* ======================================================
   About
   ====================================================== */
.about {
  padding: 96px 0;
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: center;
}
.about-logo img {
  width: 100%;
  max-width: 280px;
}
.about-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-text h2 { margin-bottom: 4px; }
.about-text p { font-size: 1.0625rem; line-height: 1.75; }

/* ======================================================
   FAQ
   ====================================================== */
.faq {
  padding: 96px 0;
}
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
details {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
details[open] {
  box-shadow: var(--shadow);
  border-color: var(--amber);
}
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--amber);
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.25s;
}
details[open] summary::after {
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 24px 20px;
}
.faq-answer p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ======================================================
   Footer
   ====================================================== */
.footer {
  background: var(--text);
  color: rgba(255,252,245,0.9);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer-logo img {
  height: 72px;
  width: auto;
}
.footer-links {
  display: flex;
  gap: 32px;
}
.footer-links a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255,252,245,0.7);
  transition: color 0.15s;
}
.footer-links a:hover { color: #fff; }
.footer-copy {
  font-size: 0.875rem;
  color: rgba(255,252,245,0.45);
}
.footer-copy a {
  color: rgba(255,252,245,0.55);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}
.footer-copy a:hover { color: rgba(255,252,245,0.85); }

/* ======================================================
   Hero Stats Bar
   ====================================================== */
.hero-stats {
  display: flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 8px;
  width: fit-content;
  gap: 0;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
  gap: 2px;
}
.stat-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--amber-dark);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}

/* ======================================================
   Creative Mode
   ====================================================== */
.creative-mode {
  padding: 80px 0;
}
.creative-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.creative-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.creative-text h2 { max-width: 420px; }
.creative-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}
.creative-features li {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ======================================================
   Sticker Collection
   ====================================================== */
.stickers-section {
  padding: 80px 0;
}
.stickers-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.stickers-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.stickers-visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-image: url('../assets/stickers/stickers_screenshot.png');
  background-size: cover;
  background-position: center;
  min-height: 320px;
  box-shadow: var(--shadow-lg);
}
.stickers-text h2 { max-width: 420px; }
.stickers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
}
.sticker-img {
  width: 100%;
  filter: drop-shadow(0 6px 14px rgba(28,18,7,0.14));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sticker-img:nth-child(1) { transform: rotate(-7deg); }
.sticker-img:nth-child(2) { transform: rotate(5deg); }
.sticker-img:nth-child(3) { transform: rotate(-4deg); }
.sticker-img:nth-child(4) { transform: rotate(8deg); }
.sticker-img:hover {
  transform: scale(1.15) rotate(0deg) !important;
  filter: drop-shadow(0 10px 20px rgba(28,18,7,0.20));
}

/* ======================================================
   Scroll reveal animations
   ====================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Hero loads instantly — no reveal delay */
.hero-text  { animation: heroIn 0.7s cubic-bezier(0.16,1,0.3,1) both; }
.hero-visual { animation: heroIn 0.7s cubic-bezier(0.16,1,0.3,1) 0.12s both; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: none; }
}

/* Staggered feature cards */
.feature-card:nth-child(1) { transition-delay: 0.05s; }
.feature-card:nth-child(2) { transition-delay: 0.12s; }
.feature-card:nth-child(3) { transition-delay: 0.19s; }
.feature-card:nth-child(4) { transition-delay: 0.26s; }

/* ======================================================
   Responsive — Tablet (< 1024px)
   ====================================================== */
@media (max-width: 1023px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-text { align-items: center; }
  .hero-text h1 { max-width: 100%; }
  .hero-sub { max-width: 520px; }
  .hero-actions { align-items: center; }
  .trust-pills { justify-content: center; }

  .device-frame {
    max-width: 600px;
    transform: none;
  }
  .device-frame:hover { transform: none; }

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

  .creative-inner,
  .stickers-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .creative-text,
  .stickers-text { align-items: center; }
  .creative-text h2,
  .stickers-text h2 { max-width: 100%; }
  .stickers-grid { justify-items: center; }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .about-logo {
    display: flex;
    justify-content: center;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 40px 32px;
    align-items: center;
  }
  .cta-inner > div { align-items: center; }
  .cta-inner h2 { max-width: 100%; }
}

/* ======================================================
   Responsive — Mobile (< 640px)
   ====================================================== */
@media (max-width: 639px) {
  .hero {
    padding: 100px 0 64px;
  }
  .hero-inner { gap: 32px; }
  .hero-text { gap: 18px; }

  .features { padding: 64px 0; }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .feature-card { padding: 24px 20px; }

  .screenshots { padding: 64px 0; }
  .screenshot-item { width: 82vw; }
  .screenshots-inner { padding: 0 24px; }

  .hero-stats { padding: 10px 4px; }
  .stat-item  { padding: 0 12px; }
  .stat-num   { font-size: 1.3rem; }

  .creative-mode,
  .stickers-section { padding: 56px 0; }

  .cta-section { padding: 64px 0; }
  .cta-inner { padding: 32px 24px; gap: 28px; }
  .cta-mascot { width: 100px; }

  .about { padding: 64px 0; }
  .faq   { padding: 64px 0; }

  .section-header { margin-bottom: 40px; }

  summary { padding: 16px 20px; font-size: 0.9375rem; }
  .faq-answer { padding: 0 20px 16px; }
}
