@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;600;700;800&family=Caveat:wght@700&family=Dancing+Script:wght@700&display=swap&display=swap');

/* =============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================= */

/* GPU-accelerated image rendering */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  decoding: async;
  content-visibility: auto;
}

/* Lazy-load below-fold images smoothly */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.4s ease;
}
img[loading="lazy"].loaded {
  opacity: 1;
}

/* Reduce repaints on animated elements */
.navbar, .download-banner-card, .phone-mockup, .reward-card, .feature-card {
  will-change: transform;
  transform: translateZ(0);
}

/* Reserve space for images to avoid layout shift (CLS) */
.genre-pill-image { aspect-ratio: 1 / 1.5; }
.phone-screenshot-img { aspect-ratio: 9 / 19; }
.book-cover-img { aspect-ratio: 2 / 3; }

:root {
  /* Storito Signature Palette */
  --primary: #FF5C2A;
  --primary-glow: rgba(255, 92, 42, 0.4);
  --primary-gradient: linear-gradient(135deg, #FF5C2A 0%, #FF8C69 100%);

  --bg-dark: #000000;
  --bg-surface: #0A0A0A;
  --bg-card: #111111;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);

  --text-main: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-dim: rgba(255, 255, 255, 0.3);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-hero: 40px;
  --radius-card: 24px;
  --transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  /* Accounts for floating fixed navbar height */
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography Overhaul */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Global Navigation - Floating Glass */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.navbar.scrolled {
  height: 80px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(30px);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary-gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.logo span {
  color: var(--primary);
}

.logo-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition);
}

.logo-brand:hover {
  transform: translateY(-2px);
}

.header-logo {
  height: 38px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nav-links a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-download {
  background: var(--primary-gradient);
  color: #fff !important;
  padding: 12px 28px;
  border-radius: 100px;
  box-shadow: 0 10px 30px var(--primary-glow);
  font-weight: 800;
}

/* Cinematic Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #000;
}

/* Background image should be the high-quality banner provided by user */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/main_banner.png');
  /* IMPORTANT: USER MUST SAVE BANNER HERE */
  background-size: cover;
  background-position: center;
  filter: brightness(0.7);
  transform: scale(1.05);
  animation: heroPulse 20s infinite alternate ease-in-out;
}

@keyframes heroPulse {
  from {
    transform: scale(1.05);
  }

  to {
    transform: scale(1);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%),
    linear-gradient(to top, rgba(0, 0, 0, 1) 0%, transparent 40%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  width: 100%;
  padding: 0 40px;
}

.hero-tag {
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 10px;
  margin-bottom: 24px;
  display: block;
  font-size: 27px;
}

.hero-title {
  font-size: clamp(3.8rem, 8vw, 5.5rem);
  font-weight: 700;
  margin-bottom: 24px;
  max-width: 800px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero-desc {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

.btn-hero {
  padding: 18px 40px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  font-family: var(--font-heading);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-hero-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 15px 40px var(--primary-glow);
}

.btn-hero-outline {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  color: #fff;
}

.btn-hero:hover {
  transform: translateY(-5px);
  filter: brightness(1.2);
}

/* Cinematic Section Header */
.section-header {
  text-align: center;
  padding: 120px 0 60px;
}

.section-header h2 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin-bottom: 20px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* Genre Gallery - Cinematic Tiles */
.genre-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-bottom: 100px;
}

.genre-tile {
  position: relative;
  height: 500px;
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
}

.genre-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.genre-tile-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: var(--transition);
}

.genre-tile h3 {
  font-size: 32px;
  margin-bottom: 12px;
}

.genre-tile p {
  color: var(--text-secondary);
  font-size: 15px;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.genre-tile:hover img {
  transform: scale(1.1);
}

.genre-tile:hover p {
  opacity: 1;
  transform: translateY(0);
}

/* Unified Content Page (About, Privacy, etc.) */
.unified-page {
  padding-bottom: 100px;
  background: var(--bg-dark);
}

.content-hero {
  height: 40vh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  margin-bottom: 60px;
}

.content-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), var(--bg-dark));
}

.content-hero-text {
  position: relative;
  z-index: 2;
}

.container,
.unified-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  margin-top: 40px;
}

.info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}

.info-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 20px;
  flex-shrink: 0;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 16px;
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-body);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.unified-header {
  text-align: center;
  margin-bottom: 80px;
}

.unified-header h1 {
  font-size: 64px;
  margin-bottom: 24px;
}

.unified-content h2 {
  color: var(--primary);
  font-size: 28px;
  margin: 48px 0 24px;
}

.unified-content p,
.unified-content li {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 24px;
  line-height: 1.8;
}

.unified-content ul {
  padding-left: 24px;
  margin-bottom: 32px;
}

/* Footer Overhaul */
.footer {
  padding: 120px 0 60px;
  border-top: 1px solid var(--glass-border);
  background: #050505;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
}

.footer-logo {
  height: 40px;
  width: auto;
  display: block;
}

.footer-brand p {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 15px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-title {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 32px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  transition: color 0.25s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 60px;
  border-top: 1px solid var(--glass-border);
  color: rgba(255, 255, 255, 0.50);
  font-size: 14px;
}

/* Mobile Responsive Adjustments */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 5rem;
  }

  .genre-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .nav-links {
    display: none;
  }

  .genre-gallery {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Rankings Section Styles */
.rankings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.ranking-column {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--glass-border);
  padding: 32px 24px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: var(--transition);
}

.ranking-column:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 92, 42, 0.2);
  box-shadow: 0 15px 35px rgba(255, 92, 42, 0.05);
}

.column-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 22px;
}

.reputation-header .header-icon {
  background: rgba(147, 51, 234, 0.1);
  color: #a855f7;
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.2);
}

.selling-header .header-icon {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.moon-header .header-icon {
  background: rgba(236, 72, 153, 0.1);
  color: #ec4899;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.2);
}

.column-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.column-header p {
  font-size: 13px;
  color: var(--text-dim);
}

.books-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.book-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 12px;
  transition: var(--transition);
}

.book-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.rank-badge {
  font-size: 15px;
  font-weight: 800;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rank-1 {
  background: rgba(255, 92, 42, 0.2);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.rank-2 {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.rank-3 {
  background: rgba(156, 163, 175, 0.15);
  color: #d1d5db;
  border: 1px solid rgba(156, 163, 175, 0.4);
}

.rank-4 {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.book-cover-container {
  width: 52px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.book-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-details {
  flex-grow: 1;
  min-width: 0;
}

.book-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.book-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Shimmer Loading State Skeletons */
.book-skeleton {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
}

.book-skeleton-cover {
  width: 52px;
  height: 72px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.book-skeleton-details {
  flex-grow: 1;
}

.book-skeleton-title {
  width: 60%;
  height: 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
}

.book-skeleton-desc {
  width: 90%;
  height: 24px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}

/* Skeleton Shimmer Animation */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.03) 20%,
      rgba(255, 255, 255, 0.08) 60%,
      rgba(255, 255, 255, 0) 100%);
  animation: shimmer-anim 2s infinite;
  content: '';
}

@keyframes shimmer-anim {
  100% {
    transform: translateX(100%);
  }
}

/* Redesigned Creative Premium Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 48px 40px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card-bg-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, transparent 20%, transparent 80%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
  z-index: 1;
}

.feature-icon-capsule {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 32px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.feature-card h3 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  flex-grow: 1;
  position: relative;
  z-index: 2;
  margin-bottom: 32px;
}

.feature-card-footer {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.feature-learn-more {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.feature-learn-more i {
  transition: var(--transition);
}

/* Feature specific creative coloring */

/* 1. Orange Card (Immersive Reading) */
.feature-card-orange:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 92, 42, 0.4);
  box-shadow: 0 20px 40px rgba(255, 92, 42, 0.06);
}

.feature-card-orange .feature-card-bg-glow {
  background: radial-gradient(circle, rgba(255, 92, 42, 0.08) 0%, transparent 60%);
}

.feature-card-orange:hover .feature-card-bg-glow {
  opacity: 1;
}

.feature-card-orange .feature-icon-capsule {
  background: rgba(255, 92, 42, 0.1);
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(255, 92, 42, 0.15);
}

.feature-card-orange:hover .feature-icon-capsule {
  transform: scale(1.1) rotate(5deg);
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 10px 30px var(--primary-glow);
}

.feature-card-orange .feature-learn-more {
  color: var(--primary);
}

/* 2. Blue Card (Offline Access) */
.feature-card-blue:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.06);
}

.feature-card-blue .feature-card-bg-glow {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
}

.feature-card-blue:hover .feature-card-bg-glow {
  opacity: 1;
}

.feature-card-blue .feature-icon-capsule {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.feature-card-blue:hover .feature-icon-capsule {
  transform: scale(1.1) rotate(-5deg);
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.feature-card-blue .feature-learn-more {
  color: #3b82f6;
}

/* 3. Purple Card (Reward Economy) */
.feature-card-purple:hover {
  transform: translateY(-8px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 20px 40px rgba(168, 85, 247, 0.06);
}

.feature-card-purple .feature-card-bg-glow {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 60%);
}

.feature-card-purple:hover .feature-card-bg-glow {
  opacity: 1;
}

.feature-card-purple .feature-icon-capsule {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.15);
}

.feature-card-purple:hover .feature-icon-capsule {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
}

.feature-card-purple .feature-learn-more {
  color: #a855f7;
}

/* Arrow Slide animations */
.feature-card:hover .feature-learn-more i {
  transform: translateX(6px);
}

/* Top Genre Section Styles */
.genre-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.genre-header h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.btn-more-genres {
  font-size: 15px;
  font-weight: 800;
  color: #8B5CF6;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: var(--transition);
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.btn-more-genres:hover {
  color: #fff;
  background: #8B5CF6;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
}

.top-genres-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  padding-top: 24px;
  /* Space for pop-out characters */
}

.genre-pill-card {
  position: relative;
  height: 120px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 24px;
  transition: var(--transition);
}

.genre-pill-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  z-index: 1;
  transition: var(--transition);
}

.genre-pill-name {
  position: relative;
  z-index: 10;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.genre-pill-image-wrapper {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: visible;
  pointer-events: none;
}

.genre-pill-image {
  position: absolute;
  right: -5px;
  bottom: 0;
  height: 140px;
  /* Overlaps top of card */
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

/* Hover Transforms */
.genre-pill-card:hover .genre-pill-image {
  transform: translateY(-12px) scale(1.08);
}

.genre-pill-card:hover .genre-pill-bg {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
  filter: brightness(1.1);
}

/* Genre gradient styles */
.pill-card-romance .genre-pill-bg {
  background: linear-gradient(135deg, #EC4899 0%, #F43F5E 100%);
}

.pill-card-paranormal .genre-pill-bg {
  background: linear-gradient(135deg, #C084FC 0%, #8B5CF6 100%);
}

.pill-card-steamy .genre-pill-bg {
  background: linear-gradient(135deg, #818CF8 0%, #6366F1 100%);
}

.pill-card-ya .genre-pill-bg {
  background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
}

.pill-card-newadult .genre-pill-bg {
  background: linear-gradient(135deg, #93C5FD 0%, #60A5FA 100%);
}

.pill-card-fantasy .genre-pill-bg {
  background: linear-gradient(135deg, #F43F5E 0%, #BE123C 100%);
}

.pill-card-thriller .genre-pill-bg {
  background: linear-gradient(135deg, #4F46E5 0%, #312E81 100%);
}

.pill-card-mythology .genre-pill-bg {
  background: linear-gradient(135deg, #D97706 0%, #78350F 100%);
}

.pill-card-poetry .genre-pill-bg {
  background: linear-gradient(135deg, #0EA5E9 0%, #0369A1 100%);
}

.pill-card-horror .genre-pill-bg {
  background: linear-gradient(135deg, #EF4444 0%, #7F1D1D 100%);
}

.pill-card-selfhelp .genre-pill-bg {
  background: linear-gradient(135deg, #10B981 0%, #064E3B 100%);
}

.pill-card-scifiction .genre-pill-bg {
  background: linear-gradient(135deg, #8B5CF6 0%, #4C1D95 100%);
}

/* Mobile responsive horizontal swiping for genres */
@media (max-width: 1100px) {
  .top-genres-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .top-genres-row {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .genre-pill-card {
    flex: 0 0 190px;
    scroll-snap-align: start;
  }

  /* Custom scrollbar to keep it looking premium */
  .top-genres-row::-webkit-scrollbar {
    height: 4px;
  }

  .top-genres-row::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
  }

  .top-genres-row::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
  }
}

/* Additional Creative Feature Themes */

/* 4. Teal Card (Creative Studio) */
.feature-card-teal:hover {
  transform: translateY(-8px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.06);
}

.feature-card-teal .feature-card-bg-glow {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
}

.feature-card-teal:hover .feature-card-bg-glow {
  opacity: 1;
}

.feature-card-teal .feature-icon-capsule {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.feature-card-teal:hover .feature-icon-capsule {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.feature-card-teal .feature-learn-more {
  color: #10B981;
}

/* 5. Pink Card (Personal Library) */
.feature-card-pink:hover {
  transform: translateY(-8px);
  border-color: rgba(236, 72, 153, 0.4);
  box-shadow: 0 20px 40px rgba(236, 72, 153, 0.06);
}

.feature-card-pink .feature-card-bg-glow {
  background: radial-gradient(circle, rgba(236, 72, 153, 0.08) 0%, transparent 60%);
}

.feature-card-pink:hover .feature-card-bg-glow {
  opacity: 1;
}

.feature-card-pink .feature-icon-capsule {
  background: rgba(236, 72, 153, 0.1);
  color: #ec4899;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.15);
}

.feature-card-pink:hover .feature-icon-capsule {
  transform: scale(1.1) rotate(-5deg);
  background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.3);
}

.feature-card-pink .feature-learn-more {
  color: #ec4899;
}

/* 6. Yellow/Amber Card (Interactive Community) */
.feature-card-yellow:hover {
  transform: translateY(-8px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 20px 40px rgba(245, 158, 11, 0.06);
}

.feature-card-yellow .feature-card-bg-glow {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 60%);
}

.feature-card-yellow:hover .feature-card-bg-glow {
  opacity: 1;
}

.feature-card-yellow .feature-icon-capsule {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
}

.feature-card-yellow:hover .feature-icon-capsule {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.feature-card-yellow .feature-learn-more {
  color: #f59e0b;
}

/* Cinematic Illustration Section */
.illustration-section {
  padding: 100px 0 60px 0;
  background: #050505;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.illustration-header {
  text-align: center;
  max-width: 1100px;
  width: 100%;
  padding: 0 40px;
  margin-bottom: 50px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.illustration-badges {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.ill-badge {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(5px);
  transition: var(--transition);
}

.ill-badge:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.illustration-quote {
  font-size: 26px;
  font-weight: 600;
  color: #fff;
  line-height: 1.5;
  margin: 0 0 14px 0;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.5px;
}

.illustration-subtitle {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}

.illustration-container {
  width: 100%;
  max-width: 1200px;
  padding: 0 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.illustration-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, rgba(139, 92, 246, 0) 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 1;
}

.illustration-img {
  width: 100%;
  height: auto;
  max-width: 1300px;
  object-fit: contain;
  opacity: 0.72;
  /* Subtle, elegant silver-white lines that merge beautifully with the dark background */
  filter: brightness(1.05) contrast(1.08) drop-shadow(0 15px 40px rgba(0, 0, 0, 0.6));
  transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1), filter 0.5s cubic-bezier(0.19, 1, 0.22, 1), transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 2;
}

.illustration-img:hover {
  opacity: 0.88;
  /* Soft, smooth illumination on hover */
  transform: scale(1.005);
  filter: brightness(1.12) contrast(1.12) drop-shadow(0 20px 50px rgba(0, 0, 0, 0.7));
}

@media (max-width: 991px) {
  .illustration-quote {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .illustration-section {
    padding: 60px 0 30px 0;
  }

  .illustration-header {
    margin-bottom: 30px;
    padding: 0 20px;
  }

  .illustration-quote {
    font-size: 18px;
  }

  .illustration-subtitle {
    font-size: 12px;
  }

  .illustration-container {
    padding: 0 20px;
  }
}

/* Postcard Testimonial Styles */
.postcards-row {
  display: flex;
  overflow-x: auto;
  gap: 30px;
  padding: 24px 0 45px 0;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Highly visible, premium custom scrollbar for postcard scroller */
.postcards-row::-webkit-scrollbar {
  height: 10px;
  /* Thicker and much easier to grab/click */
}

.postcards-row::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.postcards-row::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  /* Glowing orange-to-purple gradient */
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 92, 42, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.postcards-row::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #ff7e54, #8b4aff);
  box-shadow: 0 0 15px rgba(255, 92, 42, 0.6);
}

.postcard-card {
  flex: 0 0 540px;
  height: 320px;
  background: linear-gradient(135deg, rgba(40, 40, 40, 0.85) 0%, rgba(22, 22, 22, 0.9) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  padding: 28px;
  scroll-snap-align: start;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  cursor: grab;
}

.postcard-card:active {
  cursor: grabbing;
}

.postcard-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 92, 42, 0.25);
  border-color: rgba(255, 92, 42, 0.5);
}

.postcard-left {
  width: 58%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 20px;
}

.postcard-text {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  margin: 0;
  font-style: italic;
}

.postcard-signature {
  font-family: 'Caveat', 'Dancing Script', cursive;
  font-size: 28px;
  color: #ffffff;
  margin-top: 14px;
  font-weight: 700;
  display: block;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.postcard-divider {
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
}

.postcard-divider::after {
  content: '';
  position: absolute;
  top: 10%;
  left: -2px;
  width: 5px;
  height: 80%;
  border-left: 1px dashed rgba(255, 255, 255, 0.15);
}

.postcard-right {
  width: 42%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-left: 24px;
  position: relative;
}

/* Postage Stamps */
.postage-stamp {
  position: absolute;
  top: 0;
  right: 0;
  width: 96px;
  height: 116px;
  padding: 4px;
  border: 2px dashed;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(3deg);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.postcard-card:hover .postage-stamp {
  transform: rotate(-3deg) scale(1.08);
}

.stamp-border {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  border: 1px solid;
  padding: 8px 4px;
  text-align: center;
}

.stamp-title {
  font-family: var(--font-heading);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.stamp-icon {
  font-size: 24px;
  margin: 6px 0;
}

.stamp-tag {
  font-family: var(--font-body);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Stamp Theme Colors */
.stamp-crimson {
  border-color: rgba(244, 63, 94, 0.85);
  color: #F43F5E;
  background: rgba(244, 63, 94, 0.08);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.2), inset 0 0 8px rgba(244, 63, 94, 0.1);
  filter: drop-shadow(0 0 6px rgba(244, 63, 94, 0.35));
}

.stamp-crimson .stamp-border {
  border-color: rgba(244, 63, 94, 0.3);
}

.stamp-indigo {
  border-color: rgba(99, 102, 241, 0.85);
  color: #818CF8;
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.2), inset 0 0 8px rgba(99, 102, 241, 0.1);
  filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.35));
}

.stamp-indigo .stamp-border {
  border-color: rgba(99, 102, 241, 0.3);
}

.stamp-teal {
  border-color: rgba(20, 184, 166, 0.85);
  color: #2DD4BF;
  background: rgba(20, 184, 166, 0.08);
  box-shadow: 0 0 12px rgba(20, 184, 166, 0.2), inset 0 0 8px rgba(20, 184, 166, 0.1);
  filter: drop-shadow(0 0 6px rgba(20, 184, 166, 0.35));
}

.stamp-teal .stamp-border {
  border-color: rgba(20, 184, 166, 0.3);
}

.stamp-gold {
  border-color: rgba(245, 158, 11, 0.85);
  color: #FBBF24;
  background: rgba(245, 158, 11, 0.08);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2), inset 0 0 8px rgba(245, 158, 11, 0.1);
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.35));
}

.stamp-gold .stamp-border {
  border-color: rgba(245, 158, 11, 0.3);
}

/* Address Lines */
.address-lines {
  margin-top: 136px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.addr-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  width: 100%;
}

@media (max-width: 768px) {
  .postcard-card {
    flex: 0 0 320px;
    height: auto;
    flex-direction: column;
    padding: 20px;
  }

  .postcard-left {
    width: 100%;
    padding-right: 0;
    margin-bottom: 20px;
  }

  .postcard-divider {
    width: 100%;
    height: 1px;
    margin-bottom: 20px;
  }

  .postcard-divider::after {
    display: none;
  }

  .postcard-right {
    width: 100%;
    padding-left: 0;
  }

  .postage-stamp {
    position: relative;
    width: 80px;
    height: 100px;
    margin-bottom: 15px;
    transform: none;
    align-self: flex-end;
  }

  .postcard-card:hover .postage-stamp {
    transform: scale(1.05);
  }

  .address-lines {
    margin-top: 0;
  }
}

/* Press/News Section Styles */
.press-section {
  padding: 85px 0 0 0; /* Align beautifully with vertical spacings */
  position: relative;
  z-index: 10;
}

.press-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 55px;
}

.press-tagline {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--primary);
  display: inline-block;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.press-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px 0;
  letter-spacing: -1px;
}

.press-title span.text-gradient {
  background: linear-gradient(135deg, #ff5c2a 0%, #ff8c69 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.press-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.press-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), 
              border-color 0.4s cubic-bezier(0.19, 1, 0.22, 1), 
              box-shadow 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.press-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 92, 42, 0.25);
  box-shadow: 0 20px 45px rgba(255, 92, 42, 0.08);
}

.press-card-body {
  margin-bottom: 25px;
}

.press-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.press-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
}

.badge-tech {
  background: rgba(255, 92, 42, 0.1);
  color: var(--primary);
}

.badge-biz {
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
}

.badge-culture {
  background: rgba(20, 184, 166, 0.1);
  color: #2dd4bf;
}

.press-date {
  font-size: 12px;
  color: var(--text-dim);
}

.press-card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  margin: 0 0 12px 0;
  letter-spacing: -0.3px;
  transition: color 0.3s ease;
}

.press-card:hover .press-card-title {
  color: var(--primary);
}

.press-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.press-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 18px;
  margin-top: auto;
}

.press-source {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.press-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: gap 0.3s ease, color 0.3s ease;
}

.press-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
}

.press-link i {
  font-size: 11px;
  transition: transform 0.3s ease;
}

.press-card:hover .press-link {
  color: #ff8c69;
}

.press-card:hover .press-link i {
  transform: translateX(4px);
}

/* Tablet & Mobile Media Queries for Press Section */
@media (max-width: 991px) {
  .press-section {
    padding: 65px 0 0 0;
  }
  
  .press-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
  
  .press-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .press-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .press-title {
    font-size: 30px;
  }
  
  .press-header {
    margin-bottom: 40px;
  }
}

/* App Download Banner Section Styles */
.download-section {
  padding: 85px 0;
  /* Luxurious spacious vertical padding above and below the banner section */
  position: relative;
  z-index: 10;
}

.download-banner-card {
  background: linear-gradient(135deg, #100006 0%, #3f0b1c 40%, #ea3c5c 75%, #ff5e36 100%);
  /* Deep gothic red/black merging to warm sunset pink-orange */
  border-radius: 24px;
  padding: 24px 50px;
  /* Reduced vertical padding for highly compact sleeker height */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  overflow: visible;
  /* Enabled overflow to allow modern 3D pop-out smartphone effect */
  box-shadow: 0 30px 60px rgba(234, 60, 92, 0.28);
  height: 230px;
  /* Highly compact desktop height */
}

/* Left: Unified Smartphones Overlap Wrapper */
.download-mockup-wrapper {
  flex: 0 0 220px;
  /* Slimmer spacing because the landscape couple background is set as full width */
  height: 100%;
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  z-index: 5;
}

/* Left: Dual CSS/Image Smartphone Mockups with overlapping 3D pop-out */
.download-dual-mockups {
  width: 220px;
  height: 100%;
  position: relative;
  align-self: stretch;
}

.phone-mockup {
  width: 130px;
  /* Slimmer phone width to gracefully fit standing character */
  height: 270px;
  position: absolute;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), z-index 0.6s ease;
}

.back-phone {
  left: -20px;
  top: -35px;
  /* Modern pop-out boundary offset */
  transform: rotate(-9deg);
  z-index: 1;
}

.front-phone {
  left: 70px;
  top: -8px;
  /* Layered overlaps */
  transform: rotate(5deg);
  z-index: 2;
  box-shadow: -10px 15px 30px rgba(0, 0, 0, 0.45);
}

/* Gorgeous absolute widescreen background illustration with couple, massive moon, and castles spanning full card width */
.download-banner-bg-img {
  position: absolute;
  left: -35px;
  /* Shifted to the left to stand perfectly behind and next to the smartphones */
  top: 0;
  /* Constrained strictly inside the card boundaries */
  height: 100%;
  /* Spans exactly the card's height of 230px */
  width: 72%;
  /* Reduced width to zoom out the image (showing more of the moon, castles, and bodies) */
  object-fit: cover;
  object-position: 30% 25%;
  /* Shift horizontal crop to align the couple and moon closer to the left */
  z-index: 2;
  /* Sits behind the phone frame overlaps and center text */
  pointer-events: none;
  /* Ignore hover interactions so they fall through to the card */
  border-radius: 24px 0 0 24px;
  /* Matches the left-side rounded corners of the card */

  /* Horizontal linear-gradient mask for perfect seamless merge on the right */
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 48%, rgba(0, 0, 0, 0.4) 80%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 48%, rgba(0, 0, 0, 0.4) 80%, rgba(0, 0, 0, 0) 100%);

  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Hover Interactions for phone mockups and background image */
.download-banner-card:hover .back-phone {
  transform: rotate(-5deg) translate(-8px, -4px) scale(1.02);
  z-index: 3;
}

.download-banner-card:hover .front-phone {
  transform: rotate(8deg) translate(8px, 4px) scale(1.02);
}

.download-banner-card:hover .download-banner-bg-img {
  transform: translateY(-4px) scale(1.02);
}

.phone-frame {
  width: 100%;
  height: 100%;
  background: #111115;
  border: 5px solid #232329;
  border-radius: 24px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), inset 0 0 8px rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.phone-notch {
  width: 45px;
  height: 10px;
  background: #232329;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.phone-screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 19px;
  display: block;
}

/* Center: Promo Information */
.download-promo {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #fff;
  text-align: left;
  z-index: 4;
  padding-left: 290px;
  /* Pushed further to the right to leave extensive room for the standing couple next to the phones! */
}

.download-promo h3 {
  font-size: 34px;
  /* Slightly smaller for sleek fit */
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.5px;
}

.download-promo h3 span.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, #fff0f5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.download-promo p {
  font-size: 14px;
  /* Sleeker, highly legible text */
  opacity: 0.95;
  margin: 0;
  max-width: 480px;
  line-height: 1.5;
}

/* Right: Download Buttons */
.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 0 0 190px;
  z-index: 4;
}

.store-btn {
  background: #0f0f11;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.store-btn:hover {
  background: #18181c;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.store-icon {
  font-size: 20px;
}

.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.store-sub {
  font-size: 8px;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.store-title {
  font-size: 12px;
  font-weight: 700;
}

.qr-btn {
  cursor: default;
}

.qr-btn:hover {
  transform: none;
  box-shadow: none;
  background: #0f0f11;
  border-color: rgba(255, 255, 255, 0.12);
}

/* Responsive Media Queries for App Download Section */
@media (max-width: 991px) {
  .download-banner-card {
    flex-direction: column;
    padding: 40px 30px;
    text-align: center;
    gap: 40px;
    height: auto;
    /* Fully auto height on tablet/mobile for stacking */
    overflow: visible;
  }

  .download-mockup-wrapper {
    flex: 0 0 280px;
    width: 290px;
    height: 280px;
    margin: 0 auto;
  }

  .download-dual-mockups {
    width: 170px;
    height: 100%;
  }

  .phone-mockup {
    width: 110px;
    height: 230px;
  }

  .back-phone {
    left: 0;
    top: 0;
    transform: rotate(-9deg);
  }

  .front-phone {
    left: 60px;
    top: 15px;
    transform: rotate(5deg);
  }

  .download-banner-bg-img {
    left: 50%;
    transform: translateX(-50%);
    top: -30px;
    height: 290px;
    width: 450px;
    object-fit: cover;
    object-position: center;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0) 100%);
  }

  .download-promo {
    text-align: center;
    align-items: center;
    padding-left: 0;
    /* Reset left padding to ensure perfect centering on tablet */
  }

  .download-promo p {
    margin: 0 auto;
  }

  .download-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 15px;
  }

  .store-btn {
    flex: 1 1 170px;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .download-banner-bg-img {
    display: none;
    /* Hide background blood moon graphic on tiny phone screens for clean, uncluttered layout */
  }

  .download-mockup-wrapper {
    width: 200px;
    flex: 0 0 240px;
    height: 240px;
  }

  .download-dual-mockups {
    width: 100%;
  }

  .phone-mockup {
    width: 110px;
    height: 230px;
  }

  .back-phone {
    left: 0;
    top: 0;
  }

  .front-phone {
    left: 60px;
    top: 10px;
  }

  .download-promo h3 {
    font-size: 26px;
  }

  .download-buttons {
    flex-direction: column;
    width: 100%;
  }

  .store-btn {
    width: 100%;
  }
}