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

:root {
  --teal: #0a2e36;
  --teal-dark: #061d22;
  --teal-light: #0d3a44;
  --teal-lighter: #114955;
  --gold: #d4a843;
  --gold-hover: #e6bc5a;
  --gold-dim: rgba(212, 168, 67, 0.15);
  --white: #ffffff;
  --gray: #c8d5d8;
  --gray-dim: #7a9199;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
}

html { scroll-behavior: smooth; }

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

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

/* ===== Animated Background Gradient ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(13, 58, 68, 0.8), transparent),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(212, 168, 67, 0.04), transparent),
    radial-gradient(ellipse 60% 40% at 20% 60%, rgba(13, 58, 68, 0.5), transparent);
  pointer-events: none;
  animation: bgShift 20s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0% { opacity: 1; }
  50% { opacity: 0.8; }
  100% { opacity: 1; }
}

/* ===== Islamic Geometric Pattern Overlay ===== */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(30deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%, var(--gold)),
    linear-gradient(150deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%, var(--gold)),
    linear-gradient(30deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%, var(--gold)),
    linear-gradient(150deg, var(--gold) 12%, transparent 12.5%, transparent 87%, var(--gold) 87.5%, var(--gold)),
    linear-gradient(60deg, rgba(212,168,67,0.5) 25%, transparent 25.5%, transparent 75%, rgba(212,168,67,0.5) 75%, rgba(212,168,67,0.5)),
    linear-gradient(60deg, rgba(212,168,67,0.5) 25%, transparent 25.5%, transparent 75%, rgba(212,168,67,0.5) 75%, rgba(212,168,67,0.5));
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
}

/* ===== Floating Geometric Shapes ===== */
.geo-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.geo {
  position: absolute;
  border: 1px solid rgba(212, 168, 67, 0.08);
  border-radius: 4px;
  animation: geoFloat 25s ease-in-out infinite;
}

.geo-1 {
  width: 60px; height: 60px;
  top: 15%; left: 8%;
  transform: rotate(45deg);
  animation-delay: 0s;
  animation-duration: 30s;
}
.geo-2 {
  width: 40px; height: 40px;
  top: 45%; right: 12%;
  transform: rotate(30deg);
  animation-delay: -5s;
  animation-duration: 25s;
  border-radius: 50%;
}
.geo-3 {
  width: 80px; height: 80px;
  bottom: 20%; left: 15%;
  transform: rotate(60deg);
  animation-delay: -10s;
  animation-duration: 35s;
}
.geo-4 {
  width: 30px; height: 30px;
  top: 25%; right: 25%;
  transform: rotate(15deg);
  animation-delay: -8s;
  animation-duration: 20s;
}
.geo-5 {
  width: 50px; height: 50px;
  bottom: 35%; right: 8%;
  transform: rotate(45deg);
  animation-delay: -15s;
  animation-duration: 28s;
  border-radius: 50%;
  border-color: rgba(212, 168, 67, 0.05);
}
.geo-6 {
  width: 70px; height: 70px;
  top: 65%; left: 5%;
  transform: rotate(20deg);
  animation-delay: -3s;
  animation-duration: 32s;
}

@keyframes geoFloat {
  0%, 100% { transform: rotate(45deg) translateY(0) translateX(0); opacity: 0.6; }
  25% { transform: rotate(90deg) translateY(-30px) translateX(15px); opacity: 1; }
  50% { transform: rotate(135deg) translateY(-15px) translateX(-10px); opacity: 0.4; }
  75% { transform: rotate(180deg) translateY(20px) translateX(20px); opacity: 0.8; }
}

/* ===== Container ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ===== Gold Gradient Text ===== */
.gold-gradient {
  background: linear-gradient(135deg, #d4a843 0%, #f0d68a 40%, #d4a843 60%, #b8912e 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 4s ease-in-out infinite;
}

@keyframes goldShimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(10, 46, 54, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(212, 168, 67, 0.1);
  transition: all 0.3s;
}
.navbar.scrolled { 
  box-shadow: 0 4px 40px rgba(0,0,0,0.4);
  background: rgba(10, 46, 54, 0.95);
}

.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  margin-right: 8px;
  vertical-align: middle;
}

.nav-logo {
  font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--white);
  display: flex; align-items: center; gap: 8px;
}
.nav-logo-icon { color: var(--gold); font-size: 1rem; }

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 0.88rem; font-weight: 500; color: var(--gray-dim);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.btn-nav {
  padding: 10px 20px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--white);
  transition: all 0.3s; margin: 5px 0;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 140px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(212, 168, 67, 0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  background: 
    repeating-conic-gradient(rgba(212,168,67,0.3) 0% 25%, transparent 0% 50%) 
    50% / 60px 60px;
}

.hero-content { max-width: 780px; position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid rgba(212, 168, 67, 0.2);
  background: rgba(212, 168, 67, 0.06);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero .subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--gray);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
  margin-bottom: 60px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s ease; border: none;
  position: relative; overflow: hidden;
}

.btn-icon {
  font-size: 1.1rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-xl {
  padding: 20px 44px;
  font-size: 1.1rem;
  border-radius: var(--radius);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #c49a38 100%);
  color: var(--teal-dark);
  box-shadow: 0 4px 20px rgba(212, 168, 67, 0.25);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-hover) 0%, var(--gold) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212, 168, 67, 0.4);
}

.btn-outline {
  background: rgba(255,255,255,0.04);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 168, 67, 0.06);
  transform: translateY(-2px);
}

/* ===== Beehiiv Section ===== */
.beehiiv-section {
  margin-top: 20px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.beehiiv-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.beehiiv-subheading {
  font-size: 0.9rem;
  color: var(--gray-dim);
  margin-bottom: 24px;
}

.beehiiv-wrapper {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 168, 67, 0.12);
  background: rgba(10, 46, 54, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ===== Stats Bar ===== */
.stats {
  background: rgba(13, 58, 68, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(212, 168, 67, 0.1);
  border-bottom: 1px solid rgba(212, 168, 67, 0.1);
  padding: 40px 24px;
  position: relative;
  z-index: 1;
}

.stats .container {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 0;
}

.stat-item {
  text-align: center;
  padding: 16px 48px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}
.stat-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(212, 168, 67, 0.15);
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--gray-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 4px;
}

/* ===== Section Shared ===== */
section {
  padding: 120px 24px;
  position: relative;
  z-index: 1;
}

.section-dark {
  background: transparent;
}

.section-light {
  background: rgba(13, 58, 68, 0.4);
}

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 560px;
  margin-bottom: 56px;
  line-height: 1.75;
}

.section-header { text-align: center; }
.section-header .section-subtitle { margin-left: auto; margin-right: auto; }

/* ===== Book Cards ===== */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

.book-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.book-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.book-card::before {
  content: attr(data-num);
  position: absolute;
  top: -10px;
  right: 16px;
  font-size: 7rem;
  font-weight: 900;
  color: rgba(212, 168, 67, 0.04);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

.book-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(212, 168, 67, 0.2));
  z-index: 2;
}

.book-card-glow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(212, 168, 67, 0.06), transparent 40%);
  pointer-events: none;
  z-index: 1;
}

.book-card:hover .book-card-glow { opacity: 1; }

.book-card-content {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 32px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.4s;
}

.book-card:hover .book-card-content {
  border-color: rgba(212, 168, 67, 0.25);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(212, 168, 67, 0.05);
}

.book-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(212, 168, 67, 0.1);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  width: fit-content;
  border: 1px solid rgba(212, 168, 67, 0.15);
}

.book-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.book-card p {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.7;
  flex-grow: 1;
}

.book-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}

.book-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold);
}

.book-card .btn {
  padding: 12px 22px;
  font-size: 0.88rem;
  white-space: nowrap;
}

/* ===== Product Cards (Horizontal) ===== */
.product-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

.product-card {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.35s ease;
  opacity: 0;
  transform: translateY(20px);
  text-decoration: none;
  color: var(--white);
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  border-color: rgba(212, 168, 67, 0.25);
  background: rgba(212, 168, 67, 0.04);
  transform: translateX(4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.product-card-featured {
  border-color: rgba(212, 168, 67, 0.2);
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.06), rgba(212, 168, 67, 0.02));
}

.product-icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(212, 168, 67, 0.08);
  border: 1px solid rgba(212, 168, 67, 0.1);
  flex-shrink: 0;
}

.product-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.product-info p {
  font-size: 0.88rem;
  color: var(--gray-dim);
  line-height: 1.5;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold);
  white-space: nowrap;
}

.product-arrow {
  font-size: 1.2rem;
  color: var(--gray-dim);
  transition: all 0.3s;
}

.product-card:hover .product-arrow {
  color: var(--gold);
  transform: translateX(4px);
}

/* ===== Featured Card (Free Resource) ===== */
.featured-card {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.featured-card-glow {
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.3), rgba(212, 168, 67, 0.05), rgba(212, 168, 67, 0.2));
  z-index: 0;
  animation: featuredGlow 4s ease-in-out infinite alternate;
}

@keyframes featuredGlow {
  0% { opacity: 0.6; filter: blur(0px); }
  100% { opacity: 1; filter: blur(2px); }
}

.featured-card-sparkle {
  position: absolute;
  top: -12px;
  right: -8px;
  font-size: 1.5rem;
  color: var(--gold);
  animation: sparkle 3s ease-in-out infinite;
  z-index: 3;
}

.featured-card-sparkle-2 {
  top: auto;
  bottom: -8px;
  right: auto;
  left: -8px;
  font-size: 1rem;
  animation-delay: -1.5s;
}

@keyframes sparkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(180deg); }
}

.featured-card-content {
  position: relative;
  z-index: 1;
  background: rgba(10, 46, 54, 0.85);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: var(--radius-lg);
  padding: 56px 44px;
  text-align: center;
}

.featured-card .badge {
  display: inline-block;
  background: rgba(212, 168, 67, 0.12);
  color: var(--gold);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.08em;
  border: 1px solid rgba(212, 168, 67, 0.15);
}

.featured-card h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.featured-card p {
  color: var(--gray);
  margin-bottom: 28px;
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ===== Community Section ===== */
.community-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.community-pattern {
  position: absolute;
  inset: -60px;
  opacity: 0.03;
  pointer-events: none;
  border-radius: 50%;
  background: 
    repeating-conic-gradient(rgba(212,168,67,0.5) 0% 25%, transparent 0% 50%) 
    50% / 80px 80px;
}

.community-quote {
  position: relative;
  margin: 32px auto 28px;
  padding: 28px 32px;
  max-width: 520px;
  border-radius: var(--radius);
  background: rgba(212, 168, 67, 0.04);
  border: 1px solid rgba(212, 168, 67, 0.1);
}

.community-quote-mark {
  position: absolute;
  top: -16px;
  left: 24px;
  font-size: 4rem;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
  font-family: Georgia, serif;
}

.community-quote p {
  font-size: 1rem;
  font-style: italic;
  color: var(--gray);
  line-height: 1.7;
}

.community-desc {
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 36px;
  line-height: 1.8;
}

/* ===== About Section ===== */
.about-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.about-decoration {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(212, 168, 67, 0.06), transparent 70%);
  pointer-events: none;
}

.about-gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(212, 168, 67, 0.2));
  margin: 24px auto 32px;
  border-radius: 2px;
}

.about-inner p {
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 1.85;
  margin-bottom: 20px;
}

.about-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 36px;
}

/* ===== Center CTA ===== */
.center-cta { text-align: center; margin-top: 16px; }

/* ===== Footer ===== */
.footer {
  background: var(--teal-dark);
  border-top: 1px solid rgba(212, 168, 67, 0.08);
  padding: 64px 24px 32px;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand .nav-logo {
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--gray-dim);
  margin-top: 8px;
}

.footer-newsletter {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-newsletter p {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 500;
}

.footer-links-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 32px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-dim);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 0.9rem;
  color: var(--gray);
  transition: all 0.2s;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--gray-dim);
  transition: all 0.3s;
}

.social-icon:hover {
  color: var(--gold);
  border-color: rgba(212, 168, 67, 0.3);
  background: rgba(212, 168, 67, 0.08);
  transform: translateY(-2px);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .btn-nav { display: none; }
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 46, 54, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    padding: 32px 0;
    gap: 24px;
    transform: translateY(-120%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid rgba(212, 168, 67, 0.1);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 1.1rem; }

  .hero { padding: 120px 20px 80px; }

  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }
  .hero-ctas .btn { width: 100%; max-width: 360px; justify-content: center; }

  .stats .container { 
    gap: 0;
    flex-wrap: wrap;
  }
  .stat-item { padding: 16px 24px; }
  .stat-divider { display: none; }
  .stat-value { font-size: 1.3rem; }

  section { padding: 80px 20px; }

  .book-grid { grid-template-columns: 1fr; }
  .book-card::before { font-size: 5rem; }

  .product-card {
    grid-template-columns: auto 1fr;
    gap: 16px;
  }
  .product-price {
    grid-column: 1 / -1;
    text-align: left;
  }
  .product-arrow { display: none; }

  .featured-card-content { padding: 40px 28px; }

  .about-links { flex-direction: column; align-items: center; }

  .footer-top { flex-direction: column; text-align: center; }
  .footer-newsletter { flex-direction: column; }
  .footer-links-row { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .footer-bottom { justify-content: center; flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero .subtitle { font-size: 0.95rem; }
  .section-title { font-size: 1.8rem; }
  .beehiiv-wrapper { padding: 12px; }
  .stat-item { flex: 1 1 45%; }
  .book-card-footer { flex-direction: column; align-items: stretch; }
  .book-card .btn { width: 100%; justify-content: center; }
  .book-price { text-align: center; }
}

/* ===== Animations on scroll ===== */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FAQ Section ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: rgba(10, 46, 54, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 168, 67, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.faq-item:hover {
  border-color: rgba(212, 168, 67, 0.2);
  background: rgba(10, 46, 54, 0.55);
}

.faq-item.active {
  border-left-color: var(--gold);
  background: rgba(10, 46, 54, 0.6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(212, 168, 67, 0.15);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  gap: 16px;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--gold);
}

.faq-item.active .faq-question {
  color: var(--gold);
}

.faq-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--gold);
  border: 1px solid rgba(212, 168, 67, 0.3);
  border-radius: 50%;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: rgba(212, 168, 67, 0.15);
}

.faq-answer {
  max-height: 0 !important;
  overflow: hidden !important;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  visibility: hidden;
}

.faq-item.active .faq-answer {
  max-height: 600px !important;
  visibility: visible;
}

.faq-answer-inner {
  padding: 0 28px 24px;
}

.faq-answer-inner p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* FAQ responsive */
@media (max-width: 640px) {
  .faq-question {
    padding: 18px 20px;
    font-size: 0.95rem;
  }
  .faq-answer-inner {
    padding: 0 20px 20px;
  }
  .faq-answer-inner p {
    font-size: 0.9rem;
  }
  .faq-icon {
    width: 28px;
    height: 28px;
    font-size: 1.2rem;
  }
}
