/* =============================================
   BITUCATION — GLOBAL DESIGN SYSTEM
   Gothic Sci-Fi × Clean White Base
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ---- CSS VARIABLES ---- */
:root {
  --primary: #7B2FBE;
  --primary-light: #9D4EDD;
  --primary-dark: #5A1A8F;
  --accent-pink: #E040A0;
  --accent-magenta: #C2185B;
  --accent-lilac: #CE93D8;
  --accent-gold: #F4C430;

  --bg-white: #FFFFFF;
  --bg-soft: #F8F6FF;
  --bg-card: #FFFFFF;
  --bg-section-alt: #F3EEFF;

  --text-dark: #1A1025;
  --text-mid: #3D2B55;
  --text-muted: #7A6890;
  --text-light: #B8A8CC;

  --border: #E8DEFF;
  --border-strong: #C8B4F0;

  --gradient-main: linear-gradient(135deg, #7B2FBE, #E040A0);
  --gradient-soft: linear-gradient(135deg, #9D4EDD20, #E040A020);
  --gradient-card: linear-gradient(145deg, #ffffff, #f8f4ff);
  --gradient-glow: radial-gradient(circle at center, #9D4EDD40, transparent 70%);

  --shadow-sm: 0 2px 8px rgba(123, 47, 190, 0.08);
  --shadow-md: 0 8px 32px rgba(123, 47, 190, 0.14);
  --shadow-lg: 0 20px 60px rgba(123, 47, 190, 0.18);
  --shadow-glow: 0 0 30px rgba(157, 78, 221, 0.3);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --font-main: 'Outfit', sans-serif;
  --font-alt: 'Space Grotesk', sans-serif;

  --nav-height: 72px;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  background: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- UTILITY ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 96px 0; }
.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header { text-align: center; margin-bottom: 64px; }
.section-badge {
  display: inline-block;
  background: var(--gradient-soft);
  border: 1px solid var(--border-strong);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-sub { font-size: 1.1rem; color: var(--text-muted); max-width: 520px; margin: 0 auto; }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient-main);
  color: #fff;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(123,47,190,0.35);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: var(--transition);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(123,47,190,0.45); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 999px;
  border: 2px solid var(--border-strong);
  cursor: pointer;
  transition: var(--transition);
}
.btn-secondary:hover {
  background: var(--gradient-soft);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  transition: var(--transition);
  cursor: pointer;
}
.btn-ghost:hover { background: var(--gradient-soft); transform: translateY(-1px); }

/* ---- TAG ---- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}

/* ============================
   NAVBAR
   ============================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo-img { height: 66px; width: auto; object-fit: contain; }

.nav-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-soft);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.nav-lang-toggle:hover { background: var(--gradient-soft); border-color: var(--primary); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 8px 16px;
  border-radius: 999px;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--gradient-soft); }
.nav-btn-login {
  background: var(--gradient-main);
  color: #fff !important;
  font-weight: 700;
  padding: 9px 22px;
  box-shadow: 0 4px 16px rgba(123,47,190,0.3);
}
.nav-btn-login:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(123,47,190,0.4); background: var(--gradient-main) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================
   HERO
   ============================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, #ffffff 0%, #F8F3FF 40%, #FDE8F5 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-particles {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #9D4EDD15, #E040A015);
  border: 1px solid var(--border-strong);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
  animation: fadeUp 0.6s ease both;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 20px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeUp 0.6s 0.3s ease both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: fadeUp 0.6s 0.4s ease both;
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 1.8rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  animation: fadeUp 0.6s 0.2s ease both;
}
.hero-glow {
  position: absolute;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(157,78,221,0.18) 0%, rgba(224,64,160,0.08) 50%, transparent 70%);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  animation: pulse 4s ease-in-out infinite;
}
.hero-character {
  position: relative;
  z-index: 2;
  height: 480px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(123,47,190,0.2));
  animation: float 6s ease-in-out infinite;
}
.hero-speech-bubble {
  position: absolute;
  top: 20px; right: -20px;
  background: #fff;
  border: 2px solid var(--border-strong);
  border-radius: 18px 18px 18px 4px;
  padding: 14px 18px;
  max-width: 240px;
  box-shadow: var(--shadow-md);
  z-index: 3;
  animation: fadeUp 0.8s 0.6s ease both;
}
.hero-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -12px; left: 16px;
  border: 6px solid transparent;
  border-top-color: var(--border-strong);
}
.hero-speech-bubble p { font-size: 0.82rem; color: var(--text-mid); font-weight: 500; line-height: 1.5; }

.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
}
.hero-wave svg { width: 100%; display: block; }

/* ============================
   CATEGORIES
   ============================ */
.categories { background: var(--bg-soft); }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.category-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: block;
}
.category-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-main);
  opacity: 0;
  transition: var(--transition);
}
.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
}
.category-card:hover::before { opacity: 1; }

.cat-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(123,47,190,0.2));
  transition: transform 0.3s ease;
}
.category-card:hover .cat-icon { transform: scale(1.1) rotate(-5deg); }
.category-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.category-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.cat-count {
  display: inline-block;
  background: var(--gradient-soft);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

/* ============================
   HOW IT WORKS
   ============================ */
.how-it-works { background: var(--bg-white); }
.steps-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.step-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.step-num {
  font-size: 3.5rem;
  font-weight: 900;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.25;
}
.step-icon { font-size: 2.5rem; margin-bottom: 16px; }
.step-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.step-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.step-arrow {
  font-size: 1.8rem;
  color: var(--accent-lilac);
  font-weight: 300;
  flex-shrink: 0;
}

/* ============================
   BITULA SAYS
   ============================ */
.bitula-says { background: var(--bg-section-alt); }
.bitula-says-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: center;
  gap: 60px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.bitula-says-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(157,78,221,0.04), rgba(224,64,160,0.03));
  pointer-events: none;
}
.bitula-says-img {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(123,47,190,0.15));
  animation: float 5s ease-in-out infinite;
}
.bitula-quote {
  font-family: var(--font-alt);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 500;
  color: var(--text-mid);
  line-height: 1.7;
  font-style: italic;
  margin: 16px 0 12px;
  quotes: "\201C" "\201D";
}
.bitula-quote::before { content: open-quote; font-size: 2rem; color: var(--primary-light); line-height: 0; vertical-align: -0.4em; margin-right: 4px; }
.bitula-quote-attr {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

/* ============================
   TOPIC OF THE DAY
   ============================ */
.topic-day { background: var(--bg-white); }
.topic-day-card {
  background: linear-gradient(135deg, #7B2FBE 0%, #C2185B 100%);
  border-radius: var(--radius-xl);
  padding: 56px 60px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(123,47,190,0.3);
}
.topic-day-card::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.topic-day-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.topic-day-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
}
.topic-day-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 28px;
  position: relative;
}
.topic-day-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; position: relative; }
.topic-day-meta .tag {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.topic-day-card .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  position: relative;
}
.topic-day-card .btn-primary:hover { background: var(--bg-soft); transform: translateY(-2px); }

/* ============================
   FOOTER
   ============================ */
.footer { background: var(--text-dark); color: rgba(255,255,255,0.8); padding: 64px 0 32px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo { height: 60px; width: auto; object-fit: contain; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.7; }
.footer-links-group h4 { font-size: 0.9rem; font-weight: 700; color: #fff; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-links-group ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links-group a { font-size: 0.9rem; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-links-group a:hover { color: var(--accent-lilac); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* ============================
   ANIMATIONS
   ============================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}
@keyframes pulse {
  0%, 100% { transform: translate(-50%, -55%) scale(1); opacity: 0.8; }
  50%       { transform: translate(-50%, -55%) scale(1.08); opacity: 1; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 968px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-text { order: 2; }
  .hero-visual { order: 1; }
  .hero-subtitle, .hero-cta, .hero-stats { margin-left: auto; margin-right: auto; justify-content: center; }
  .hero-speech-bubble { right: 0; top: 10px; max-width: 200px; }
  .hero-character { height: 340px; }
  .bitula-says-card { grid-template-columns: 1fr; text-align: center; padding: 40px 28px; gap: 32px; }
  .bitula-says-img { max-width: 200px; margin: 0 auto; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .steps-grid { flex-direction: column; align-items: stretch; }
  .step-arrow { transform: rotate(90deg); text-align: center; }
  .step-card { max-width: 100%; }
  .topic-day-card { padding: 40px 28px; }
}
@media (max-width: 640px) {
  .section-pad { padding: 64px 0; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: 0; background: rgba(255,255,255,0.97); backdrop-filter: blur(20px); padding: 16px; gap: 4px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .hero-stats { gap: 16px; }
  .categories-grid { grid-template-columns: 1fr; }
}
