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

:root {
  --bg-primary: #f8fafb;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255,255,255,0.85);
  --green-primary: #0d9668;
  --green-dark: #047857;
  --green-light: #10b981;
  --gold-primary: #b8860b;
  --gold-light: #d4a54a;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --border-color: rgba(0,0,0,0.06);
  --glass-bg: rgba(255,255,255,0.6);
  --glass-border: rgba(0,0,0,0.08);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* === BG EFFECTS === */
.bg-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.bg-glow .orb {
  position: absolute; border-radius: 50%; filter: blur(150px); opacity: 0.08;
}
.bg-glow .orb:nth-child(1) { width: 600px; height: 600px; background: var(--green-primary); top: -200px; left: -100px; animation: orbFloat 20s ease-in-out infinite; }
.bg-glow .orb:nth-child(2) { width: 500px; height: 500px; background: var(--gold-primary); bottom: -150px; right: -100px; animation: orbFloat 25s ease-in-out infinite reverse; }
.bg-glow .orb:nth-child(3) { width: 400px; height: 400px; background: #6366f1; top: 50%; left: 50%; transform: translate(-50%,-50%); animation: orbFloat 30s ease-in-out infinite; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 50px) scale(0.9); }
}

/* === NAVBAR === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(248, 250, 251, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { width: 40px; height: 40px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.nav-logo span { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); }
.nav-logo .accent { color: var(--green-primary); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: color 0.3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--green-primary); transition: width 0.3s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  color: #fff; padding: 10px 24px; border-radius: 50px; text-decoration: none;
  font-weight: 600; font-size: 0.9rem; transition: all 0.3s; border: none; cursor: pointer;
  box-shadow: 0 4px 14px rgba(13,150,104,0.25);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(13,150,104,0.3); }
.mobile-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }

/* === HERO === */
.hero {
  position: relative; z-index: 1;
  min-height: auto; display: flex; align-items: center;
  padding: 88px 24px 36px;
  background: linear-gradient(180deg, #eef7f3 0%, var(--bg-primary) 100%);
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(13,150,104,0.08); border: 1px solid rgba(13,150,104,0.15);
  padding: 6px 14px; border-radius: 50px; font-size: 0.78rem; color: var(--green-dark);
  margin-bottom: 16px; font-weight: 500;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-primary); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero h1 { font-size: 3rem; font-weight: 800; line-height: 1.1; margin-bottom: 16px; color: #111827; }
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--green-primary), var(--gold-primary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 28px; max-width: 500px; }
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  color: #fff; padding: 14px 28px; border-radius: 14px; text-decoration: none;
  font-weight: 600; font-size: 0.95rem; transition: all 0.3s; border: none; cursor: pointer;
  box-shadow: 0 6px 24px rgba(13,150,104,0.25);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(13,150,104,0.35); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg-secondary); border: 1px solid var(--glass-border);
  color: var(--text-primary); padding: 14px 28px; border-radius: 14px; text-decoration: none;
  font-weight: 600; font-size: 0.95rem; transition: all 0.3s; cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { background: #f1f5f9; transform: translateY(-3px); box-shadow: var(--shadow-md); }
.hero-visual { display: flex; justify-content: center; align-items: center; position: relative; }
.hero-visual img {
  max-width: 420px; width: 100%;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.15));
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
.hero-stats {
  display: flex; gap: 32px; margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--border-color);
}
.hero-stats .stat h3 { font-size: 1.5rem; font-weight: 800; color: var(--green-primary); }
.hero-stats .stat p { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* === SECTION COMMON === */
section { position: relative; z-index: 1; padding: 40px 24px; }
.section-header { text-align: center; margin-bottom: 28px; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; color: var(--green-primary);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px;
}
.section-header h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; color: var(--text-primary); }
.section-header p { color: var(--text-secondary); max-width: 600px; margin: 0 auto; font-size: 0.95rem; }

/* === FEATURES === */
.features-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px;
}
.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 16px; padding: 24px; position: relative; overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-sm);
}
.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(13,150,104,0.2);
  box-shadow: 0 20px 60px rgba(13,150,104,0.1);
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-primary), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 14px;
}
.feature-icon.green { background: rgba(13,150,104,0.08); color: var(--green-primary); }
.feature-icon.gold { background: rgba(184,134,11,0.08); color: var(--gold-primary); }
.feature-icon.blue { background: rgba(99,102,241,0.08); color: #6366f1; }
.feature-icon.rose { background: rgba(244,63,94,0.08); color: #e11d48; }
.feature-icon.cyan { background: rgba(6,182,212,0.08); color: #0891b2; }
.feature-icon.amber { background: rgba(245,158,11,0.08); color: #d97706; }
.feature-icon.purple { background: rgba(168,85,247,0.08); color: #9333ea; }
.feature-icon.teal { background: rgba(20,184,166,0.08); color: #0d9488; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); }
.feature-card p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; }
.feature-tag {
  display: inline-block; margin-top: 12px; padding: 3px 10px;
  border-radius: 50px; font-size: 0.7rem; font-weight: 600;
  background: rgba(13,150,104,0.08); color: var(--green-primary);
}

/* === HIGHLIGHT SECTION === */
.highlight-section {
  max-width: 1200px; margin: 0 auto; padding: 0 0;
}
.highlight-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center;
}
.highlight-grid.reverse { direction: rtl; }
.highlight-grid.reverse > * { direction: ltr; }
.highlight-content h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 10px; color: var(--text-primary); }
.highlight-content p { color: var(--text-secondary); margin-bottom: 16px; font-size: 0.9rem; line-height: 1.7; }
.highlight-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.highlight-list li {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-secondary); font-size: 0.85rem;
}
.highlight-list li .check {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: rgba(13,150,104,0.1); color: var(--green-primary);
  display: flex; align-items: center; justify-content: center; font-size: 0.65rem;
}
.highlight-visual {
  display: flex; justify-content: center; align-items: center;
}
.quran-preview {
  background: linear-gradient(135deg, #1a3a2a, #0f2318);
  border: 1px solid rgba(212,165,74,0.2);
  border-radius: 20px; padding: 28px; max-width: 360px; width: 100%;
  text-align: center; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.quran-preview::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(212,165,74,0.08), transparent 70%);
}
.quran-preview .arabic {
  font-family: 'Amiri', serif; font-size: 2rem; line-height: 2;
  color: #f5d78e; position: relative; z-index: 1;
}
.quran-preview .translation {
  font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-top: 20px;
  font-style: italic; position: relative; z-index: 1;
}
.quran-preview .surah-ref {
  font-size: 0.75rem; color: #34d399; margin-top: 12px;
  font-weight: 600; position: relative; z-index: 1;
}

/* === GAMIFICATION === */
.gamification-visual {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 24px; max-width: 360px; width: 100%;
  box-shadow: var(--shadow-md);
}
.xp-bar-container { margin-bottom: 24px; }
.xp-label { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.xp-bar { height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.xp-fill { height: 100%; width: 72%; background: linear-gradient(90deg, var(--green-primary), var(--gold-primary)); border-radius: 4px; animation: xpGrow 2s ease-out; }
@keyframes xpGrow { from { width: 0; } }
.tier-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.tier-badge {
  padding: 8px 16px; border-radius: 50px; font-size: 0.75rem; font-weight: 600;
  border: 1px solid var(--glass-border);
}
.tier-badge.active { background: rgba(13,150,104,0.1); border-color: var(--green-primary); color: var(--green-primary); }
.tier-badge.locked { color: var(--text-muted); }

/* === GAMIFICATION STAT CARDS (inline) === */
.gami-stat-card {
  background: #f0fdf4; border-radius: 12px; padding: 16px; text-align: center;
}
.gami-stat-card.gold-bg { background: #fefce8; }
.gami-stat-card .gami-val { font-size: 1.25rem; font-weight: 700; color: var(--green-primary); }
.gami-stat-card.gold-bg .gami-val { color: var(--gold-primary); }
.gami-stat-card .gami-lbl { font-size: 0.7rem; color: var(--text-muted); }

/* === MULTI-LANGUAGE === */
.lang-section { max-width: 1200px; margin: 0 auto; }
.lang-cards { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.lang-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 12px; padding: 12px 20px; text-align: center;
  transition: all 0.3s; min-width: 100px;
  box-shadow: var(--shadow-sm);
}
.lang-card:hover { transform: translateY(-3px); border-color: rgba(13,150,104,0.2); box-shadow: var(--shadow-md); }
.lang-card .flag { font-size: 1.4rem; margin-bottom: 4px; }
.lang-card h4 { font-size: 0.8rem; font-weight: 600; color: var(--text-primary); }
.lang-card p { font-size: 0.65rem; color: var(--text-muted); margin-top: 2px; }

/* === HADITH PREVIEW === */
.hadith-preview {
  background: linear-gradient(135deg, #1a3a2a, #0f2318);
  border: 1px solid rgba(212,165,74,0.15);
  border-radius: 20px; padding: 28px; max-width: 360px; width: 100%;
  text-align: center; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hadith-preview::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at top, rgba(212,165,74,0.06), transparent 70%);
}
.hadith-preview-label {
  font-size: 0.65rem; font-weight: 600; color: #34d399; text-transform: uppercase;
  letter-spacing: 1.5px; margin-bottom: 8px; position: relative; z-index: 1;
}
.hadith-preview-arabic {
  font-family: 'Amiri', serif; font-size: 1.3rem; line-height: 1.8;
  color: #f5d78e; position: relative; z-index: 1; margin-bottom: 8px;
}
.hadith-preview-text {
  font-size: 0.8rem; color: rgba(255,255,255,0.55);
  font-style: italic; position: relative; z-index: 1; line-height: 1.5;
}
.hadith-preview-source {
  font-size: 0.7rem; color: #34d399; margin-top: 6px;
  font-weight: 600; position: relative; z-index: 1;
}
.hadith-preview-divider {
  height: 1px; background: rgba(255,255,255,0.08);
  margin: 14px 0; position: relative; z-index: 1;
}

/* === CTA === */
.cta-section {
  max-width: 700px; margin: 0 auto; text-align: center;
  background: linear-gradient(135deg, #ecfdf5, #fefce8);
  border: 1px solid rgba(13,150,104,0.12);
  border-radius: 20px; padding: 32px 28px;
  box-shadow: var(--shadow-md);
}
.cta-section h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 10px; color: var(--text-primary); }
.cta-section p { color: var(--text-secondary); margin-bottom: 20px; font-size: 0.9rem; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* === FOOTER === */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border-color);
  padding: 24px 24px 16px;
  background: #fff;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 32px; border-radius: 8px; }
.footer-brand span { font-weight: 600; color: var(--text-secondary); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--text-primary); }
.footer-copy { width: 100%; text-align: center; color: var(--text-muted); font-size: 0.78rem; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-color); }

/* === ANIMATIONS === */
.fade-up { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin: 0 auto 40px; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-visual img { max-width: 300px; }
  .hero-stats { justify-content: center; }
  .hero h1 { font-size: 2.2rem; }
  .highlight-grid, .highlight-grid.reverse { grid-template-columns: 1fr; text-align: center; }
  .highlight-grid.reverse { direction: ltr; }
  .highlight-list { align-items: center; }
  .quran-preview, .gamification-visual { margin: 0 auto; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .features-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 1.6rem; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-stats { flex-direction: column; gap: 16px; align-items: center; }
  .cta-section { padding: 28px 20px; }
  .cta-section h2 { font-size: 1.5rem; }
}
