:root {
    color-scheme: dark;
    --simpel-ink: #f7fffb;
    --simpel-muted: rgba(235, 255, 248, 0.76);
    --simpel-green: #5ff7ff;
    --simpel-teal: #4db8ff;
    --simpel-gold: #ffd166;
    --simpel-deep: #082a50;
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(2, 10, 28, 0.34), rgba(3, 28, 55, 0.08) 48%, rgba(2, 10, 28, 0.28)),
        radial-gradient(circle at 51% 46%, rgba(95, 247, 255, 0.08), transparent 30rem),
        url("../background-simpel-prima.png") center / cover no-repeat,
        linear-gradient(180deg, #06172f 0%, #020a1c 100%);
    color: var(--simpel-ink);
}

.simpel-demo {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    isolation: isolate;
}

.simpel-demo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(rgba(95, 247, 255, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(95, 247, 255, 0.12) 1px, transparent 1px),
        linear-gradient(rgba(95, 247, 255, 0.08) 2px, transparent 2px),
        linear-gradient(90deg, rgba(95, 247, 255, 0.06) 2px, transparent 2px);
    background-size: 64px 64px, 64px 64px, 256px 256px, 256px 256px;
    transform: perspective(850px) rotateX(63deg) translateY(36vh) scale(1.62);
    transform-origin: center bottom;
    opacity: 0.18;
}

.simpel-demo::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 51% 52%, rgba(95, 247, 255, 0.08), transparent 20rem),
        radial-gradient(ellipse at 52% 88%, rgba(37, 168, 255, 0.1), transparent 22rem),
        linear-gradient(90deg, rgba(2, 11, 28, 0.24), transparent 30%, transparent 70%, rgba(2, 11, 28, 0.2)),
        linear-gradient(180deg, rgba(2, 10, 28, 0.08), transparent 42%, rgba(0, 0, 0, 0.18));
    pointer-events: none;
}

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

.simpel-demo__ambient::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 46%;
    width: min(62vw, 48rem);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(172, 255, 255, 0.18), rgba(78, 192, 255, 0.08) 34%, transparent 64%),
        conic-gradient(from 18deg, transparent 0deg, rgba(118, 244, 255, 0.12) 40deg, transparent 92deg, rgba(92, 181, 255, 0.1) 166deg, transparent 230deg, rgba(255, 255, 255, 0.08) 292deg, transparent 360deg);
    filter: blur(0.4px);
    opacity: 0.28;
    transform: translate(-50%, -50%);
}

.simpel-demo__ambient::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, transparent 0 18%, rgba(255, 255, 255, 0.08) 19%, transparent 20% 55%, rgba(95, 247, 255, 0.09) 56%, transparent 57%),
        radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.12) 0 1px, transparent 2px),
        radial-gradient(circle at 82% 22%, rgba(143, 245, 255, 0.15) 0 1px, transparent 2px),
        radial-gradient(circle at 68% 76%, rgba(255, 255, 255, 0.12) 0 1px, transparent 2px);
    background-size: 100% 100%, 8rem 8rem, 10rem 10rem, 7rem 7rem;
    opacity: 0.7;
    mix-blend-mode: screen;
}

#simpelPrimaThreeCanvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
    touch-action: none;
}

#simpelPrimaThreeCanvas.is-dragging {
    cursor: grabbing;
}

.simpel-demo__nav {
    position: absolute;
    left: clamp(0.5rem, 1.6vw, 1.8rem);
    right: clamp(0.5rem, 1.6vw, 1.8rem);
    top: clamp(0.4rem, 1.4vh, 0.82rem);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: none;
    min-height: 3.12rem;
    padding: 0.34rem 0.48rem 0.34rem 0.58rem;
    border: 1px solid rgba(205, 251, 255, 0.12);
    border-radius: 1.05rem;
    background: linear-gradient(135deg, rgba(6, 34, 72, 0.28), rgba(7, 79, 126, 0.1));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 12px 38px rgba(0, 15, 42, 0.12);
    backdrop-filter: blur(12px);
}

.simpel-demo__brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 3.35rem;
    min-height: 2.36rem;
    padding: 0.22rem 0.42rem;
    border-radius: 0.78rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(238, 250, 255, 0.84));
    color: #fff;
    text-decoration: none;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 8px 24px rgba(0, 15, 42, 0.12);
}

.simpel-demo__brand img {
    display: block;
    width: auto;
    height: 2.02rem;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 15, 42, 0.2));
}

.simpel-demo__nav-main {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.62rem;
    flex: 1;
    min-width: 0;
}

.simpel-demo__wordmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-width: 7.2rem;
    min-height: 2.12rem;
    padding: 0.28rem 0.62rem;
    border-radius: 0.72rem;
    background: linear-gradient(135deg, rgba(95, 247, 255, 0.1), rgba(255, 255, 255, 0.035));
    color: #fff;
    text-decoration: none;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.simpel-demo__wordmark span,
.simpel-demo__wordmark strong {
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.simpel-demo__wordmark strong {
    color: #8ff7ff;
}

.simpel-demo__menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.36rem;
    flex: 0 1 auto;
}

.simpel-demo__menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.12rem;
    padding: 0.46rem 0.78rem;
    border: 1px solid transparent;
    border-radius: 999px;
    color: rgba(247, 255, 251, 0.86);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.simpel-demo__menu a:hover,
.simpel-demo__menu a:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(143, 247, 255, 0.26);
    background: rgba(255, 255, 255, 0.11);
    outline: none;
}

.simpel-demo__language {
    position: relative;
    flex: 0 0 auto;
}

.simpel-demo__language-trigger,
.simpel-demo__language-option {
    font: inherit;
}

.simpel-demo__language-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    min-height: 2.12rem;
    padding: 0.38rem 0.56rem;
    border: 1px solid rgba(143, 247, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: #fff;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.simpel-demo__language-trigger:hover,
.simpel-demo__language-trigger:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(143, 247, 255, 0.38);
    background: rgba(255, 255, 255, 0.16);
    outline: none;
}

.simpel-demo__language-flag {
    display: inline-grid;
    place-items: center;
    width: 1.42rem;
    height: 1.42rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #5ff7ff, #4db8ff);
    color: #05213c;
    font-size: 0.62rem;
    font-weight: 900;
    box-shadow: 0 0 18px rgba(95, 247, 255, 0.32);
}

.simpel-demo__language-chevron {
    width: 0.46rem;
    height: 0.46rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    opacity: 0.78;
}

.simpel-demo__language-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    display: grid;
    min-width: 10rem;
    padding: 0.38rem;
    border: 1px solid rgba(143, 247, 255, 0.24);
    border-radius: 0.92rem;
    background: rgba(5, 28, 58, 0.88);
    box-shadow: 0 18px 52px rgba(0, 15, 42, 0.34);
    backdrop-filter: blur(18px);
}

.simpel-demo__language-menu[hidden] {
    display: none;
}

.simpel-demo__language-option {
    min-height: 2.35rem;
    border: 0;
    border-radius: 0.68rem;
    background: transparent;
    color: rgba(247, 255, 251, 0.82);
    cursor: pointer;
    font-size: 0.74rem;
    font-weight: 900;
    text-align: left;
    padding: 0.54rem 0.72rem;
}

.simpel-demo__language-option:hover,
.simpel-demo__language-option:focus-visible,
.simpel-demo__language-option.is-active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    outline: none;
}

.simpel-demo__panel {
    position: absolute;
    right: clamp(1rem, 6vw, 4.8rem);
    top: clamp(1rem, 8vh, 5.4rem);
    z-index: 3;
    display: grid;
    gap: 0.2rem;
    width: min(15rem, calc(100% - 2rem));
    padding: 1rem;
    border: 1px solid rgba(95, 247, 255, 0.3);
    border-radius: 0.9rem;
    background: rgba(5, 28, 58, 0.52);
    box-shadow: 0 22px 80px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
    pointer-events: none;
}

.simpel-demo__panel-label,
.simpel-demo__panel small {
    color: rgba(235, 255, 248, 0.72);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.simpel-demo__panel strong {
    color: #fff;
    font-size: 1.45rem;
    font-weight: 900;
}

.simpel-demo__hud {
    position: absolute;
    z-index: 2;
    width: clamp(10rem, 16vw, 16rem);
    height: 2.05rem;
    border: 1px solid rgba(190, 250, 255, 0.24);
    border-radius: 999px;
    background: rgba(5, 28, 58, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 16px 44px rgba(0, 19, 48, 0.18);
    backdrop-filter: blur(14px);
    pointer-events: none;
    animation: simpelHudFloat 4.6s ease-in-out infinite;
}

.simpel-demo__hud span {
    position: absolute;
    inset: 0.48rem 0.72rem;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--simpel-green), var(--simpel-teal), var(--simpel-gold));
    box-shadow: 0 0 22px rgba(71, 242, 166, 0.5);
    animation: simpelHudPulse 2.8s ease-in-out infinite;
}

.simpel-demo__hud--left {
    left: clamp(1rem, 6vw, 4.8rem);
    bottom: 9vh;
}

.simpel-demo__hud--right {
    right: clamp(1rem, 8vw, 6rem);
    bottom: 8vh;
    width: clamp(10rem, 16vw, 16rem);
    animation-delay: -1.6s;
}

.simpel-demo__features {
    position: absolute;
    left: clamp(1rem, 3.6vw, 3.2rem);
    top: clamp(4.35rem, 8.4vh, 5.4rem);
    z-index: 3;
    width: min(18.4rem, calc(100% - 2rem));
    padding: 0.42rem;
    border: 1px solid rgba(214, 244, 255, 0.16);
    border-radius: 0.72rem;
    background:
        linear-gradient(145deg, rgba(6, 34, 72, 0.18), rgba(255, 255, 255, 0.035)),
        radial-gradient(circle at 16% 10%, rgba(95, 247, 255, 0.08), transparent 12rem);
    box-shadow: 0 10px 28px rgba(3, 20, 48, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    color: #f7fffb;
    backdrop-filter: blur(10px);
    pointer-events: none;
}

.simpel-demo__features h2 {
    margin: 0 0 0.3rem;
    color: rgba(247, 255, 251, 0.92);
    font-size: clamp(0.74rem, 0.9vw, 0.86rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.simpel-demo__feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.26rem;
}

.simpel-demo__feature-pill {
    display: flex;
    align-items: center;
    gap: 0.32rem;
    min-width: 0;
    min-height: 1.8rem;
    padding: 0.28rem 0.36rem;
    border: 1px solid rgba(214, 244, 255, 0.14);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(214, 244, 255, 0.035));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 20px rgba(10, 54, 96, 0.05);
}

.simpel-demo__feature-pill strong {
    min-width: 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(0.48rem, 0.58vw, 0.6rem);
    font-weight: 900;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.simpel-demo__feature-icon {
    position: relative;
    flex: 0 0 auto;
    width: 0.82rem;
    height: 0.82rem;
    background: linear-gradient(180deg, #ffd86b, #d9a825);
    box-shadow: 0 9px 18px rgba(205, 150, 32, 0.22);
}

.simpel-demo__feature-icon--online {
    border-radius: 0.18rem;
}

.simpel-demo__feature-icon--online::before {
    content: "";
    position: absolute;
    left: 28%;
    right: 28%;
    top: -0.28rem;
    height: 0.4rem;
    border-radius: 0.16rem 0.16rem 0 0;
    background: #ffd86b;
}

.simpel-demo__feature-icon--response {
    clip-path: polygon(50% 0, 61% 30%, 91% 10%, 75% 42%, 100% 50%, 75% 58%, 91% 90%, 61% 70%, 50% 100%, 39% 70%, 9% 90%, 25% 58%, 0 50%, 25% 42%, 9% 10%, 39% 30%);
}

.simpel-demo__feature-icon--track {
    clip-path: polygon(50% 0, 92% 18%, 84% 62%, 50% 100%, 16% 62%, 8% 18%);
}

.simpel-demo__feature-icon--security {
    width: 0.7rem;
    height: 0.96rem;
    border-radius: 0.24rem;
}

@keyframes simpelHudFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-0.78rem);
    }
}

@keyframes simpelHudPulse {
    0%,
    100% {
        opacity: 0.88;
        transform: scaleX(0.94);
        transform-origin: left center;
    }

    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

.simpel-demo__drag-hint {
    position: absolute;
    right: clamp(1rem, 7vw, 5rem);
    bottom: clamp(5.4rem, 12vh, 8rem);
    z-index: 3;
    padding: 0.64rem 0.88rem;
    border: 1px solid rgba(95, 247, 255, 0.32);
    border-radius: 999px;
    background: rgba(4, 18, 40, 0.62);
    color: rgba(247, 255, 251, 0.82);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    pointer-events: none;
}

.simpel-demo__hover-label {
    position: fixed;
    z-index: 5;
    display: none;
    min-width: 12rem;
    max-width: min(18rem, calc(100vw - 2rem));
    padding: 0.72rem 0.9rem;
    border: 1px solid rgba(95, 247, 255, 0.38);
    border-radius: 0.85rem;
    background: rgba(4, 18, 40, 0.82);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28), 0 0 28px rgba(95, 247, 255, 0.2);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    pointer-events: none;
    backdrop-filter: blur(18px);
}

.simpel-demo__hover-label.is-visible {
    display: block;
}

.simpel-demo__fallback {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 4;
    display: grid;
    gap: 0.22rem;
    max-width: 22rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.9rem;
    background: rgba(4, 18, 40, 0.74);
    color: var(--simpel-muted);
    font-size: 0.84rem;
    backdrop-filter: blur(16px);
}

.simpel-demo__fallback strong {
    color: #fff;
}

.simpel-demo__fallback.is-hidden {
    display: none;
}

@media (max-width: 780px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .simpel-demo {
        min-height: 100svh;
    }

    .simpel-demo::after {
        background:
            radial-gradient(circle at 52% 60%, rgba(95, 247, 255, 0.2), transparent 24rem),
            linear-gradient(180deg, rgba(4, 18, 40, 0.5), transparent 44%, rgba(4, 18, 40, 0.38));
    }

    .simpel-demo__nav {
        left: 0.45rem;
        right: 0.45rem;
        top: 0.45rem;
        display: grid;
        gap: 0.36rem;
        min-height: 0;
        padding: 0.42rem;
        border-radius: 0.9rem;
    }

    .simpel-demo__brand {
        min-width: 0;
        min-height: 2rem;
        padding: 0.2rem 0.36rem;
    }

    .simpel-demo__brand img {
        height: 1.68rem;
    }

    .simpel-demo__nav-main {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.32rem;
        justify-items: stretch;
    }

    .simpel-demo__wordmark {
        min-width: 0;
        min-height: 1.85rem;
        padding: 0.24rem 0.42rem;
    }

    .simpel-demo__wordmark span,
    .simpel-demo__wordmark strong {
        font-size: 0.78rem;
    }

    .simpel-demo__menu {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.4rem;
    }

    .simpel-demo__menu a {
        min-height: 1.9rem;
        padding: 0.36rem 0.24rem;
        font-size: 0.62rem;
        letter-spacing: 0.04em;
    }

    .simpel-demo__language {
        justify-self: stretch;
    }

    .simpel-demo__language-trigger {
        width: 100%;
        min-height: 2rem;
        font-size: 0.64rem;
    }

    .simpel-demo__language-menu {
        left: 0;
        right: 0;
        min-width: 0;
    }

    #simpelPrimaThreeCanvas {
        top: 9rem;
        height: calc(100% - 9rem);
    }

    .simpel-demo__panel {
        top: auto;
        right: auto;
        left: 1rem;
        bottom: 4.4rem;
        width: min(16rem, calc(100% - 2rem));
    }

    .simpel-demo__hud {
        width: 8.8rem;
        height: 1.72rem;
    }

    .simpel-demo__hud--left {
        left: 1rem;
        bottom: 4.65rem;
    }

    .simpel-demo__hud--right {
        right: 1rem;
        bottom: 7.2rem;
        width: 8.8rem;
    }

    .simpel-demo__features {
        left: 0.75rem;
        right: 0.75rem;
        top: 9.55rem;
        bottom: auto;
        width: auto;
        padding: 0.42rem;
        border-radius: 0.82rem;
    }

    .simpel-demo__features h2 {
        margin-bottom: 0.28rem;
        font-size: 0.72rem;
    }

    .simpel-demo__feature-grid {
        gap: 0.34rem;
    }

    .simpel-demo__feature-pill {
        min-height: 1.72rem;
        gap: 0.3rem;
        padding: 0.28rem 0.36rem;
    }

    .simpel-demo__feature-pill strong {
        font-size: 0.52rem;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.12;
    }

    .simpel-demo__feature-icon {
        width: 0.78rem;
        height: 0.78rem;
    }

    .simpel-demo__feature-icon--security {
        width: 0.66rem;
        height: 0.9rem;
    }

    .simpel-demo__drag-hint {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-width: none;
        text-align: center;
    }

    .simpel-demo__hover-label {
        display: none !important;
    }
}
