/**
 * FantasyRead Website Styles
 * Production-ready CSS for fantasyread.ai
 */

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

/* ============================================
   HEADER
   ============================================ */

header {
  background: #000;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  font-family: 'Dancing Script', cursive;
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
}

nav {
  display: flex;
  gap: 2.5rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  transition: opacity 0.3s ease;
}

nav a:hover {
  opacity: 0.7;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  height: 90vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #0a0a0a;
  background-image: url('../assets/images/hero-bg.webp');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Fallback for browsers that don't support WebP */
.no-webp .hero {
  background-image: url('../assets/images/hero-bg.png');
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
}

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

.hero-subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  font-weight: 400;
}

.hero-title {
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2.5rem;
  letter-spacing: 0.01em;
}

.cta-button {
  display: inline-block;
  background: #fff;
  color: #000;
  padding: 1.5rem 4rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 255, 255, 0.5);
  background: #f0f0f0;
}

/* ============================================
   DESCRIPTION SECTION
   ============================================ */

.description-section {
  background: #000;
  padding: 4rem 5%;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.description-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.4;
}

/* ============================================
   SAGE SECTION
   ============================================ */

.sage-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 600px;
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sage-video {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: #000;
}

.sage-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sage-video::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
}

.sage-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem;
  background: #000;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.sage-content.visible {
  opacity: 1;
  transform: translateX(0);
}

.sage-content h2 {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 2rem;
  font-weight: 600;
}

.sage-content p {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 500px;
}

/* ============================================
   PRICING SECTION
   ============================================ */

.pricing-section {
  background: #000;
  padding: 5rem 5%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 4rem;
  color: #fff;
}

.pricing-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.pricing-card.free {
  border-color: rgba(168, 255, 96, 0.2);
  position: relative;
  overflow: hidden;
}

.pricing-card.free::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #a8ff60, #60ffa8);
}

.pricing-card.pro {
  border-color: rgba(139, 92, 246, 0.2);
  position: relative;
  overflow: hidden;
}

.pricing-card.pro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #60a5fa, #c084fc);
}

.plan-name {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #fff;
}

.pricing-card.free .plan-name {
  color: #a8ff60;
}

.pricing-card.pro .plan-name {
  color: #a78bfa;
}

.plan-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.plan-price {
  margin-bottom: 2rem;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.plan-price .price {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
}

.plan-price .period {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-left: 0.25rem;
}

.price-main {
  margin-bottom: 1rem;
}

.price-note {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  padding-top: 0.5rem;
}

.price-original {
  margin-bottom: 0.5rem;
}

.price-strike {
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.price-discounted {
  margin-bottom: 0.5rem;
}

.limited-offer {
  font-size: 0.9rem;
  font-weight: 600;
  color: #60a5fa;
  margin: 0.5rem 0 0 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.plan-button {
  display: block;
  text-align: center;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-bottom: 2.5rem;
  background: #fff;
  color: #000;
  border: none;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.plan-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 255, 255, 0.5);
  background: #f0f0f0;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-features li {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.plan-features li:last-child {
  margin-bottom: 0;
}

.plan-features .check {
  color: rgba(255, 255, 255, 0.5);
  font-weight: bold;
  margin-right: 0.75rem;
}

.pricing-card.free .plan-features .check {
  color: #a8ff60;
}

.pricing-card.pro .plan-features .check {
  color: #a78bfa;
}

.pricing-card.pro .plan-features .check.highlight {
  color: #60a5fa;
}

.plan-features b {
  font-weight: 600;
  color: #fff;
}

/* ============================================
   FOOTER SECTIONS
   ============================================ */

footer {
  background: #000;
  padding: 3rem 5% 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-contact p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-icons a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

.copyright {
  background: #000;
  padding: 1.5rem 5%;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* ============================================
   FAQ PAGE
   ============================================ */

.faq-section {
  background: #000;
  padding: 5rem 5% 3rem;
  min-height: 100vh;
}

.faq-section h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  margin-bottom: 1rem;
  color: #fff;
}

.faq-intro {
  text-align: center;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-category {
  margin-bottom: 4rem;
}

.faq-category h2 {
  font-size: 1.8rem;
  color: #60a5fa;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(96, 165, 250, 0.3);
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.faq-item h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 600;
}

.faq-item p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.faq-item a {
  color: #60a5fa;
  text-decoration: underline;
}

.faq-item a:hover {
  color: #80b5fb;
}

.faq-cta {
  text-align: center;
  margin-top: 5rem;
  padding: 3rem;
  background: rgba(96, 165, 250, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.faq-cta h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #fff;
}

/* ============================================
   MOBILE MENU
   ============================================ */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  header {
    padding: 1rem 5%;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  nav.active {
    display: flex;
  }
  
  nav a {
    padding: 1rem 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .menu-toggle {
    display: block;
  }
  
  .hero {
    height: 70vh;
    min-height: 400px;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .description-section {
    padding: 3rem 5%;
  }
  
  .sage-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .sage-video {
    min-height: 400px;
    max-height: 500px;
  }
  
  .sage-content {
    padding: 3rem 5%;
    opacity: 1;
    transform: translateX(0);
  }
  
  .pricing-section {
    padding: 4rem 5%;
  }
  
  .pricing-title {
    margin-bottom: 3rem;
  }
  
  .pricing-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .pricing-card {
    padding: 2.5rem 2rem;
  }
  
  footer {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-links {
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 1rem;
  }
  
  .cta-button {
    padding: 0.875rem 2.5rem;
    font-size: 0.95rem;
  }
  
  .sage-content {
    padding: 2rem 5%;
  }
}
