/*
 * Workroomly homepage ribbon + showcase.
 * The ribbon is intentionally compact and icon-led so it can begin above the fold.
 */

.home-page .showcase-section {
    --stage-acquire: 83, 202, 244;
    --stage-engage: 177, 145, 255;
    --stage-deliver: 99, 217, 177;
    --stage-run: 235, 183, 118;
    padding: 64px 0 clamp(150px, 12vw, 190px);
    background: #fff;
}

.home-page .showcase-section::before {
    content: none;
}

.home-page .showcase-section::after {
    content: none;
}

.home-page .showcase-fluid {
    width: calc(100% - 48px);
    max-width: none;
}

.home-page .showcase-intro {
    position: relative;
    z-index: 1;
    width: min(100%, 1180px);
    max-width: none;
    margin: 0 auto 30px;
    text-align: center;
}

.home-page .showcase-intro::before {
    content: none;
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: min(76vw, 760px);
    height: 110px;
    border-radius:  0;
    background: transparent;
    filter: blur(8px);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.home-page .showcase-intro::after {
    content: "";
    display: block;
    width: 112px;
    height: 1px;
    margin: 19px auto 0;
    background: transparent;
    box-shadow: 0 0 14px rgba(103, 120, 255, .24);
}

.home-page .showcase-intro-text {
    max-width: 980px;
    margin: 0 auto;
    color: #14223b;
    font-family: var(--wr-display);
    font-size: clamp(27px, 2.88vw, 39.6px);
    font-weight: 610;
    line-height: 1.18;
    letter-spacing: -.04em;
    text-align: center;
    text-shadow: none;
    text-wrap: balance;
}

.home-page .showcase-intro-muted {
    color: #52617a;
    font-weight: 540;
    text-shadow: none;
}

/* Compact platform ribbon: stage labels are navigation; modules are the message. */
.home-page .showcase-section .hero-lifecycle-ribbon {
    position: relative;
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.home-page .showcase-section .hero-lifecycle-ribbon::before,
.home-page .showcase-section .hero-lifecycle-ribbon::after { content: none; }

.home-page .showcase-section .lifecycle-ribbon-inner {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 7px;
    overflow: visible;
}

.home-page .showcase-section .lifecycle-phase {
    --phase-rgb: var(--stage-acquire);
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 11px;
    padding: 12px 11px 11px;
    border: 1px solid #dce3ec;
    border-radius:  0;
    background: #f7f9fc;
    transition: opacity .3s ease, border-color .3s ease, background .3s ease;
    --phase-ink: #126482;
}

.home-page .showcase-section .lifecycle-phase-acquire { --phase-rgb: var(--stage-acquire);     --phase-ink: #126482;
}
.home-page .showcase-section .lifecycle-phase-engage { --phase-rgb: var(--stage-engage);     --phase-ink: #6b43ae;
}
.home-page .showcase-section .lifecycle-phase-deliver { --phase-rgb: var(--stage-deliver);     --phase-ink: #176c51;
}
.home-page .showcase-section .lifecycle-phase-run { --phase-rgb: var(--stage-run);     --phase-ink: #8a571b;
}

.home-page .showcase-section .lifecycle-phase.dimmed {
    opacity: 1;
}

.home-page .showcase-section .lifecycle-phase:hover,
.home-page .showcase-section .lifecycle-phase:not(.dimmed) {
    border-color: rgba(var(--phase-rgb), .55);
    background: rgba(var(--phase-rgb), .09);
}

.home-page .showcase-section .lifecycle-phase-header {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 0 2px;
}

.home-page .showcase-section .lifecycle-phase-label {
    padding: 4px 8px;
    border-radius:  0;
    color: var(--phase-ink) !important;
    background: transparent !important;
    font-family: var(--wr-body);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.home-page .showcase-section .lifecycle-phase-apps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 7px;
}

.home-page .showcase-section .lifecycle-app-chip {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 64px;
    min-height: 80px;
    padding: 8px 3px;
    overflow: hidden;
    border: 1px solid #dce3ec;
    border-radius:  0;
    color: #263750;
    background: #fff;
    font-family: var(--wr-body);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-shadow: none;
    box-shadow: 0 2px 6px rgba(22, 40, 68, .03);
    transition:
        color .25s ease,
        border-color .25s ease,
        background .25s ease,
        transform .3s cubic-bezier(.22, 1, .36, 1);
}

.home-page .showcase-section .lifecycle-app-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    border: 1px solid rgba(var(--phase-rgb), .18);
    border-radius:  0;
    color: var(--phase-ink) !important;
    background: rgba(var(--phase-rgb), .13) !important;
    box-shadow: none;
}

.home-page .showcase-section .lifecycle-app-icon i {
    font-size: 17px;
    filter: drop-shadow(0 3px 8px rgba(var(--phase-rgb), .18));
}

.home-page .showcase-section .lifecycle-app-chip:hover {
    color: var(--phase-ink);
    border-color: rgba(var(--phase-rgb), .3);
    background: rgba(var(--phase-rgb), .09);
    transform: translateY(-2px);
}

.home-page .showcase-section .lifecycle-app-chip.active {
    color: var(--phase-ink) !important;
    border-color: rgba(var(--phase-rgb), .48) !important;
    background:
        rgba(var(--phase-rgb), .18) !important;
    box-shadow: 0 4px 12px rgba(22, 40, 68, .08) !important;
    text-shadow: none;
    transform: translateY(-2px) !important;
}

.home-page .showcase-section .lifecycle-app-chip.active .lifecycle-app-icon {
    border-color: rgba(var(--phase-rgb), .38);
    background: rgba(var(--phase-rgb), .22) !important;
    box-shadow: none;
}

.home-page .showcase-section .lifecycle-app-chip .chip-progress {
    position: absolute;
    right: 9px;
    bottom: 3px;
    left: 9px;
    height: 1px;
    overflow: hidden;
    border-radius:  0;
    background: rgba(255, 255, 255, .055);
}

.home-page .showcase-section .lifecycle-app-chip .chip-progress::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(var(--phase-rgb));
    transform: scaleX(0);
    transform-origin: left;
}

.home-page .showcase-section .lifecycle-app-chip.active .chip-progress::after {
    animation: workroomlyShowcaseProgress 5s linear forwards;
}

@keyframes workroomlyShowcaseProgress {
    to { transform: scaleX(1); }
}

.home-page .showcase-section .lifecycle-connector {
    display: grid;
    place-items: center;
    padding: 0 1px;
    color: #77859a;
    font-size: 8px;
}

/* Product proof: premium, but visually subordinate to the clear module rail above. */
.home-page .showcase-section .showcase-rich {
    --active-rgb: var(--stage-acquire);
    position: relative;
    width: min(100% - 48px, 1440px);
    margin: 78px auto 0;
    padding: 0;
}

.home-page .showcase-section .showcase-rich[data-phase="engage"] { --active-rgb: var(--stage-engage); }
.home-page .showcase-section .showcase-rich[data-phase="deliver"] { --active-rgb: var(--stage-deliver); }
.home-page .showcase-section .showcase-rich[data-phase="run"] { --active-rgb: var(--stage-run); }

.home-page .showcase-section .showcase-rich::before {
    display: none;
}

.home-page .showcase-section .showcase-rich::after {
    display: none;
}

.home-page .showcase-rich-inner {
    display: grid;
    grid-template-columns: minmax(315px, 360px) minmax(0, 1fr);
    max-width: none;
    min-height: 540px;
    border: 1px solid rgba(32, 48, 78, .13);
    border-radius:  0;
    background: #0b1428;
    box-shadow:
        0 2px 3px rgba(18, 29, 53, .05),
        0 26px 72px rgba(36, 51, 78, .16),
        0 68px 165px rgba(55, 68, 96, .12);
    overflow: hidden;
}

.home-page .showcase-rich-content {
    position: relative;
    z-index: 2;
    justify-content: center;
    padding: 50px 42px;
    border: 0;
    background:
        #101d38;
}

.home-page .showcase-rich-content::after {
    content: "";
    position: absolute;
    top: 7%;
    right: 0;
    bottom: 7%;
    width: 1px;
    background: transparent;
}

.home-page .showcase-stage-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: rgba(222, 231, 248, .52);
    font-family: var(--wr-body);
    font-size: 9px;
    font-weight: 740;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.home-page .showcase-stage-label::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius:  0;
    background: rgb(var(--active-rgb));
    box-shadow: 0 0 12px rgba(var(--active-rgb), .6);
}

.home-page .showcase-rich-header {
    gap: 15px;
    margin-bottom: 24px;
}

.home-page .showcase-rich-icon {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(var(--active-rgb), .2);
    border-radius:  0;
    background: rgba(var(--active-rgb), .11) !important;
}

.home-page .showcase-rich-icon i {
    color: rgb(var(--active-rgb)) !important;
    font-size: 18px;
}

.home-page .showcase-rich-phase {
    color: rgb(var(--active-rgb)) !important;
    font-family: var(--wr-body);
    font-size: 9px;
    font-weight: 780;
    letter-spacing: .15em;
}

.home-page .showcase-rich-title {
    color: #fff;
    font-family: var(--wr-display);
    font-size: 27.9px;
    font-weight: 650;
    line-height: 1;
    letter-spacing: -.05em;
}

.home-page .showcase-rich-desc {
    margin-bottom: 26px;
    color: #d6dfed;
    font-family: var(--wr-body);
    font-size: 16px;
    line-height: 1.68;
}

.home-page .showcase-rich-features {
    gap: 13px;
    margin-bottom: 30px;
}

.home-page .showcase-rich-features li {
    gap: 11px;
    color: rgba(239, 243, 252, .82);
    font-family: var(--wr-body);
    font-size: 14px;
    line-height: 1.5;
}

.home-page .showcase-rich-features li i {
    width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    margin-top: 0;
    border: 1px solid rgba(var(--active-rgb), .2);
    border-radius:  0;
    color: rgb(var(--active-rgb)) !important;
    background: rgba(var(--active-rgb), .08);
    font-size: 7px;
}

.home-page .showcase-rich-actions {
    width: auto;
    align-items: flex-start;
    align-self: flex-start;
    gap: 13px;
    margin-top: 0;
}

.home-page .showcase-rich-cta-primary {
    min-height: 49px;
    padding: 0 22px;
    border-radius:  0;
    color: #0b1428;
    background: #fff;
    font-family: var(--wr-body);
    font-size: 14px;
    font-weight: 740;
    box-shadow: 0 15px 34px rgba(0, 0, 0, .22);
}

.home-page .showcase-rich-cta-primary:hover {
    color: #071021;
    background: #f8fbff;
}

.home-page .showcase-rich-cta-link {
    padding-left: 4px;
    color: #d6dfed;
    font-family: var(--wr-body);
    font-size: 14px;
    font-weight: 650;
}

.home-page .showcase-rich-cta-link:hover {
    color: #fff;
}

.home-page .showcase-rich-visual {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    min-width: 0;
    min-height: 540px;
    padding: 42px 38px 30px;
    border: 0;
    border-radius:  0;
    background:
        #f8fafc;
}

.home-page .showcase-rich-frame {
    min-height: 0;
    margin: auto 0;
}

.home-page .showcase-rich-frame .pp-product-shot {
    max-height: min(55svh, 600px);
    object-fit: contain;
}

.home-page .showcase-rich-image {
    width: 100%;
    max-height: 450px;
    border: 1px solid rgba(29, 45, 74, .1);
    border-radius:  0;
    object-fit: contain;
    background: #fff;
    box-shadow:
        0 2px 4px rgba(16, 27, 48, .06),
        0 20px 54px rgba(41, 58, 87, .15);
    animation: showcaseBreathing 12s ease-in-out infinite;
}

.home-page .showcase-rich-visual:hover .showcase-rich-image {
    transform: scale(1.012) translateY(-2px);
}

.home-page .showcase-rich-image-nav {
    bottom: 14px;
    padding: 7px 12px;
    opacity: 1;
    background: rgba(255, 255, 255, .86);
}

.home-page .showcase-rich-dot.active {
    background: rgb(var(--active-rgb));
    box-shadow: 0 0 8px rgba(var(--active-rgb), .45);
}

.home-page .showcase-rich-visual::after {
    top: 28px;
    right: 30px;
    opacity: .58;
}

.home-page .showcase-context-rail {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(30, 46, 75, .09);
    border-radius:  0;
    background: rgba(255, 255, 255, .56);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.home-page .showcase-context-rail span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    padding: 2px 9px;
    color: #536078;
    font-family: var(--wr-body);
    font-size: 9px;
    font-weight: 680;
    text-align: center;
    white-space: nowrap;
}

.home-page .showcase-context-rail span + span {
    border-left: 1px solid rgba(34, 49, 77, .09);
}

.home-page .showcase-context-rail i {
    color: rgb(var(--active-rgb));
    font-size: 9px;
}

.home-page .showcase-rich-glow {
    background: transparent !important;
}

@media (max-width: 1100px) {
.home-page .showcase-section .lifecycle-ribbon-inner {
        flex-wrap: wrap;
        gap: 9px;
    }

    .home-page .showcase-section .lifecycle-phase {
        flex: 1 1 calc(50% - 5px);
    }

    .home-page .showcase-section .lifecycle-phase-apps {
        justify-content: center;
    }

    .home-page .showcase-section .lifecycle-connector {
        display: none;
    }

    .home-page .showcase-rich-inner {
        grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
    }
}

@media (max-width: 860px) {
    .home-page .showcase-section {
        padding-top: 64px;
        padding-bottom: 138px;
    }

    .home-page .showcase-fluid {
        width: min(100% - 32px, 760px);
    }

    .home-page .showcase-section .showcase-rich {
        width: 100%;
    }

    .home-page .showcase-rich-frame .pp-product-shot {
        max-height: none;
    }

    .home-page .showcase-rich-inner {
        grid-template-columns: 1fr;
        border-radius:  0;
    }

    .home-page .showcase-rich-content {
        min-height: 480px;
        padding: 44px 38px 48px;
    }

    .home-page .showcase-rich-content::after {
        top: auto;
        right: 7%;
        bottom: 0;
        left: 7%;
        width: auto;
        height: 1px;
    }

    .home-page .showcase-rich-visual {
        min-height: 440px;
        padding: 30px;
    }
}

@media (max-width: 560px) {
    .home-page .showcase-section {
        padding: 52px 0 128px;
    }

    .home-page .showcase-fluid {
        width: min(100% - 26px, 520px);
    }

    .home-page .showcase-intro {
        margin-bottom: 22px;
    }

    .home-page .showcase-intro-text {
        font-size: clamp(27px, 6.48vw, 30.6px);
        line-height: 1.14;
    }

    .home-page .showcase-section .hero-lifecycle-ribbon {
        padding: 0;
        border-radius:  0;
    }

    .home-page .showcase-section .lifecycle-ribbon-inner {
        gap: 6px;
    }

    .home-page .showcase-section .lifecycle-phase {
        gap: 8px;
        padding: 10px 5px;
        border-radius:  0;
    }

    .home-page .showcase-section .lifecycle-phase-header {
        justify-content: center;
    }

    .home-page .showcase-section .lifecycle-phase-apps {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 5px;
    }

    .home-page .showcase-section .lifecycle-app-chip {
        min-width: 0;
        min-height: 74px;
        padding-inline: 0;
        font-size: 13px;
    }

    .home-page .showcase-section .lifecycle-app-icon {
        width: 39px;
        height: 39px;
        flex-basis: 39px;
    }

    .home-page .showcase-section .showcase-rich {
        margin-top: 64px;
    }

    .home-page .showcase-rich-inner {
        min-height: 0;
        border-radius:  0;
    }

    .home-page .showcase-rich-content {
        min-height: 0;
        padding: 38px 25px 42px;
    }

    .home-page .showcase-rich-actions,
    .home-page .showcase-rich-cta-primary {
        width: 100%;
    }

    .home-page .showcase-rich-cta-primary {
        justify-content: center;
    }

    .home-page .showcase-rich-visual {
        min-height: 310px;
        padding: 23px 16px 16px;
        gap: 14px;
    }

    .home-page .showcase-rich-image {
        border-radius:  0;
    }

    .home-page .showcase-context-rail {
        padding: 9px 6px;
    }

    .home-page .showcase-context-rail span {
        flex-direction: column;
        gap: 4px;
        padding: 1px 3px;
        font-size: 8px;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .showcase-section *,
    .home-page .showcase-section *::before,
    .home-page .showcase-section *::after {
        animation: none !important;
        transition-duration: .01ms !important;
    }

    .home-page .showcase-section .lifecycle-app-chip.active .chip-progress::after {
        transform: scaleX(1);
    }
}

/* Catalogue grouping from side_nav.dart; retain readable chips as modules grow. */
.home-page .showcase-section .lifecycle-ribbon-inner { display:grid; grid-template-columns:minmax(0,.8fr) 12px minmax(0,1.1fr) 12px minmax(0,1.15fr) 12px minmax(0,1.6fr); gap:10px; }
.home-page .showcase-section .lifecycle-phase { min-width:0; width:auto; }
.home-page .showcase-section .lifecycle-app-chip { min-width:0; }
.home-page .showcase-section .lifecycle-phase-deliver .lifecycle-phase-apps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
.home-page .showcase-section .lifecycle-phase-run .lifecycle-phase-apps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
@media(max-width:1250px) {
 .home-page .showcase-section .lifecycle-ribbon-inner { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
 .home-page .showcase-section .lifecycle-connector { display:none; }
}
@media(max-width:600px) {
 .home-page .showcase-section .lifecycle-ribbon-inner { gap:8px; }
 .home-page .showcase-section .lifecycle-phase-deliver .lifecycle-phase-apps,.home-page .showcase-section .lifecycle-phase-run .lifecycle-phase-apps { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (min-width: 561px) {
    .home-page .showcase-section .lifecycle-phase-engage .lifecycle-phase-apps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
