:root {
  --bg: #f6f5ff;
  --surface: #ffffff;
  --text: #1e1b4b;
  --text-muted: #5b5876;
  --indigo: #4f46e5;
  --indigo-dark: #3730a3;
  --purple: #7c3aed;
  --pink: #ec4899;
  --blue: #2563eb;
  --teal: #0d9488;
  --orange: #ea580c;
  --yellow: #ffca28;
  --border: #e5e3f7;
  --shadow-sm: 0 4px 16px rgba(79, 70, 229, 0.07);
  --shadow-md: 0 12px 32px rgba(79, 70, 229, 0.12);
  --shadow-lg: 0 24px 48px rgba(30, 27, 75, 0.16);
  --radius-md: 16px;
  --radius-lg: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-text {
  font-family: 'Nunito', 'Plus Jakarta Sans', sans-serif;
  margin: 0;
  line-height: 1.2;
}

p {
  margin: 0;
}

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

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

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-text {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--indigo-dark);
}

.brand-b {
  color: #f59e0b;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--indigo);
}

.nav-badge {
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a 0%, #4f46e5 48%, #9333ea 82%, #ec4899 100%);
  color: #ffffff;
  padding: 64px 0 80px;
}

.hero-bg-letters {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.08;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 4.5rem;
}

.hero-bg-letters span {
  position: absolute;
}
.hero-bg-letters span:nth-child(1) { top: 8%; left: 6%; }
.hero-bg-letters span:nth-child(2) { top: 18%; right: 12%; }
.hero-bg-letters span:nth-child(3) { top: 45%; left: 42%; }
.hero-bg-letters span:nth-child(4) { bottom: 15%; left: 10%; }
.hero-bg-letters span:nth-child(5) { bottom: 25%; right: 6%; }
.hero-bg-letters span:nth-child(6) { top: 10%; left: 52%; }
.hero-bg-letters span:nth-child(7) { bottom: 8%; left: 48%; }
.hero-bg-letters span:nth-child(8) { top: 62%; right: 32%; }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 202, 40, 0.3);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.35rem);
  font-weight: 900;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.accent-yellow {
  color: var(--yellow);
}

.hero-desc {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn-store-disabled {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.55);
  color: rgba(255, 255, 255, 0.85);
  border: 1px dashed rgba(255, 255, 255, 0.4);
  padding: 10px 16px;
  border-radius: 14px;
  cursor: not-allowed;
  font-family: inherit;
  text-align: left;
  transition: background 0.2s ease;
}

.btn-store-disabled .store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.btn-store-disabled small {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.btn-store-disabled strong {
  font-size: 1.02rem;
}

.coming-tag {
  background: rgba(255, 202, 40, 0.2);
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
  margin-left: 4px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--indigo);
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.store-note {
  margin-top: 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-item strong {
  font-family: 'Nunito', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
}

.stat-item span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.22);
}

/* Phone Mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  position: relative;
  width: 280px;
  background: #0f172a;
  padding: 10px;
  border-radius: 38px;
  box-shadow: var(--shadow-lg), 0 0 0 4px rgba(255, 255, 255, 0.18);
}

.phone-mockup img {
  width: 100%;
  height: auto;
  border-radius: 28px;
}

.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 18px;
  background: #0f172a;
  border-radius: 999px;
  z-index: 2;
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
}

.floating-card strong {
  display: block;
  font-size: 0.88rem;
}

.floating-card small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.fc-emoji {
  font-size: 1.5rem;
}

.fc-top {
  top: 14%;
  left: -16px;
}

.fc-bottom {
  bottom: 12%;
  right: -12px;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-alt {
  background: #ffffff;
  border-block: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--indigo);
  background: #ede9fe;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 900;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* Grades Grid */
.grades-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.grade-card {
  color: #ffffff;
  padding: 28px 22px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform 0.2s ease;
}

.grade-card:hover {
  transform: translateY(-4px);
}

.grade-5 { background: linear-gradient(145deg, #14b8a6, #0d9488); }
.grade-6 { background: linear-gradient(145deg, #3b82f6, #2563eb); }
.grade-7 { background: linear-gradient(145deg, #9333ea, #7c3aed); }
.grade-8 { background: linear-gradient(145deg, #f97316, #ea580c); }

.grade-circle {
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  font-family: 'Nunito', sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
}

.grade-card h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.grade-meta {
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.9;
  margin-bottom: 12px;
}

.grade-desc {
  font-size: 0.88rem;
  opacity: 0.92;
}

/* Modules Grid */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.module-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.module-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: #ffffff;
}

.module-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: #fff;
}

.mod-indigo { background: linear-gradient(135deg, #4f46e5, #4338ca); }
.mod-orange { background: linear-gradient(135deg, #f97316, #ea580c); }
.mod-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.mod-teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.mod-purple { background: linear-gradient(135deg, #9333ea, #7c3aed); }
.mod-pink { background: linear-gradient(135deg, #ec4899, #db2777); }

.module-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.module-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Tabs */
.tabs-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.tab-btn {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  border-color: var(--indigo);
  color: var(--indigo);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.row-dot {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
}

.dot-indigo { background: #3730a3; }
.dot-teal { background: #0d9488; }
.dot-orange { background: #ea580c; }
.dot-purple { background: #9333ea; }
.dot-red { background: #dc2626; }
.dot-blue { background: #2563eb; }
.dot-green { background: #16a34a; }
.dot-brown { background: #78350f; }

.feature-row h4 {
  font-size: 1.02rem;
  margin-bottom: 3px;
}

.feature-row p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.game-tile {
  color: #fff;
  padding: 24px 16px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.game-emoji {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.game-tile h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.game-tile small {
  opacity: 0.88;
  font-size: 0.8rem;
}

.g-teal { background: #0d9488; }
.g-indigo { background: #4338ca; }
.g-orange { background: #ea580c; }
.g-purple { background: #7c3aed; }
.g-pink { background: #db2777; }
.g-blue { background: #2563eb; }
.g-green { background: #16a34a; }
.g-amber { background: #d97706; }

/* Gamification Box */
.gamification-box {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, #4f46e5, #9333ea, #ec4899);
  color: #fff;
  padding: 36px;
  border-radius: var(--radius-lg);
}

.gamification-info h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.gamification-info p {
  opacity: 0.92;
  margin-bottom: 18px;
}

.check-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
}

.gamification-preview {
  display: grid;
  gap: 12px;
}

.mini-stat-card {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
  padding: 14px 18px;
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Gallery */
.gallery-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.gallery-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gallery-phone {
  width: 270px;
  margin-bottom: 18px;
}

.gallery-caption h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.gallery-caption p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 340px;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.thumb-btn {
  font-family: inherit;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.thumb-btn img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  margin-bottom: 8px;
}

.thumb-btn span {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.thumb-btn:hover {
  border-color: var(--indigo);
}

.thumb-btn.active {
  border-color: var(--indigo);
  background: #ede9fe;
  box-shadow: var(--shadow-sm);
}

/* FAQ */
.faq-container {
  max-width: 820px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--indigo);
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, #1d4ed8, #4f46e5);
  color: #ffffff;
  padding: 52px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 6px;
}

.cta-inner p {
  opacity: 0.9;
}

.btn-store-light {
  background: rgba(255, 255, 255, 0.14);
}

/* Footer */
.footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.8);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-brand .brand-text {
  color: #ffffff;
}

.footer-brand p {
  font-size: 0.88rem;
  opacity: 0.75;
  margin-top: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--yellow);
}

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.65;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .gallery-layout,
  .gamification-box {
    grid-template-columns: 1fr;
  }

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

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

  .fc-top,
  .fc-bottom {
    display: none;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .items-grid,
  .modules-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-stats {
    gap: 16px;
  }
}
