/*
|--------------------------------------------------------------------------
| OpenPage — Just for Fun
|--------------------------------------------------------------------------
|
| Page:
| https://openpage.top/show/desplay/
|
*/

:root {
    --fun-a: #4776e6;
    --fun-b: #815acb;
    --fun-c: #e85d75;
    --fun-d: #24a89b;

    --fun-gradient:
        linear-gradient(
            120deg,
            var(--fun-a),
            var(--fun-b),
            var(--fun-c)
        );
}


/*
|--------------------------------------------------------------------------
| Page structure
|--------------------------------------------------------------------------
*/

.fun-page {
    min-height: 100vh;
    overflow-x: hidden;
    background: #f5f3f8;
}

.fun-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.fun-main {
    flex: 1;
}


/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.fun-header {
    position: relative;
    z-index: 50;
    border-bottom: 1px solid rgba(221, 217, 226, 0.68);
    background: rgba(246, 245, 248, 0.78);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.fun-header-inner {
    min-height: 4.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.fun-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--page-text);
    font-weight: 850;
    text-decoration: none;
}

.fun-brand:hover {
    color: var(--page-text);
}

.fun-brand-mark {
    position: relative;
    width: 2.65rem;
    height: 2.65rem;
    overflow: hidden;
    border: 1px solid rgba(129, 90, 203, 0.25);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.85);
    box-shadow:
        0 9px 24px rgba(32, 29, 37, 0.09);
}

.fun-brand-mark::before,
.fun-brand-mark::after,
.fun-brand-mark span {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.15rem;
    height: 1.4rem;
    border: 1px solid var(--fun-b);
    border-radius: 0.2rem;
    background: white;
}

.fun-brand-mark::before {
    opacity: 0.35;
    transform: translate(-70%, -38%);
}

.fun-brand-mark::after {
    opacity: 0.68;
    transform: translate(-50%, -50%);
}

.fun-brand-mark span {
    border-color: transparent;
    background: var(--fun-gradient);
    transform: translate(-30%, -62%);
}

.home-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.65rem;
    padding: 0.55rem 1rem;
    color: white;
    border-radius: 999px;
    background: var(--fun-gradient);
    background-size: 170% 100%;
    box-shadow:
        0 9px 22px rgba(71, 118, 230, 0.2);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    transition:
        background-position 250ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.home-link:hover {
    color: white;
    background-position: 100% 0;
    box-shadow:
        0 14px 30px rgba(71, 118, 230, 0.28);
    transform: translateY(-2px);
}


/*
|--------------------------------------------------------------------------
| Main stage
|--------------------------------------------------------------------------
*/

.fun-stage {
    position: relative;
    isolation: isolate;
    min-height: calc(100vh - 4.75rem);
    min-height: calc(100svh - 4.75rem);
    display: grid;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 12% 20%,
            color-mix(in srgb, var(--fun-a) 21%, transparent),
            transparent 29rem
        ),
        radial-gradient(
            circle at 88% 22%,
            color-mix(in srgb, var(--fun-c) 18%, transparent),
            transparent 30rem
        ),
        radial-gradient(
            circle at 80% 86%,
            color-mix(in srgb, var(--fun-d) 17%, transparent),
            transparent 28rem
        ),
        radial-gradient(
            circle at 20% 90%,
            color-mix(in srgb, var(--fun-b) 15%, transparent),
            transparent 27rem
        ),
        linear-gradient(
            145deg,
            #faf9fc,
            #eeebf4
        );
    transition: background 600ms ease;
}

.fun-stage::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0;
    background-image:
        linear-gradient(
            rgba(93, 82, 108, 0.045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(93, 82, 108, 0.045) 1px,
            transparent 1px
        );
    background-size: 3rem 3rem;
    mask-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.78),
            transparent 96%
        );
    -webkit-mask-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.78),
            transparent 96%
        );
}

.fun-stage::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 10%;
    left: 42%;
    width: 17rem;
    height: 17rem;
    border-radius: 50%;
    background:
        linear-gradient(
            145deg,
            color-mix(in srgb, var(--fun-a) 22%, transparent),
            color-mix(in srgb, var(--fun-c) 18%, transparent)
        );
    filter: blur(8px);
    animation:
        fun-glow 10s ease-in-out infinite;
}


/*
|--------------------------------------------------------------------------
| Main message
|--------------------------------------------------------------------------
*/

.fun-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(17rem, 0.75fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 7rem);
    padding-block: clamp(5rem, 11vw, 9rem);
}

.fun-message {
    max-width: 52rem;
}

.fun-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1rem;
    color: var(--fun-b);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.fun-eyebrow::before {
    content: "";
    width: 2rem;
    height: 3px;
    border-radius: 999px;
    background: var(--fun-gradient);
}

.fun-message h1 {
    margin: 0;
    color: var(--page-text);
    font-size: clamp(4.5rem, 12vw, 9rem);
    font-weight: 900;
    letter-spacing: -0.075em;
    line-height: 0.82;
}

.fun-message h1 span {
    display: block;
    color: transparent;
    background: var(--fun-gradient);
    background-clip: text;
    -webkit-background-clip: text;
}

.fun-description {
    max-width: 44rem;
    margin: 2rem 0 0;
    color: #625b69;
    font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.fun-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2.25rem;
}

.fun-actions .button {
    min-height: 3.15rem;
    padding-inline: 1.3rem;
    font-size: 0.86rem;
    font-weight: 800;
}

.fun-actions .button-primary {
    border-color: transparent;
    background: var(--fun-gradient);
    background-size: 170% 100%;
    box-shadow:
        0 13px 30px
        color-mix(in srgb, var(--fun-a) 28%, transparent);
}

.fun-actions .button-primary:hover {
    background-position: 100% 0;
}

.fun-actions .button-secondary {
    border-color:
        color-mix(in srgb, var(--fun-b) 35%, transparent);
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.fun-hint {
    margin: 1rem 0 0;
    color: var(--page-muted);
    font-size: 0.78rem;
}


/*
|--------------------------------------------------------------------------
| Floating information card
|--------------------------------------------------------------------------
*/

.fun-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 2rem;
    border: 1px solid
        color-mix(in srgb, var(--fun-b) 25%, transparent);
    border-radius: var(--page-radius-large);
    background: rgba(255, 255, 255, 0.72);
    box-shadow:
        0 28px 70px
        color-mix(in srgb, var(--fun-a) 17%, transparent);
    backdrop-filter: blur(17px) saturate(135%);
    -webkit-backdrop-filter: blur(17px) saturate(135%);
    transition:
        transform 220ms ease,
        box-shadow 220ms ease;
}

.fun-card::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--fun-gradient);
}

.fun-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -5rem;
    bottom: -5rem;
    width: 11rem;
    height: 11rem;
    border-radius: 50%;
    background:
        color-mix(in srgb, var(--fun-c) 12%, transparent);
}

.fun-card:hover {
    transform: translateY(-6px) rotate(0.7deg);
    box-shadow:
        0 36px 80px
        color-mix(in srgb, var(--fun-a) 22%, transparent);
}

.fun-card-dot {
    width: 0.75rem;
    height: 0.75rem;
    display: block;
    margin-bottom: 3rem;
    border-radius: 50%;
    background: var(--fun-gradient);
    animation:
        fun-pulse 2.8s ease-in-out infinite;
}

.fun-card-label {
    margin: 0;
    color: var(--fun-b);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.fun-card-text {
    margin: 0.75rem 0 0;
    color: var(--page-text);
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
    font-weight: 760;
    line-height: 1.25;
}

.fun-card-colors {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.8rem;
}

.fun-card-colors span {
    width: 2.2rem;
    height: 0.48rem;
    border-radius: 999px;
}

.fun-card-colors span:nth-child(1) {
    background: var(--fun-a);
}

.fun-card-colors span:nth-child(2) {
    background: var(--fun-b);
}

.fun-card-colors span:nth-child(3) {
    background: var(--fun-c);
}

.fun-card-colors span:nth-child(4) {
    background: var(--fun-d);
}


/*
|--------------------------------------------------------------------------
| Moving shapes
|--------------------------------------------------------------------------
*/

.shape-field {
    position: absolute;
    z-index: 1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.fun-shape {
    position: absolute;
    display: block;
    will-change: transform;
}

.page-shape {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 1.5rem;
    box-shadow:
        0 24px 60px rgba(32, 29, 37, 0.08);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.page-shape::before,
.page-shape::after,
.page-shape i {
    content: "";
    position: absolute;
    left: 16%;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
}

.page-shape::before {
    top: 23%;
    width: 54%;
}

.page-shape::after {
    top: 34%;
    width: 68%;
}

.page-shape i {
    top: 45%;
    width: 42%;
}

.page-one {
    top: 7%;
    right: -5rem;
    width: 18rem;
    height: 24rem;
    background:
        color-mix(in srgb, var(--fun-a) 20%, transparent);
    transform: rotate(-9deg);
    animation:
        fun-page-one 9s ease-in-out infinite;
}

.page-two {
    right: 8%;
    bottom: -14rem;
    width: 23rem;
    height: 30rem;
    background:
        color-mix(in srgb, var(--fun-c) 18%, transparent);
    transform: rotate(15deg);
    animation:
        fun-page-two 12s ease-in-out infinite;
}

.page-three {
    bottom: -14rem;
    left: -8rem;
    width: 21rem;
    height: 27rem;
    background:
        color-mix(in srgb, var(--fun-d) 18%, transparent);
    transform: rotate(-17deg);
    animation:
        fun-page-three 11s ease-in-out infinite;
}

.page-four {
    top: -9rem;
    left: 23%;
    width: 14rem;
    height: 19rem;
    background:
        color-mix(in srgb, var(--fun-b) 15%, transparent);
    transform: rotate(11deg);
    animation:
        fun-page-four 10s ease-in-out infinite;
}

.circle-shape {
    border-radius: 50%;
    filter: blur(1px);
}

.circle-one {
    top: 22%;
    left: 4%;
    width: 5rem;
    height: 5rem;
    background:
        color-mix(in srgb, var(--fun-c) 24%, transparent);
    animation:
        fun-circle-one 7s ease-in-out infinite;
}

.circle-two {
    right: 34%;
    bottom: 9%;
    width: 7rem;
    height: 7rem;
    background:
        color-mix(in srgb, var(--fun-d) 20%, transparent);
    animation:
        fun-circle-two 9s ease-in-out infinite;
}

.ring-shape {
    border: 2px solid
        color-mix(in srgb, var(--fun-b) 24%, transparent);
    border-radius: 50%;
}

.ring-one {
    top: 12%;
    left: 48%;
    width: 8rem;
    height: 8rem;
    animation:
        fun-ring-one 13s linear infinite;
}

.ring-two {
    right: 14%;
    bottom: 23%;
    width: 4rem;
    height: 4rem;
    animation:
        fun-ring-two 8s linear infinite;
}


/*
|--------------------------------------------------------------------------
| Floating words
|--------------------------------------------------------------------------
*/

.fun-words {
    position: absolute;
    z-index: 3;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    pointer-events: none;
}

.fun-words span {
    padding: 0.4rem 0.75rem;
    color: rgba(32, 29, 37, 0.48);
    border: 1px solid rgba(93, 82, 108, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}


/*
|--------------------------------------------------------------------------
| Footer
|--------------------------------------------------------------------------
*/

.fun-footer {
    position: relative;
    z-index: 20;
    border-top: 1px solid var(--page-border);
    background: var(--page-background);
}

.fun-footer::before {
    content: "";
    position: absolute;
    top: -1px;
    right: 0;
    left: 0;
    height: 2px;
    background:
        linear-gradient(
            90deg,
            transparent,
            var(--fun-a),
            var(--fun-b),
            var(--fun-c),
            var(--fun-d),
            transparent
        );
}

.fun-footer-inner {
    min-height: 6.5rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    color: var(--page-muted);
    font-size: 0.76rem;
}

.fun-footer-inner p {
    margin: 0;
}

.fun-footer-inner p:nth-child(2) {
    text-align: center;
}

.fun-footer-inner p:last-child {
    text-align: right;
}

.fun-footer a {
    color: var(--page-text);
    font-weight: 750;
}


/*
|--------------------------------------------------------------------------
| Paused state
|--------------------------------------------------------------------------
*/

.motion-paused .fun-shape,
.motion-paused .fun-stage::after,
.motion-paused .fun-card-dot {
    animation-play-state: paused;
}


/*
|--------------------------------------------------------------------------
| Animations
|--------------------------------------------------------------------------
*/

@keyframes fun-glow {
    0%,
    100% {
        transform:
            translate3d(0, 0, 0)
            scale(1);
    }

    50% {
        transform:
            translate3d(3rem, 2rem, 0)
            scale(1.12);
    }
}

@keyframes fun-page-one {
    0%,
    100% {
        transform:
            translate3d(0, 0, 0)
            rotate(-9deg);
    }

    50% {
        transform:
            translate3d(-2rem, 1.5rem, 0)
            rotate(-4deg);
    }
}

@keyframes fun-page-two {
    0%,
    100% {
        transform:
            translate3d(0, 0, 0)
            rotate(15deg);
    }

    50% {
        transform:
            translate3d(-1.5rem, -2rem, 0)
            rotate(10deg);
    }
}

@keyframes fun-page-three {
    0%,
    100% {
        transform:
            translate3d(0, 0, 0)
            rotate(-17deg);
    }

    50% {
        transform:
            translate3d(2rem, -1.5rem, 0)
            rotate(-12deg);
    }
}

@keyframes fun-page-four {
    0%,
    100% {
        transform:
            translate3d(0, 0, 0)
            rotate(11deg);
    }

    50% {
        transform:
            translate3d(1.5rem, 2rem, 0)
            rotate(6deg);
    }
}

@keyframes fun-circle-one {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(2rem, -2.5rem, 0);
    }
}

@keyframes fun-circle-two {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform:
            translate3d(-2rem, -1rem, 0)
            scale(1.18);
    }
}

@keyframes fun-ring-one {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fun-ring-two {
    to {
        transform: rotate(-360deg);
    }
}

@keyframes fun-pulse {
    0%,
    100% {
        box-shadow:
            0 0 0 0.35rem
            color-mix(in srgb, var(--fun-a) 12%, transparent);
    }

    50% {
        box-shadow:
            0 0 0 0.7rem
            color-mix(in srgb, var(--fun-c) 10%, transparent);
    }
}


/*
|--------------------------------------------------------------------------
| Responsive layout
|--------------------------------------------------------------------------
*/

@media (max-width: 850px) {
    .fun-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .fun-card {
        max-width: 34rem;
    }
}

@media (max-width: 620px) {
    .fun-header-inner {
        min-height: 4.25rem;
    }

    .fun-brand-mark {
        width: 2.4rem;
        height: 2.4rem;
    }

    .home-link {
        min-height: 2.4rem;
        padding-inline: 0.8rem;
    }

    .fun-content {
        padding-block: 4rem 6rem;
    }

    .fun-message h1 {
        font-size: clamp(4rem, 22vw, 6rem);
    }

    .fun-actions,
    .fun-actions .button {
        width: 100%;
    }

    .fun-card {
        padding: 1.5rem;
    }

    .page-one {
        right: -10rem;
    }

    .page-four {
        left: 45%;
    }

    .circle-one {
        left: -1rem;
    }

    .fun-footer-inner {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding-block: 1.75rem;
        text-align: center;
    }

    .fun-footer-inner p:last-child {
        text-align: center;
    }
}


/*
|--------------------------------------------------------------------------
| Reduced motion
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {
    .fun-shape,
    .fun-stage::after,
    .fun-card-dot {
        animation: none;
    }

    .fun-card:hover,
    .home-link:hover,
    .button:hover {
        transform: none;
    }
}


/*
|--------------------------------------------------------------------------
| Backdrop-filter fallback
|--------------------------------------------------------------------------
*/

@supports not (backdrop-filter: blur(1rem)) {
    .fun-header {
        background: rgba(246, 245, 248, 0.98);
    }

    .fun-card,
    .fun-actions .button-secondary {
        background: rgba(255, 255, 255, 0.95);
    }
}

/*
|--------------------------------------------------------------------------
| Live synchronized-motion button
|--------------------------------------------------------------------------
*/

.motion-live-button {
    --motion-preview-a: #4776e6;
    --motion-preview-b: #815acb;
    --motion-preview-c: #e85d75;
    --motion-preview-d: #24a89b;

    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.7rem;
    padding: 0.55rem 0.7rem 0.55rem 1.1rem;
    color: #ffffff;
    border: 0;
    background:
        linear-gradient(
            120deg,
            var(--motion-preview-a),
            var(--motion-preview-b),
            var(--motion-preview-c),
            var(--motion-preview-d)
        );
    background-size: 180% 100%;
    box-shadow:
        0 14px 32px
        color-mix(
            in srgb,
            var(--motion-preview-a) 28%,
            transparent
        );
    transition:
        color 180ms ease,
        background-position 400ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.motion-live-button:hover {
    color: #ffffff;
    background-position: 100% 0;
    box-shadow:
        0 19px 40px
        color-mix(
            in srgb,
            var(--motion-preview-b) 32%,
            transparent
        );
    transform: translateY(-3px);
}

.motion-live-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    text-align: left;
}

.motion-live-copy strong {
    font-size: 0.82rem;
    font-weight: 850;
}

.motion-live-copy small {
    max-width: 14rem;
    margin-top: 0.18rem;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.64rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.motion-live-swatches {
    display: flex;
    flex: 0 0 auto;
    gap: 0.25rem;
    padding: 0.42rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.motion-live-swatches i {
    width: 0.68rem;
    height: 0.68rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.12);
    transition: background-color 3s ease;
}

.motion-live-swatches i:nth-child(1) {
    background: var(--motion-preview-a);
}

.motion-live-swatches i:nth-child(2) {
    background: var(--motion-preview-b);
}

.motion-live-swatches i:nth-child(3) {
    background: var(--motion-preview-c);
}

.motion-live-swatches i:nth-child(4) {
    background: var(--motion-preview-d);
}

@media (max-width: 620px) {
    .motion-live-button {
        width: 100%;
    }

    .motion-live-copy {
        flex: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .motion-live-button,
    .motion-live-swatches i {
        transition: none;
    }

    .motion-live-button:hover {
        transform: none;
    }
}