/* Shared mobile HRMS showcase treatment for the landing page and feature hero. */
.dx-mobile-showcase {
    isolation: isolate;
    background:
        radial-gradient(circle at 68% 43%, rgba(63, 181, 122, 0.19), transparent 34%),
        radial-gradient(circle at 98% 4%, rgba(92, 205, 155, 0.17), transparent 24%),
        radial-gradient(circle at 8% 96%, rgba(191, 233, 214, 0.56), transparent 28%),
        linear-gradient(118deg, #fcfffd 0%, #f1faf5 58%, #e7f6ee 100%);
}

.dx-mobile-showcase::before,
.dx-mobile-showcase::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.dx-mobile-showcase::before {
    width: min(39vw, 570px);
    aspect-ratio: 1;
    top: -22%;
    right: -10%;
    background: radial-gradient(circle at 35% 35%, rgba(172, 232, 199, 0.38), rgba(64, 169, 114, 0.12) 62%, transparent 72%);
    filter: blur(8px);
}

.dx-mobile-showcase::after {
    width: min(25vw, 340px);
    aspect-ratio: 1;
    bottom: -21%;
    left: -8%;
    background: radial-gradient(circle, rgba(76, 174, 120, 0.18), transparent 72%);
    filter: blur(12px);
}

.dx-mobile-showcase .mobile-showcase-container,
.dx-mobile-showcase .mf-hero-container {
    max-width: 1360px;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.88fr) minmax(180px, 0.42fr);
    gap: clamp(18px, 2.4vw, 38px);
    min-height: 700px;
}

.dx-mobile-showcase .mobile-showcase-title,
.dx-mobile-showcase .mf-hero-title {
    font-size: clamp(3rem, 4vw, 4.45rem);
    line-height: 1.06;
    letter-spacing: -0.055em;
    color: #0c2419;
}

.dx-mobile-showcase .mobile-showcase-title .serif-italic,
.dx-mobile-showcase .mf-hero-title .serif-italic {
    font-size: 1.17em;
    line-height: 1.2;
    color: #226e49;
    letter-spacing: -0.01em;
    margin-top: 4px;
    display: inline-block;
    padding-left: 6px;
    padding-right: 14px;
    padding-bottom: 12px;
    overflow: visible;
}

.dx-mobile-showcase .mobile-showcase-subtitle,
.dx-mobile-showcase .mf-hero-subtitle {
    font-size: 1rem;
    line-height: 1.72;
    color: #526b60;
}

.dx-mobile-showcase .mobile-primary-btn,
.dx-mobile-showcase .mf-btn-primary {
    background: linear-gradient(115deg, #102f22, #176644);
    border: 1px solid rgba(28, 118, 74, 0.52);
    box-shadow: 0 12px 26px rgba(13, 84, 49, 0.2), inset 0 1px rgba(255, 255, 255, 0.2);
}

.dx-mobile-showcase .mobile-feat-item {
    min-height: 146px;
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(111, 193, 146, 0.26);
    box-shadow: 0 12px 26px rgba(17, 86, 55, 0.07);
    backdrop-filter: blur(10px);
}

.dx-mobile-showcase .mobile-feat-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    color: #126d43;
    background: linear-gradient(145deg, #f1fff7, #c9f0db);
    box-shadow: 0 8px 15px rgba(47, 161, 98, 0.13);
}

.dx-mobile-showcase .dx-mobile-scene {
    min-width: 0;
    min-height: 690px;
    padding: 24px 0 62px;
    align-self: end;
    isolation: isolate;
    overflow: visible;
}

.dx-mobile-showcase .dx-mobile-scene .phone-glow-halo {
    width: min(115%, 490px);
    height: min(65%, 490px);
    background: radial-gradient(circle, rgba(60, 192, 124, 0.29), rgba(187, 237, 208, 0.35) 47%, transparent 73%);
}

.dx-mobile-showcase .dx-mobile-scene .iphone-mockup-frame {
    width: min(78%, 324px);
    height: auto !important;
    flex: none;
    z-index: 3;
    filter: drop-shadow(0 28px 28px rgba(15, 65, 42, 0.2));
}

.dx-scene-pedestal {
    position: absolute;
    width: min(116%, 510px);
    height: 86px;
    left: 50%;
    bottom: 27px;
    transform: translateX(-50%);
    border: 1px solid rgba(87, 178, 122, 0.26);
    border-radius: 50%;
    background: linear-gradient(180deg, #fafffb 0%, #d7f1e1 48%, #9bd4b4 100%);
    box-shadow: 0 26px 36px rgba(37, 125, 70, 0.19), inset 0 4px 12px rgba(255, 255, 255, 0.86);
    z-index: 1;
    pointer-events: none;
}

.dx-scene-pedestal::before {
    content: "";
    position: absolute;
    inset: 7px 7% 31px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: rgba(248, 255, 250, 0.55);
}

.dx-scene-chip {
    position: absolute;
    z-index: 4;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 132px;
    min-height: 56px;
    padding: 10px 12px;
    border: 1px solid rgba(123, 199, 151, 0.3);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 26px rgba(21, 101, 60, 0.12), inset 0 1px rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    color: #153e2b;
    pointer-events: none;
}

.dx-scene-chip-icon {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: linear-gradient(145deg, #dff8e9, #b9ebd0);
    color: #147e4d;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
}

.dx-scene-chip-icon svg { width: 19px; height: 19px; }

.dx-scene-chip strong,
.dx-scene-chip small {
    display: block;
    line-height: 1.23;
}

.dx-scene-chip strong {
    font-size: 0.7rem;
    font-weight: 800;
}

.dx-scene-chip small {
    margin-top: 2px;
    font-size: 0.61rem;
    color: #648073;
}

.dx-scene-chip--one { top: 14%; left: -28px; transform: rotate(-8deg); }
.dx-scene-chip--two { bottom: 23%; left: -40px; transform: rotate(7deg); }
.dx-scene-chip--three { top: 28%; right: -37px; transform: rotate(7deg); }
.dx-scene-chip--four { bottom: 27%; right: -37px; transform: rotate(-7deg); }

/* Main landing page showcase adjustments: keep chips neatly on the phone without overlapping the 4 feature cards */
.mobile-showcase-section .dx-scene-chip--one {
    top: 13%;
    left: 8px;
    transform: rotate(-6deg);
}

.mobile-showcase-section .dx-scene-chip--two {
    bottom: 24%;
    left: 12px;
    transform: rotate(6deg);
}

.mobile-showcase-section .dx-scene-chip--three {
    top: 26%;
    right: -14px;
    transform: rotate(6deg);
}

.dx-mobile-showcase .mobile-qr-floating-card {
    max-width: 196px;
    box-sizing: border-box;
    padding: 21px 18px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.83);
    border-color: rgba(107, 190, 144, 0.36);
    box-shadow: 0 20px 40px rgba(26, 107, 66, 0.12), inset 0 1px rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
}

.dx-mobile-showcase .qr-code-frame {
    padding: 10px;
    border-radius: 15px;
    background: #fff;
    border-color: rgba(60, 157, 105, 0.22);
}

.dx-mobile-showcase .mobile-showcase-right,
.dx-mobile-showcase .mf-hero-showcase-right {
    align-self: center;
}

@media (max-width: 1100px) and (min-width: 961px) {
    .dx-mobile-showcase .mobile-showcase-container,
    .dx-mobile-showcase .mf-hero-container {
        grid-template-columns: minmax(0, 1fr) minmax(315px, 0.85fr) minmax(160px, 0.42fr);
        gap: 16px;
    }

    .dx-scene-chip { width: 116px; padding: 8px; }
    .dx-scene-chip--one,
    .dx-scene-chip--two { left: -14px; }
    .dx-scene-chip--three,
    .dx-scene-chip--four { right: -14px; }
}

@media (max-width: 960px) {
    .dx-mobile-showcase .mobile-showcase-container,
    .dx-mobile-showcase .mf-hero-container {
        display: flex;
        flex-direction: column;
        min-height: 0;
        gap: 20px;
    }

    .dx-mobile-showcase .dx-mobile-scene {
        width: min(100%, 480px);
        min-height: 590px;
        margin: 0 auto;
        padding: 10px 0 60px;
        align-self: center;
    }

    .dx-mobile-showcase .dx-mobile-scene .iphone-mockup-frame {
        width: min(66%, 270px);
    }

    .dx-scene-chip--one,
    .dx-scene-chip--two { left: 0; }
    .dx-scene-chip--three,
    .dx-scene-chip--four { right: 0; }

    .dx-mobile-showcase .mobile-showcase-title,
    .dx-mobile-showcase .mf-hero-title { font-size: clamp(2.6rem, 6vw, 3.6rem); }
}

@media (max-width: 640px) {
    .dx-mobile-showcase .dx-mobile-scene {
        min-height: 510px;
        padding: 0 0 48px;
    }

    .dx-mobile-showcase .dx-mobile-scene .iphone-mockup-frame {
        width: min(62%, 230px);
    }

    .dx-scene-chip { display: none; }
    .dx-scene-pedestal { width: min(92%, 370px); height: 55px; bottom: 26px; }

    .dx-mobile-showcase .mobile-showcase-title,
    .dx-mobile-showcase .mf-hero-title { font-size: clamp(2.3rem, 9vw, 3rem); }

    .dx-mobile-showcase .mobile-showcase-title .serif-italic,
    .dx-mobile-showcase .mf-hero-title .serif-italic { font-size: 1.13em; }
}

@media (prefers-reduced-motion: reduce) {
    .dx-mobile-showcase .mobile-primary-btn,
    .dx-mobile-showcase .mf-btn-primary { transition: none; }
}
