:root {
  --primary: #FF3366;
  --primary-glow: rgba(255, 51, 102, 0.5);
  --secondary: #7000FF;
  --bg-dark: #050505;
  --bg-card: rgba(20, 20, 30, 0.6);
  --bg-card-hover: rgba(30, 30, 45, 0.8);
  --text-main: #ffffff;
  --text-muted: #a0a0b0;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.15);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(112, 0, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 51, 102, 0.1) 0%, transparent 40%);
  min-height: 100vh;
}

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

.text-gradient {
  background: linear-gradient(135deg, #FF6B6B, #FF3366, #9B33FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

a:hover {
  opacity: 0.9;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(5, 5, 5, 0.7);
  border-bottom: 1px solid var(--glass-border);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  outline: none;
}

.nav-select:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-cta-small {
  background: linear-gradient(135deg, var(--primary), #FF6B6B);
  color: white !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(233, 64, 87, 0.3);
}

.btn-cta-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(233, 64, 87, 0.4);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(112, 0, 255, 0.2), transparent 70%);
  filter: blur(80px);
  z-index: -1;
}

.hero-content {
  flex: 1;
  /* Removed max-width to allow better centering balance with visual */
  padding-right: 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
  line-height: 1.7;
}

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

.store-badge {
  height: 56px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.store-badge i {
  font-size: 1.5rem;
  margin-right: 12px;
}

.store-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--glass-highlight);
  transform: translateY(-2px);
}

/* Hero Visual (Mascot) */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Feature Carousel Section */
.feature-section {
  padding: 2rem 0;
  overflow-x: hidden;
  position: relative;
  /* Context for arrows */
}

/* Container Wrapper for arrows */
.carousel-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.feature-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 30px;
  padding: 20px 5%;
  scrollbar-width: none;
  width: 100%;
  scroll-behavior: smooth;
}

.feature-carousel::-webkit-scrollbar {
  display: none;
}

/* Carousel Navigation Arrows */
.feature-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s ease;
  outline: none;
}

.feature-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.nav-prev {
  left: 10px;
}

.nav-next {
  right: 10px;
}

/* Hide arrows on desktop if not needed, but safe to keep for better UX */
/* Hide arrows on desktop if not needed, but safe to keep for better UX */
@media (min-width: 1025px) {
  .feature-nav-btn {
    display: none !important;
    /* User requested to hide arrows on desktop */
  }

  .carousel-wrapper {
    justify-content: center;
    /* Center the carousel itself */
  }

  .feature-carousel {
    justify-content: center;
    /* Center items within the carousel */
    width: auto;
    /* Allow it to shrink to content width */
  }
}

.feature-column {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-text {
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  font-size: 0.9rem;
  margin-top: 1.5rem;
  line-height: 1.4;
  font-family: 'Inter', sans-serif;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

/* Feed Animation */
.phone-frame {
  width: 100%;
  aspect-ratio: 9/19;
  background: #000;
  border-radius: 30px;
  border: 8px solid #333;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  mask-image: radial-gradient(white, black);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.feed-track {
  width: 100%;
  height: 200%;
  display: flex;
  flex-direction: column;
  animation: scrollFeed 8s infinite ease-in-out;
}

/* Stagger animations */
.delay-1 .feed-track {
  animation-delay: 0s;
}

.delay-2 .feed-track {
  animation-delay: -2s;
}

.delay-3 .feed-track {
  animation-delay: -5s;
}

.feed-item {
  width: 100%;
  height: 50%;
  position: relative;
}

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

@keyframes scrollFeed {

  0%,
  45% {
    transform: translateY(0);
  }

  50%,
  95% {
    transform: translateY(-50%);
  }

  100% {
    transform: translateY(0);
  }
}

/* Mascot Styles */
.mascot-searching {
  max-height: 600px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(112, 0, 255, 0.2));
}

.mascot-teaching {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 180px;
  width: auto;
  z-index: 10;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
  opacity: 0.9;
}

/* Trending Section */
.trending-section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 0;
  /* Remove margin from title itself, handle in container */
}

.trending-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 3rem;
}

.mascot-happy {
  height: 120px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(255, 51, 102, 0.2));
  transform: rotate(10deg);
}

@media (max-width: 768px) {
  .trending-header {
    flex-direction: column;
    gap: 10px;
  }
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.trending-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
  gap: 16px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  /* Ensure positioning context */
  overflow: hidden;
  /* Clip the image */
}

.trending-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  z-index: 0;
  transition: all 0.5s ease;
  filter: grayscale(100%);
  /* Optional: makes it cleaner */
}

.trending-card:hover .trending-bg-img {
  opacity: 0.3;
  transform: scale(1.05);
}

.trending-rank,
.trending-info {
  position: relative;
  z-index: 2;
  /* Ensure content is above image */
}

.trending-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px -10px rgba(255, 51, 102, 0.2);
}

.trending-rank {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.1);
  width: 40px;
}

.trending-info h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.trending-tag {
  font-size: 0.8rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Features/Vibe Check Section */
.vibe-section {
  padding: 120px 0;
  background: linear-gradient(to bottom, transparent, rgba(112, 0, 255, 0.05), transparent);
}

/* Anime Page - Verdict */
.anime-header {
  padding: 120px 0 60px;
  background: radial-gradient(circle at center top, rgba(233, 64, 87, 0.15), transparent 70%);
}

.anime-header .container {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.header-content {
  flex: 1;
}

.header-visual {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

.mascot-teaching-header {
  height: 420px;
  width: auto;
  filter: drop-shadow(0 0 20px rgba(255, 51, 102, 0.2));
  animation: floatMascot 6s ease-in-out infinite;
}

@keyframes floatMascot {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 768px) {
  .anime-header .container.mobile-stack-column {
    flex-direction: column;
    text-align: center;
  }

  .header-visual {
    margin-top: 20px;
  }

  .mascot-teaching-header {
    height: 250px;
  }
}

.anime-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.breadcrumbs {
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

/* Verdict Card New */
.verdict-box {
  background: rgba(20, 20, 25, 0.8);
  border: 1px solid rgba(255, 51, 102, 0.3);
  border-radius: 24px;
  padding: 40px;
  max-width: 900px;
  margin: 0 auto 60px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(255, 51, 102, 0.1);
}

.verdict-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
}

.verdict-label {
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 16px;
  display: block;
}

.verdict-text {
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.4;
}

/* Recommendations Grid */
.rec-grid-wrapper {
  margin-top: 40px;
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.rec-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  position: relative;
  display: block;
}

.rec-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--glass-highlight);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.rec-img-wrap {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
}

.rec-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.rec-card:hover .rec-img {
  transform: scale(1.1);
}

.rec-content {
  padding: 24px;
  background: linear-gradient(to bottom, rgba(30, 30, 40, 0.95), rgba(20, 20, 30, 1));
}

.rec-title {
  font-size: 1.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.match-reason {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.match-reason::before {
  content: '⚡';
  font-size: 0.8rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 80px 0 40px;
  color: var(--text-muted);
  border-top: 1px solid var(--glass-border);
  margin-top: 80px;
}

/* Mobile */
@media (max-width: 1024px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .hero-visual {
    margin-top: 2rem;
    width: 100%;
  }

  .mascot-searching {
    max-height: 400px;
  }

  .feature-carousel {
    padding-left: 24px;
    /* Align with container padding */
  }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding-top: 100px;
    text-align: center;
    justify-content: flex-start;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-content {
    margin-bottom: 20px;
  }

  .hero-actions {
    justify-content: center;
  }

  .mascot-searching {
    max-height: 350px;
  }

  /* Carousel Item Sizing for Mobile */
  /* Carousel Item Sizing for Mobile */
  .feature-column {
    width: auto;
    max-width: 85vw;
  }

  .phone-frame {
    height: 60vh;
    width: auto;
    aspect-ratio: 9/19;
    margin: 0 auto;
  }

  .feature-carousel {
    gap: 16px;
    padding: 20px 50px;
    /* Space for arrows */
  }

  .rec-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .mascot-teaching {
    height: 120px;
    right: -10px;
  }
}

/* Animated Background Grid */
.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -10;
  pointer-events: none;
  background: #050505;
}

.anime-bg-grid {
  width: 120%;
  height: 140%;
  position: absolute;
  top: -20%;
  left: -10%;
  transform: rotate(-11deg) scale(1.1);
  display: flex;
  justify-content: center;
  gap: 2vw;
  /* Layout Gap */
  opacity: 0.45;
  /* will-change: transform; - Removed for performance */
}

/* Animation removed */

.bg-grid-track {
  display: flex;
  justify-content: center;
  gap: 2vw;
  /* Use vw for responsive gap */
  width: 100%;
}

.bg-grid-column {
  display: flex;
  flex-direction: column;
  gap: 2vw;
  width: 22vw;
  min-width: 200px;
  /* Floating animation removed */
}

/* Stagger floating for organic feel */
.bg-grid-column:nth-child(1) {
  margin-top: -50px;
}

.bg-grid-column:nth-child(2) {
  margin-top: 50px;
}

.bg-grid-column:nth-child(3) {
  margin-top: -80px;
}

.bg-grid-column:nth-child(4) {
  margin-top: 20px;
}

.bg-grid-column:nth-child(5) {
  margin-top: -40px;
}

.bg-grid-column:nth-child(6) {
  margin-top: 60px;
}

.bg-grid-column:nth-child(7) {
  margin-top: -20px;
}

@media (max-width: 768px) {
  .bg-grid-column {
    width: 32vw;
    min-width: auto;
    /* Slightly faster/smaller float on mobile or keep same */
    /* animation-duration: 8s !important; - Removed */
  }

  /* Hide outer columns */
  .bg-grid-column:nth-child(1),
  .bg-grid-column:nth-child(2),
  .bg-grid-column:nth-child(6),
  .bg-grid-column:nth-child(7) {
    display: none;
  }

  .anime-bg-grid {
    width: 100%;
    height: 120%;
    left: 0;
    top: -10%;
    transform: rotate(-5deg) scale(1.1);
    gap: 1vw;
  }

  .bg-grid-track {
    gap: 1vw;
  }

  /* Reset top margins for mobile to avoid gaps */
  .bg-grid-column:nth-child(3) {
    margin-top: -20px;
  }

  .bg-grid-column:nth-child(4) {
    margin-top: 20px;
  }

  .bg-grid-column:nth-child(5) {
    margin-top: 0px;
  }
}

.bg-grid-item {
  width: 100%;
  aspect-ratio: 9/16;
  /* STRICT 9:16 FORMAT */
  border-radius: 12px;
  overflow: hidden;
  /* box-shadow removed for scroll performance */
  background: #111;
  flex-shrink: 0;
  /* PREVENT SQUASHING */
  min-height: 300px;
  /* Fallback */
}

.bg-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* CROPS TO FILL 9:16 */
  filter: grayscale(20%) brightness(0.65);
  display: block;
  /* Remove inline spacing gap */
}

/* Unused keyframes removed */

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(10, 10, 10, 0.5) 0%, rgba(5, 5, 5, 0.98) 85%);
  backdrop-filter: blur(1px);
  z-index: 1;
}

/* Adjust root styles to be transparent where needed */
body {
  background-color: transparent !important;
  background-image: none !important;
}