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

:root {
  --purple: #7c3aed;
  --purple-light: #a855f7;
  --purple-dark: #5b21b6;
  --pink: #ec4899;
  --bg: #09090b;
  --bg2: #111113;
  --bg3: #18181b;
  --border: #27272a;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --radius: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

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

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

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9,9,11,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}
.logo span { color: var(--purple-light); }

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.cart-btn {
  position: relative;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, background .2s;
}
.cart-btn:hover { border-color: var(--purple); background: var(--bg2); }

.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--purple);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}
.cart-count.visible { display: flex; }

/* ===== HERO ===== */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.4);
  color: var(--purple-light);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--purple-light), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 440px;
  margin-bottom: 32px;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.hero-visual {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.book-cover {
  position: absolute;
  width: 160px;
  height: 210px;
  border-radius: 12px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 4px 16px rgba(0,0,0,0.3);
}

.book-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: repeating-linear-gradient(
    -45deg,
    #fff 0px, #fff 1px,
    transparent 1px, transparent 10px
  );
}

.bc-line {
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: rgba(255,255,255,0.2);
}

.bc-cat {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 6px;
  position: relative;
}

.bc-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 12px;
  position: relative;
}

.bc-price {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  background: rgba(0,0,0,0.2);
  display: inline-block;
  padding: 3px 8px;
  border-radius: 100px;
  position: relative;
  align-self: flex-start;
}

/* Positions & colors */
.bc1 {
  background: linear-gradient(140deg, #7c3aed, #a855f7);
  top: 5%; left: 0%;
  animation: floatA 4s ease-in-out infinite;
}
.bc2 {
  background: linear-gradient(140deg, #16a34a, #22c55e);
  top: 10%; left: 42%;
  animation: floatB 4.5s ease-in-out infinite;
  animation-delay: 0.8s;
}
.bc3 {
  background: linear-gradient(140deg, #db2777, #f472b6);
  top: 50%; left: 12%;
  animation: floatA 5s ease-in-out infinite;
  animation-delay: 1.4s;
}
.bc4 {
  background: linear-gradient(140deg, #d97706, #fbbf24);
  top: 48%; left: 52%;
  animation: floatB 4.2s ease-in-out infinite;
  animation-delay: 0.3s;
}

@keyframes floatA {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(-2deg); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

/* ===== STATS ===== */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-num { font-size: 1.5rem; font-weight: 800; }
.stat span:last-child { font-size: 0.8rem; color: var(--text-muted); }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* ===== PRODUCTS ===== */
.products-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}
.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.section-header p { color: var(--text-muted); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 52px;
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s, transform .25s;
  cursor: pointer;
}
.product-card:hover {
  border-color: var(--purple);
  transform: translateY(-4px);
}

.card-cover {
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  position: relative;
  padding: 20px;
  overflow: hidden;
}

.card-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: repeating-linear-gradient(
    -45deg,
    #fff 0px, #fff 1px,
    transparent 1px, transparent 12px
  );
}

.cover-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
  position: relative;
}

.cover-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.3px;
  position: relative;
}

.cover-line {
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: rgba(255,255,255,0.25);
}

/* modal cover reuses same layout */
.modal-cover .cover-tag,
.modal-cover .cover-title { position: relative; }
.modal-cover .cover-line { position: absolute; }

.card-body { padding: 20px; }

.card-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 8px;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-price {
  font-size: 1.2rem;
  font-weight: 800;
}

.add-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.add-btn:hover { background: var(--purple); border-color: var(--purple); }
.add-btn.added { background: var(--purple); border-color: var(--purple); }

/* ===== BUNDLE ===== */
.bundle-card {
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(236,72,153,0.08));
  border: 1px solid rgba(124,58,237,0.4);
  border-radius: 20px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
}

.bundle-badge {
  position: absolute;
  top: -14px; left: 32px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
}

.bundle-info h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.bundle-info > p { color: var(--text-muted); margin-bottom: 16px; font-size: 0.9rem; }

.bundle-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.bundle-list li {
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.bundle-cta { text-align: right; white-space: nowrap; }

.bundle-price { margin-bottom: 14px; }
.old-price {
  display: block;
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.new-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--purple-light);
}

/* ===== ABOUT ===== */
.about-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.section-tag {
  display: inline-block;
  color: var(--purple-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.about-text h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.about-text > p { color: var(--text-muted); margin-bottom: 24px; }

.features-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.features-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}
.features-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--purple-light);
}

.testimonial-stack { display: flex; flex-direction: column; gap: 16px; }

.testimonial {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.testimonial p { color: var(--text-muted); font-style: italic; margin-bottom: 10px; }
.testimonial strong { font-size: 0.85rem; color: var(--purple-light); }
.t2 { margin-left: 24px; }

/* ===== FAQ ===== */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px;
}

.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 18px 20px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q span { color: var(--purple-light); font-size: 1.2rem; line-height: 1; }
.faq-q.open span { transform: rotate(45deg); }

.faq-a {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-a.open {
  max-height: 120px;
  padding: 0 20px 18px;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg2);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-inner p { color: var(--text-muted); font-size: 0.85rem; margin-left: auto; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.82rem; color: var(--text-muted); transition: color .2s; }
.footer-links a:hover { color: var(--text); }

/* ===== CART SIDEBAR ===== */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-sidebar {
  position: fixed;
  top: 0; right: 0;
  width: 380px; max-width: 100vw;
  height: 100vh;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  z-index: 201;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.cart-sidebar.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-size: 1.1rem; font-weight: 700; }

.close-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  transition: color .2s;
}
.close-btn:hover { color: var(--text); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.cart-empty { color: var(--text-muted); text-align: center; margin-top: 40px; font-size: 0.9rem; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.cart-item-initial {
  width: 40px; height: 40px;
  min-width: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
}

.cart-item-info { flex: 1; }
.cart-item-name { font-size: 0.85rem; font-weight: 600; margin-bottom: 2px; }
.cart-item-price { font-size: 0.82rem; color: var(--purple-light); font-weight: 700; }

.remove-btn {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 1.1rem; padding: 4px;
  transition: color .2s;
}
.remove-btn:hover { color: #f87171; }

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
}
.full-width { width: 100%; text-align: center; }
.secure-notice {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 300;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.product-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -48%);
  width: 560px; max-width: 95vw;
  max-height: 90vh;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  z-index: 301;
  overflow-y: auto;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.product-modal.open {
  opacity: 1; pointer-events: all;
  transform: translate(-50%, -50%);
}

.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 1;
}

.modal-body { padding: 32px; }

.modal-cover { }

.modal-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--purple-light);
  margin-bottom: 8px;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}

.modal-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.modal-includes { margin-bottom: 28px; }
.modal-includes h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 10px; }
.modal-includes ul {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}
.modal-includes li { font-size: 0.85rem; color: var(--text-muted); }
.modal-includes li::before { content: "✓  "; color: var(--purple-light); font-weight: 700; }

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.modal-price { font-size: 1.8rem; font-weight: 800; }

/* ===== EXPERTS BANNER ===== */
.experts-banner {
  background: linear-gradient(135deg, #5b21b6, #7c3aed);
  color: rgba(255,255,255,0.9);
  text-align: center;
  padding: 18px 32px;
  font-size: 0.92rem;
  line-height: 1.6;
}
.experts-banner strong { color: #fff; }

/* ===== ADDED TOAST ===== */
.added-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #18181b;
  color: #fff;
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}
.added-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: all; }
.added-toast svg { color: #a78bfa; flex-shrink: 0; }
.toast-title { flex: 1; }
.toast-cart-btn {
  background: #7c3aed;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.toast-cart-btn:hover { background: #6d28d9; }

/* ===== CART UPSELL ===== */
.cart-upsell {
  margin-top: 14px;
  background: linear-gradient(135deg, #1e1b4b, #2e1065);
  border: 1px solid #4c1d95;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.cart-upsell:hover { opacity: 0.9; }
.upsell-top { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.upsell-icon { font-size: 1.3rem; line-height: 1; }
.upsell-title { font-size: 0.84rem; font-weight: 700; color: #fff; margin-bottom: 3px; }
.upsell-sub { font-size: 0.78rem; color: rgba(255,255,255,0.65); }
.upsell-sub strong { color: #c4b5fd; }
.upsell-btn {
  background: #7c3aed;
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; padding: 60px 20px 40px; }
  .hero-visual { display: none; }
  .about-inner { grid-template-columns: 1fr; }
  .bundle-card { grid-template-columns: 1fr; }
  .bundle-cta { text-align: left; }
  .nav-links { display: none; }
  .stat-divider { display: none; }
  .t2 { margin-left: 0; }
}
