:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #dbeafe;
  --secondary: #0f172a;
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.2);
  --gold: #f59e0b;
  --background: #f8fafc;
  --surface: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-premium:
    0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-heading {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  padding: 20px 0;
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 700;
}

.logo i {
  color: var(--primary);
}
.logo span {
  color: var(--primary);
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(37, 99, 235, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

/* Hero Section */
.hero {
  padding: 140px 0 80px;
  position: relative;
  background: linear-gradient(135deg, #dbeafe 0%, #f8fafc 50%, #ecfdf5 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  overflow: hidden;
}

/* Animated gradient background */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Floating particles in background */
.hero::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  top: -100px;
  right: -100px;
  animation: floatParticle 20s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -150px;
  left: -150px;
  animation: floatParticle 25s ease-in-out infinite reverse;
}

@keyframes floatParticle {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(50px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-30px, 30px) scale(0.9);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  animation: slideInDown 0.8s ease-out, badgePulse 3s ease-in-out infinite 2s;
}

.hero-badge span {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: var(--shadow-sm);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.1);
  }
}

.hero h1 {
  font-size: clamp(40px, 8vw, 64px);
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--secondary);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero h1 span {
  color: var(--primary);
  display: inline-block;
  animation: scaleIn 0.6s ease-out 0.8s both;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 32px;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-visual-box {
  background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%);
  padding: 40px;
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  animation: fadeInUp 1.2s ease-out 0.6s both;
}

/* Hero CTA and Features Animations */
.hero-cta {
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-rating {
  animation: fadeIn 1s ease-out 1s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-features {
  animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-features span {
  display: inline-block;
  animation: bounceIn 0.6s ease-out both;
}

.hero-features span:nth-child(1) {
  animation-delay: 1s;
}

.hero-features span:nth-child(2) {
  animation-delay: 1.2s;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.4);
}

.btn-pulse {
  animation: pulse 2s infinite;
}

/* Proof Section */
.proof-section {
  padding: 20px 0;
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.proof-container {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
  color: var(--text-light);
  white-space: nowrap;
  opacity: 0.8;
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-title h2 {
  font-size: clamp(32px, 5vw, 42px);
  margin-bottom: 16px;
}

.card {
  background: white;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-premium);
  border-color: var(--primary);
}

.icon-box {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-size: 28px;
  transition: transform 0.3s ease;
}

.card:hover .icon-box {
  transform: scale(1.1) rotate(5deg);
}

.book-tag {
  display: inline-flex;
  padding: 6px 14px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 20px;
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 991px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .hero {
    text-align: center;
    padding-top: 100px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Pricing Card */
.pricing-card {
  background: white;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  box-shadow: var(--shadow-premium);
}

.pricing-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.price-main {
  font-size: 64px;
  font-weight: 800;
  color: var(--secondary);
  margin: 16px 0;
}

.price-old {
  text-decoration: line-through;
  color: var(--text-light);
  font-size: 24px;
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
}
.form-input {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.form-input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-soft);
}

/* Sticky Bar */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 16px 0;
  border-top: 1px solid var(--border);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.sticky-bar.visible {
  transform: translateY(0);
}

.sticky-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 576px) {
  .sticky-content {
    flex-direction: column;
    gap: 12px;
  }
}

/* Animated Chart CTA */
.chart-cta-section {
  padding: 100px 0;
  background: var(--secondary);
  color: white;
  overflow: hidden;
  position: relative;
}

.chart-container {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  backdrop-filter: blur(10px);
  min-height: 350px;
}

.chart-line-svg {
  width: 100%;
  height: 300px;
}

.moving-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawPath 4s ease-out forwards infinite;
}

.chart-glow {
  filter: drop-shadow(0 0 8px var(--accent));
}

@keyframes drawPath {
  0% {
    stroke-dashoffset: 1000;
  }
  50% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

.candle-bar {
  width: 12px;
  background: var(--accent);
  position: absolute;
  bottom: 30px;
  border-radius: 2px;
  opacity: 0;
  animation: candleFadeIn 0.5s ease-out forwards;
}

@keyframes candleFadeIn {
  to {
    opacity: 0.6;
  }
}

.cta-box {
  text-align: left;
}

@media (max-width: 767px) {
  .cta-box {
    text-align: center;
    margin-bottom: 40px;
  }
}

/* Footer & Legal */
.footer {
  padding: 60px 0;
  background: var(--secondary);
  color: white;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-list {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--text-light);
}
.footer-bottom {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}


/* Featured Carousel Styles */
.carousel-section {
    padding: 60px 0 80px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.carousel-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 0L100 100M100 0L0 100" stroke="rgba(0,0,0,0.02)" stroke-width="1"/></svg>');
    opacity: 0.5;
}

.carousel-section .section-title h2 {
    color: var(--secondary);
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 12px;
}

.carousel-section .section-title p {
    color: var(--text-muted);
    font-size: 18px;
}

.featured-swiper {
    padding: 50px 0 70px;
    position: relative;
    z-index: 1;
}

.featured-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
    align-items: center;
}

.featured-book-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 550px;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.featured-book-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-soft);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.featured-book-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0;
    transition: transform 0.4s ease;
}

.featured-book-card:hover img {
    transform: scale(1.03);
}
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    padding: 24px;
    color: white;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.featured-book-card:hover .card-overlay {
    transform: translateY(0);
    opacity: 1;
}

.card-overlay h3 {
    font-size: 18px;
    margin-bottom: 4px;
    color: white;
}

.card-overlay p {
    font-size: 14px;
    opacity: 0.8;
}

.swiper-button-next, .swiper-button-prev {
    color: white;
    background: var(--primary);
    backdrop-filter: blur(10px);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 24px;
    font-weight: 900;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--border);
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--primary);
    width: 32px;
    border-radius: 6px;
}
