@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

:root {
    --purple: rgb(123, 31, 162);
    --violet: rgb(103, 58, 183);
    --pink: rgb(244, 143, 177);
}

/* Gradient animation for "AI magic" */
@keyframes gradient-shift {
    0% {
        background-position: 0 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}

/* Star animation */
@keyframes star-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes star-bubble {
    0% {
        transform: scale(0) translateY(0);
        opacity: 0;
    }
    50% {
        transform: scale(1) translateY(-10px);
        opacity: 0.7;
    }
    100% {
        transform: scale(0) translateY(0);
        opacity: 0;
    }
}

/* Keyframe for random movement */
@keyframes moveRandomly {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }
    25% {
        transform: translateX(50vw) translateY(50vh) rotate(90deg);
    }
    50% {
        transform: translateX(-50vw) translateY(-50vh) rotate(180deg);
    }
    75% {
        transform: translateX(50vw) translateY(-50vh) rotate(270deg);
    }
    100% {
        transform: translateX(0) translateY(0) rotate(360deg);
    }
}

/* Optional fading in/out effect to blend with background */
@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 0.3;
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}

@keyframes background-pan {
    from {
        background-position: 0 center;
    }
    to {
        background-position: -200% center;
    }
}

/* Different motion paths for each */
@keyframes float1 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-15vw, -5vh) scale(1.1);
    }
    50% {
        transform: translate(20vw, 10vh) scale(1);
    }
    75% {
        transform: translate(-10vw, 15vh) scale(0.9);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes float2 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(5vw, 10vh) scale(0.95);
    }
    50% {
        transform: translate(-20vw, -20vh) scale(1.05);
    }
    75% {
        transform: translate(15vw, -10vh) scale(1);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes float3 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-10vw, 15vh) scale(1.1);
    }
    50% {
        transform: translate(15vw, -20vh) scale(0.9);
    }
    75% {
        transform: translate(-20vw, -10vh) scale(1.05);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes float4 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20vw, -20vh) scale(1.05);
    }
    50% {
        transform: translate(-15vw, -10vh) scale(1);
    }
    75% {
        transform: translate(20vw, 5vh) scale(0.95);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes float5 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-25vw, -10vh) scale(1.1);
    }
    50% {
        transform: translate(20vw, -15vh) scale(0.9);
    }
    75% {
        transform: translate(-10vw, -20vh) scale(1.05);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

body {
    height: 100%;
    margin: 0;
    background: linear-gradient(180deg, #091520 0%, #1B0129 100%);
    animation: gradientShift 10s ease-in-out infinite alternate;
    color: white;
}

.container-box {
    padding-top: 50px;
    display: flex;
}

lottie-player {
    width: 75px;
    height: auto;
    background-color: transparent;
}

a {
    text-decoration: none;
    color: #B9AECC;
    cursor: pointer;
}

a:hover {
    cursor: pointer;
}

.qr-code {

}

.store-badge {
    height: 40px;
}

.logo {
    width: 102px;
    height: auto;
    padding-left: 4px;
}

.hero-logo {
    width: 162px;
    height: 43px;
}

.headline {
    font-size: 26px;
    font-weight: 700;
    left: 19px;
    position: relative;
}

.headline-container {
    display: inline-block; /* Makes sure the text doesn't stretch full width */
}

.logo-container {
    position: relative;
    left: -71px;
}

.gradient-text {
    background: linear-gradient(to right, #ffffff, #DCB0F7, #bf96d9, #ffffff);
    background-size: 200%;
    animation: background-pan 5s linear infinite;
    -webkit-background-clip: text;
    display: inline-block;
    vertical-align: middle;
    -webkit-text-fill-color: transparent
}

.ai-magic-text {
    background: linear-gradient(90deg, rgb(123, 31, 162), rgb(103, 58, 183), rgb(244, 143, 177), rgb(123, 31, 162));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-shift 3s ease-in-out infinite;
    display: inline-block;
    position: relative;
}

.stars-container {
    position: absolute; /* Position it relative to the headline container */
    top: 0; /* Align it at the top of the headline container */
    left: 0;
    width: 100%; /* Make it span the full width of the text */
    height: 100%; /* Make it span the full height of the text */
    pointer-events: none; /* Make sure the stars don't block interactions with the text */
}

.star {
    position: absolute;
    width: 24px;
    height: 24px;
    opacity: 0.7;
    animation: star-bubble 1.5s ease-in-out infinite, star-rotate 2s linear infinite;
    animation-delay: var(--delay); /* Custom delay for each star */
}

/* ensure the star glyphs get painted */
.stars-container,
.star,
.star::before {
    -webkit-text-fill-color: currentColor; /* overrides inherited transparent */
}

.star::before {
    color: #b08cff;
}

.star::before {
    content: '✦';
    font-size: 1.5rem;
    color: rgb(103, 58, 183);
    display: block;
    text-align: center;
}

.star:nth-child(1) {
    --delay: 0s;
    top: 10%;
    left: 10%;
}

.star:nth-child(2) {
    --delay: 0.5s;
    top: 40%;
    left: 40%;
}

.star:nth-child(3) {
    --delay: 1s;
    top: 70%;
    left: 70%;
}

.container-sphere {
    position: fixed;
    overflow: hidden;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.header-top, .container-box, footer {
    position: relative;
    z-index: 1;
}

/* Styling the spheres */
.sphere {
    position: absolute;
    width: 20vw;
    height: 20vw;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.07;
}

.sphere-1 {
    background: #0099FF;
    box-shadow: 0 0 30px rgba(123, 31, 162, 0.6);
    top: 5%;
    left: 10%;
    animation: float1 20s infinite ease-in-out;
}

.sphere-2 {
    background: #8855FF;
    box-shadow: 0 0 30px rgba(103, 58, 183, 0.6);
    top: 70%;
    left: 80%;
    animation: float2 20s infinite ease-in-out;
}

.sphere-3 {
    background: #FF5588;
    box-shadow: 0 0 30px rgba(244, 143, 177, 0.6);
    top: 15%;
    left: 75%;
    animation: float3 20s infinite ease-in-out;
}

.sphere-4 {
    background: #22CC66;
    box-shadow: 0 0 30px rgba(123, 31, 162, 0.5);
    top: 80%;
    left: 20%;
    animation: float4 20s infinite ease-in-out;
}

.sphere-5 {
    background: #FFBB00;
    box-shadow: 0 0 30px rgba(103, 58, 183, 0.5);
    top: 40%;
    left: 50%;
    animation: float5 20s infinite ease-in-out;
}

.bordered-box {
    height: min-content;
    border-radius: 20px;
    flex-flow: column;
    flex: none;
    place-content: center;
    align-items: center;
    width: 328px;
    padding: 20px 20px;
    display: flex;

    font-size: 18px;
    text-align: center;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.stuck {
    background: linear-gradient(180deg, rgba(178, 62, 250, 0.20) 0%, rgba(131, 0, 212, 0.00) 100%);
    color: #DDAAFA;
}

.connect {
    background: linear-gradient(180deg, rgba(50, 250, 250, 0.20) 0%, rgba(30, 186, 187, 0.00) 100%);
    color: #9BEDED;
}

.remix {
    background: linear-gradient(180deg, rgba(255, 128, 0, 0.20) 0%, rgba(92, 46, 0, 0.00) 100%);
    color: #E3A96F;
}

.safr_shield {
    background: linear-gradient(180deg, rgba(41, 151, 255, 0.20) 0%, rgba(10, 124, 231, 0.00) 100%);
    color: #9DC3E6;
}

footer {
    color: #B9AECC;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    padding-top: 20px;
    padding-bottom: 20px;
    gap: 20px;
    opacity: 1;
}

.download-now-text {
    color: #FFF;
    font-family: Inter, ui-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    padding-bottom: 4px;
}

.snag-text {
    color: #B9AECC;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    padding-bottom: 4px;
}

.img-feature {
    padding: 0 5px 0 15px;
    max-height: 570px;
    width: auto;
}

.row-flow {
    display: flow;
}

.text-container {
    width: 70%;
    padding-top: 250px;
}

.image-container {
    /*width: 25%;*/
}

.feature-container {
    width: 50%;
    display: inline;
}

.feature-1 {
    justify-content: flex-end !important;
}

.feature-2 {
    justify-content: flex-start !important;
}

.feature-3 {
    justify-content: flex-end !important;
}

.feature-4 {
    justify-content: flex-start !important;
}

.qrcode-mobile {
    display: none !important;
}

.header-top {
    display: none;
    left: 0;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 10px 8vw;
    position: fixed;
    z-index: 999;
    border-radius: 0 0 20px 20px;
    background: rgba(10, 21, 33, 0.80);
    backdrop-filter: blur(10px);
    transition: all 0.5s;
}

.header-top.scrolled {
    background: rgba(22, 20, 50, 0.8);
    backdrop-filter: blur(15px);
}

.icon-group {
    display: flex;
    gap: 14px;
    border-radius: 120px;
    background: rgba(255, 255, 255, 0.15);
    margin-right: 10px;
}

#qr-code {
    position: relative;
}

.qr-code-wrapper {
    display: none;
    position: absolute;
    bottom: -440px;
    left: 12px;
    transform: translateX(-50%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 400px;
    gap: 16px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.80);
    height: 400px;
}

.qr-code-wrapper p {
    font-size: 20px;
    font-weight: 600;
    line-height: 23px;
    text-align: center;
    margin: 0;
}

.boxed-qrcode {
    width: auto;
    height: 228px;
}


.icon-wrapper {
    cursor: pointer;
    border-radius: 50%;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

/* Pseudo-element for gradient overlay */
.icon-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
    z-index: 0;
}

.icon-wrapper:hover::after {
    opacity: 1;
}

/* Target the SVG path element to make its fill white on hover */
.icon-wrapper:hover svg path {
    stroke: transparent;
    fill: white;
    transition: stroke 0.3s ease; /* Smooth transition for stroke color */
}

.icon-wrapper:hover #qr-code-icon path {
    stroke: white;
    fill: transparent;
    transition: stroke 0.3s ease; /* Smooth transition for stroke color */
}

/* Ensure SVG is above the gradient overlay */
.icon-wrapper svg {
    position: relative;
    z-index: 1;
}

.icon {
    width: 24px;
    height: 24px;
}

.get_app-button {
    border-radius: 120px;
    background: linear-gradient(90deg, #2A98FF 0%, #A729F0 100%);
    color: #FFF;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    height: 45px;
    width: 120px;
}

.qrcode-desktop {
    padding-right: 14px;
}

.mobile-view {
    display: none !important;
}

.desktop-view {
    display: flex !important;
}

/*phone*/
@media (max-width: 767px) {
    #top-sentinel {
        height: 1px;
    }

    /* base: hidden at the very top */
    .header-top {
        display: flex; /* not display:none; keep it renderable */
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity .24s ease, transform .24s ease;
    }

    /* once we detect the user has scrolled */
    html.scrolled .header-top {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .desktop-view {
        display: none !important;
    }

    .mobile-view {
        display: flex !important;
    }

    .hero-logo {
        width: 125px;
        height: auto;
    }

    .headline {
        left: 0;
    }

    .qr-code {
        width: auto;
        height: 200px;
    }

    .download-now-text {
        font-size: 22px;
    }

    .snag-text {
        font-size: 22px;
    }

    .store-badge {
        width: 118px;
        height: auto;
        position: relative;
        left: 24px;
    }
}

@media (orientation: portrait) and (max-width: 767px) {
    .qrcode-desktop {
        display: none !important;
    }

    .qrcode-mobile {
        display: flex !important;
    }

    .download-now-text {
        text-align: center;
    }

    .snag-text {
        text-align: center;
    }

    .description-container {
        text-align: center;
    }

    .logo-container {
        position: relative;
        left: 0;
    }

    .container-box {
        padding-top: 80px;
        display: table;
    }

    .text-container {
        width: 100%;
        padding-top: 25px;
    }

    .image-container {
        width: 100%;
        padding-top: 50px;
    }

    .sphere {
        height: 150px;
    }

    .stuck {
        font-size: 20px;
    }

    .connect {
        font-size: 20px;
    }

    .remix {
        font-size: 20px;
    }

    .safr_shield {
        font-size: 20px;

    }

    .feature-container {
        width: 100%;
    }

    .feature-1 {
        justify-content: center !important;
    }

    .feature-2 {
        justify-content: center !important;
    }

    .feature-3 {
        justify-content: center !important;
    }

    .feature-4 {
        justify-content: center !important;
    }

    .bordered-box {
        width: 390px;
        padding-bottom: 40px;
    }
}

@media (orientation: landscape) and (max-width: 767px) {
    .qrcode-desktop {
        display: none !important;
    }

    .qrcode-mobile {
        display: inline !important;
    }

    .download-now-text {
        text-align: center;
    }

    .snag-text {
        text-align: center;
    }

    .description-container {
        text-align: center;
    }

    .logo-container {
        position: relative;
        left: 0;
    }

    .container-box {
        padding-top: 80px;
        display: table;
    }

    .text-container {
        width: 100%;
        padding-top: 25px;
    }

    .image-container {
        width: 100%;
        padding-top: 50px;
    }

    .sphere {
        height: 150px;
    }

    .stuck {
        font-size: 20px;
    }

    .connect {
        font-size: 20px;
    }

    .remix {
        font-size: 20px;
    }

    .safr_shield {
        font-size: 20px;

    }

    .feature-container {
        width: 100%;
    }

    .feature-1 {
        justify-content: center !important;
    }

    .feature-2 {
        justify-content: center !important;
    }

    .feature-3 {
        justify-content: center !important;
    }

    .feature-4 {
        justify-content: center !important;
    }

    .bordered-box {
        width: 390px;
        padding-bottom: 40px;
    }
}

/*tablet*/
@media (min-width: 600px) and (max-width: 1024px) {
    /* base: hidden at the very top */
    .header-top {
        display: flex; /* not display:none; keep it renderable */
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity .24s ease, transform .24s ease;
    }

    /* once we detect the user has scrolled */
    html.scrolled .header-top {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .desktop-view {
        display: none !important;
    }

    .mobile-view {
        display: inline !important;
    }

    .hero-logo {
        width: 125px;
        height: auto;
    }

    .headline {
        left: 0;
    }

    .qr-code {
        width: auto;
        height: 200px;
    }

    .download-now-text {
        font-size: 22px;
    }

    .snag-text {
        font-size: 22px;
    }

    .store-badge {
        width: 118px;
        height: auto;
        position: relative;
        left: 24px;
    }
}

@media (orientation: portrait) and (min-width: 600px) and (max-width: 1024px) {
    .qrcode-desktop {
        display: none !important;
    }

    .qrcode-mobile {
        display: inline !important;
    }

    .download-now-text {
        text-align: center;
    }

    .snag-text {
        text-align: center;
    }

    .description-container {
        text-align: center;
    }

    .logo-container {
        position: relative;
        left: 0;
    }

    .container-box {
        padding-top: 80px;
        display: table;
    }

    .text-container {
        width: 100%;
        padding-top: 25px;
    }

    .image-container {
        width: 100%;
        padding-top: 50px;
    }

    .feature-container {
        width: 50%;
    }

    .feature-1 {
        justify-content: flex-end !important;
    }

    .feature-2 {
        justify-content: flex-start !important;
    }

    .feature-3 {
        justify-content: flex-end !important;
    }

    .feature-4 {
        justify-content: flex-start !important;
    }

    .bordered-box {
        width: 390px;
        padding-bottom: 40px;
    }
}

@media (orientation: landscape) and (min-width: 600px) and (max-width: 1024px) {
    .qrcode-desktop {
        display: none !important;
    }

    .qrcode-mobile {
        display: inline !important;
    }

    .download-now-text {
        text-align: center;
    }

    .snag-text {
        text-align: center;
    }

    .description-container {
        text-align: center;
    }

    .logo-container {
        position: relative;
        left: 0;
    }

    .container-box {
        padding-top: 80px;
        display: table;
    }

    .text-container {
        width: 100%;
        padding-top: 25px;
    }

    .image-container {
        width: 100%;
        padding-top: 50px;
    }

    .feature-container {
        width: 50%;
    }

    .feature-1 {
        justify-content: flex-end !important;
    }

    .feature-2 {
        justify-content: flex-start !important;
    }

    .feature-3 {
        justify-content: flex-end !important;
    }

    .feature-4 {
        justify-content: flex-start !important;
    }

    .bordered-box {
        width: 390px;
        padding-bottom: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sphere-1 {
        animation: none !important;
        transform: none !important;
    }

    .sphere-2 {
        animation: none !important;
        transform: none !important;
    }

    .sphere-3 {
        animation: none !important;
        transform: none !important;
    }

    .sphere-4 {
        animation: none !important;
        transform: none !important;
    }

    .sphere-5 {
        animation: none !important;
        transform: none !important;
    }
}