/* =========================================
   3. BEFORE/AFTER STATIC LAYOUT
   ========================================= */
.mockup-showcase {
    align-items: center;
    /* Ensure they flex next to each other */
}

/* Highlight the NEW design specifically */
.mockup-showcase .browser-window-wrapper:nth-child(2) .browser-window {
    transform: scale(1.05);
    border: 2px solid rgba(234, 88, 12, 0.6);
    /* Brand orange glow */
    box-shadow: 0 30px 60px rgba(234, 88, 12, 0.2), 0 0 40px rgba(234, 88, 12, 0.1) inset;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    z-index: 5;
}

.mockup-showcase .browser-window-wrapper:nth-child(2) .browser-window:hover {
    transform: scale(1.08) translateY(-10px);
    box-shadow: 0 40px 80px rgba(234, 88, 12, 0.3), 0 0 60px rgba(234, 88, 12, 0.15) inset;
}

/* De-emphasize the OLD design slightly */
.mockup-showcase .browser-window-wrapper:nth-child(1) .browser-window {
    opacity: 0.85;
    transform: scale(0.95);
    transition: opacity 0.4s;
    filter: grayscale(40%);
}

.mockup-showcase .browser-window-wrapper:nth-child(1):hover .browser-window {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(0.95) translateY(-5px);
}

/* =========================================
   4. BENTO GRID EXPERIENCES
   ========================================= */
.bento-card--animated {
    background-image: radial-gradient(400px at var(--mx, 50%) var(--my, 50%), rgba(89, 131, 146, 0.15), transparent 80%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}

.bento-card--animated:hover {
    transform: translateY(-5px);
    border-color: rgba(89, 131, 146, 0.4);
}

/* =========================================
   5. PRICING STAGGER & 3D BORDER
   ========================================= */
.pricing-border-wrap {
    position: relative;
    padding: 2px;
    border-radius: calc(24px + 2px);
    background: transparent;
    z-index: 1;
}

.pricing-border-wrap .pricing-card-advanced {
    border: none !important;
    height: 100%;
    margin: 0;
}

.feature-item-adv {
    transform: translateX(-4px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card-advanced:hover .feature-item-adv,
.pricing-border-wrap:hover .feature-item-adv {
    transform: translateX(0);
}

.price-value {
    display: inline-block;
    transform-style: preserve-3d;
    transform-origin: center;
}

/* =========================================
   6. ROI CALCULATOR
   ========================================= */
.roi-range {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #480ca8 var(--fill, 50%), rgba(255, 255, 255, 0.1) var(--fill, 50%));
    outline: none;
}

.roi-range::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    border: 3px solid #480ca8;
    box-shadow: 0 0 12px rgba(72, 12, 168, 0.6);
    cursor: grab;
    transition: transform 0.2s;
}

.roi-range::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.1);
}

.roi-pop {
    animation: roiPop 0.4s ease;
}

@keyframes roiPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

.roi-breakdown-bars {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.roi-bar-row {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.roi-bar-label {
    width: 70px;
    color: var(--text-secondary-color);
}

.roi-bar-track {
    flex-grow: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.roi-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #480ca8, #7209b7);
    border-radius: 3px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.roi-bar-val {
    width: 85px;
    text-align: right;
    font-weight: 600;
    color: #fff;
}

/* =========================================
   7. FAQ HIGHLIGHT & FEEDBACK
   ========================================= */

.faq-deep-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.faq-deep-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   8. IMMERSIVE CTA REWORK
   ========================================= */
.smart-cta-button {
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.smart-cta-button:hover {
    transform: translateY(-2px);
}

/* =========================================
   9. FLOATING ACTION BUTTON
   ========================================= */
.fab-cta {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 500;
    background: linear-gradient(135deg, #480ca8, #7209b7);
    border-radius: 50px;
    padding: 14px 24px;
    box-shadow: 0 8px 32px rgba(72, 12, 168, 0.5);
    transform: translateX(120px) scale(0.9);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
    cursor: pointer;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-cta.visible {
    transform: translateX(0) scale(1);
    opacity: 1;
}

/* =========================================
   10. MOBILE & RESPONSIVE REFINEMENTS
   ========================================= */

@media (max-width: 900px) {
    .mockup-showcase .browser-window-wrapper:nth-child(2) .browser-window {
        transform: scale(1.0);
        /* Remove aggressive highlight scale on mobile */
    }

    .mockup-showcase .browser-window-wrapper:nth-child(1) .browser-window {
        transform: scale(1.0);
    }
}

@media (max-width: 768px) {
    .mockup-showcase .browser-content {
        height: auto;
        min-height: 400px;
    }

    .mockup-old {
        transform-origin: top left;
        transform: scale(0.85);
        width: 115%;
    }
}

@media (max-width: 480px) {
    .mockup-showcase .browser-content {
        min-height: 350px;
    }

    .mockup-old {
        transform: scale(0.7);
        width: 140%;
    }
}

/* =========================================
   EXIT INTENT MODAL — PREMIUM REDESIGN
   ========================================= */

.eim-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.eim-overlay.visible {
    display: flex;
    opacity: 1;
}

.eim-card {
    position: relative;
    background: linear-gradient(145deg, rgba(1, 22, 30, 0.97) 0%, rgba(18, 69, 89, 0.95) 100%);
    border: 1px solid rgba(89, 131, 146, 0.25);
    border-radius: 28px;
    padding: 48px 44px 36px;
    max-width: 480px;
    width: 100%;
    overflow: hidden;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 0 60px rgba(72, 12, 168, 0.15);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.eim-overlay.visible .eim-card {
    transform: translateY(0) scale(1);
}

.eim-ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: inherit;
}

.eim-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.eim-orb-1 {
    width: 280px;
    height: 280px;
    background: rgba(72, 12, 168, 0.2);
    top: -80px;
    right: -60px;
}

.eim-orb-2 {
    width: 200px;
    height: 200px;
    background: rgba(89, 131, 146, 0.15);
    bottom: -60px;
    left: -40px;
}

.eim-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.eim-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: rotate(90deg);
}

.eim-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    background: rgba(89, 131, 146, 0.12);
    border: 1px solid rgba(89, 131, 146, 0.3);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: #598392;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.eim-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #598392;
    box-shadow: 0 0 8px rgba(89, 131, 146, 0.4);
}

.eim-icon-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(72, 12, 168, 0.2), rgba(89, 131, 146, 0.15));
    border: 1px solid rgba(89, 131, 146, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #598392;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.eim-icon-ring::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(89, 131, 146, 0.15);
}

.eim-content {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
}

.eim-title {
    font-size: 28px;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.eim-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
}

.eim-highlight {
    color: #f8fafc;
    font-weight: 700;
    background: linear-gradient(135deg, #598392, #480ca8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.eim-values {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.eim-value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.eim-value-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #480ca8, #7209b7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(72, 12, 168, 0.4);
}

.eim-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.eim-cta-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #480ca8, #7209b7);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(72, 12, 168, 0.45);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.eim-cta-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.eim-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(72, 12, 168, 0.65);
}

.eim-cta-primary:hover::before {
    opacity: 1;
}

.eim-cta-secondary {
    width: 100%;
    padding: 12px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s ease;
    letter-spacing: 0.2px;
}

.eim-cta-secondary:hover {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
}

.eim-scarcity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    position: relative;
    z-index: 1;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.eim-scarcity strong {
    color: rgba(255, 255, 255, 0.7);
    font-variant-numeric: tabular-nums;
}

.eim-scarcity-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
    flex-shrink: 0;
}

@media (max-width: 520px) {
    .eim-card {
        padding: 36px 24px 28px;
        border-radius: 20px;
    }

    .eim-title {
        font-size: 22px;
    }
}