/* ============================================================
       CSS VARIABLES
       ============================================================ */

:root {
    --fa-font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --fa-dark-2: #0a1a1e;
    --fa-accent: #c17a3a;
    --fa-gold: #d4a74a;
    --fa-accent-light: #d99b5a;
}


/* ============================================================
       SHOWCASE
       ============================================================ */

.fa-showcase {
    position: relative;
    min-height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    background: var(--fa-dark-2);
}


/* ============================================================
       BACKGROUND
       ============================================================ */

.fa-showcase-bg {
    position: absolute;
    inset: -1%;
    z-index: -3;
    background-position: center 35%;
    background-repeat: no-repeat;
    background-size: cover;
    filter: brightness(.58) saturate(.72) contrast(1.04);
    transform: scale(1.02);
}


/* ============================================================
       OVERLAYS
       ============================================================ */

.fa-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient( 90deg, rgba(3, 22, 28, .94) 0%, rgba(6, 31, 38, .86) 24%, rgba(9, 42, 50, .62) 47%, rgba(10, 45, 53, .35) 70%, rgba(4, 22, 28, .58) 100% );
}

.fa-showcase::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient( 180deg, rgba(0, 0, 0, .34) 0%, transparent 24%, transparent 72%, rgba(0, 0, 0, .48) 100% );
}


/* ============================================================
       INNER
       ============================================================ */

.fa-showcase-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 5rem 2.5rem 3.5rem;
}


/* ============================================================
       HEADER
       ============================================================ */

.fa-showcase-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.8rem;
}

.fa-showcase-counter {
    flex-shrink: 0;
    color: rgba(255, 255, 255, .72);
    font-family: var(--fa-font-display);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .13em;
    font-variant-numeric: tabular-nums;
}

.fa-showcase-header-line {
    flex: 1;
    height: 1px;
    background: linear-gradient( 90deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .04) );
}

.fa-showcase-header-title {
    flex-shrink: 0;
    color: rgba(255, 255, 255, .58);
    font-family: var(--fa-font-display);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}


/* ============================================================
       MAIN GRID
       ============================================================ */

.fa-showcase-main {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) minmax(380px, 1.2fr) 320px;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
    min-width: 0;
}

    .fa-showcase-main > * {
        min-width: 0;
    }

.fa-showcase-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: .75rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.fa-showcase-thumbs {
    display: flex;
    align-items: stretch;
    gap: .7rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    padding: .65rem;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 15px;
    background: rgba(3, 22, 28, .58);
    box-shadow: 0 15px 45px rgba(0, 0, 0, .3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    cursor: grab;
    touch-action: pan-x;
}

/* ============================================================
       LEFT CONTENT
       ============================================================ */

.fa-showcase-left {
    max-width: 440px;
    color: #fff;
    transition: opacity .25s ease, transform .25s ease;
}

.fa-showcase-code {
    margin: 0 0 .35rem;
    color: #fff;
    font-family: var(--fa-font-display);
    font-size: clamp(3.2rem, 5.5vw, 5rem);
    font-weight: 800;
    line-height: .95;
    letter-spacing: -.045em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .45);
}

.fa-showcase-name {
    margin: 0 0 1.25rem;
    color: rgba(255, 255, 255, .78);
    font-family: var(--fa-font-display);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .21em;
    text-transform: uppercase;
}

.fa-showcase-rule {
    width: 52px;
    height: 3px;
    margin-bottom: 1.35rem;
    border-radius: 2px;
    background: linear-gradient( 90deg, var(--fa-accent), var(--fa-gold) );
    box-shadow: 0 2px 12px rgba(224, 149, 74, .28);
}

.fa-showcase-desc {
    max-width: 25rem;
    margin: 0 0 2rem;
    color: rgba(255, 255, 255, .78);
    font-size: .91rem;
    line-height: 1.75;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}


/* ============================================================
       CTA
       ============================================================ */

.fa-showcase-cta {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: .9rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 5px;
    background: rgba(5, 30, 37, .82);
    color: #fff;
    font-family: var(--fa-font-display);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .18);
    backdrop-filter: blur(8px);
    transition: background .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease;
    text-decoration: none;
}

    .fa-showcase-cta:hover {
        color: #fff;
        background: var(--fa-accent);
        border-color: var(--fa-accent);
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
    }


/* ============================================================
       THREE.JS
       ============================================================ */

.fa-showcase-3d {
    position: relative;
    width: 100%;
    height: 720px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    background: transparent;
}

#threeCanvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    outline: none;
    background: transparent !important;
    cursor: grab;
    touch-action: none;
}

    #threeCanvas:active {
        cursor: grabbing;
    }


/* ============================================================
       LOADER
       ============================================================ */

.fa-canvas-loader {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 1;
    transition: opacity .35s ease;
}

    .fa-canvas-loader.hidden {
        opacity: 0;
    }

    .fa-canvas-loader .spinner {
        width: 34px;
        height: 34px;
        border: 2px solid rgba(255, 255, 255, .12);
        border-top-color: var(--fa-accent);
        border-radius: 50%;
        animation: fa-showcase-spin .8s linear infinite;
    }

@keyframes fa-showcase-spin {
    to {
        transform: rotate(360deg);
    }
}


/* ============================================================
       SPECIFICATIONS
       ============================================================ */

.fa-showcase-specs-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.fa-spec-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.05rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    opacity: 0;
    transition: background .25s ease;
}

    .fa-spec-item:last-child {
        border-bottom: 0;
    }

.fa-spec-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 10px;
    background: rgba(255, 255, 255, .075);
    color: #e5f1f3;
    font-size: 1.05rem;
    backdrop-filter: blur(8px);
}

.fa-spec-label {
    margin-bottom: .2rem;
    color: rgba(255, 255, 255, .57);
    font-size: .59rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.fa-spec-value {
    color: #fff;
    font-family: var(--fa-font-display);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}

.fa-spec-unit {
    margin-left: .3rem;
    color: rgba(255, 255, 255, .62);
    font-size: .65rem;
    font-weight: 500;
}

.fa-spec-sub {
    margin-top: .15rem;
    color: rgba(255, 255, 255, .46);
    font-size: .68rem;
}

.fa-spec-item.fade-in {
    animation: fa-showcase-spec-fade-in .45s ease forwards;
}

@keyframes fa-showcase-spec-fade-in {

    from {
        opacity: 0;
        transform: translateX(12px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ============================================================
       PRODUCT SLIDER
       ============================================================ */

.fa-showcase-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: .75rem;
    width: 100%;
    min-width: 0;
}


/* ============================================================
       TRACK
       ============================================================ */

.fa-showcase-thumbs {
    display: flex;
    align-items: stretch;
    gap: .7rem;
    width: 100%;
    min-width: 0;
    padding: .65rem;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 15px;
    background: rgba(3, 22, 28, .58);
    box-shadow: 0 15px 45px rgba(0, 0, 0, .3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    cursor: grab;
    touch-action: pan-x;

    -webkit-overflow-scrolling: touch;
}

    .fa-showcase-thumbs::-webkit-scrollbar {
        display: none;
    }

    .fa-showcase-thumbs.is-dragging {
        cursor: grabbing;
        scroll-behavior: auto;
        scroll-snap-type: none;

    }


/* ============================================================
       ARROWS
       ============================================================ */

.fa-slider-arrow {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    background: rgba(3, 22, 28, .72);
    color: rgba(255, 255, 255, .82);
    font-size: 1rem;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .22);
    transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease, opacity .25s ease;
}

    .fa-slider-arrow:hover:not(:disabled) {
        color: #fff;
        background: var(--fa-accent);
        border-color: var(--fa-accent);
        transform: translateY(-1px);
    }

    .fa-slider-arrow:focus-visible {
        outline: 2px solid var(--fa-accent-light);
        outline-offset: 3px;
    }

    .fa-slider-arrow:disabled {
        opacity: .25;
        cursor: default;
        pointer-events: none;
    }


/* ============================================================
       THUMB BUTTON
       ============================================================ */

.fa-thumb-btn {
    position: relative;
    width: 280px;
    min-width: 280px;
    flex: 0 0 280px;
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    cursor: pointer;
    text-align: left;
    scroll-snap-align: start;
    transition: background .3s ease, border-color .3s ease, transform .3s ease;
}

    .fa-thumb-btn:hover {
        background: rgba(255, 255, 255, .055);
        border-color: rgba(255, 255, 255, .1);
        transform: translateY(-1px);
    }

    .fa-thumb-btn.active {
        background: rgba(255, 255, 255, .085);
        border-color: rgba(255, 255, 255, .13);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 5px 20px rgba(0, 0, 0, .22);
    }

    .fa-thumb-btn:focus-visible {
        outline: 2px solid var(--fa-accent);
        outline-offset: -2px;
    }


    /* ============================================================
       THUMB IMAGE
       ============================================================ */

    .fa-thumb-btn .fa-thumb-img {
        width: 52px;
        height: 52px;
        flex: 0 0 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, .1);
        border-radius: 10px;
        background: rgba(255, 255, 255, .045);
    }

        .fa-thumb-btn .fa-thumb-img img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            opacity: .48;
            filter: grayscale(.35);
            transition: opacity .3s ease, filter .3s ease, transform .3s ease;
        }

    .fa-thumb-btn.active
    .fa-thumb-img img {
        opacity: 1;
        filter: grayscale(0);
        transform: scale(1.04);
    }


/* ============================================================
       THUMB TEXT
       ============================================================ */

.fa-thumb-code {
    margin-bottom: .08rem;
    color: rgba(255, 255, 255, .48);
    font-family: var(--fa-font-display);
    font-size: .88rem;
    font-weight: 800;
    transition: color .3s ease;
}

.fa-thumb-btn.active
.fa-thumb-code {
    color: #fff;
}

.fa-thumb-tag {
    display: block;
    color: rgba(255, 255, 255, .34);
    font-size: .61rem;
    line-height: 1.35;
    transition: color .3s ease;
}

.fa-thumb-btn.active
.fa-thumb-tag {
    color: rgba(255, 255, 255, .58);
}


/* ============================================================
       ACTIVE ACCENT
       ============================================================ */

.fa-thumb-accent {
    position: absolute;
    right: .7rem;
    bottom: 0;
    left: .7rem;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: linear-gradient( 90deg, var(--fa-accent), var(--fa-gold) );
    opacity: 0;
    transition: opacity .35s ease;
}

.fa-thumb-btn.active
.fa-thumb-accent {
    opacity: 1;
}


/* ============================================================
       VIEW ALL
       ============================================================ */

.fa-showcase-viewall {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding-bottom: .25rem;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .62);
    font-family: var(--fa-font-display);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: color .25s ease, border-color .25s ease;
    text-decoration: none;
}

    .fa-showcase-viewall:hover {
        color: var(--fa-accent-light);
        border-color: var(--fa-accent);
    }


/* ============================================================
       VISUALLY HIDDEN
       ============================================================ */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}


/* ============================================================
       RESPONSIVE
       ============================================================ */

@media (max-width: 1200px) {

    .fa-showcase-main {
        grid-template-columns: 1fr 1fr;
    }

    .fa-showcase-specs-panel {
        display: grid !important;
        grid-column: 1 / -1;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
        margin-top: 1rem;
    }

    .fa-showcase-3d {
        height: 440px;
    }
}


@media (max-width: 768px) {

    .fa-showcase-main {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .fa-showcase-left {
        max-width: 100%;
        margin: 0 auto;
    }

    .fa-showcase-rule {
        margin-right: auto;
        margin-left: auto;
    }

    .fa-showcase-desc {
        margin-right: auto;
        margin-left: auto;
    }

    .fa-showcase-3d {
        height: 360px;
    }

    .fa-showcase-specs-panel {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }

    .fa-showcase-slider {
        gap: .5rem;
    }

    .fa-slider-arrow {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        font-size: .85rem;
    }

    .fa-showcase-thumbs {
        gap: .5rem;
        padding: .5rem;
    }

    .fa-thumb-btn {
        width: 245px;
        min-width: 245px;
        flex-basis: 245px;
        gap: .65rem;
        padding: .7rem;
    }

        .fa-thumb-btn .fa-thumb-img {
            width: 46px;
            height: 46px;
            flex-basis: 46px;
        }
}


@media (max-width: 575px) {

    .fa-showcase-inner {
        padding: 3.5rem 1.15rem 2.5rem;
    }

    .fa-showcase-header {
        gap: .8rem;
        margin-bottom: 2rem;
    }

    .fa-showcase-header-title {
        font-size: .58rem;
        letter-spacing: .14em;
    }

    .fa-showcase-main {
        gap: 1rem;
    }

    .fa-showcase-3d {
        height: 330px;
    }

    .fa-showcase-slider {
        gap: .35rem;
    }

    .fa-slider-arrow {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        font-size: .75rem;
    }

    .fa-showcase-thumbs {
        gap: .45rem;
        padding: .45rem;
    }

    .fa-thumb-btn {
        width: 220px;
        min-width: 220px;
        flex-basis: 220px;
        gap: .55rem;
        padding: .65rem;
    }

        .fa-thumb-btn .fa-thumb-img {
            width: 44px;
            height: 44px;
            flex-basis: 44px;
        }

    .fa-thumb-code {
        font-size: .8rem;
    }

    .fa-thumb-tag {
        font-size: .56rem;
    }
}
