/* ============================================================
   TypeVerse Masters — Vibrant Colourful Design System
   Aesthetic: Playful, bold, festival of colours — light & energetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,600;0,700;0,800;0,900;1,700&family=Baloo+2:wght@400;600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
  --bg: #f8f4ff;
  --white: #ffffff;
  --text: #1a1040;
  --text-mid: #4a3880;
  --text-soft: #7c6db0;

  --purple: #7c3aed;
  --purple-light: #ede9fe;
  --blue: #2563eb;
  --blue-light: #dbeafe;
  --pink: #ec4899;
  --pink-light: #fce7f3;
  --orange: #f97316;
  --orange-light: #ffedd5;
  --green: #16a34a;
  --green-light: #dcfce7;
  --yellow: #f59e0b;
  --yellow-light: #fef3c7;
  --teal: #0d9488;
  --teal-light: #ccfbf1;
  --red: #dc2626;

  --shadow-sm: 0 2px 8px rgba(124,58,237,0.10);
  --shadow-md: 0 8px 24px rgba(124,58,237,0.13);
  --shadow-lg: 0 20px 48px rgba(124,58,237,0.16);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.08);

  --radius: 18px;
  --radius-sm: 10px;
  --radius-xl: 28px;
  --radius-pill: 100px;

  font-family: 'Nunito', sans-serif;
  color: var(--text);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid #ede9fe;
  box-shadow: 0 2px 16px rgba(124,58,237,0.08);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px; max-width: 1200px; margin: 0 auto; gap: 12px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 1.35rem;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  font-size: 0.85rem; font-weight: 700; padding: 7px 14px;
  border-radius: var(--radius-pill); color: var(--text-mid);
  transition: all 0.2s; border: 2px solid transparent;
}
.nav-links a:hover { background: var(--purple-light); color: var(--purple); }
.nav-links a.active { background: var(--purple); color: white; }

/* ── Back Button ── */
.back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; border: 2px solid #ede9fe;
  color: var(--purple); font-weight: 700; font-size: 0.9rem;
  padding: 9px 20px; border-radius: var(--radius-pill); margin: 28px 0;
  transition: all 0.2s; box-shadow: var(--shadow-sm);
}
.back-btn:hover { background: var(--purple); color: white; gap: 12px; }

/* ── Store Button ── */
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: white; font-weight: 800; font-size: 1rem;
  padding: 14px 36px; border-radius: var(--radius-pill);
  transition: all 0.25s;
  box-shadow: 0 6px 24px rgba(37,99,235,0.35);
}
.store-btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 12px 32px rgba(37,99,235,0.45); }

/* ── Section Heading ── */
.section-hd { text-align: center; margin: 70px 0 40px; }
.section-hd .eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 12px;
}
.section-hd h2 {
  font-family: 'Baloo 2', cursive; font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800; color: var(--text); line-height: 1.15;
}
.section-hd p { color: var(--text-soft); margin-top: 10px; font-size: 1rem; }

/* ── Feature Cards ── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(256px, 1fr)); gap: 24px; margin: 50px 0; }
.feature-card {
  background: white; border-radius: var(--radius-xl); padding: 30px 26px;
  border: 2px solid transparent; transition: all 0.28s;
  box-shadow: var(--shadow-card); position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--card-bar, linear-gradient(90deg, var(--purple), var(--pink)));
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #ede9fe; }
.feature-card .card-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 18px;
  background: var(--icon-bg, var(--purple-light));
  color: var(--icon-color, var(--purple));
}
.feature-card h3 { font-family: 'Baloo 2', cursive; font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.feature-card p { color: var(--text-soft); font-size: 0.91rem; line-height: 1.65; }

/* ── Testimonial ── */
.testimonial {
  background: white; border-radius: var(--radius-xl); padding: 40px;
  margin: 50px 0; box-shadow: var(--shadow-card);
  border: 2px solid #ede9fe; position: relative; overflow: hidden;
}
.testimonial::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--orange));
}
.testimonial .stars { color: var(--yellow); font-size: 1.2rem; margin-bottom: 16px; letter-spacing: 3px; }
.testimonial blockquote { font-size: 1.1rem; line-height: 1.75; color: var(--text); font-style: italic; margin-bottom: 16px; }
.testimonial .author { color: var(--text-soft); font-weight: 700; font-size: 0.9rem; }

/* ── Exam Badges ── */
.exam-grid { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 48px; }
.exam-badge {
  padding: 8px 18px; border-radius: var(--radius-pill); font-size: 0.85rem; font-weight: 700;
  background: white; border: 2px solid #ede9fe; color: var(--purple);
  transition: all 0.2s; box-shadow: var(--shadow-sm);
}
.exam-badge:hover { background: var(--purple); color: white; border-color: var(--purple); transform: translateY(-2px); }
.exam-header { font-size: 0.78rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--text-soft); margin-bottom: 14px; }

/* ── Rating Chips ── */
.rating-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.rating-chip {
  display: flex; align-items: center; gap: 9px;
  background: white; border: 2px solid #ede9fe;
  padding: 10px 20px; border-radius: var(--radius-pill);
  font-size: 0.88rem; font-weight: 700; color: var(--text-mid);
  box-shadow: var(--shadow-sm);
}

/* ── Footer ── */
.footer {
  text-align: center; padding: 52px 32px 40px;
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #f97316 100%);
  margin-top: 80px; color: white;
}
.footer p { opacity: 0.9; font-size: 0.95rem; line-height: 1.8; }
.footer strong { opacity: 1; font-weight: 800; }
.footer a { color: rgba(255,255,255,0.85); text-decoration: underline; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

.anim-1 { animation: fadeUp 0.6s ease both; }
.anim-2 { animation: fadeUp 0.6s 0.12s ease both; }
.anim-3 { animation: fadeUp 0.6s 0.24s ease both; }
.anim-4 { animation: fadeUp 0.6s 0.36s ease both; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .nav-inner { padding: 12px 18px; }
  .nav-links { display: none; }
  .footer { padding: 40px 20px 30px; }
}
