/* ============================================================
   Nobe LutBake Landing Page — Design Enhancements
   Guided by taste-skill principles (variance:8, motion:6, density:4)
   ============================================================ */

/* ── Scroll-Reveal Animations ── */
@keyframes revealUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes revealScale {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes revealLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes revealRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

.reveal       { opacity: 0; will-change: transform, opacity; }
.reveal-left  { opacity: 0; will-change: transform, opacity; }
.reveal-right { opacity: 0; will-change: transform, opacity; }
.reveal-scale { opacity: 0; will-change: transform, opacity; }

.reveal.is-visible       { animation: revealUp    0.8s cubic-bezier(0.16,1,0.3,1) forwards; }
.reveal-left.is-visible  { animation: revealLeft  0.8s cubic-bezier(0.16,1,0.3,1) forwards; }
.reveal-right.is-visible { animation: revealRight  0.8s cubic-bezier(0.16,1,0.3,1) forwards; }
.reveal-scale.is-visible { animation: revealScale  0.7s cubic-bezier(0.16,1,0.3,1) forwards; }

/* Staggered children */
.reveal-stagger > * {
    opacity: 0;
    will-change: transform, opacity;
}
.reveal-stagger.is-visible > * {
    animation: revealUp 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
}
.reveal-stagger.is-visible > *:nth-child(1) { animation-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { animation-delay: 80ms; }
.reveal-stagger.is-visible > *:nth-child(3) { animation-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4) { animation-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(5) { animation-delay: 320ms; }
.reveal-stagger.is-visible > *:nth-child(6) { animation-delay: 400ms; }
.reveal-stagger.is-visible > *:nth-child(7) { animation-delay: 480ms; }
.reveal-stagger.is-visible > *:nth-child(8) { animation-delay: 560ms; }


/* ── Hero Enhancements ── */
.nobe-lutbake-hero h1 {
    letter-spacing: -0.02em;
}
.nobe-lutbake-hero h2 {
    letter-spacing: -0.01em;
}

.nobe-lutbake-hero .btn-custom--orange {
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
.nobe-lutbake-hero .btn-custom--orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(247, 147, 30, 0.35);
}
.nobe-lutbake-hero .btn-custom--orange:active {
    transform: translateY(0) scale(0.97);
}
.nobe-lutbake-hero .btn-custom--light {
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
.nobe-lutbake-hero .btn-custom--light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.08);
}


/* ── Section Headlines ── */
.nobe-lutbake-section h2,
.nobe-lutbake-section-alt h2,
.nobe-lutbake-section-dark h2,
.nobe-lutbake-section-light h2 {
    letter-spacing: -0.02em;
}


/* ── How It Works — Step Cards ── */
.nobe-lutbake-step {
    transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
    position: relative;
    overflow: hidden;
}
.nobe-lutbake-step::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(247,147,30,0.06), transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.nobe-lutbake-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(247, 147, 30, 0.2);
}
.nobe-lutbake-step:hover::before {
    opacity: 1;
}

/* Step icon scale on card hover */
.nobe-lutbake-step:hover .step-icon {
    transform: scale(1.08);
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.nobe-lutbake-step .step-icon {
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}


/* ── Use Case Cards ── */
.nobe-lutbake-usecase {
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-left: none !important;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
    overflow: hidden;
}
.nobe-lutbake-usecase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #f7931e, #f7643c);
    opacity: 0.6;
    transition: opacity 0.4s ease;
}
.nobe-lutbake-usecase::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    pointer-events: none;
}
.nobe-lutbake-usecase:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}
.nobe-lutbake-usecase:hover::before {
    opacity: 1;
}


/* ── Feature Cards (Why LutBake + Features grid) ── */
.nobe-lutbake-feature {
    transition: all 0.4s cubic-bezier(0.16,1,0.3,1) !important;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}
.nobe-lutbake-feature::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    pointer-events: none;
}
.nobe-lutbake-feature:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 35px rgba(247, 147, 30, 0.12) !important;
    border-color: rgba(247, 147, 30, 0.15);
}
.nobe-lutbake-feature .feat-icon {
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.nobe-lutbake-feature:hover .feat-icon {
    transform: scale(1.1);
}


/* ── Video Section ── */
.nobe-lutbake-section-dark video {
    transition: box-shadow 0.4s ease;
}
.nobe-lutbake-section-dark video:hover {
    box-shadow: 0 8px 50px rgba(247, 147, 30, 0.18) !important;
}


/* ── App Screenshots (Light Section) ── */
.nobe-lutbake-screenshot img {
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.nobe-lutbake-screenshot:hover img {
    transform: translateY(-4px);
}


/* ── Pricing Cards ── */
.we-product-pricing__tile {
    transition: all 0.4s cubic-bezier(0.16,1,0.3,1) !important;
    border-radius: 20px !important;
    overflow: visible !important;
}
.we-product-pricing__tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}
.we-product-pricing__tile::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    pointer-events: none;
}


/* ── Get Started / Download Cards ── */
.nobe-lutbake-card {
    transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.nobe-lutbake-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}


/* ── Section Transitions ── */
.section-glow-top {
    position: relative;
}
.section-glow-top::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 160px;
    background: radial-gradient(ellipse, rgba(247, 147, 30, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Subtle gradient divider */
.section-divider-top {
    position: relative;
}
.section-divider-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(247, 147, 30, 0.2), transparent);
}


/* ── Global Button Tactile ── */
.btn-custom {
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1) !important;
}
.btn-custom:active {
    transform: translateY(0) scale(0.97) !important;
}


/* ── Badge Refinement ── */
.nobe-lutbake-badge {
    transition: all 0.3s ease;
}
.nobe-lutbake-badge:hover {
    background: #333;
}


/* ── Info Box (What works in a 3D LUT?) ── */
div[style*="background: #1a1a1a"][style*="border-radius: 12px"] {
    transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
div[style*="background: #1a1a1a"][style*="border-radius: 12px"]:hover {
    border-color: rgba(247, 147, 30, 0.15) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}


/* ── Smooth Scroll ── */
html {
    scroll-behavior: smooth;
}


/* ── Responsive Overrides ── */
@media (max-width: 767px) {
    .nobe-lutbake-step:hover,
    .nobe-lutbake-feature:hover,
    .nobe-lutbake-card:hover,
    .we-product-pricing__tile:hover {
        transform: none !important;
    }
}
