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

:root {
    --gradient-start: #8fe1f6;
    --gradient-end: #7a0df4;
    
    --primary: #7a0df4;
    --primary-dark: #5a0bbe;
    --primary-darker: #3f008f;
    
    --text-primary: #2d2d3a;
    --text-secondary: #6b6b7d;
    --text-light: #9999aa;
    --bg-light: #fafbff;
    --bg-card: #ffffff;
    --bg-soft: #f5f3ff;
    --border-light: #e8e5ff;
    --shadow-color: rgba(122, 13, 244, 0.1);
    
    --primary-gradient: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    --primary-gradient-reverse: linear-gradient(135deg, var(--gradient-end) 0%, var(--gradient-start) 100%);
    --dark-gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-darker) 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.hero-wrapper {
    overflow: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(122, 13, 244, 0.2));
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-download {
    background: var(--primary-gradient);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn-download:hover .btn-icon {
    transform: translateY(2px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 4rem 2rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);  
    opacity: 0.08;  
    animation: float-slow 10s infinite ease-in-out;
    z-index: 0;
    pointer-events: none;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--gradient-start);
    top: -200px;
    right: -200px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-end);
    bottom: -100px;
    left: -100px;
    animation-delay: 10s;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 5s;
    opacity: 0.2;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-heart,
.floating-star,
.floating-book,
.floating-feather,
.floating-flower,
.floating-butterfly,
.floating-rose,
.floating-sparkles,
.floating-diamond,
.floating-kiss,
.floating-moon,    
.floating-coffee, 
.floating-rainbow,  
.floating-wine  {
    position: absolute;
    font-size: 2rem;
    opacity: 0.25;
    animation: float 15s infinite linear;
}

.floating-heart::before { content: '💕'; }
.floating-star::before { content: '✨'; }
.floating-book::before { content: '📖'; }
.floating-feather::before { content: '🪶'; }
.floating-flower::before { content: '🌸'; }
.floating-butterfly::before { content: '🦋'; }
.floating-rose::before { content: '🌹'; }
.floating-sparkles::before { content: '✨'; }
.floating-diamond::before { content: '💎'; }
.floating-kiss::before { content: '💋'; }
.floating-moon::before { content: '🌙'; }
.floating-coffee::before { content: '☕'; }
.floating-rainbow::before { content: '🌈'; }
.floating-wine::before { content: '🍷'; }

.floating-heart {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-star {
    top: 50%;
    right: 15%;
    animation-delay: 5s;
}

.floating-book {
    bottom: 30%;
    left: 20%;
    animation-delay: 10s;
}

.floating-feather {
    top: 30%;
    right: 25%;
    animation-delay: 15s;
}

.floating-flower {
    top: 45%;
    left: 30%;
    animation-delay: 2s;
}

.floating-butterfly {
    bottom: 25%;
    right: 20%;
    animation-delay: 8s;
}

.floating-rose {
    top: 60%;
    left: 15%;
    animation-delay: 12s;
}

.floating-sparkles {
    bottom: 40%;
    right: 30%;
    animation-delay: 4s;
}

.floating-diamond {
    top: 40%;
    left: 50%;
    animation-delay: 6s;
}

.floating-kiss {
    bottom: 20%;
    left: 35%;
    animation-delay: 14s;
}

.floating-moon {
    top: 10%;    
    right: 5%;  
    animation-delay: 3s; 
}
.floating-coffee {
    top: 15%;  
    right: 10%;  
    animation-delay: 6s;
}
.floating-rainbow {
    top: 50%;   
    right: 8%; 
    animation-delay: 9s;
}

.floating-wine {
    bottom: 15%; 
    right: 6%; 
    animation-delay: 12s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(3deg); }
    50% { transform: translateY(0) rotate(-3deg); }
    75% { transform: translateY(20px) rotate(2deg); }
}

@keyframes float-diagonal {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -15px) rotate(90deg); }
    50% { transform: translate(-10px, -20px) rotate(180deg); }
    75% { transform: translate(5px, 10px) rotate(270deg); }
}
.floating-butterfly,
.floating-sparkles {
    animation: float-diagonal 18s infinite ease-in-out;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}
.floating-rose,
.floating-crown {
    animation: float-slow 20s infinite ease-in-out;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(143, 225, 246, 0.1);
    border: 1px solid rgba(143, 225, 246, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    margin-bottom: 1.5rem;
    animation: pulse-soft 3s infinite ease-in-out;
}

@keyframes pulse-soft {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.9; }
}

.sparkle {
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
}

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

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px var(--shadow-color);
    position: relative;
    overflow: visible;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px var(--shadow-color);
}

.btn-primary svg {
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(5px);
}

.btn-secondary {
    background: rgba(122, 13, 244, 0.1);
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: visible;
}

.btn-secondary:hover {
    background: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.mood-icons {
    display: inline-flex;
    gap: 0.25rem;
    animation: bounce-soft 2s infinite ease-in-out;
}

@keyframes bounce-soft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Hero Visual */
.hero-visual {
    position: relative;
}

/* Phone mockup - Main dimensions: 340x680px */
.phone-mockup {
    width: 340px;
    height: 680px;
    margin: 0 auto;
    position: relative;
    animation: float-phone 10s infinite ease-in-out;
}

@keyframes float-phone {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.phone-frame {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d3a 100%);
    border-radius: 45px;
    padding: 12px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 80px rgba(122, 13, 244, 0.2),
        inset 0 2px 2px rgba(255, 255, 255, 0.1);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: black;
    border-radius: 33px;
    overflow: hidden;
    position: relative;
}

.phone-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Remove unused phone header styles */

.mini-book-covers {
    height: calc(100% - 60px);
    overflow-y: auto;
    overflow-x: hidden;
}

.waterfall {
    display: flex;
    gap: 10px;
    padding: 15px;
}

.waterfall-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini-cover {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    transform-origin: center;
}

.mini-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mini-cover:hover::before {
    opacity: 1;
}

.cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    padding: 1rem;
    color: white;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.mini-cover:hover .cover-overlay {
    opacity: 1;
    transform: translateY(0);
}

.cover-overlay h5 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cover-overlay p {
    margin: 0;
    font-size: 0.75rem;
    opacity: 0.9;
}

.mini-cover:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 20px rgba(122, 13, 244, 0.2);
}

.mini-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mini-cover.tall {
    height: 180px;
}

.mini-cover.short {
    height: 140px;
}

.mini-cover:not(.tall):not(.short) {
    height: 160px;
}

.mini-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: pulse-badge 2s infinite;
    z-index: 2;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Waterfall scrollbar styling */
.mini-book-covers::-webkit-scrollbar {
    width: 6px;
}

.mini-book-covers::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.mini-book-covers::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.mini-book-covers::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.floating-reviews {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.review-bubble {
    position: absolute;
    background: white;
    padding: 1rem;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    animation: float-review 15s infinite ease-in-out;
}

.bubble-1 {
    top: 20%;
    right: -20px;
    animation-delay: 0s;
}

.bubble-2 {
    bottom: 30%;
    left: -20px;
    animation-delay: 7s;
}

@keyframes float-review {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

.review-stars {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.review-bubble p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Popular Categories */
.popular-categories {
    padding: 4rem 2rem;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: var(--dark-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.mood-selector {
    display: flex;
    justify-content: center;
    gap: 0.5rem;  /* 减小间距 */
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 800px;
}

.mood-btn {
    background: var(--bg-soft);
    border: none;  /* Remove border to eliminate invisible gaps */
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    font-family: inherit;
}

.mood-btn:hover {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.mood-btn.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.mood-emoji {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.mood-btn:hover .mood-emoji {
    transform: scale(1.2) rotate(10deg);
}

/* Book Showcase */
.book-showcase {
    padding: 4rem 2rem;
    background: var(--bg-light);
}

.book-showcase h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 700;
}
.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.book-showcase .section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.books-carousel {
    position: relative;
    margin-top: 3rem;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0 2rem;
    scrollbar-width: none;
}

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

/* Book showcase cards */
.book-card {
    flex: 0 0 280px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(122, 13, 244, 0.15);
}

.book-cover {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Book covers with proper transition */
.book-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;  
    overflow: hidden;
    transition: transform 0.3s ease;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 3 / 4) {
    .book-cover {
        padding-top: 133.33%;  /* 3:4 aspect ratio */
    }
    
    .book-cover img {
        position: absolute;
        top: 0;
        left: 0;
    }
}

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

.book-cover-content {
    position: relative;
    z-index: 1;
    color: white;
}

.book-ornament {
    font-size: 2rem;
    opacity: 0.8;
    margin-bottom: 1rem;
    display: block;
}

.book-title-on-cover {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Georgia', serif;
}

.book-author-on-cover {
    font-size: 0.9rem;
    opacity: 0.9;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Book covers clean styles */
.book-card:hover .book-cover {
    transform: scale(1.02);
}

.book-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.book-badge.hot {
    background: rgba(255, 107, 107, 0.9);
    color: white;
}

.book-badge.new {
    background: rgba(143, 225, 246, 0.9);
    color: var(--primary-darker);
}

.book-badge.trending {
    background: rgba(240, 147, 251, 0.9);
    color: white;
}

.book-badge.pick {
    background: rgba(122, 13, 244, 0.9);
    color: white;
}

.book-info {
    padding: 1.5rem;
}

.book-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.book-author {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.book-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.rating {
    color: #ffa500;
}

.book-preview {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

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

.carousel-btn.prev {
    left: -24px;
}

.carousel-btn.next {
    right: -24px;
}

/* Features */
.features {
    padding: 5rem 2rem;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-light);
    box-shadow: 0 12px 30px var(--shadow-color);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* App Download */
.app-download {
    padding: 5rem 2rem;
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.app-download::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.download-text h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.download-text p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.store-btn {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.store-button {
    background: #000;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 150px;
}

.store-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

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

.store-subtitle {
    font-size: 0.65rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.store-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.store-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.app-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.download-visual {
    position: relative;
}

.app-mockup {
    width: 320px;
    height: 640px;
    background: #1a1a2e;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        inset 0 2px 2px rgba(255, 255, 255, 0.1);
    animation: float-phone 10s infinite ease-in-out;
}

.app-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 33px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-header {
    padding: 1rem;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
    text-align: center;
}

.app-logo {
    height: 28px;
    width: auto;
}

.app-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.featured-book {
    padding: 2rem;
    border-radius: 16px;
    color: white;
    text-align: center;
}

.featured-book h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.featured-book p {
    opacity: 0.9;
}

.app-book-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.app-book {
    aspect-ratio: 3/4;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.app-book:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    background: var(--text-primary);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr;  /* Single column */
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: left;  /* Left-align overall, but we'll center socials separately */
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;  /* Tighter gap between logo and slogan */
    text-align: left;  /* Explicit left alignment */
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo-icon {
    width: 36px;
    height: 36px;
    filter: none;
    opacity: 1;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 800px;  /* Wider max-width to allow the longer text to flow naturally without centering */
    margin: 0;  /* No extra margins to keep it snug below the name */
}

.social-links {
    display: flex;
    gap: 1.5rem;  /* Slightly larger gap for breathing room */
    justify-content: center;
    margin-top: 1rem;
}

.social-links a {
    width: 48px;  /* Slightly larger for visibility */
    height: 48px;
    background: rgba(122, 13, 244, 0.15);  /* Softer purple tint instead of white */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;  /* Ensure icons are white */
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);  /* Subtle shadow for depth */
}

.social-links a:hover {
    background: var(--primary);  /* Full purple on hover */
    transform: translateY(-3px) scale(1.1);  /* Slight pop for engagement */
    box-shadow: 0 4px 15px rgba(122, 13, 244, 0.3);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .download-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
    
/* Hide mobile floating elements for cleaner design */
@media (max-width: 1024px) {
    .download-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .download-visual {
        display: none;
    }
    
    /* Hide more floating elements on mobile for performance */
    .floating-wine,
    .floating-rainbow,
    .floating-coffee,
    .floating-feather,
    .floating-diamond,
    .floating-moon,
    .floating-kiss,
    .floating-butterfly {
        display: none;
    }
    
    /* Reduce size of remaining emojis on mobile */
    .floating-heart,
    .floating-star,
    .floating-book,
    .floating-rose,
    .floating-sparkles,
    .floating-flower {
        font-size: 1.5rem;
        opacity: 0.3;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .mood-selector {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .carousel-btn {
        display: none;
    }
}

/* Add subtle sparkle effect to buttons on hover */
@keyframes sparkle-burst {
    0% { 
        transform: scale(0) rotate(0deg); 
        opacity: 1; 
    }
    100% { 
        transform: scale(1.5) rotate(180deg); 
        opacity: 0; 
    }
}

.sparkle-effect {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.5rem;
    pointer-events: none;
    animation: sparkle-burst 0.6s ease-out forwards;
}

/* Add glow effect to phone mockup */
.phone-mockup::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at center, rgba(143, 225, 246, 0.3) 0%, transparent 70%);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.phone-mockup:hover::before {
    opacity: 1;
}

/* Add heart pulse animation to mood buttons */
@keyframes heart-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.mood-btn:hover .mood-emoji {
    animation: heart-pulse 0.5s ease;
}

/* Ensure buttons don't overflow on mobile */
@media (max-width: 480px) {
    .download-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .store-button {
        justify-content: center;
    }
}


.social-links-container {
    display: flex;
    justify-content: center;  /* Center social icons */
    align-items: center;
    margin-top: 1.5rem;  /* Adjusted space below brand */
    padding: 1rem 0;
}





main.page-contact {
min-height: calc(100vh - 80px);  / Full viewport minus header */
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 2rem;
}

main.page-contact .contact-section {
width: 100%;
max-width: 900px;
margin: 0 auto;
padding: 5rem 3rem;
display: flex;
flex-direction: column;
justify-content: center;
background: white;
border-radius: 30px;
box-shadow:
0 20px 60px rgba(122, 13, 244, 0.08),
0 0 120px rgba(143, 225, 246, 0.1);
position: relative;
overflow: hidden;
}

main.page-contact .contact-section::before {
content: '';
position: absolute;
top: -50%;
right: -30%;
width: 500px;
height: 500px;
background: radial-gradient(circle, rgba(143, 225, 246, 0.15) 0%, transparent 70%);
border-radius: 50%;
z-index: 0;
}

main.page-contact .contact-section::after {
content: '';
position: absolute;
bottom: -40%;
left: -20%;
width: 400px;
height: 400px;
background: radial-gradient(circle, rgba(240, 147, 251, 0.12) 0%, transparent 70%);
border-radius: 50%;
z-index: 0;
}

main.page-contact .contact-section > * {
position: relative;
z-index: 1;
}

main.page-contact .contact-section h1 {
font-size: 3rem;
margin-bottom: 2.5rem;
background: var(--primary-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
text-align: center;
font-weight: 800;
letter-spacing: -0.5px;
}

main.page-contact .contact-section h1::after {
content: '';
display: block;
width: 80px;
height: 4px;
background: var(--primary-gradient);
margin: 1.5rem auto 0;
border-radius: 2px;
}

main.page-contact .contact-section p {
font-size: 1.2rem;
color: var(--text-secondary);
margin-bottom: 2rem;
line-height: 1.9;
text-align: center;
max-width: 650px;
margin-left: auto;
margin-right: auto;
}

main.page-contact .contact-section p:first-of-type {
font-size: 1.3rem;
color: var(--text-primary);
margin-bottom: 3rem;
font-weight: 300;
}

main.page-contact .contact-section p:nth-of-type(2) {
font-size: 1.4rem;
font-weight: 600;
color: var(--primary);
padding: 1.5rem 2.5rem;
background: var(--bg-soft);
border-radius: 50px;
display: inline-block;
margin: 0 auto 3rem;
transition: all 0.3s ease;
cursor: default;
border: 2px solid transparent;
}

main.page-contact .contact-section p:nth-of-type(2):hover {
background: white;
border-color: var(--primary);
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(122, 13, 244, 0.15);
}

main.page-contact .contact-section p:last-of-type {
font-size: 1.1rem;
color: var(--text-light);
font-style: italic;
position: relative;
padding-left: 2rem;
}

main.page-contact .contact-section p:last-of-type::before {
content: '✨';
position: absolute;
left: 0;
top: 0;
font-size: 1.2rem;
}

@keyframes float-hearts {
0%, 100% {
transform: translateY(0) rotate(-5deg);
opacity: 0.3;
}
50% {
transform: translateY(-20px) rotate(5deg);
opacity: 0.6;
}
}

main.page-contact .contact-section h1::before {
content: '💌';
position: absolute;
top: -30px;
right: -50px;
font-size: 2.5rem;
opacity: 0.3;
animation: float-hearts 4s infinite ease-in-out;
}

@media (max-width: 768px) {
main.page-contact {
min-height: calc(100vh - 70px);
}

main.page-contact .contact-section {
margin: 2rem auto;
padding: 3rem 2rem;
}

main.page-contact .contact-section h1 {
font-size: 2.2rem;
}

main.page-contact .contact-section p:first-of-type {
font-size: 1.1rem;
}

main.page-contact .contact-section p:nth-of-type(2) {
font-size: 1.2rem;
padding: 1.2rem 2rem;
}
}


main.page-about {
    min-height: calc(100vh - 80px);  
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

main.page-about .about-section {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    border-radius: 30px;
    box-shadow:
        0 20px 60px rgba(122, 13, 244, 0.08),
        0 0 120px rgba(143, 225, 246, 0.1);
    position: relative;
    overflow: hidden;
}

main.page-about .about-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(143, 225, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

main.page-about .about-section::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(240, 147, 251, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

main.page-about .about-section > * {
    position: relative;
    z-index: 1;
}

main.page-about .about-section h1 {
    font-size: 3rem;
    margin-bottom: 2.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    font-weight: 800;
    letter-spacing: -0.5px;
}

main.page-about .about-section h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

main.page-about .about-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.9;
    text-align: left;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

main.page-about .about-section p.welcome {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
    font-weight: 300;
    text-align: left;
}

main.page-about .about-section h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: left;
    position: relative;
}

main.page-about .about-section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-gradient);
    margin-top: 0.75rem;
    border-radius: 2px;
}

main.page-about .about-section ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0 0 2rem;
    text-align: left;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

main.page-about .about-section ul li {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
    line-height: 1.8;
}

main.page-about .about-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 1.5rem;
}

main.page-about .about-section p.vision {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-style: italic;
    margin-top: 2rem;
    text-align: left;
}

@keyframes float-story {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

main.page-about .about-section h1::before {
    content: '📖';
    position: absolute;
    top: -30px;
    right: -50px;
    font-size: 2.5rem;
    opacity: 0.3;
    animation: float-story 4s infinite ease-in-out;
}

@media (max-width: 768px) {
    main.page-about {
        min-height: calc(100vh - 70px);
    }

    main.page-about .about-section {
        margin: 2rem auto;
        padding: 3rem 2rem;
    }

    main.page-about .about-section h1 {
        font-size: 2.2rem;
    }

    main.page-about .about-section p,
    main.page-about .about-section p.welcome,
    main.page-about .about-section ul li {
        font-size: 1.1rem;
        text-align: left;
    }

    main.page-about .about-section h2 {
        font-size: 1.8rem;
    }
}

















main.page-features::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(122, 13, 244, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(122, 13, 244, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}/* Features Page - Feminine Design */
main.page-features {
    min-height: calc(100vh - 80px);
    background: linear-gradient(180deg, #fef6fb 0%, #f8f4ff 50%, #fef6fb 100%);
    overflow: hidden;
    position: relative;
}

main.page-features::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 182, 193, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(218, 112, 214, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 218, 185, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

main.page-features::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(122, 13, 244, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(122, 13, 244, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

main.page-features .features-hero {
    padding: 1.5rem 1.5rem 2rem;
    position: relative;
}

main.page-features .features-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Header Section */
main.page-features .features-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    padding: 1.5rem;
    background: white;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(122, 13, 244, 0.08);
}

main.page-features .features-header::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b9d 0%, #feca57 100%);
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(30px);
}

main.page-features .sparkle-decoration {
    font-size: 3rem;
    animation: sparkle-rotate 4s infinite ease-in-out;
    display: inline-block;
    margin-bottom: 1rem;
}

@keyframes sparkle-rotate {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
}

main.page-features .features-title {
    margin-bottom: 1rem;
}

main.page-features .title-small {
    display: block;
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

main.page-features .title-large {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 25%, #a8397f 50%, #7a0df4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

main.page-features .features-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Category Sections */
main.page-features .feature-categories {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

main.page-features .category-section {
    position: relative;
}

main.page-features .category-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

main.page-features .category-icon {
    font-size: 3rem;
    display: inline-block;
    margin-bottom: 1rem;
    animation: float-gentle 3s infinite ease-in-out;
}

@keyframes float-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

main.page-features .category-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

main.page-features .category-header h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

main.page-features .category-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 0.75rem;
    opacity: 0.8;
}

/* Bento Grid Layout */
main.page-features .features-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    grid-auto-rows: minmax(180px, auto);
}

main.page-features .feature-box {
    background: white;
    border-radius: 20px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(122, 13, 244, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(122, 13, 244, 0.08);
}

main.page-features .feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.05) 0%, rgba(122, 13, 244, 0.05) 100%);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

main.page-features .feature-box.large {
    grid-column: span 2;
    grid-row: span 2;
}

main.page-features .feature-box.wide {
    grid-column: span 2;
}

main.page-features .feature-box:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 15px 35px rgba(122, 13, 244, 0.12);
    border-color: rgba(122, 13, 244, 0.2);
}

main.page-features .feature-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(143, 225, 246, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

main.page-features .feature-glow.pink {
    background: radial-gradient(circle, rgba(255, 107, 157, 0.15) 0%, transparent 60%);
}

main.page-features .feature-box:hover .feature-glow {
    opacity: 1;
}

main.page-features .feature-emoji {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: inline-block;
    animation: emoji-bounce 2s infinite ease-in-out;
    animation-delay: var(--delay, 0s);
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.1) 0%, rgba(218, 112, 214, 0.1) 100%);
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

main.page-features .feature-box:nth-child(1) .feature-emoji { --delay: 0s; }
main.page-features .feature-box:nth-child(2) .feature-emoji { --delay: 0.2s; }
main.page-features .feature-box:nth-child(3) .feature-emoji { --delay: 0.4s; }
main.page-features .feature-box:nth-child(4) .feature-emoji { --delay: 0.6s; }
main.page-features .feature-box:nth-child(5) .feature-emoji { --delay: 0.8s; }
main.page-features .feature-box:nth-child(6) .feature-emoji { --delay: 1s; }

@keyframes emoji-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

main.page-features .feature-box h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.4;
}

main.page-features .feature-box p {
    color: var(--text-secondary);
    line-height: 1.5;
    flex-grow: 1;
    font-size: 0.9rem;
}

main.page-features .feature-tag {
    display: inline-block;
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    color: #6c5ce7;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.75rem;
    box-shadow: 0 2px 8px rgba(253, 203, 110, 0.3);
}

main.page-features .feature-avatars {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.75rem;
}

main.page-features .feature-avatars .avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--bg-soft);
    border-radius: 50%;
    font-size: 0.9rem;
    border: 2px solid white;
    margin-left: -8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

main.page-features .feature-avatars .avatar:first-child {
    margin-left: 0;
}

main.page-features .feature-avatars .text {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

/* Special decorations for specific boxes */
main.page-features .feature-box.large::after {
    content: '⭐';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.2rem;
    opacity: 0.3;
    animation: sparkle 3s infinite;
}

main.page-features .feature-box.wide::after {
    content: '🌟';
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 1rem;
    opacity: 0.2;
}

/* Stats styling */
main.page-features .feature-stats {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    padding: 0.5rem;
    background: rgba(122, 13, 244, 0.05);
    border-radius: 12px;
    justify-content: center;
}

main.page-features .feature-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(255, 107, 157, 0.3);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* CTA Section */
main.page-features .features-cta {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(122, 13, 244, 0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(122, 13, 244, 0.1);
}

main.page-features .features-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

main.page-features .features-cta::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

main.page-features .features-cta h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

main.page-features .cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

main.page-features .cta-primary,
main.page-features .cta-secondary {
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

main.page-features .cta-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 10px 25px rgba(122, 13, 244, 0.3);
}

main.page-features .cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(122, 13, 244, 0.4);
}

main.page-features .cta-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--border-light);
}

main.page-features .cta-secondary:hover {
    background: var(--bg-soft);
    transform: translateY(-2px);
}

main.page-features .cta-sparkle,
main.page-features .cta-heart {
    font-size: 1.2rem;
    animation: sparkle-pulse 1.5s infinite;
}

@keyframes sparkle-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

/* Floating Decorations */
main.page-features .floating-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

main.page-features .float-element {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.4;
    animation: float-around 15s infinite ease-in-out;
}

main.page-features .heart-1 {
    top: 5%;
    left: 3%;
    animation-delay: 0s;
}

main.page-features .star-1 {
    top: 15%;
    right: 5%;
    animation-delay: 3s;
}

main.page-features .butterfly-1 {
    bottom: 15%;
    left: 8%;
    animation-delay: 6s;
}

main.page-features .flower-1 {
    bottom: 25%;
    right: 3%;
    animation-delay: 9s;
}

main.page-features .sparkle-1 {
    top: 45%;
    left: 48%;
    animation-delay: 12s;
}

@keyframes float-around {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(50px, -30px) rotate(90deg); }
    50% { transform: translate(-30px, 20px) rotate(180deg); }
    75% { transform: translate(20px, 50px) rotate(270deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    main.page-features .features-bento {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    main.page-features .feature-box.large {
        grid-column: span 2;
    }
    
    main.page-features .feature-box {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    main.page-features .features-hero {
        padding: 1rem 1rem 1.5rem;
    }
    
    main.page-features .title-large {
        font-size: 2rem;
    }
    
    main.page-features .features-bento {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    main.page-features .feature-box,
    main.page-features .feature-box.large,
    main.page-features .feature-box.wide {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    main.page-features .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    main.page-features .feature-box {
        padding: 1rem;
    }
    
    main.page-features .category-header h2 {
        font-size: 1.6rem;
    }
    
    main.page-features .features-header {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
}







.mood-content {
    margin-top: 3rem;
    min-height: 400px;
    position: relative;
}

.mood-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}
.mood-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.mood-intro {
    text-align: center;
    margin-bottom: 2.5rem;
}

.mood-intro p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(122, 13, 244, 0.15);
    border-color: var(--border-light);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: icon-float 3s infinite ease-in-out;
}

@keyframes icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.category-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.trending-tag {
    display: inline-block;
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Romantic mood specific styles */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 8px 20px rgba(255, 182, 193, 0.2); }
    50% { box-shadow: 0 8px 30px rgba(255, 182, 193, 0.4); }
    100% { box-shadow: 0 8px 20px rgba(255, 182, 193, 0.2); }
}

.sample-titles {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.sample-titles span {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

/* Steamy mood specific styles */
.glow {
    background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
}

.heat-meter {
    margin-top: 1rem;
}

.heat-level {
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* Adventurous mood specific styles */
.float {
    animation: float-card 4s infinite ease-in-out;
}

@keyframes float-card {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.adventure-badge {
    display: inline-block;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Mysterious mood specific styles */
.shimmer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer-effect 3s infinite;
}

@keyframes shimmer-effect {
    0% { left: -100%; }
    100% { left: 100%; }
}

.mystery-hint {
    display: inline-block;
    background: rgba(122, 13, 244, 0.1);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Reading Stats */
.mood-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(122, 13, 244, 0.05);
    border-radius: 25px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-icon {
    font-size: 1.5rem;
    animation: bounce-icon 2s infinite ease-in-out;
}

@keyframes bounce-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .mood-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .mood-intro p {
        font-size: 1.1rem;
    }
}