@import url("reset.css");
@import url("fonts.css");

html {
    scrollbar-width: thin;
    scrollbar-color: #EDFF40 rgba(255, 255, 255, 0.08);
    scrollbar-gutter: stable;
}

* {
    box-sizing: border-box;
    font-family: "Craftwork Grotesk", sans-serif;
    -webkit-text-decoration: none;
    text-decoration: none;
}

body {
    display: flex;
    flex-direction: column;
    /*align-items: center;*/
    background: #1D1D21;
    overflow-x: hidden;
}

html {
    background: #1D1D21;
}

body::-webkit-scrollbar {
    width: 14px;
}

body::-webkit-scrollbar-track {
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

body::-webkit-scrollbar-thumb {
    border: 3px solid #1D1D21;
    border-radius: 999px;
    background:
            linear-gradient(180deg, #EDFF40 0%, #B7FF32 100%);
    box-shadow: 0 8px 18px rgba(237, 255, 64, 0.22);
}

body::-webkit-scrollbar-thumb:hover {
    background:
            linear-gradient(180deg, #F6FF89 0%, #CFFF52 100%);
}

[hidden] {
    display: none !important;
}

img, a {
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

nav {
    display: flex;
    align-items: flex-start;
    padding: 25px;
    justify-content: space-between;
    width: 100%;
}

nav img {
    width: 6%;
    height: auto;
    flex-shrink: 0;
    transform-origin: center;
    animation: nav-logo-float 4.6s ease-in-out infinite;
    will-change: transform, filter;
}

.floating-download-button {
    --floating-download-trigger-y: 90;
    position: fixed;
    left: 50%;
    top: 90vh;
    z-index: 1500;
    display: block;
    width: 18%;
    min-width: 132px;
    max-width: 276px;
    height: auto;
    transform: translate(-50%, -50%);
    opacity: 1;
    transition: transform 0.35s ease, opacity 0.25s ease;
    will-change: transform, opacity;
}

.floating-download-button img {
    display: block;
    width: 100%;
    height: auto;
    transform-origin: center;
    animation: floating-download-pulse 4.8s ease-in-out infinite;
    filter: drop-shadow(0 10px 18px rgba(237, 255, 64, 0.2));
    will-change: transform, filter;
}

.floating-download-button.is-hidden {
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 120%);
}

@keyframes floating-download-pulse {
    0%,
    100% {
        transform: translateY(0);
        filter: drop-shadow(0 10px 18px rgba(237, 255, 64, 0.2));
    }
    18%,
    70% {
        transform: translateY(0);
        filter: drop-shadow(0 10px 18px rgba(237, 255, 64, 0.2));
    }
    38% {
        transform: translateY(-8%);
        filter: drop-shadow(0 16px 24px rgba(237, 255, 64, 0.32));
    }
    52% {
        transform: translateY(0);
    }
}

@keyframes nav-logo-float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
        filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    }
    25% {
        transform: translateY(-1px) rotate(-2deg) scale(1.02);
        filter: drop-shadow(0 4px 10px rgba(255, 255, 255, 0.08));
    }
    50% {
        transform: translateY(-3px) rotate(0deg) scale(1.03);
        filter: drop-shadow(0 6px 16px rgba(255, 255, 255, 0.12));
    }
    75% {
        transform: translateY(-1px) rotate(2deg) scale(1.02);
        filter: drop-shadow(0 4px 10px rgba(255, 255, 255, 0.08));
    }
}

@media (prefers-reduced-motion: reduce) {
    nav img {
        animation: none;
    }

    .floating-download-button img {
        animation: none;
    }
}

.nav-current-section {
    display: none;
    font-family: "Craftwork Grotesk", sans-serif;
    font-size: 4.4vw;
    font-weight: 400;
    color: white;
    line-height: 1.2;
    text-align: right;
    flex: 1 1 auto;
    justify-content: flex-end;
    align-items: center;
    min-width: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

main {
    overflow-x: hidden;
}

section {
    display: flex;
    overflow-x: hidden;
    scroll-margin-top: 110px;
}

h1 {
    font-family: "Craftwork Grotesk", sans-serif;
    font-size: 2.05vw;
    font-weight: 600;
    color: white;
    line-height: 150%;
    width: 99%;
    position: relative;
    z-index: 2;
    rotate: 3deg;
}

h2 {
    font-family: "Craftwork Grotesk", sans-serif;
    font-size: 60px;
    font-weight: 600;
    color: white;
}

h3 {
    font-family: "Craftwork Grotesk", sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: white;
    line-height: 150%;
}

.last-line {
    display: inline-block;
    position: relative;
    z-index: 0;
    padding: 0 0.25em;
    line-height: 1.8;
}

.last-line::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: -0.12em;
    right: -0.12em;
    top: 50%;
    height: 1.6em;
    transform: translateY(-50%);
    border-radius: 999px;
    background-color: #FF55D4;
}

#first {
    gap: 50px;
    overflow-y: hidden;
}

#second {
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible;
    padding: 100px 0;
}

#third {
    justify-content: center;
    padding: 25px 0;
}

#fourth {
    justify-content: center;
    padding: 55px 20px;
}

#fifth {
    justify-content: center;
    padding: 78px 20px;
}

.nav-sections {
    display: flex;
    padding-top: 10px;
    gap: 2.5vw;
}

.nav-sections-text {
    font-family: "Craftwork Grotesk", sans-serif;
    font-size: 1.5vw;
    font-weight: 400;
    color: white;
    transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.section1-bg {
    display: block;
    width: max(100vw, 1470px);
    min-width: 100vw;
    max-width: none;
    height: auto;
}

.section1-block1 {
    display: flex;
    position: relative;
    width: 45.6%;
    flex: 0 0 45.6%;
    min-width: 0;
}

#iphone {
    position: absolute;
    left: 26.3%;
    top: 4.1%;
    rotate: -11deg;
    width: 41.2%;
    aspect-ratio: 276 / 564;
    border-radius: 24px;
    overflow: hidden;
    transform-origin: center;
    transition: transform 0.28s ease, filter 0.28s ease;
}

.iphone-screen-video {
    position: absolute;
    inset: 2.8% 5.2%;
    width: 89.2%;
    height: 94.4%;
    object-fit: cover;
    border-radius: 9%;
    z-index: 1;
    pointer-events: none;
    transform: scale(1.02);
    transform-origin: center;
}

#iphone img {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.section1-card1,
.section1-card2,
.section1-card3 {
    width: 18.8%;
    height: auto;
}

.section1-card1 {
    position: absolute;
    left: 70%;
    top: 1.28%;
    transform-origin: center bottom;
    animation: section1-card1-wobble 4.8s ease-in-out infinite;
    will-change: transform;
}

.section1-card2 {
    position: absolute;
    left: 2.5%;
    top: 50.4%;
    transform-origin: center bottom;
    animation: section1-card2-wobble 5.2s ease-in-out infinite;
    will-change: transform;
}

.section1-card3 {
    position: absolute;
    left: 185.82%;
    top: 64.11%;
    transform-origin: center bottom;
    animation: section1-card3-wobble 5s ease-in-out infinite;
    will-change: transform;
}

@keyframes section1-card1-wobble {
    0%,
    100% {
        transform: rotate(-11deg) translateY(0);
    }
    25% {
        transform: rotate(-9.5deg) translateY(-1px);
    }
    50% {
        transform: rotate(-12deg) translateY(0);
    }
    75% {
        transform: rotate(-10deg) translateY(1px);
    }
}

@keyframes section1-card2-wobble {
    0%,
    100% {
        transform: rotate(3deg) translateY(0);
    }
    25% {
        transform: rotate(4.2deg) translateY(-1px);
    }
    50% {
        transform: rotate(2deg) translateY(0);
    }
    75% {
        transform: rotate(4.5deg) translateY(1px);
    }
}

@keyframes section1-card3-wobble {
    0%,
    100% {
        transform: rotate(12deg) translateY(0);
    }
    25% {
        transform: rotate(10.7deg) translateY(-1px);
    }
    50% {
        transform: rotate(13deg) translateY(0);
    }
    75% {
        transform: rotate(11.2deg) translateY(1px);
    }
}

.section1-block2 {
    display: flex;
    padding-top: 6%;
    z-index: 999;
}

#section2-bg {
    position: absolute;
    left: 32%;
    top: 9%;
    width: 75%;
    z-index: 0;
}

.video-player {
    display: flex;
    width: 80%;
    aspect-ratio: 16 / 9;
    position: relative;
    z-index: 999;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
    background: #111318;
    transform-origin: center;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.video-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    border-radius: 24px;
}

.video-player-poster {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 24px;
    border: 0;
    border-radius: 24px;
    background-image:
            linear-gradient(180deg, rgba(8, 10, 14, 0.08) 0%, rgba(8, 10, 14, 0.74) 100%),
            var(--video-poster-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    cursor: pointer;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.video-player-poster:hover,
.video-player-poster:focus-visible {
    transform: scale(1.01);
    filter: brightness(1.06);
}

.video-player-poster:focus-visible {
    outline: 3px solid #FF55D4;
    outline-offset: -6px;
}

.video-player-play {
    position: relative;
    display: grid;
    place-items: center;
    width: 6vw;
    height: 6vw;
    border-radius: 50%;
    background: rgba(33, 37, 54, 0.55);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.video-player-play::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    margin-left: 0.4vw;
    border-top: 1vw solid transparent;
    border-bottom: 1vw solid transparent;
    border-left: 1.55vw solid #FFFFFF;
}

.section3-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    width: 50%;
}

.section3-downloads {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.section3-downloads-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.section3-download-button {
    display: block;
    width: 100%;
    min-width: 0;
    aspect-ratio: 283 / 85;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    transform-origin: center;
    transition: transform 0.22s ease, opacity 0.2s ease, filter 0.22s ease;
}

.appstore {
    background-image: url("../assets/store-bages/bage1-appstore.svg");
}

.gplay {
    background-image: url("../assets/store-bages/bage2-gplay.svg");
}

.rustore {
    background-image: url("../assets/store-bages/bage3-rustore.svg");
}

.appgallery {
    background-image: url("../assets/store-bages/bage4-appgalery.svg");
}

.nashstore {
    background-image: url("../assets/store-bages/bage5-nash.svg");
}

.apk {
    background-image: url("../assets/store-bages/bage6-apk.svg");
}

.section4-content {
    justify-content: center;
    display: flex;
    gap: 25px;
    width: 85%;
}

.section4-content img {
    min-width: 0;
    transform-origin: center;
    transition: transform 0.24s ease, filter 0.24s ease;
}

.section5-content {
    display: flex;
    align-items: flex-start;
    gap: clamp(32px, 6vw, 100px);
    width: 100%;
    max-width: 1151px;
}

.section5-column {
    display: flex;
    flex: 1 1 0;
    width: 100%;
}

.section5-contact-card {
    display: flex;
    flex-direction: column;
    width: fit-content;
    max-width: 100%;
    height: fit-content;
    gap: 15px;
    padding: 15px;
    border: 2px solid #EDFF40;
    border-radius: 15px;
    transform-origin: center;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.section5-column:last-child {
    justify-content: flex-start;
}

.section5-contact-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.section5-contact-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-left: 36px;
    list-style: disc;
}

.section5-contact-list li {
    list-style: disc;
}

.section5-contact-list li::marker {
    color: #FFFFFF;
}

.section5-contact-description {
    max-width: 468px;
}

.section5-contact-list h3,
.section5-contact-description,
.section5-contact-line h3,
.section5-document h3,
.section5-accent {
    line-height: 150%;
}

.section5-accent {
    color: #EDFF40;
    display: inline-block;
    transform-origin: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.section5-document-link {
    display: inline-block;
    color: inherit;
    transform-origin: center;
    transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.section5-accent:hover {
    opacity: 0.85;
}

.section5-document-link:hover {
    opacity: 0.85;
}

.section5-documents {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    height: fit-content;
}

.section5-document {
    width: 100%;
}

.faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.fast-faq {
    display: flex;
    gap: 10px;
    width: 100%;
}

.fast-faq-ans {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.fast-faq-more {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.fast-faq .green-box {
    flex: 1 1 0;
    min-width: 0;
    cursor: pointer;
}

.faq-toggle {
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.faq-more-toggle {
    cursor: pointer;
    align-self: center;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
}

.faq-more-item {
    cursor: pointer;
    box-sizing: border-box;
}

.fast-faq-more > .faq-more-item {
    width: 100%;
}

.other-faq {
    display: flex;
    justify-content: center;
}

.green-box {
    display: flex;
    align-items: center;
    justify-content: center;
    border: #EDFF40 2px solid;
    border-radius: 22px;
    padding: 5px 30px;
    background-color: transparent;
    text-align: center;
    width: fit-content;
    max-width: 100%;
    transform-origin: center;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.green-box.is-active {
    background-color: #EDFF40;
}

.green-box.is-active h3 {
    color: #1D1D21;
}

.faq-pdf-link {
    display: inline-block;
    color: #EDFF40;
    transform-origin: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.faq-accent {
    display: inline-block;
    color: #EDFF40;
    transform-origin: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.faq-ans,
.faq-more-ans {
    padding: 15px 0;
    max-width: 100%;
}

@media (hover: hover) and (pointer: fine) {
    .nav-current-section:hover,
    .nav-current-section:focus-visible,
    .nav-sections-text:hover,
    .nav-sections-text:focus-visible {
        color: #EDFF40;
        transform: scale(1.04);
    }

    #iphone:hover {
        transform: scale(1.025);
        filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.22));
    }

    .video-player:hover {
        transform: scale(1.015);
        box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
    }

    .section3-download-button:hover,
    .section3-download-button:focus-visible {
        transform: translateY(-2px) scale(1.035);
        filter: brightness(1.05);
    }

    .green-box:hover,
    .green-box:focus-visible {
        transform: scale(1.035);
        box-shadow: 0 10px 24px rgba(237, 255, 64, 0.16);
    }

    .section4-content img:hover {
        transform: scale(1.06);
        filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
    }

    .section5-contact-card:hover {
        transform: scale(1.018);
        box-shadow: 0 16px 34px rgba(237, 255, 64, 0.1);
    }

    .section5-accent:hover,
    .section5-accent:focus-visible,
    .section5-document-link:hover,
    .section5-document-link:focus-visible,
    .faq-pdf-link:hover,
    .faq-pdf-link:focus-visible,
    .faq-accent:hover,
    .faq-accent:focus-visible {
        transform: scale(1.04);
    }
}

@media (max-width: 925px) {
    h2 {
        font-size: 40px;
    }

    h3 {
        font-size: 15px;
    }

    .section3-content {
        width: 75%;
    }

    .section4-content {
        width: 90%;
    }

    #fifth {
        padding: 55px 20px;
    }

    .section5-content {
        flex-direction: column;
        gap: 32px;
        align-items: center;
    }

    .section5-column {
        flex: none;
        justify-content: center;
    }

    .section5-documents {
        align-items: center;
        margin: 0 auto;
        text-align: center;
    }

    .section5-document {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .section5-document h3 {
        text-align: center;
    }
}

@media (max-width: 440px) {
    body {
        --mobile-safe-top: 0px;
        --mobile-safe-top: constant(safe-area-inset-top);
        --mobile-safe-top: env(safe-area-inset-top);
        --mobile-nav-height: calc(88px + var(--mobile-safe-top));
    }

    h1 {
        font-size: 5vw;
        text-align: center;
    }

    h2 {
        font-size: 30px;
    }

    h3 {
        font-size: 13px;
    }

    main {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding-top: 12px;
    }

    nav {
        position: sticky;
        top: 0;
        z-index: 2000;
        align-items: center;
        width: 100%;
        padding: 2.5vh;
        background: #1D1D21;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        border-bottom-left-radius: 22px;
        border-bottom-right-radius: 22px;
        box-shadow: none;
        transition: background-color 0.2s ease, -webkit-backdrop-filter 0.2s ease, backdrop-filter 0.2s ease, box-shadow 0.2s ease;
    }

    nav img {
        width: 9vh;
    }

    nav.is-scrolled {
        background: #1D1D21;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        box-shadow:
                0 14px 36px rgba(0, 0, 0, 0.24),
                0 2px 0 rgba(255, 255, 255, 0.03) inset;
    }

    .floating-download-button {
        --floating-download-trigger-y: 85;
        top: 85vh;
        width: 46%;
        min-width: 0;
        max-width: none;
    }

    .nav-current-section {
        display: flex;
        max-width: 56vw;
    }

    .nav-sections {
        display: none;
    }

    .nav-sections-text {
        transition: opacity 0.2s ease;
    }

    .nav-current-section,
    .nav-sections-text {
        pointer-events: none;
        cursor: default;
    }

    .nav-sections-text.is-active {
        opacity: 1;
    }

    .nav-sections-text:not(.is-active) {
        opacity: 0.72;
    }

    section {
        scroll-margin-top: calc(var(--mobile-nav-height) + 24px);
    }

    .green-box {
        border-radius: 15px;
    }
    .section1-block1 {
        display: block;
        width: 100%;
    }
    .section1-bg {
        width: 220vw;
    }

    .section1-block2 {
        padding: 6% 6%;
    }

    #first {
        flex-direction: column-reverse;
        gap: 0;
    }

    #second {
        padding: 50px 0;
    }

    #third {
        padding-top: 0;
    }

    #fourth {
        padding: 20px 20px;
    }

    #fifth {
        padding: 20px 20px 40px;
    }

    .section1-card3 {
        position: absolute;
        left: 72%;
        top: 55%;
        transform-origin: center bottom;
        animation: section1-card3-wobble 5s ease-in-out infinite;
        will-change: transform;
    }

    .video-player {
        width: 95%;
    }

    .section3-content {
        width: 90%;
        gap: 25px;
    }

    .section4-content {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }

    .section4-content img {
        max-height: 11vw;
        width: auto;
    }

    .section3-downloads-row {
        gap: 5px;
    }

    .section3-downloads {
        gap: 5px;
    }

    .faq {
        margin-top: 20px;
    }

    .section5-content {
        gap: 20px;
    }

    .section5-contact-card {
        gap: 12px;
        padding: 14px;
    }

    .section5-contact-list {
        padding-left: 28px;
    }
}

@media (max-width: 380px) {
    h3 {
        font-size: 10px;
    }
}