:root {
  --primary: #5B3FF8;
  --primary-dark: #3D26D4;
  --accent: #FF5A3C;
  --dark: #0A0718;
  --light: #F7F5FF;
  --text: #1A1528;
  --muted: #6B6880;
  --border: #E2DEFF;
  --white: #ffffff;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { color: var(--muted); line-height: 1.7; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }

/* NAV */
nav:not(.footer-links) {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-size: 1.4rem; font-weight: 800; color: var(--primary); text-decoration: none; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-secondary { background: var(--dark); color: white; }
.btn-secondary:hover { background: #1a0f35; transform: translateY(-1px); }
.btn-outline { border: 2px solid var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-white { background: white; color: var(--dark); }
.btn-white:hover { background: var(--light); }

.store-buttons { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* HERO */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, #0A0718 0%, #1a0f40 100%);
  color: white;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero h1 { color: white; margin-bottom: 1.25rem; }
.hero p { color: rgba(255,255,255,0.75); font-size: 1.15rem; margin-bottom: 2rem; }
.hero-badge {
  display: inline-block;
  background: rgba(91,63,248,0.3);
  border: 1px solid rgba(91,63,248,0.5);
  color: #a78bfa;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* PLACEHOLDERS */
.img-placeholder {
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.phone-placeholder {
  width: 100%;
  aspect-ratio: 9/16;
  max-width: 280px;
  margin: 0 auto;
  background: linear-gradient(145deg, #5B3FF8, #9B7BFF);
}

/* TRUST BAR */
.trust-bar {
  background: var(--light);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.trust-items { display: flex; gap: 2.5rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 600; color: var(--text); }
.trust-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }

/* SECTION HEADER */
.section-label {
  display: inline-block;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-header { margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { font-size: 1.1rem; max-width: 600px; }
.section-header.centered { text-align: center; }
.section-header.centered p { margin: 0 auto; }

/* FEATURE CARDS */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.feature-card h3 { margin-bottom: 0.5rem; color: var(--text); }

/* AGE CARDS */
.ages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.age-card { border-radius: 20px; padding: 2rem; color: white; }
.age-card:nth-child(1) { background: linear-gradient(135deg, #5B3FF8, #8B6FFF); }
.age-card:nth-child(2) { background: linear-gradient(135deg, #FF5A3C, #FF8A3C); }
.age-card:nth-child(3) { background: linear-gradient(135deg, #0EA5E9, #38BDF8); }
.age-range { font-size: 2.5rem; font-weight: 900; line-height: 1; margin-bottom: 0.5rem; opacity: 0.9; }
.age-card h3 { color: white; margin-bottom: 0.75rem; font-size: 1.1rem; }
.age-card p { color: rgba(255,255,255,0.8); font-size: 0.9rem; }

/* PARENTS SECTION */
.parents-section { background: var(--dark); color: white; }
.parents-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.parents-section h2 { color: white; }
.parents-section .section-label { color: #a78bfa; }
.parents-section p { color: rgba(255,255,255,0.7); }
.parents-features { list-style: none; margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.parents-features li { display: flex; align-items: flex-start; gap: 0.75rem; color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.check {
  width: 22px; height: 22px;
  background: #5B3FF8;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  color: white;
  margin-top: 2px;
}

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
details { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
details[open] { border-color: var(--primary); }
summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.25rem; color: var(--primary); flex-shrink: 0; margin-left: 1rem; }
details[open] summary::after { content: '−'; }
.faq-answer { padding: 0 1.5rem 1.25rem; color: var(--muted); line-height: 1.7; }

/* BLOG */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.blog-card { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; text-decoration: none; transition: box-shadow 0.2s; display: block; }
.blog-card:hover { box-shadow: 0 8px 30px rgba(91,63,248,0.15); }
.blog-thumb { width: 100%; aspect-ratio: 16/9; }
.blog-content { padding: 1.25rem; }
.blog-tag { font-size: 0.75rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.blog-card h3 { color: var(--text); margin-bottom: 0.5rem; font-size: 1rem; line-height: 1.4; }
.blog-card p { font-size: 0.875rem; }

/* CTA SECTION */
.cta-section { background: linear-gradient(135deg, #5B3FF8 0%, #9B7BFF 100%); text-align: center; }
.cta-section h2 { color: white; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; font-size: 1.1rem; }
.cta-section .store-buttons { justify-content: center; }

/* FOOTER */
footer { background: var(--dark); color: rgba(255,255,255,0.5); padding: 2.5rem 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
footer a { color: rgba(255,255,255,0.5); text-decoration: none; }
footer a:hover { color: white; }
.footer-logo { color: white; font-weight: 800; font-size: 1.2rem; text-decoration: none; }
.footer-links { display: flex; gap: 1.5rem; font-size: 0.875rem; }

/* ARTICLE */
.article-header { background: linear-gradient(135deg, #0A0718, #1a0f40); color: white; padding: 4rem 0; }
.article-hero { width: 100%; max-height: 420px; overflow: hidden; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-meta { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.article-tag {
  background: rgba(91,63,248,0.3);
  border: 1px solid rgba(91,63,248,0.5);
  color: #a78bfa;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}
.article-date { font-size: 0.875rem; color: rgba(255,255,255,0.5); }
.article-header h1 { color: white; max-width: 760px; }
.article-header .lead { color: rgba(255,255,255,0.75); font-size: 1.15rem; max-width: 640px; margin-top: 1rem; }

.article-body { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem; }
.article-body h2 { margin: 2.5rem 0 1rem; color: var(--text); }
.article-body h3 { margin: 2rem 0 0.75rem; color: var(--text); }
.article-body p { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { margin: 1rem 0 1.25rem 1.5rem; }
.article-body li { margin-bottom: 0.5rem; color: var(--muted); }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
.article-body th { background: var(--light); padding: 0.75rem 1rem; text-align: left; font-weight: 600; border: 1px solid var(--border); color: var(--text); }
.article-body td { padding: 0.75rem 1rem; border: 1px solid var(--border); color: var(--muted); }

.article-cta {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin: 3rem 0;
}
.article-cta h3 { margin-bottom: 0.5rem; }
.article-cta p { margin-bottom: 1.5rem; }

.author-bio {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 3rem;
}
.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #9B7BFF);
  flex-shrink: 0;
  object-fit: cover;
}
.author-bio h4 { font-size: 0.95rem; margin-bottom: 0.25rem; color: var(--text); }
.author-bio p { font-size: 0.875rem; margin: 0; }

/* MASCOT / ICON */
.nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  vertical-align: middle;
  margin-right: 0.4rem;
}
.footer-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  vertical-align: middle;
  margin-right: 0.4rem;
}
.hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: block;
  margin-bottom: 1rem;
}
.cta-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: block;
  margin: 0 auto 1.25rem;
}

/* STORE BADGES */
.store-badge { height: 40px; width: auto; display: block; }
.nav-inner .store-badge { height: 36px; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-inner, .parents-inner { grid-template-columns: 1fr; gap: 2rem; }
  .features-grid, .ages-grid, .blog-grid { grid-template-columns: 1fr; }
  .phone-placeholder { max-width: 200px; }
  section { padding: 3rem 0; }
  .trust-items { gap: 1rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .nav-inner { gap: 1rem; }
  .nav-inner .store-buttons .btn-secondary { display: none; }
}
