@import url("properties.css");


.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    background-color: white;
    width: inherit;
    overflow: visible;
    padding-bottom: 30px;
}

.hero-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 35px 300px;
    text-align: center;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
    margin: 0;
}

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    width: inherit;
    overflow: visible;
}

.hero-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    width: inherit;
}

.reversed {
    flex-direction: row-reverse;
}

.hero-left,
.hero-right {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-items: center;
}

.hero-left {
    order: 0;
    z-index: 1;
}

.hero-right {
    order: 1;
    z-index: 0;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-evenly;
    width: 100%;
    padding: 120px 100px;
}

#hero-main .hero-left {
    height: calc(100vh - 70px);
}

#hero-main .hero-text {
    padding: 160px 100px;
    height: 100%;
}

#hero-main .hero-illustration {
    height: calc(100vh - 70px);
}

.hero-illustration {
    width: 100%;
    position: relative;
    transition: opacity 2s ease;
}

.hero-card {
    margin: 39px 35px;
    padding: 60px 30px;
    background-color: white;
    border-radius: 30px;
    box-shadow: 0px 0px 40px rgba(0, 0, 0, 0.125);

    position: relative;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
}

.hero-card-element {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 1em;
}

.vertical-line {
    width: 5px;
    background-color: #F73359;
    position: absolute;
    left: 57px;
    top: 75px;
    bottom: 75px;
    border-radius: 3px;
}

#hero-advantages .hero-illustration {
    height: calc(100vh - 300px);
}

#hero-advantages .hero-left {
    height: calc(100vh - 145px - 70px);
}

#hero-functionalities {
    background: linear-gradient(180deg, #fff 0%, #fb9e58 10%, #f74f70 90%, #fff 100%), #FFFFFF;
}

.store-buttons {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
    align-self: stretch;
}

.store-btn {
    margin-right: 5px;
}

.store-btn img {
    width: 170px;
    height: 50px;
}

.gradient-background {
    background: linear-gradient(180deg, #FFFFFF 0%, #FE903E 9.9%, #F73359 100%), #FFFFFF;
}

/* Positioned illustration elements */
#front-view-app,
#profillage-svg,
#recommendations-svg,
#advantages-flow,
#trend-up,
#wallet,
#tilted-right-app,
#investing-chat-showcase,
#bush-foreground,
#bush-background,
#coins,
#skewed-left-app,
#skewed-right-app,
#rocket,
#space,
#stocks-cryptos,
#bulb,
#book,
#phone-hand,
#line-burst,
#chat-illustration,
#profillage-illustration,
#recommendations-illustration,
#investing-illustration,
#flow-illustration,
#flow-illustration-mobile,
.bg-circle,
.bg-square {
    position: absolute;
    z-index: 1;
}

.bg-circle {
    height: var(--bg-circle-size);
    width: var(--bg-circle-size);
    border-radius: 50%;
    background: linear-gradient(51.98deg, rgba(247, 51, 89, 0.1) 14.55%, rgba(254, 156, 47, 0.1) 68.54%);
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
    /* make it glow */
    box-shadow: 0 0 50px 20px rgba(255, 107, 0, 0.1);
    filter: blur(50px);
}

#front-view-app {
    height: var(--front-view-phone-height);
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) skew(-10deg, 1deg);
}

#profillage-svg {
    width: var(--profillage-svg-size);

    top: 50%;
    left: 50%;
    transform: var(--profillage-svg-transform);
}

#recommendations-svg {
    width: var(--recommendations-svg-size);
    top: 50%;
    left: 50%;
    transform: var(--recommendations-svg-transform);
}

.bg-square {
    height: var(--bg-square-size);
    width: var(--bg-square-size);
    background-color: #FF6B00;
    opacity: 0.1;
    border-radius: 50px;
    left: 50%;
    top: 50%;
    transform: translate(calc(-50% - 393px), calc(-50% + 41.5px)) rotate(30deg);
    z-index: 0;
    box-shadow: 0 0 50px 20px rgba(255, 107, 0, 0.1);
    filter: blur(50px);
}

#advantages-flow {
    height: var(--advantages-flow-height);
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#wallet {
    width: var(--wallet-size);
    left: 50%;
    top: 50%;
    transform: translate(calc(-50% - 125px), calc(-50% + 120px)) rotate(-30deg);
}

#trend-up {
    width: var(--trend-up-width);
    left: 50%;
    top: 50%;
    transform: translate(calc(-50% + 170px), calc(-50% - 150px));
}

#advantages {
    display: flex;
    flex-wrap: wrap;
    align-self: stretch;
    align-content: space-between;
}

#advantages span {
    display: flex;
    height: 50px;
    flex-direction: column;
    justify-content: center;
}



#hero-functionalities {
    padding-bottom: 200px;
}

#hero-functionalities .hero-text.function-text {
    height: calc(100vh - 70px);
}

#hero-functionalities .hero-illustration {
    height: calc(100vh - 70px);
}

#hero-functionalities .hero-content:nth-child(1) {
    order: 2;
}

#hero-functionalities .hero-content:nth-child(2) {
    order: 3;
}

#hero-functionalities .hero-content:nth-child(3) {
    order: 1;
}

#tilted-right-app {
    height: var(--chat-investing-height);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#bush-foreground {
    width: var(--bush-fg-width);
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% + 100px), calc(-50% + 250px));
}

#bush-background {
    width: var(--bush-bg-width);
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% + 160px), calc(-50% + 150px));
}

#coins {
    width: var(--coins-width);
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% - 165px), calc(-50% + 180px));
}

#investing-chat-showcase {
    height: var(--chat-investing-height);
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% + 35px), -50%);
}

#stocks-cryptos {
    width: var(--stock-crypto-width);
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% + 40px), -50%);
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.25));
}

#skewed-right-app {
    height: 650px;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#rocket {
    width: var(--rocket-width);
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% - 220px), calc(-50% - 10px));
}

#space {
    width: var(--space-width);
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% + 50px), calc(-50% - 100px));
}

#skewed-left-app {
    height: var(--skewed-phone-height);
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#bulb {
    width: var(--bulb-width);
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% + 260px), calc(-50% - 150px)) rotate(15deg);
}

#book {
    width: var(--book-width);
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% - 200px), calc(-50% + 200px)) rotate(-15deg);
}

#chat-illustration,
#profillage-illustration,
#recommendations-illustration,
#investing-illustration {
    width: var(--advantage-illustration-width);
    top: 50%;
    left: 50%;
    z-index: 3;
}

#chat-illustration {
    transform: translate(calc(-50% - 230px), calc(-50% - 210px));
}

#profillage-illustration {
    transform: translate(calc(-50% + 210px), calc(-50% - 105px));
}

#recommendations-illustration {
    transform: translate(calc(-50% - 210px), calc(-50% + 110px));
}

#investing-illustration {
    transform: translate(calc(-50% + 230px), calc(-50% + 220px));
}

#flow-illustration {
    width: var(--flow-illustration-width);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.function-text {
    padding-top: 160px;
    padding-bottom: 160px;
}

.download-text {
    padding-top: 126px;
    padding-bottom: 126px;
}

#phone-hand {
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 20px)) scale(1.15);
    z-index: 2;
    height: 100%;
}

#line-burst {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.question {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 190px;
    width: 100%;
}

.question-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 16px 0;
    border-top: 3px solid rgba(205, 214, 218, 0.25);
    cursor: pointer;
    align-self: stretch;
    position: relative;
}

#hero-faq .question:last-child .question-body {
    border-bottom: 3px solid rgba(205, 214, 218, 0.25);
}

.qb-inactive {
    max-height: 0;
    padding: 0 24px;
    border: none;
    overflow: hidden;
    transition: max-height .25s ease-out, padding-top .25s ease-out, padding-bottom .25s ease-out;
}

/*when opened*/
.qb-active {
    padding: 16px 24px 32px;
    border-top: 3px solid rgba(205, 214, 218, 0.25);
    height: fit-content;
    max-height: 500px;
    overflow: hidden;
    transition: max-height .25s ease-in, padding-top .25s ease-in, padding-bottom .25s ease-in;
}

.question-header:hover .question-title {
    color: #68738d;
    transition: color 0.25s;
}

.question-header:hover .dropdown-btn {
    transform-origin: center center;
    transform: scale(1.2);
    transition: transform 0.25s;
}

.question-header:hover .dd-btn-active {
    transform-origin: center center;
    transform: scale(1.2) rotate(45deg);
    transition: transform 0.25s;
}

.dropdown-btn {
    --b: 4px;
    width: 40px;
    height: 40px;
    border: 10px solid #fff;
    background:
        conic-gradient(from 90deg at var(--b) var(--b), #fff 90deg, #464F64 0) calc(100% + var(--b)/2) calc(100% + var(--b)/2)/ calc(50% + var(--b)) calc(50% + var(--b));
    display: inline-block;
    flex: none;
    cursor: pointer;
    transition: transform 0.25s ease-in;
    position: absolute;
    right: 0;
}

.dd-btn-active {
    transform: rotate(45deg);
    transition: transform 0.25s ease-out;
}

#hero-faq {
    padding-bottom: 90px;
    padding-top: 55px;
}

#hero-faq .article-text {
    text-align: center;
    max-width: 80%;
}

#flow-illustration-mobile {
    display: none;
}

/* Mouse parallax effect - CSS custom properties for dynamic movement */
.phone,
.mouse-parallax {
    --parallax-x: 0px;
    --parallax-y: 0px;
}

/* ==========================================================================
   Fade-in & Parallax Animation System
   ========================================================================== */

/* Base fade-in animation */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Common parallax transition for animated elements */
#front-view-app.visible,
#profillage-svg.visible,
#recommendations-svg.visible,
#advantages-flow.visible,
#wallet.visible,
#trend-up.visible,
#tilted-right-app.visible,
#investing-chat-showcase.visible,
#stocks-cryptos.visible,
#skewed-right-app.visible,
#rocket.visible,
#space.visible,
#skewed-left-app.visible,
#bulb.visible,
#book.visible,
#chat-illustration.visible,
#profillage-illustration.visible,
#recommendations-illustration.visible,
#investing-illustration.visible,
#flow-illustration.visible {
    transition: transform 0.15s ease-out, opacity 0.8s ease-out;
}

/* Individual visible state transforms with parallax */
#front-view-app.visible {
    transform: translate(calc(-50% + var(--parallax-x, 0px)), calc(-50% + var(--parallax-y, 0px))) skew(-10deg, 1deg);
}

#profillage-svg.visible {
    transform: translate(calc(-50% - 240px + var(--parallax-x, 0px)), calc(-50% - 200px + var(--parallax-y, 0px)));
}

#recommendations-svg.visible {
    transform: translate(calc(-50% + 220px + var(--parallax-x, 0px)), calc(-50% + 180px + var(--parallax-y, 0px)));
}

.bg-circle.visible { transform: translateY(-50%); }
.bg-square.visible { transform: translate(calc(-50% - 393px), calc(-50% + 41.5px)) rotate(30deg); }

#advantages-flow.visible {
    transform: translate(calc(-50% + var(--parallax-x, 0px)), calc(-50% + var(--parallax-y, 0px)));
}

#wallet.visible {
    transform: translate(calc(-50% - 125px + var(--parallax-x, 0px)), calc(-50% + 120px + var(--parallax-y, 0px))) rotate(-30deg);
}

#trend-up.visible {
    transform: translate(calc(-50% + 170px + var(--parallax-x, 0px)), calc(-50% - 150px + var(--parallax-y, 0px)));
}

#tilted-right-app.visible {
    transform: translate(calc(-50% + var(--parallax-x, 0px)), calc(-50% + var(--parallax-y, 0px)));
}

#bush-foreground.visible { transform: translate(calc(-50% + 100px), calc(-50% + 250px)); }
#bush-background.visible { transform: translate(calc(-50% + 160px), calc(-50% + 150px)); }
#coins.visible { transform: translate(calc(-50% - 165px), calc(-50% + 180px)); }

#investing-chat-showcase.visible {
    transform: translate(calc(-50% + 35px + var(--parallax-x, 0px)), calc(-50% + var(--parallax-y, 0px)));
}

#stocks-cryptos.visible {
    transform: translate(calc(-50% + 40px + var(--parallax-x, 0px)), calc(-50% + var(--parallax-y, 0px)));
}

#skewed-right-app.visible {
    transform: translate(calc(-50% + var(--parallax-x, 0px)), calc(-50% + var(--parallax-y, 0px)));
}

#rocket.visible {
    transform: translate(calc(-50% - 220px + var(--parallax-x, 0px)), calc(-50% - 10px + var(--parallax-y, 0px)));
}

#space.visible {
    transform: translate(calc(-50% + 50px + var(--parallax-x, 0px)), calc(-50% - 100px + var(--parallax-y, 0px)));
}

#skewed-left-app.visible {
    transform: translate(calc(-50% + var(--parallax-x, 0px)), calc(-50% + var(--parallax-y, 0px)));
}

#bulb.visible {
    transform: translate(calc(-50% + 260px + var(--parallax-x, 0px)), calc(-50% - 150px + var(--parallax-y, 0px))) rotate(15deg);
}

#book.visible {
    transform: translate(calc(-50% - 200px + var(--parallax-x, 0px)), calc(-50% + 200px + var(--parallax-y, 0px))) rotate(-15deg);
}

#chat-illustration.visible {
    transform: translate(calc(-50% - 230px + var(--parallax-x, 0px)), calc(-50% - 210px + var(--parallax-y, 0px)));
}

#profillage-illustration.visible {
    transform: translate(calc(-50% + 210px + var(--parallax-x, 0px)), calc(-50% - 105px + var(--parallax-y, 0px)));
}

#recommendations-illustration.visible {
    transform: translate(calc(-50% - 210px + var(--parallax-x, 0px)), calc(-50% + 110px + var(--parallax-y, 0px)));
}

#investing-illustration.visible {
    transform: translate(calc(-50% + 230px + var(--parallax-x, 0px)), calc(-50% + 220px + var(--parallax-y, 0px)));
}

#flow-illustration.visible {
    transform: translate(calc(-50% + var(--parallax-x, 0px)), calc(-50% + var(--parallax-y, 0px)));
}

#phone-hand.visible { transform: translate(-50%, calc(-50% + 20px)) scale(1.15); }
#line-burst.visible { transform: translate(-50%, -50%); }

@keyframes lineBurstRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

#line-burst {
    transform-origin: center center;
    animation: lineBurstRotate 60s linear 0s infinite;
}

.hero-text .link-text:hover {
    color: #2c323f;
    text-decoration: underline;
}

.yieldy-instagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    margin-top: 15px;
}

.yieldy-instagram img {
    width: 45px !important;
}

.yieldy-instagram-container {
    text-align: center;
}

/* ==========================================================================
   Mobile Responsive Styles
   ========================================================================== */
@media screen and (max-width: 810px) {
    .hero-content {
        flex-direction: column;
    }

    .hero-header {
        padding: 35px;
    }

    .hero-right,
    .hero-left,
    #hero-functionalities .hero-left,
    #hero-functionalities .hero-right {
        width: 100%;
    }

    #hero-functionalities .hero-illustration {
        height: calc(90vh - 65px);
    }

    .function-text,
    #hero-main .hero-text {
        height: 720px !important;
        justify-content: space-evenly !important;
    }

    #hero-main .hero-illustration {
        height: 930px !important;
        margin: 5vh 0;
    }

    .download-text {
        height: 480px !important;
        justify-content: space-evenly !important;
    }

    .hero-text {
        padding: 15px !important;
    }

    .hero-card {
        margin: 39px 10px;
    }

    .store-buttons {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 14px 0;
        align-self: stretch;
    }

    #trend-up {
        left: 50%;
        top: 50%;
        transform: translate(calc(-50% + 120px), calc(-50% - 230px)) rotate(-17deg) scale(.65);
    }

    #investing-chat-showcase {
        transform: translate(-50%, -50%);
    }

    #stocks-cryptos {
        transform: translate(-50%, -50%);
        width: var(--stock-crypto-width-mobile);
    }

    #skewed-right-app {
        transform: translate(-50%, -50%);
    }

    #rocket {
        transform: translate(calc(-50% - 125px), calc(-50% - 65px));
    }

    #space {
        transform: translate(calc(-50% + 15px), calc(-50% - 230px));
    }

    #book {
        transform: translate(calc(-50% + 100px), calc(-50% + 250px)) rotate(15deg);
    }

    #bulb {
        transform: translate(calc(-50% - 80px), calc(-50% - 260px)) rotate(-15deg);
    }

    .question {
        padding: 0 35px;
    }

    .question-header {
        flex-direction: column;
    }

    .question-title {
        margin-bottom: 15px;
    }

    /* Mobile fade-in visible transforms with parallax */
    #trend-up.visible {
        transform: translate(calc(-50% + 120px + var(--parallax-x, 0px)), calc(-50% - 230px + var(--parallax-y, 0px))) rotate(-17deg) scale(.65);
    }

    #investing-chat-showcase.visible {
        transform: translate(calc(-50% + var(--parallax-x, 0px)), calc(-50% + var(--parallax-y, 0px)));
    }

    #stocks-cryptos.visible {
        transform: translate(calc(-50% + var(--parallax-x, 0px)), calc(-50% + var(--parallax-y, 0px)));
    }

    #skewed-right-app.visible {
        transform: translate(calc(-50% + var(--parallax-x, 0px)), calc(-50% + var(--parallax-y, 0px)));
    }

    #rocket.visible {
        transform: translate(calc(-50% - 125px + var(--parallax-x, 0px)), calc(-50% - 65px + var(--parallax-y, 0px)));
    }

    #space.visible {
        transform: translate(calc(-50% + 15px + var(--parallax-x, 0px)), calc(-50% - 230px + var(--parallax-y, 0px)));
    }

    #book.visible {
        transform: translate(calc(-50% + 100px + var(--parallax-x, 0px)), calc(-50% + 250px + var(--parallax-y, 0px))) rotate(15deg);
    }

    #bulb.visible {
        transform: translate(calc(-50% - 80px + var(--parallax-x, 0px)), calc(-50% - 260px + var(--parallax-y, 0px))) rotate(-15deg);
    }

    #profillage-svg {
        transform: var(--profillage-svg-transform-mobile);
        /* crop bottom */
        clip-path: inset(0 0 35% 0);
    }

    #recommendations-svg {
        transform: var(--recommendations-svg-transform-mobile);
        /* crop top */
        clip-path: inset(35% 0 0 0);
    }

    #profillage-svg.visible {
        transform: translate(calc(-50% + var(--parallax-x, 0px)), calc(-50% - 320px + var(--parallax-y, 0px)));
        transition: transform 0.15s ease-out, opacity 0.8s ease-out;
    }

    #recommendations-svg.visible {
        transform: translate(calc(-50% + var(--parallax-x, 0px)), calc(-50% + 280px + var(--parallax-y, 0px)));
        transition: transform 0.15s ease-out, opacity 0.8s ease-out;
    }

    #advantages-flow {
        width: 90%;
        height: auto;
    }

    #hero-advantages .hero-left {
        height: calc(100vh - 65px);
    }

    /* reduce hero-text ul left padding */
    .hero-text ul {
        padding-left: 20px;
    }

    #flow-illustration-mobile {
        display: block;
        width: 95%;
        height: auto;
        z-index: 3;
        transform: translate(-50%, -50%);
        top: 50%;
        left: 50%;
    }

    #flow-illustration-mobile.visible {
        transform: translate(calc(-50% + var(--parallax-x, 0px)), calc(-50% + var(--parallax-y, 0px)));
        transition: transform 0.15s ease-out, opacity 0.8s ease-out;
    }

    #chat-illustration,
    #profillage-illustration,
    #recommendations-illustration,
    #investing-illustration,
    #flow-illustration {
        display: none;
    }

    #front-view-app,
    #front-view-app.visible {
        height: 600px;
        transform: translate(calc(-50% + var(--parallax-x, 0px)), calc(-50% + var(--parallax-y, 0px)));
    }

    #investing-chat-showcase,
    #investing-chat-showcase.visible {
        height: var(--chat-investing-height-mobile);
    }

    #skewed-right-app,
    #skewed-right-app.visible {
        height: var(--skewed-phone-height-mobile);
    }

    #space,
    #space.visible {
        width: 110%;
    }
}

/* ultra wide */
@media screen and (min-width: 1920px) {
    .hero-illustration, .hero-left, .hero-right {
        height: calc(120vh - 70px) !important;
    }
}