/* ============================================================
   WEBAPP SHOWCASE SECTION — Desktop Experience
   Browser frame mockup with live screenshot
   ============================================================ */

/* ── Section Layout ── */
.webapp-section {
    padding: 140px 24px 120px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
    position: relative;
    overflow: visible;
}

/* ── Text Side ── */
.webapp-text {
    flex: 0.85;
    max-width: 440px;
    min-width: 280px;
    position: relative;
    z-index: 2;
    /* Animation handled by [data-scroll] observer → .visible class */
}

.webapp-text h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-bottom: 20px;
    color: #fff;
}

.webapp-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin-bottom: 28px;
}

/* ── Feature Chips ── */
.webapp-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.webapp-feature-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.webapp-feature-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.webapp-chip-icon {
    font-size: 0.9rem;
}

/* ── CTA Button ── */
.webapp-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #000;
    background: #fff;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.webapp-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.15);
}

.webapp-cta svg {
    transition: transform 0.3s ease;
}

.webapp-cta:hover svg {
    transform: translateX(3px);
}

/* ── Mockup Side ── */
.webapp-mockup-wrapper {
    flex: 1.3;
    position: relative;
    z-index: 1;
    /* Animation handled by [data-scroll] observer → .visible class */
}

/* ── Browser Frame ── */
.browser-frame {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.5),
        0 0 0 0.5px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.4s ease;
}

.webapp-section:hover .browser-frame {
    transform: scale(1.01);
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.6),
        0 0 0 0.5px rgba(255, 255, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ── Browser Top Bar ── */
.browser-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 16px;
    background: rgba(40, 40, 40, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.browser-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.browser-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.browser-dots .dot.red {
    background: #ff5f57;
}

.browser-dots .dot.yellow {
    background: #febc2e;
}

.browser-dots .dot.green {
    background: #28c840;
}

.browser-url {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Inter', system-ui, sans-serif;
}

/* ── Browser Content ── */
.browser-content {
    position: relative;
    overflow: hidden;
}

.webapp-screenshot {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Glow Effect ── */
.webapp-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 400px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center,
            rgba(255, 200, 50, 0.06) 0%,
            rgba(255, 140, 50, 0.03) 40%,
            transparent 70%);
    pointer-events: none;
    z-index: -1;
    filter: blur(40px);
}

/* ── Badge Pill (reuse existing but ensure it works here) ── */
.webapp-section .badge-pill {
    display: inline-block;
    padding: 8px 18px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    margin-bottom: 20px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .webapp-section {
        flex-direction: column;
        gap: 48px;
        text-align: center;
        padding: 100px 20px 80px;
    }

    .webapp-text {
        max-width: 100%;
    }

    .webapp-features {
        justify-content: center;
    }

    .webapp-cta {
        margin: 0 auto;
    }

    .webapp-mockup-wrapper {
        width: 100%;
        max-width: 700px;
    }
}

@media (max-width: 480px) {
    .webapp-section {
        padding: 80px 16px 60px;
    }

    .webapp-text h2 {
        font-size: 2rem;
    }

    .webapp-text p {
        font-size: 1rem;
    }

    .browser-bar {
        padding: 8px 12px;
    }

    .browser-dots .dot {
        width: 8px;
        height: 8px;
    }

    .browser-url {
        font-size: 0.7rem;
    }
}
