/* ============================================
   BrightKid — Shared Stylesheet
   ============================================ */

:root {
  --purple: #6d28d9;
  --purple-deep: #5b21b6;
  --purple-dark: #4c1d95;
  --purple-light: #a78bfa;
  --purple-soft: #ede9fe;
  --orange: #f97316;
  --orange-soft: #fed7aa;
  --yellow: #fde047;
  --pink: #f9a8d4;
  --cream: #fef7ed;
  --paper: #ffffff;
  --ink: #1f1130;
  --ink-soft: #5b4b6f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ NAV ============ */
.nav {
  padding: 20px 0;
  position: sticky;
  top: 0;
  background: rgba(254, 247, 237, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid rgba(109, 40, 217, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--purple);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.85; }
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--purple); }
.nav-links a.active { color: var(--purple); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0; right: 0;
  height: 3px;
  background: var(--purple);
  border-radius: 100px;
}
.nav-cta {
  background: var(--purple);
  color: white;
  padding: 12px 22px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s;
  border: none;
}
.nav-cta:hover {
  background: var(--purple-deep);
  transform: translateY(-1px);
}

/* ============ FLOATING SHAPES ============ */
.shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.4;
}
.shape-1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.3) 0%, transparent 70%);
  top: -50px; left: -100px;
  animation: float1 8s ease-in-out infinite;
}
.shape-2 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(253, 224, 71, 0.25) 0%, transparent 70%);
  bottom: 100px; right: 10%;
  animation: float2 10s ease-in-out infinite;
}
.shape-3 {
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.4) 0%, transparent 70%);
  top: 40%; left: 45%;
  animation: float1 12s ease-in-out infinite;
}
@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -30px); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-25px, 20px); }
}

/* ============ PAGE HEADER ============ */
.page-header {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 100%);
  color: white;
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 48px 48px;
}
.page-header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.page-title {
  font-size: clamp(40px, 6vw, 72px);
  margin-bottom: 20px;
  font-weight: 600;
  color: white;
}
.page-title .accent {
  color: var(--yellow);
  font-style: italic;
  font-weight: 500;
}
.page-lede {
  font-size: 19px;
  line-height: 1.55;
  opacity: 0.92;
  max-width: 56ch;
  margin: 0 auto;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  background: var(--purple);
  color: white;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s;
  border: 2px solid var(--purple);
  font-family: inherit;
  cursor: pointer;
}
.btn:hover {
  background: var(--purple-deep);
  border-color: var(--purple-deep);
  transform: translateY(-1px);
}
.btn-orange {
  background: var(--orange);
  border-color: var(--orange);
}
.btn-orange:hover {
  background: #ea580c;
  border-color: #ea580c;
}
.btn-ghost {
  background: transparent;
  color: var(--purple);
}
.btn-ghost:hover {
  background: var(--purple-soft);
}

/* ============ APP STORE BUTTONS ============ */
.app-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: white;
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  position: relative;
  opacity: 0.92;
}
.app-btn:hover { transform: translateY(-2px); opacity: 1; }
.app-btn-icon { font-size: 28px; line-height: 1; }
.app-btn-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.app-btn-text small {
  font-size: 10px;
  opacity: 0.8;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.app-btn-text strong { font-size: 16px; font-weight: 700; }
.app-btn-coming {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--orange);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============ SECTIONS ============ */
.section {
  padding: 80px 0;
}
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-eyebrow {
  display: inline-block;
  background: var(--purple-soft);
  color: var(--purple);
  padding: 6px 16px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-title {
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 16px;
}
.section-title em {
  color: var(--purple);
  font-style: italic;
  font-weight: 500;
}
.section-subtitle {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ============ CTA BLOCK ============ */
.cta-block {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: white;
  padding: 64px 32px;
  margin: 60px 32px;
  border-radius: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before, .cta-block::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cta-block::before {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(253, 224, 71, 0.15) 0%, transparent 70%);
  top: -100px; left: -100px;
}
.cta-block::after {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.2) 0%, transparent 70%);
  bottom: -80px; right: -80px;
}
.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}
.cta-inner h2 {
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 12px;
  color: white;
}
.cta-inner p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 28px;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

/* ============ FOOTER ============ */
.footer {
  padding: 60px 0 32px;
  background: var(--ink);
  color: white;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand {
  font-family: 'Fredoka', sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}
.footer-tagline {
  font-size: 14px;
  opacity: 0.7;
  max-width: 28ch;
  margin-bottom: 16px;
}
.made-by { font-size: 12px; opacity: 0.6; }
.made-by a { color: var(--purple-light); font-weight: 700; }
.footer-col h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { opacity: 0.85; font-size: 14px; transition: opacity 0.2s; }
.footer-col a:hover { opacity: 1; }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { display: none; }
  .cta-block { margin: 32px 16px; padding: 48px 24px; }
  .section { padding: 56px 0; }
}
