/* ============================================================
   OmniScope 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.is-visible {
    animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.reveal-left.is-visible {
    animation: revealLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.reveal-right.is-visible {
    animation: revealRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.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; }


/* ── Hero Video (scroll-driven) ── */
.we-product-top.omni {
    position: relative;
    overflow: hidden;
    background-image: none !important;
}

.hero-video-wrap {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40%;
    overflow: hidden;
    pointer-events: none;
}

.hero-video-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, #000 0%, #000 20%, transparent 30%, transparent 55%, #000 100%);
    z-index: 1;
}

.hero-video-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 30%;
    background: linear-gradient(to right, #000 0%, transparent 100%);
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-video.is-ready {
    opacity: 1;
}

@media (max-width: 991px) {
    .hero-video-wrap {
        display: none;
    }
}

/* ── Hero Section Enhancements ── */
.we-product-top.omni .hero-content {
    position: relative;
    z-index: 2;
}

.we-product-top.omni h3 {
    font-size: 1.8em;
    letter-spacing: -0.02em;
    line-height: 1.15;
    font-weight: 600;
}

.we-product-top.omni .we-product-top__actions .btn-custom {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.we-product-top.omni .we-product-top__actions .btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(248, 100, 60, 0.3);
}

.we-product-top.omni .we-product-top__actions .btn-custom:active {
    transform: translateY(0px) scale(0.98);
}


/* ── Highlights Video (scroll-driven, left side) ── */
.we-product-middle.omni {
    position: relative;
    overflow: hidden;
    background-image: none !important;
}

.we-product-middle.omni::before {
    display: none;
}

.highlights-video-wrap {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 50%;
    overflow: hidden;
    pointer-events: none;
}

.highlights-video-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, #000 0%, transparent 20%, transparent 70%, #000 100%);
    z-index: 1;
}

.highlights-video-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30%;
    background: linear-gradient(to left, #000 0%, transparent 100%);
    z-index: 1;
}

.highlights-video {
    position: absolute;
    top: 38%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.highlights-video.is-ready {
    opacity: 1;
}

@media (max-width: 991px) {
    .highlights-video-wrap {
        display: none;
    }
}

.we-product-middle .we-label {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
}

.we-product-middle h2 {
    letter-spacing: -0.02em;
}

.we-list--check li {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.we-list--check li:hover {
    transform: translateX(4px);
}


/* ── Feature Icons Section — Bento-Inspired ── */
.we-product-icons .we-product-icons__tile {
    position: relative;
    padding: 40px 30px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.we-product-icons .we-product-icons__tile::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 60%) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.we-product-icons .we-product-icons__tile:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
}

.we-product-icons .we-product-icons__tile:hover::before {
    opacity: 1;
}

.we-product-icons .we-product-icons__tile img {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.we-product-icons .we-product-icons__tile:hover img {
    transform: scale(1.08);
}

.we-product-icons h2 {
    letter-spacing: -0.02em;
}


/* ── Testimonials Enhancement ── */
.we-product-testimonials h2 {
    letter-spacing: -0.02em;
}

.we-product-testimonials__inner {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.we-product-testimonials__inner:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Company logos */
.image-container img {
    filter: grayscale(100%) brightness(0.7);
    opacity: 0.6;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-container img:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.05);
}


/* ── Pricing Cards Enhancement ── */
.we-product-pricing h2 {
    letter-spacing: -0.02em;
    text-align: center;
}

.we-product-pricing__tile {
    border-radius: 20px !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: visible !important;
}

.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;
}

.we-product-pricing__tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.we-product-pricing__tile.omni {
    border: 1px solid rgba(248, 100, 60, 0.3);
}

.we-product-pricing__tile.omni:hover {
    border-color: rgba(248, 100, 60, 0.5);
    box-shadow: 0 25px 50px -12px rgba(248, 100, 60, 0.15);
}

.we-product-pricing__badge {
    letter-spacing: 0.04em;
}


/* ── Feature Comparison Table ── */
.we-product-table {
    position: relative;
}

.we-product-table .row--header h2 {
    letter-spacing: -0.02em;
}

.we-product-table .row.no-gutters:not(.row--header):not(.row--separator):not(.row--action) {
    transition: background-color 0.2s ease;
}

.we-product-table .row.no-gutters:not(.row--header):not(.row--separator):not(.row--action):hover {
    background-color: rgba(255, 255, 255, 0.03);
}


/* ── Product Grid (Feature Showcases) ── */
.we-product-grid__inner {
    position: relative;
}

.we-product-grid__inner .we-label {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
}

.we-product-grid__inner h2 {
    letter-spacing: -0.02em;
}


/* ── Roadmap Section ── */
.we-product-roadmap {
    position: relative;
}

.we-product-roadmap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.we-product-roadmap h2 {
    letter-spacing: -0.02em;
}

.we-product-roadmap ul li {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.we-product-roadmap ul li:hover {
    transform: translateX(6px);
}


/* ── Newsletter Section ── */
.we-global-newsletter {
    position: relative;
}

.we-global-newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(248, 100, 60, 0.15), transparent);
}


/* ── Live Pack Callout Enhancement ── */
.live-pack-callout {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.live-pack-callout::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: radial-gradient(ellipse at 30% 50%, rgba(247, 84, 60, 0.06), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.live-pack-callout:hover {
    border-color: rgba(247, 84, 60, 0.3) !important;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.3);
}

.live-pack-callout:hover::before {
    opacity: 1;
}


/* ── Global Button Enhancements ── */
.btn-custom {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
}

.btn-custom:active {
    transform: translateY(0) scale(0.97) !important;
}

.btn-custom--bordered {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-custom--bordered:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.08);
}


/* ── Subtle Section Spacer Gradients ── */
.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(248, 100, 60, 0.06) 0%, transparent 70%);
    pointer-events: none;
}


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


/* ── Responsive Overrides ── */
@media (max-width: 767px) {
    .we-product-top.omni h3 {
        font-size: 1.4em;
    }

    .we-product-icons .we-product-icons__tile {
        padding: 25px 20px;
        border-radius: 12px;
    }

    .we-product-pricing__tile:hover {
        transform: none;
    }

    .we-product-icons .we-product-icons__tile:hover {
        transform: none;
    }
}
