/* ============================================================
   Pixel Learn – Main Stylesheet
   Design: Warm Sunset Fantasy + Cloud Design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Baloo+2:wght@400;500;600;700&display=swap');

:root {
  --pink:       #E8326A;
  --pink-deep:  #B01F4D;
  --coral:      #FF7A5C;
  --orange:     #FF6A4A;
  --gold:       #FFC94D;
  --gold-deep:  #C9861A;
  --teal:       #2CA6A0;
  --teal-deep:  #1D6E6A;
  --violet:     #7A4FD1;
  --midnight:   #2B1530;
  --ink:        #6B3A5A;
  --surface:    #FFF5EA;
  --card-edge:  #FF9A77;
  --bg:         #FFE3C4;
  --bg2:        #FFC199;
  --white:      #FFFFFF;
  --radius-card: 24px;
  --border:     3px solid var(--midnight);
  --shadow-hard: 0 6px 0 var(--midnight);
  --shadow-card: 0 5px 0 rgba(43,21,48,0.5);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Baloo 2', sans-serif;
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg2) 100%);
  min-height: 100vh;
  color: var(--midnight);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── RTL support ─── */
[dir="rtl"] { text-align: right; }

/* ─── Sky + Clouds Layer ─── */
.sky-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.cloud {
  position: absolute;
  background: rgba(255,255,255,0.55);
  border-radius: 50px;
  filter: blur(2px);
  animation: floatCloud linear infinite;
}
.cloud::before, .cloud::after {
  content: '';
  position: absolute;
  background: rgba(255,255,255,0.55);
  border-radius: 50%;
}
.cloud-1 { width:180px; height:55px; top:8%; left:-200px; animation-duration: 38s; animation-delay: 0s; }
.cloud-1::before { width:80px; height:80px; top:-40px; left:30px; }
.cloud-1::after  { width:60px; height:60px; top:-30px; left:80px; }
.cloud-2 { width:240px; height:65px; top:22%; left:-280px; animation-duration: 50s; animation-delay: 10s; }
.cloud-2::before { width:100px; height:100px; top:-55px; left:40px; }
.cloud-2::after  { width:80px; height:80px; top:-45px; left:120px; }
.cloud-3 { width:150px; height:45px; top:55%; left:-200px; animation-duration: 44s; animation-delay: 5s; }
.cloud-3::before { width:65px; height:65px; top:-35px; left:25px; }
.cloud-3::after  { width:50px; height:50px; top:-25px; left:70px; }
.cloud-4 { width:200px; height:58px; top:70%; left:-240px; animation-duration: 60s; animation-delay: 18s; }
.cloud-4::before { width:85px; height:85px; top:-45px; left:35px; }
.cloud-4::after  { width:70px; height:70px; top:-38px; left:100px; }
.cloud-5 { width:130px; height:38px; top:38%; left:-180px; animation-duration: 42s; animation-delay: 25s; }
.cloud-5::before { width:55px; height:55px; top:-30px; left:20px; }
.cloud-5::after  { width:45px; height:45px; top:-22px; left:60px; }
@keyframes floatCloud {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(100vw + 320px)); }
}

/* ─── Wrapper ─── */
.wrapper { position: relative; z-index: 1; }

/* ─── Navigation ─── */
.nav {
  background: var(--surface);
  border-bottom: var(--border);
  box-shadow: var(--shadow-hard);
  position: sticky; top: 0; z-index: 100;
  padding: 0 20px;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.nav-logo {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pink);
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--midnight); }
.nav-langs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.lang-btn {
  padding: 5px 12px;
  border-radius: 20px;
  border: 2px solid var(--midnight);
  background: var(--white);
  font-family: 'Baloo 2', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--midnight);
  transition: transform 0.1s, box-shadow 0.1s;
}
.lang-btn:hover { transform: translateY(-2px); }
.lang-btn.active { background: var(--pink); color: var(--white); border-color: var(--pink-deep); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: var(--white);
  border: 2px solid var(--pink-deep);
  border-radius: 22px;
  padding: 8px 18px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: var(--shadow-hard);
  white-space: nowrap;
  transition: transform 0.1s, box-shadow 0.1s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--midnight); }

/* ─── Hero ─── */
.hero {
  padding: 80px 20px 60px;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  border: 2px solid var(--gold-deep);
  border-radius: 20px;
  padding: 4px 16px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--midnight);
  box-shadow: 0 3px 0 var(--gold-deep);
  margin-bottom: 20px;
}
.hero h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 700;
  color: var(--midnight);
  line-height: 1.15;
  margin-bottom: 18px;
  text-shadow: 0 3px 0 rgba(43,21,48,0.12);
}
.hero h1 .highlight { color: var(--pink); }
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--ink);
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.6;
}
.hero-cta-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 36px; }
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  color: var(--white);
  border: 3px solid var(--pink-deep);
  border-radius: 28px;
  padding: 14px 32px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 7px 0 var(--pink-deep);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 10px 0 var(--pink-deep); }
.btn-cta:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--pink-deep); }
.btn-cta .gp-icon { width: 26px; height: 26px; }
.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 2px solid var(--midnight);
  border-radius: 20px;
  padding: 5px 14px;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 3px 0 var(--midnight);
  color: var(--midnight);
}
.chip-icon { font-size: 1rem; }

/* ─── Hero Visual ─── */
.hero-visual {
  max-width: 900px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}
.hero-img-wrap {
  position: relative;
}
.hero-img-wrap img {
  border-radius: 20px;
  border: var(--border);
  box-shadow: var(--shadow-hard);
  width: 100%;
  object-fit: cover;
}
.hero-steps-col { display: flex; flex-direction: column; gap: 16px; }

/* ─── Step Cards (How it Works) ─── */
.step-card {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 14px;
}
.step-num {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  border: 2px solid var(--gold-deep);
  border-radius: 50%;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--midnight);
  flex-shrink: 0;
  box-shadow: 0 3px 0 var(--gold-deep);
}
.step-text { font-weight: 600; font-size: 0.95rem; }
.step-text strong { display: block; font-family: 'Fredoka', sans-serif; font-size: 1.05rem; color: var(--ink); }

/* ─── Sections ─── */
section { padding: 70px 20px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-title {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--midnight);
  margin-bottom: 12px;
  line-height: 1.2;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.6;
  max-width: 620px;
  margin-bottom: 40px;
}

/* ─── Feature Grid ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-icon { font-size: 2rem; margin-bottom: 10px; }
.feature-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--midnight);
  margin-bottom: 6px;
}
.feature-desc { font-size: 0.9rem; color: var(--ink); line-height: 1.5; }

/* ─── Two-Column Section ─── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.two-col.reverse { direction: ltr; }
[dir="rtl"] .two-col { direction: rtl; }
.two-col img {
  border-radius: var(--radius-card);
  border: var(--border);
  box-shadow: var(--shadow-hard);
  width: 100%;
}
.col-text { display: flex; flex-direction: column; gap: 16px; }

/* ─── List Styled ─── */
.styled-list { display: flex; flex-direction: column; gap: 10px; }
.styled-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.styled-list li::before {
  content: '✦';
  color: var(--teal);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─── Reward Banner ─── */
.reward-banner {
  background: linear-gradient(135deg, var(--gold) 0%, #FFB020 100%);
  border: var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard);
  padding: 30px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}
.reward-icon { font-size: 3rem; flex-shrink: 0; }
.reward-text h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--midnight);
  margin-bottom: 4px;
}
.reward-text p { font-size: 0.9rem; color: var(--midnight); line-height: 1.5; opacity: 0.85; }

/* ─── Language Strip ─── */
.lang-strip {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
}
.lang-pill {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  border: 2px solid var(--teal-deep);
  border-radius: 20px;
  padding: 8px 22px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  box-shadow: 0 4px 0 var(--teal-deep);
}

/* ─── FAQ ─── */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq-question {
  padding: 18px 22px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--midnight);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}
.faq-question::after { content: '▾'; font-size: 1.1rem; transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-question::after { transform: rotate(180deg); }
.faq-answer {
  padding: 0 22px 18px;
  font-size: 0.93rem;
  color: var(--ink);
  line-height: 1.6;
  display: none;
}
.faq-item.open .faq-answer { display: block; }

/* ─── Final CTA Section ─── */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  border-top: var(--border);
  border-bottom: var(--border);
  padding: 80px 20px;
  color: var(--white);
}
.cta-section h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 14px;
}
.cta-section p { font-size: 1rem; opacity: 0.9; max-width: 520px; margin: 0 auto 30px; }
.btn-cta-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--pink-deep);
  border: 3px solid var(--midnight);
  border-radius: 28px;
  padding: 14px 32px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 7px 0 var(--midnight);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn-cta-white:hover { transform: translateY(-3px); box-shadow: 0 10px 0 var(--midnight); }

/* ─── Screenshot Row ─── */
.screenshot-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}
.screenshot-row img {
  min-width: 180px;
  max-width: 220px;
  height: auto;
  border-radius: 16px;
  border: var(--border);
  box-shadow: var(--shadow-card);
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* ─── Blog Preview ─── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.15s;
}
.blog-card:hover { transform: translateY(-4px); }
.blog-card-body { padding: 20px; }
.blog-tag {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.blog-card h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--midnight);
  margin-bottom: 8px;
  line-height: 1.3;
}
.blog-card p { font-size: 0.88rem; color: var(--ink); line-height: 1.5; }
.blog-read-more {
  display: inline-block;
  margin-top: 12px;
  color: var(--pink);
  font-weight: 600;
  font-size: 0.88rem;
}

/* ─── Footer ─── */
footer {
  background: var(--midnight);
  color: var(--white);
  padding: 40px 20px;
  text-align: center;
}
.footer-inner { max-width: 900px; margin: 0 auto; }
.footer-logo {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 16px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.45); margin-top: 16px; }

/* ─── Section BG Alternating ─── */
.bg-alt { background: rgba(255,255,255,0.25); }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero-visual { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse { direction: ltr; }
  [dir="rtl"] .two-col { direction: inherit; }
  .nav-cta { display: none; }
  .reward-banner { flex-direction: column; text-align: center; }
  [dir="rtl"] .reward-banner { text-align: center; }
}
@media (max-width: 480px) {
  .nav-langs { display: none; }
  .hero { padding: 50px 16px 40px; }
  section { padding: 50px 16px; }
}
