/* ==========================================================================
   LANDING PAGE (PROMO) ISOLATED STYLESHEET
   ========================================================================== */

:root {
  --primary-color: #6b46c1;       /* Main Purple */
  --primary-hover: #553c9a;       /* Darker Purple */
  --primary-light: #f3e8ff;       /* Soft Light Purple background */
  --primary-glow: rgba(107, 70, 193, 0.15);
  
  --gradient-start: #8b5cf6;      /* Header Gradient Start */
  --gradient-end: #6d28d9;        /* Header Gradient End */
  
  --main-bg: #fdfdff;             /* Very light white/purple main page */
  --card-bg: #ffffff;
  
  --text-primary: #1f1b2d;        /* Deep Slate */
  --text-secondary: #605978;      /* Muted Slate */
  --border-color: #e5e2f3;        /* Soft Border */
  
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --purple-accent-color: #7c5dfa;
  
  --shadow-sm: 0 2px 8px rgba(31, 27, 45, 0.05);
  --shadow-md: 0 4px 16px rgba(31, 27, 45, 0.1);

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;
}

body.dark-theme {
  --primary-color: #a78bfa;
  --primary-hover: #c084fc;
  --primary-light: #2e1065;
  --primary-glow: rgba(167, 139, 250, 0.2);
  
  --gradient-start: #7c3aed;
  --gradient-end: #4c1d95;
  
  --main-bg: #090816;
  --card-bg: #141226;
  
  --text-primary: #f1ecfe;
  --text-secondary: #a39cb6;
  --border-color: #2c274d;
  
  --success-color: #34d399;
  --danger-color: #f87171;
  --warning-color: #fbbf24;
}

/* Base resets for landing */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--main-bg);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}

/* Header */
.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(253, 253, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
  transition: background-color 0.3s, border-color 0.3s;
}

body.dark-theme .landing-header {
  background: rgba(9, 8, 22, 0.85);
}

.landing-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-header-left .book-logo {
  width: 28px;
  height: 28px;
  color: var(--primary-color);
}

.landing-logo-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.landing-nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.landing-nav-link:hover {
  color: var(--primary-color);
}

.landing-header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.theme-toggle-btn:hover {
  background-color: var(--border-color);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-sm {
  font-size: 0.85rem;
  padding: 8px 16px;
}

.btn-lg {
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: 10px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff !important;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  background-color: var(--border-color);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Main Content Wrapper */
.landing-content {
  max-width: 1200px;
  margin: 70px auto 0 auto; /* offset header height */
  padding: 40px 20px 80px 20px;
}

/* Hero Section */
.landing-hero {
  text-align: center;
  padding: 80px 20px 100px 20px;
  position: relative;
}

.landing-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 93, 250, 0.12) 0%, rgba(124, 93, 250, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.landing-hero-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-color);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(107, 70, 193, 0.15);
}

.landing-hero h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -1.5px;
  max-width: 850px;
  margin: 0 auto 20px auto;
}

.landing-hero h1 span {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 35px auto;
  line-height: 1.6;
}

.landing-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

/* Sections General */
.landing-section {
  padding: 90px 0;
  border-top: 1px solid var(--border-color);
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 60px auto;
}

/* Features Grid */
/* Interactive Slideshow - Wide Banner Style */
.slideshow-container {
  position: relative;
  width: 96vw;
  max-width: 1500px;
  left: 50%;
  transform: translateX(-50%);
  margin: 40px 0 20px 0;
  background: #0d0b18; /* Dark base */
  border: 1px solid var(--border-color);
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(107, 70, 193, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  aspect-ratio: 2.6 / 1;
  min-height: 420px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

body.dark-theme .slideshow-container {
  border-color: rgba(167, 139, 250, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.slideshow-container:hover {
  box-shadow: 0 24px 60px rgba(107, 70, 193, 0.28);
  transform: translateX(-50%) translateY(-3px);
}

.slideshow-slides {
  position: relative;
  width: 100%;
  height: 100%;
  flex-grow: 1;
}

.slideshow-slide {
  display: none;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slideshow-slide.active {
  display: flex;
  opacity: 1;
  z-index: 2;
}

.slide-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: blur(1.5px) brightness(0.45);
  transition: transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: scale(1.03);
}

.slideshow-slide.active .slide-bg-img {
  transform: scale(1.1);
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(15, 12, 30, 0.35) 0%, rgba(15, 12, 30, 0.75) 100%);
  z-index: 2;
}

.slide-content {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 120px;
  box-sizing: border-box;
}

.slide-content h3 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -1px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, opacity 0.6s ease 0.2s;
}

.slideshow-slide.active h3 {
  transform: translateY(0);
  opacity: 1;
}

.slide-content p {
  font-size: 1.35rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s, opacity 0.6s ease 0.4s;
}

.slideshow-slide.active p {
  transform: translateY(0);
  opacity: 1;
}

/* Controls */
.slideshow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-color);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slideshow-nav:hover {
  background: var(--primary-hover);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 6px 24px rgba(107, 70, 193, 0.4);
}

.slideshow-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.prev-btn {
  left: 30px;
}

.next-btn {
  right: 30px;
}

.slideshow-nav svg {
  width: 24px;
  height: 24px;
  stroke-width: 3;
}

/* Dots Overlay Navigation */
.slideshow-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 10;
  background: transparent;
  border-top: none;
  padding: 0;
}

.dot-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.dot-btn:hover {
  background: rgba(255, 255, 255, 0.8);
}

.dot-btn.active {
  background: #ffffff;
  width: 36px;
  border-radius: 6px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .slide-content {
    padding: 40px 80px;
  }
  .slide-content h3 {
    font-size: 2.4rem;
  }
  .slide-content p {
    font-size: 1.15rem;
  }
}

@media (max-width: 768px) {
  .slideshow-container {
    width: auto;
    left: auto;
    transform: none;
    margin: 20px 0;
    aspect-ratio: auto;
    height: 380px;
    min-height: auto;
  }

  .slideshow-container:hover {
    transform: translateY(-2px);
  }

  .slideshow-slide {
    height: 100%;
  }

  .slide-content {
    padding: 30px 50px;
  }

  .slide-content h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
  }

  .slide-content p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .slideshow-nav {
    width: 44px;
    height: 44px;
  }

  .prev-btn {
    left: 15px;
  }

  .next-btn {
    right: 15px;
  }

  .slideshow-dots {
    bottom: 15px;
  }
}

/* Tariffs Section */
.landing-tariffs-container {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.tariff-card {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.tariff-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tariff-card.popular {
  border: 2px solid var(--primary-color);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: #ffffff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tariff-header h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.tariff-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.tariff-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.tariff-price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.tariff-price-annual {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--success-color);
  margin-bottom: 24px;
}

.tariff-features {
  list-style: none;
  margin-bottom: 35px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.tariff-features li {
  font-size: 0.95rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tariff-features li svg {
  width: 16px;
  height: 16px;
  color: var(--success-color);
  flex-shrink: 0;
}

.tariff-features li.disabled {
  color: var(--text-secondary);
  opacity: 0.55;
}

.tariff-features li.disabled svg {
  color: var(--text-secondary);
}

/* CTA Section */
.landing-cta {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  color: #ffffff;
  border-top: none;
  box-shadow: var(--shadow-md);
}

.landing-cta h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.landing-cta p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}

/* Landing Footer */
.landing-footer {
  border-top: 1px solid var(--border-color);
  padding: 30px 40px;
  margin-top: 60px;
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s;
}

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

.landing-footer p.copyright {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary-color);
}

/* Statistics Section */
.landing-stats {
  padding: 60px 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto 0 auto;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.stat-card.highlight {
  background: linear-gradient(135deg, rgba(107, 70, 193, 0.05) 0%, rgba(96, 165, 250, 0.05) 100%);
  border: 1.5px solid rgba(107, 70, 193, 0.3);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.stat-icon svg {
  width: 30px;
  height: 30px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   LANDING RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 992px) {
  .landing-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .landing-hero h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .landing-header {
    padding: 0 20px;
  }
  .landing-nav {
    display: none;
  }
  .landing-content {
    padding-top: 20px;
  }
  .landing-hero h1 {
    font-size: 2.2rem;
  }
  .landing-hero p {
    font-size: 1.05rem;
  }
  .landing-features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .landing-tariffs-container {
    flex-direction: column;
    gap: 25px;
  }
  .tariff-card {
    padding: 30px;
  }
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}
