/* ===== Homepage Styles (home.css) ===== */
/* Only loaded on the landing page (index.html) */

/* ---- Base overrides for home ---- */
.home-page {
  background: #fff;
  overflow-x: hidden;
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #4c1d95 100%);
  display: flex;
  align-items: center;
  padding: 80px 40px 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(139,92,246,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-text {
  flex: 1;
  min-width: 0;
}
.hero-title {
  font-size: 3.5em;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero-subtitle {
  font-size: 1.2em;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 520px;
}
.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  color: #e0e7ff;
  font-size: 0.95em;
  font-weight: 500;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cta-btn {
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 1.1em;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(99,102,241,0.4);
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99,102,241,0.55);
  text-decoration: none;
}
.hero-image {
  flex: 0 0 420px;
}
.hero-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* ===== Shared Section Styles ===== */
.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-title {
  font-size: 2.2em;
  font-weight: 800;
  text-align: center;
  color: #1a1a2e;
  margin-bottom: 12px;
}
.section-desc {
  text-align: center;
  color: #6b7280;
  font-size: 1.1em;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Highlights Section ===== */
.highlights {
  padding: 100px 24px;
  background: #f8fafc;
}
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.highlight-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  border: 1px solid #f0f0f5;
  transition: transform 0.2s, box-shadow 0.2s;
}
.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.highlight-icon {
  font-size: 2.4em;
  margin-bottom: 16px;
}
.highlight-card h3 {
  font-size: 1.15em;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
}
.highlight-card p {
  font-size: 0.92em;
  color: #6b7280;
  line-height: 1.7;
}

/* ===== Audience Section ===== */
.audience {
  padding: 100px 24px;
  background: #fff;
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.audience-card {
  background: linear-gradient(145deg, #f5f3ff, #eef2ff);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  border: 1px solid #e0e7ff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.1);
}
.audience-icon {
  font-size: 2.4em;
  margin-bottom: 16px;
}
.audience-card h3 {
  font-size: 1.15em;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
}
.audience-card p {
  font-size: 0.92em;
  color: #4b5563;
  line-height: 1.7;
}

/* ===== Chapters Section ===== */
.chapters {
  padding: 100px 24px;
  background: #f8fafc;
}
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.chapter-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.chapter-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.07);
  border-color: #c7d2fe;
  text-decoration: none;
}
.chapter-num {
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 1.2em;
  font-weight: 800;
  border-radius: 14px;
}
.chapter-info {
  min-width: 0;
}
.chapter-info h3 {
  font-size: 1.08em;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
}
.chapter-info p {
  font-size: 0.88em;
  color: #6b7280;
  line-height: 1.65;
}

/* ===== Footer ===== */
.home-footer {
  text-align: center;
  padding: 40px 24px;
  background: #0f172a;
  color: rgba(255,255,255,0.5);
  font-size: 0.9em;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-badges {
    justify-content: center;
  }
  .hero-image {
    flex: 0 0 auto;
    max-width: 400px;
    width: 100%;
  }
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 20px 40px;
    min-height: auto;
  }
  .hero-title {
    font-size: 2.4em;
  }
  .hero-subtitle {
    font-size: 1.05em;
  }
  .hero-image {
    max-width: 320px;
  }
  .highlights-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .audience-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .chapter-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 1.7em;
  }
  .highlights, .audience, .chapters {
    padding: 60px 16px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2em;
  }
  .hero-badges {
    flex-direction: column;
    align-items: center;
  }
  .cta-btn {
    padding: 14px 32px;
    font-size: 1em;
  }
}

/* Social Media Section */
.social-media {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 280px));
  gap: 3rem;
  justify-content: center;
  margin-top: 3rem;
}

.qr-card {
  text-align: center;
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qr-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.qr-placeholder {
  width: 180px;
  height: 180px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #4f46e5;
  border: 2px dashed #6366f1;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.qr-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.qr-placeholder span {
  position: relative;
  z-index: 1;
  font-weight: 500;
}

.qr-card > p {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.qr-desc {
  font-size: 0.9rem;
  color: #64748b;
}

@media (max-width: 768px) {
  .qr-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
}
