
.landing-hero-media-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    overflow: hidden;

    border: 1px solid rgba(194, 75, 240, 0.20);
    border-radius: 0.675rem;

    background: var(--bg-secondary);

    box-shadow:
        0 0.75rem 1.75rem rgba(82, 84, 206, 0.33),
        0 0 0 1px rgba(194, 75, 240, 0.08);
}


/* ============================================================
   DEMO PILL
   ============================================================ */

.demo-pill {
    appearance: none;
    border: 1px solid #d9d9e2;
    background: #ffffff;
    color: #555563;
    height: 40px;

    padding: 0 17px;
    border-radius: 999px;

    font-size: 11pt;
    font-weight: 600;
    line-height: 1;

    cursor: pointer;

    box-shadow: 0 10px 12px rgba(0, 0, 0, 0.16);

    transition:
        background 150ms ease,
        border-color 150ms ease,
        color 150ms ease,
        box-shadow 150ms ease;
}

.demo-pill span {
    padding: 0 4px;
}

.demo-pill:hover {
    background: #f7f7fa;
    border-color: #c9c9d4;
    color: #33333d;
}

.demo-pill.active {
    font-size: 11.5pt;
    background: var(--rix-color-primary);
    border-color: var(--rix-color-on-primary);
    color: var(--rix-color-on-primary);

    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.16);
}
.demo-pill:active {
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}

.demo-pill:focus-visible {
    outline: 2px solid #c98be5;
    outline-offset: 2px;
}

/* ============================================================
   DEMO BLOCK
   ============================================================ */

#demo-block {
    position: relative;

    width: 100%;
    height: auto;

    aspect-ratio: var(--demo-video-aspect-ratio, 16 / 10);
}


/* ============================================================
   VIDEO
   ============================================================ */

#demo-video-container {
    position: absolute;
    inset: 0;

    overflow: hidden;

    visibility: hidden;
    opacity: 0;

    transition:
        opacity 180ms ease,
        visibility 0s linear 180ms;
}


#demo-video-container:not(.hidden) {
    visibility: visible;
    opacity: 1;

    transition:
        opacity 180ms ease,
        visibility 0s linear 0s;
}


#demo-video {
    display: block;

    width: 100%;
    height: 100%;

    /*
     * NEVER crop the video.
     *
     * The container has the same aspect ratio as the video,
     * so the entire frame is always visible.
     */
    object-fit: contain;
    transform: scale(1.01);
}


/* ============================================================
   INTRO
   ============================================================ */

#demo-intro {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    isolation: isolate;

    background: #f4f3f8;

    text-align: center;
}


/* ============================================================
   GEOMETRY
   ============================================================ */

.demo-intro-shape {
    position: absolute;
    z-index: 0;

    pointer-events: none;

    transform-origin: center;
    will-change: transform, opacity;

    /*
     * Very large radius intentionally makes these feel
     * like soft geometric forms rather than rectangles.
     */
    border-radius: 999px;
}


/* ------------------------------------------------------------
   BLUE — dominant right-side shape
   ------------------------------------------------------------ */

.demo-intro-shape--blue {
    width: 53%;
    height: 155%;

    right: -22%;
    top: -28%;

    background: #5254ce;

    transform: rotate(21deg);
}


/* ------------------------------------------------------------
   VIOLET — large upper-left shape
   ------------------------------------------------------------ */

.demo-intro-shape--violet {
    width: 64%;
    height: 54%;

    left: -23%;
    top: -24%;

    background: #8b5cf6;

    transform: rotate(-23deg);
}


/* ------------------------------------------------------------
   CORAL — large lower-left shape
   ------------------------------------------------------------ */

.demo-intro-shape--pink {
    width: 58%;
    height: 43%;

    left: -20%;
    bottom: -22%;

    background: #f28c5b;

    transform: rotate(17deg);
}


/* ------------------------------------------------------------
   YELLOW — smaller but still substantial accent
   ------------------------------------------------------------ */

.demo-intro-shape--yellow {
    width: 39%;
    height: 45%;

    right: -10%;
    bottom: -20%;

    background: #f5c84c;

    transform: rotate(-15deg);
}


/* ============================================================
   CENTRAL CARD
   ============================================================ */

.demo-intro-card {
    position: relative;
    z-index: 2;
    width: min(72%, 760px);
    padding: clamp(2.75rem, 6vw, 5.5rem) clamp(2rem, 5vw, 5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #17171c;
    color: white;
    border-radius: 0.675rem;

    box-shadow:
        0 2rem 5rem rgba(20, 20, 30, 0.24),
        0 0.5rem 1.5rem rgba(20, 20, 30, 0.18);

    transform: rotate(-1.2deg);
}


/* ------------------------------------------------------------
   Subtle inner highlight
   ------------------------------------------------------------ */

.demo-intro-card::before {
    content: "";

    position: absolute;
    inset: 1px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    pointer-events: none;
}


/* ============================================================
   BRAND
   ============================================================ */

.demo-intro-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.55rem;

    margin-bottom: 1.5rem;

    color: rgba(255, 255, 255, 0.68);

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}


.demo-intro-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 1.35rem;
    height: 1.35rem;

    border-radius: 0.35rem;

    background: rgba(255, 255, 255, 0.1);
}


.demo-intro-logo-mark img {
    width: 2rem;
    height: 2rem;
}


/* ============================================================
   TYPOGRAPHY
   ============================================================ */

#demo-title {
    margin: 0;

    max-width: 850px;

    font-size: clamp(2.25rem, 5vw, 4.75rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
    font-weight: 750;

    color: white;
}


#demo-subtitle {
    margin: 1.5rem 0 0;

    max-width: 560px;

    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    line-height: 1.5;

    color: rgba(255, 255, 255, 0.65);
}


/* ============================================================
   INTRO ANIMATION
   ============================================================ */

#demo-intro .demo-intro-card {
    animation:
        demoIntroCardIn 700ms cubic-bezier(.16, 1, .3, 1) both;
}


#demo-intro .demo-intro-eyebrow {
    animation:
        demoIntroContentIn 550ms 180ms cubic-bezier(.16, 1, .3, 1) both;
}


#demo-intro #demo-title {
    animation:
        demoIntroContentIn 650ms 250ms cubic-bezier(.16, 1, .3, 1) both;
}


#demo-intro #demo-subtitle {
    animation:
        demoIntroContentIn 650ms 350ms cubic-bezier(.16, 1, .3, 1) both;
}


/* ------------------------------------------------------------
   Shape entrance animations
   ------------------------------------------------------------ */

#demo-intro .demo-intro-shape--violet {
    animation:
        demoShapeVioletIn 900ms cubic-bezier(.16, 1, .3, 1) both;
}


#demo-intro .demo-intro-shape--blue {
    animation:
        demoShapeBlueIn 900ms 80ms cubic-bezier(.16, 1, .3, 1) both;
}


#demo-intro .demo-intro-shape--pink {
    animation:
        demoShapeCoralIn 950ms 120ms cubic-bezier(.16, 1, .3, 1) both;
}


#demo-intro .demo-intro-shape--yellow {
    animation:
        demoShapeYellowIn 850ms 180ms cubic-bezier(.16, 1, .3, 1) both;
}


/* ============================================================
   KEYFRAMES
   ============================================================ */

@keyframes demoIntroCardIn {
    from {
        opacity: 0;

        transform:
            rotate(-1.2deg) scale(0.88) translateY(1rem);
    }

    to {
        opacity: 1;

        transform:
            rotate(-1.2deg) scale(1) translateY(0);
    }
}


@keyframes demoIntroContentIn {
    from {
        opacity: 0;

        transform:
            translateY(1rem);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


@keyframes demoShapeVioletIn {
    from {
        opacity: 0;

        transform:
            rotate(-33deg) translate(-5rem, -4rem);
    }

    to {
        opacity: 1;

        transform:
            rotate(-23deg) translate(0, 0);
    }
}


@keyframes demoShapeBlueIn {
    from {
        opacity: 0;

        transform:
            rotate(30deg) translate(5rem, -3rem);
    }

    to {
        opacity: 1;

        transform:
            rotate(21deg) translate(0, 0);
    }
}


@keyframes demoShapeCoralIn {
    from {
        opacity: 0;

        transform:
            rotate(27deg) translate(-4rem, 4rem);
    }

    to {
        opacity: 1;

        transform:
            rotate(17deg) translate(0, 0);
    }
}


@keyframes demoShapeYellowIn {
    from {
        opacity: 0;

        transform:
            rotate(-25deg) translate(4rem, 4rem);
    }

    to {
        opacity: 1;

        transform:
            rotate(-15deg) translate(0, 0);
    }
}


/* ============================================================
   SMALL SCREENS
   ============================================================ */

@media (max-width: 576px) {

    .demo-intro-shape {
        border-radius: 999px;
    }


    .demo-intro-card {
        width: 82%;

        padding:
            2.5rem 1.5rem;
    }


    #demo-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }


    #demo-subtitle {
        font-size: 0.9rem;
    }


    .demo-intro-shape--violet {
        width: 78%;
        height: 58%;

        left: -32%;
        top: -25%;
    }


    .demo-intro-shape--blue {
        width: 65%;
        height: 150%;

        right: -30%;
        top: -25%;
    }


    .demo-intro-shape--pink {
        width: 70%;
        height: 45%;

        left: -30%;
        bottom: -20%;
    }


    .demo-intro-shape--yellow {
        width: 48%;
        height: 45%;

        right: -15%;
        bottom: -20%;
    }
}