/* public_store/static/public_store/css/landing_optimized.css */
/* ===== ZTORESPOT-INSPIRED VIBRANT DARK THEME ===== */

body { 
    font-family: 'Inter', sans-serif; 
    background: #0A0118; 
    color: #CBD5E1; 
    overflow-x: hidden; 
    -webkit-font-smoothing: antialiased; 
    text-rendering: optimizeLegibility; 
}
h1, h2, h3, h4, .fh { 
    font-family: 'Space Grotesk', sans-serif; 
}

/* ===== Glass Card with Purple Tint ===== */
.glass { 
    background: rgba(15, 5, 35, 0.75); 
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px); 
    border: 1px solid rgba(139, 92, 246, 0.12); 
    transform: translateZ(0); 
    will-change: transform, backdrop-filter; 
}

/* ===== Glow Effects ===== */
.glow-primary { 
    box-shadow: 0 0 80px rgba(139, 92, 246, 0.2), 0 0 30px rgba(168, 85, 247, 0.1); 
    transform: translateZ(0); 
}
.glow-accent { 
    box-shadow: 0 0 60px rgba(236, 72, 153, 0.15); 
    transform: translateZ(0); 
}

/* ===== Vibrant Gradient Texts ===== */
.gradient-text { 
    background: linear-gradient(135deg, #A855F7, #EC4899, #F472B6); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
    transform: translateZ(0); 
}
.gt2 { 
    background: linear-gradient(135deg, #22C55E, #06B6D4, #10B981); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
}
.gt3 { 
    background: linear-gradient(135deg, #F59E0B, #F43F5E, #EC4899); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
}

/* ===== Tool Cards with Neon Hover ===== */
.tool-card { 
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease; 
    will-change: transform, box-shadow; 
    transform: translateZ(0); 
    height: 100%;
    position: relative;
    overflow: hidden;
}
.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #A855F7, #EC4899, #F472B6);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.tool-card:hover::before {
    opacity: 1;
}
.tool-card:hover { 
    transform: translateY(-10px) translateZ(0); 
    border-color: rgba(168, 85, 247, 0.4); 
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.2), 0 0 40px rgba(168, 85, 247, 0.1); 
}

/* ===== Background Blobs ===== */
.blob { 
    position: absolute; 
    border-radius: 50%; 
    filter: blur(120px); 
    opacity: 0.15; 
    pointer-events: none; 
    will-change: transform; 
    transform: translateZ(0); 
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0A0118; }
::-webkit-scrollbar-thumb { background: #2D1B69; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #4C1D95; }

/* ===== Stat Numbers ===== */
.stat-number { font-variant-numeric: tabular-nums; }

/* ===== Pulse Border ===== */
@keyframes pulse-border { 
    0%, 100% { border-color: rgba(168, 85, 247, 0.2); } 
    50% { border-color: rgba(168, 85, 247, 0.6); } 
}
.pulse-border { animation: pulse-border 3s infinite; }

/* ===== Performance ===== */
.optimize-rendering { 
    content-visibility: auto; 
    contain-intrinsic-size: 1px 500px; 
}
.gpu-accelerated { 
    transform: translateZ(0); 
    backface-visibility: hidden; 
    perspective: 1000px; 
}
img { 
    content-visibility: auto; 
    aspect-ratio: attr(width) / attr(height); 
}
section { scroll-margin-top: 80px; }

/* ===== CLS Fixes ===== */
.hero-img-container { min-height: 400px; }
.theme-card img { aspect-ratio: 300 / 200; background: #1a0a35; }
.video-thumbnail img { aspect-ratio: 16 / 9; background: #0f0a25; }

/* ===== FAQ ===== */
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-icon { transform: rotate(180deg); }

/* ===== Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delayed { animation: float 6s ease-in-out 3s infinite; }

@keyframes float-d {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}
.animate-float-d { animation: float-d 7s ease-in-out 1.5s infinite; }

@keyframes pulse-glow-slow {
    0%, 100% { box-shadow: 0 0 50px rgba(139, 92, 246, 0.2); transform: scale(1); opacity: 0.5; }
    50% { box-shadow: 0 0 100px rgba(168, 85, 247, 0.5); transform: scale(1.05); opacity: 0.8; }
}
.animate-pulse-glow-slow { animation: pulse-glow-slow 4s infinite alternate; }

/* ===== Neon Purple Glow Animation ===== */
@keyframes neon-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.3), 0 0 60px rgba(139, 92, 246, 0.15); }
    50% { box-shadow: 0 0 40px rgba(168, 85, 247, 0.5), 0 0 100px rgba(139, 92, 246, 0.25); }
}
.neon-glow { animation: neon-glow 3s ease-in-out infinite; }

/* ===== Gradient Border Animation ===== */
@keyframes gradient-border-spin {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.gradient-border {
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
}
.gradient-border::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, #A855F7, #EC4899, #F59E0B, #A855F7);
    background-size: 300% 300%;
    animation: gradient-border-spin 4s ease infinite;
    z-index: -1;
}

/* ===== Special Offer Banner ===== */
.offer-banner {
    background: linear-gradient(90deg, #7C3AED, #A855F7, #EC4899, #A855F7, #7C3AED);
    background-size: 300% 100%;
    animation: gradient-border-spin 6s linear infinite;
}

/* ===== Themes Carousel ===== */
.themes-carousel-wrapper {
    overflow: hidden;
    position: relative;
    min-height: 250px;
}
.themes-carousel-track {
    display: flex;
    width: max-content;
    will-change: transform;
}
@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}
.themes-scroll-left {
    animation: scrollLeft 35s linear infinite;
}
.themes-scroll-right {
    animation: scrollRight 35s linear infinite;
}
.themes-carousel-wrapper:hover .themes-carousel-track {
    animation-play-state: paused;
}
.theme-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Video Section ===== */
.video-thumbnail .animate-ping {
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* ===== Background Image Utilities ===== */
.bg-hero {
    background-attachment: fixed;
    animation-duration: 10s;
}
.bg-chaos { background-attachment: fixed; }
.bg-easy { background-attachment: fixed; }
.bg-owner { background-attachment: fixed; background-blend-mode: overlay; }
.bg-pricing { background-attachment: fixed; }

/* ===== Bright Stat Cards ===== */
.stat-card {
    position: relative;
    overflow: hidden;
}
.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--stat-color, #A855F7), transparent);
}

/* ===== Comparison Table (Ztorespot Style) ===== */
.comparison-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
}
.comparison-table th {
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.comparison-table td {
    padding: 0.875rem 1.5rem;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    font-size: 0.875rem;
}
.comparison-table tr:hover td {
    background: rgba(139, 92, 246, 0.05);
}

/* ===== Hand-drawn Annotation Style ===== */
.annotation-circle {
    border: 3px solid #EC4899;
    border-radius: 50%;
    padding: 8px;
    animation: pulse-border 2s infinite;
}
.annotation-arrow {
    color: #EC4899;
    font-size: 1.5rem;
}

/* ===== Vibrant Section Separator ===== */
.section-glow-top {
    position: relative;
}
.section-glow-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5), rgba(236, 72, 153, 0.5), transparent);
}

/* ===== Pricing Card Glow ===== */
.pricing-popular {
    position: relative;
}
.pricing-popular::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #A855F7, #EC4899, #F59E0B);
    z-index: -1;
    opacity: 0.7;
    filter: blur(8px);
    animation: pulse-glow-slow 4s infinite alternate;
}

/* ===== Testimonial Shine ===== */
@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}
.testimonial-card {
    position: relative;
    overflow: hidden;
}
.testimonial-card:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.05), transparent);
    animation: shine 0.8s ease forwards;
}
