/* ==========================================================================
   Product Landing Page - Presentation Mode
   ========================================================================== */

.product-landing-page {
    /* Full-width presentation, no container constraints */
    width: 100%;
}

/* Ensure images inside landing page are responsive */
.product-landing-page img {
    max-width: 100%;
    height: auto;
}

/* CTA elements - add pointer cursor hint */
.product-landing-page [data-landing-cta] {
    cursor: pointer;
}

/* Smooth transition when switching modes */
.product-landing-page {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Hero Carousel – fast slide, decelerate to center
   ========================================================================== */

.landing-hero-carousel {
    position: relative;
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    background-color: #000;
}

.landing-hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(100%) skewX(-80deg);
    /* Fast start, very gentle deceleration – skew unwinds as it settles */
    transition: transform 1s cubic-bezier(0.08, 0.82, 0.17, 1),
                opacity   1s cubic-bezier(0.08, 0.82, 0.17, 1);
    will-change: transform, opacity;
}

.landing-hero-slide img {
    width: 100%;
    height: 500px;
    object-fit: contain;
}

/* Active slide – visible at center, skew resolved to flat */
.landing-hero-slide.active {
    position: relative;
    opacity: 1;
    transform: translateX(0) skewX(0deg);
}

/* Slide entering – start position (right, skewed, invisible) */
.landing-hero-slide.enter {
    opacity: 0;
    transform: translateX(100%) skewX(-80deg);
    transition: none; /* no transition on the starting position */
}

/* Slide exiting – fast exit to left with opposite skew */
.landing-hero-slide.exit {
    opacity: 0;
    transform: translateX(-100%) skewX(80deg);
    transition: transform 1s cubic-bezier(0.08, 0.82, 0.17, 1),
                opacity   0.7s ease-out;
}

/* ==========================================================================
   Static Hero – single image (no carousel)
   ========================================================================== */

.landing-hero {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.landing-hero img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
}

/* ==========================================================================
   Landing Page Skeleton – shown while product data loads
   Reuses .skeleton-shimmer and .skeleton-text from product-detail-skeleton.css
   ========================================================================== */

.landing-page-skeleton {
    animation: fadeIn 0.3s ease-in;
}

/* Hero placeholder – matches carousel max-height */
.landing-skeleton-hero {
    width: 100%;
    height: 500px;
    background-color: #111;
}

/* Content section spacing */
.landing-skeleton-section {
    padding: 3.5rem 0;
}

/* Image placeholder in content sections */
.landing-skeleton-image {
    width: 100%;
    height: 320px;
    border-radius: 1rem;
    background-color: #e0e0e0;
}

/* Text line sizes */
.landing-skeleton-line-sm {
    width: 30%;
    height: 14px;
}

.landing-skeleton-line-lg {
    width: 60%;
    height: 28px;
}

.landing-skeleton-line-full {
    width: 100%;
    height: 16px;
}

.landing-skeleton-line-md {
    width: 75%;
    height: 16px;
}

/* Stat block placeholders */
.landing-skeleton-stat {
    width: 100px;
    height: 60px;
    border-radius: 0.5rem;
}

/* CTA section */
.landing-skeleton-cta {
    padding: 3.5rem 0;
    background-color: #1a1a1a;
}

.landing-skeleton-cta .skeleton-text {
    background-color: #333;
}

.landing-skeleton-cta .skeleton-text::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.landing-skeleton-button {
    width: 200px;
    height: 52px;
    border-radius: 6px;
    background-color: #333;
}
