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

:root {
  --primary: #6C3CE1;
  --primary-dark: #5228B5;
  --primary-light: #8B5CF6;
  --secondary: #F59E0B;
  --secondary-dark: #D97706;
  --accent: #10B981;
  --dark: #0F172A;
  --dark-2: #1E293B;
  --dark-3: #334155;
  --light: #F8FAFC;
  --light-2: #E2E8F0;
  --text-primary: #0F172A;
  --text-secondary: #64748B;
  --gradient-1: linear-gradient(135deg, #6C3CE1 0%, #8B5CF6 50%, #A78BFA 100%);
  --gradient-2: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
  --gradient-3: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #334155 100%);
  --gradient-hero: linear-gradient(135deg, #1a0533 0%, #2d1b69 30%, #6C3CE1 70%, #8B5CF6 100%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 30px rgba(108,60,225,0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* ========== NAVBAR ========== */
.navbar-custom {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
  padding: 12px 0;
  transition: all 0.4s ease;
}
.navbar-custom.scrolled {
  padding: 6px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.navbar-custom .navbar-brand {
  font-weight: 800;
  font-size: 1.4rem;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}
.navbar-custom .navbar-brand span {
  font-size: 0.7rem;
  display: block;
  background: none;
  -webkit-text-fill-color: #94A3B8;
  letter-spacing: 1px;
}
.navbar-custom .nav-link {
  color: #CBD5E1 !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 18px !important;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  position: relative;
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: #fff !important;
  background: rgba(139, 92, 246, 0.15);
}
.navbar-custom .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--gradient-2);
  border-radius: 2px;
}
.nav-cta {
  background: var(--gradient-1) !important;
  color: #fff !important;
  border-radius: var(--radius-xl) !important;
  padding: 8px 24px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(108,60,225,0.4);
  transition: transform 0.3s, box-shadow 0.3s !important;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(108,60,225,0.5) !important;
}

/* ========== HERO ========== */
.hero-section {
  background: var(--gradient-hero);
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(245,158,11,0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-40px) rotate(5deg); }
}
.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}
.hero-title .highlight {
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  color: #CBD5E1;
  font-size: 1.15rem;
  margin-bottom: 35px;
  line-height: 1.8;
  position: relative;
  z-index: 2;
}
.hero-cta {
  position: relative;
  z-index: 2;
}

/* ========== BUTTONS ========== */
.btn-primary-custom {
  background: var(--gradient-1);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: var(--radius-xl);
  font-size: 1.05rem;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(108,60,225,0.4);
  position: relative;
  overflow: hidden;
}
.btn-primary-custom::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}
.btn-primary-custom:hover::before { left: 100%; }
.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(108,60,225,0.5);
  color: #fff;
}
.btn-secondary-custom {
  background: var(--gradient-2);
  border: none;
  color: var(--dark);
  font-weight: 700;
  padding: 14px 36px;
  border-radius: var(--radius-xl);
  font-size: 1.05rem;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(245,158,11,0.3);
}
.btn-secondary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(245,158,11,0.4);
  color: var(--dark);
}
.btn-outline-custom {
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  padding: 12px 32px;
  border-radius: var(--radius-xl);
  background: transparent;
  transition: all 0.3s;
}
.btn-outline-custom:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: var(--radius-xl);
  font-size: 1.05rem;
  transition: all 0.3s;
}
.btn-whatsapp:hover {
  background: #128C7E;
  color: #fff;
  transform: translateY(-2px);
}

/* ========== SOCIAL PROOF ========== */
.social-proof {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  position: relative;
  z-index: 2;
}
.proof-item {
  text-align: center;
}
.proof-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
}
.proof-label {
  color: #94A3B8;
  font-size: 0.85rem;
  margin-top: 4px;
}

/* ========== SECTIONS ========== */
.section-padding { padding: 90px 0; }
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
  position: relative;
}
.section-title .highlight {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 50px;
}
.section-dark {
  background: var(--gradient-3);
  color: #fff;
}
.section-dark .section-title { color: #fff; }
.section-dark .section-subtitle { color: #94A3B8; }
.section-gray { background: #F1F5F9; }

/* ========== BOOK CARDS ========== */
.book-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.04);
}
.book-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}
.book-card-img {
  position: relative;
  overflow: hidden;
  height: 280px;
  background: linear-gradient(135deg, #EDE9FE, #DDD6FE);
}
.book-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.book-card:hover .book-card-img img { transform: scale(1.05); }
.book-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #EF4444;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-xl);
}
.book-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.book-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
  line-height: 1.4;
}
.book-card-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-card-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.price-original {
  text-decoration: line-through;
  color: #94A3B8;
  font-size: 0.95rem;
}
.price-current {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}
.book-card-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: all 0.3s;
}

/* ========== BENEFITS ========== */
.benefit-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  border: 1px solid rgba(0,0,0,0.04);
  height: 100%;
}
.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(108,60,225,0.2);
}
.benefit-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}
.benefit-icon.purple { background: #EDE9FE; color: var(--primary); }
.benefit-icon.amber { background: #FEF3C7; color: var(--secondary-dark); }
.benefit-icon.green { background: #D1FAE5; color: var(--accent); }
.benefit-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.benefit-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ========== STEPS ========== */
.step-card {
  text-align: center;
  padding: 30px 20px;
  position: relative;
}
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-1);
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 4px 15px rgba(108,60,225,0.3);
}
.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}
.step-text {
  color: #94A3B8;
  font-size: 0.88rem;
}

/* ========== TESTIMONIALS ========== */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  height: 100%;
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.testimonial-stars { color: var(--secondary); margin-bottom: 14px; font-size: 1.1rem; }
.testimonial-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.7;
}
.testimonial-author {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.95rem;
}
.testimonial-role {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 500;
}

/* ========== COMMUNITY ========== */
.community-section {
  background: var(--gradient-hero);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.community-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,158,11,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.community-count {
  font-size: 4rem;
  font-weight: 800;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--dark);
  color: #94A3B8;
  padding: 60px 0 30px;
}
.footer-title {
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.footer a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.3s;
  display: inline-block;
  margin-bottom: 8px;
}
.footer a:hover { color: var(--secondary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  margin-top: 40px;
  text-align: center;
  font-size: 0.85rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-top: 10px; }
.footer-links a { font-size: 0.85rem; }

/* ========== PAGE HEADER ========== */
.page-header {
  background: var(--gradient-hero);
  padding: 140px 0 70px;
  text-align: center;
}
.page-header h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}
.page-header p { color: #CBD5E1; font-size: 1.1rem; }

/* ========== BOOK DETAILS ========== */
.book-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.book-detail-img img {
  width: 100%;
  height: auto;
  display: block;
}
.book-detail-info { padding: 20px 0; }
.book-detail-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--dark);
}
.book-detail-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 24px;
}
.learn-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}
.learn-list li {
  padding: 10px 0;
  color: var(--text-primary);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.learn-list li i { color: var(--accent); margin-top: 4px; }
.detail-price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 24px;
}
.detail-price .original {
  font-size: 1.2rem;
  color: #94A3B8;
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 12px;
}

/* ========== MODAL ========== */
.purchase-modal .modal-content {
  border-radius: var(--radius-lg);
  border: none;
  overflow: hidden;
}
.purchase-modal .modal-header {
  background: var(--gradient-1);
  color: #fff;
  border: none;
  padding: 20px 28px;
}
.purchase-modal .modal-header .btn-close { filter: brightness(0) invert(1); }
.purchase-modal .modal-body { padding: 32px; }
.modal-step { display: none; }
.modal-step.active { display: block; }
.form-control-custom {
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 1rem;
  transition: border-color 0.3s;
}
.form-control-custom:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,60,225,0.1);
}
.payment-option {
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}
.payment-option:hover,
.payment-option.selected {
  border-color: var(--primary);
  background: #F5F3FF;
}
.payment-option i { font-size: 1.6rem; margin-bottom: 6px; display: block; color: var(--primary); }
.payment-option span { font-size: 0.85rem; font-weight: 600; }
.success-screen { text-align: center; padding: 30px 0; }
.success-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: #D1FAE5;
  color: var(--accent);
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: scaleIn 0.5s ease;
}
.failure-screen { text-align: center; padding: 30px 0; }
.failure-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: #FEE2E2;
  color: #EF4444;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
@keyframes scaleIn {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

/* ========== CONTACT ========== */
.contact-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.contact-info-card {
  background: var(--gradient-1);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: #fff;
  height: 100%;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.contact-info-item i {
  font-size: 1.3rem;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ========== POLICY PAGES ========== */
.policy-content {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  margin: -50px auto 60px;
  position: relative;
  z-index: 2;
}
.policy-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #EDE9FE;
}
.policy-content p, .policy-content li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}
.policy-content ul { padding-left: 20px; }
.policy-content li { margin-bottom: 8px; }

/* ========== PLACEHOLDER BOOK COVERS (for books without images) ========== */
.book-placeholder-cover {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
  text-align: center;
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.4;
}
.book-placeholder-cover.bg-1 { background: linear-gradient(135deg, #0EA5E9, #2563EB); }
.book-placeholder-cover.bg-2 { background: linear-gradient(135deg, #8B5CF6, #EC4899); }
.book-placeholder-cover.bg-3 { background: linear-gradient(135deg, #F59E0B, #EF4444); }
.book-placeholder-cover.bg-4 { background: linear-gradient(135deg, #10B981, #0EA5E9); }
.book-placeholder-cover i { font-size: 3rem; margin-bottom: 14px; opacity: 0.7; }

/* ========== ANIMATIONS ========== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
  .hero-title { font-size: 2.4rem; }
  .section-title { font-size: 1.8rem; }
  .social-proof { gap: 24px; }
  .policy-content { padding: 28px; }
}
@media (max-width: 767px) {
  .hero-section { padding: 100px 0 60px; min-height: auto; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .section-padding { padding: 60px 0; }
  .section-title { font-size: 1.5rem; }
  .social-proof { flex-wrap: wrap; gap: 20px; }
  .proof-number { font-size: 1.5rem; }
  .community-count { font-size: 2.8rem; }
  .page-header { padding: 120px 0 50px; }
  .page-header h1 { font-size: 1.8rem; }
  .book-detail-title { font-size: 1.5rem; }
  .detail-price { font-size: 1.8rem; }
  .contact-card, .contact-info-card { padding: 24px; }
  .policy-content { padding: 20px; margin: -30px 15px 40px; }
}
