/* Base CSS for Homing Landing Page */
@property --rotate {
    syntax: '<angle>';
    initial-value: 132deg;
    inherits: false;
}

@keyframes spin {
    0% { --rotate: 0deg; }
    100% { --rotate: 360deg; }
}

:root {
    --primary-color: #8551db;
    --primary-hover: #a87be8;
    --text-color: #0e0d25;
    --text-light: #666666;
    --bg-light: #F8F4FF;
    --gradient-purple: linear-gradient(264.03deg, #88308c 1.15%, #782d99 7.88%, #692aa6 14.42%, #5727b5 22.09%, #3e22c9 32.66%, #2b1ed8 40.57%, #1e1ce3 46.32%);
    --gradient-purple-text: linear-gradient(264.03deg, #88308c 1.15%, #782d99 7.88%, #692aa6 14.42%, #5727b5 22.09%, #3e22c9 32.66%, #2b1ed8 40.57%, #1e1ce3 46.32%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--text-color);
    background-color: #ffffff;
}

*, *::before, *::after {
    box-sizing: inherit;
    font-family: 'Poppins', sans-serif;
}

.h-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-gradient {
    background: linear-gradient(
        264.03deg,
        #88308c 1.15%,
        #782d99 7.88%,
        #692aa6 14.42%,
        #5727b5 22.09%,
        #3e22c9 32.66%,
        #2b1ed8 40.57%,
        #1e1ce3 46.32%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

ul {
    list-style: none;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 0 rgba(0,0,0,0.045);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-large {
    padding: 10px 24px;
    font-size: 16px;
    height: 40px;
}

/* HEADER */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1000;
    box-shadow: 0 1px 10px rgba(72, 72, 72, 0.1);
    height: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.header-left {
    display: flex;
    align-items: center;
    height: 100%;
    flex: 1;
}

.header-right {
    display: flex;
    height: 100%;
    align-items: center;
}

.logo img {
    width: 105px;
    height: 32px;
    display: block;
}

.header-search-wrapper {
    display: flex;
    margin-left: 40px;
    flex: 1;
    max-width: 384px;
    align-items: center;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 2px 12px;
    width: 100%;
    height: 34px;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    margin: 0 8px;
    font-size: 14px;
}

.search-icon {
    width: 18px;
    height: 18px;
    opacity: 0.6;
    margin-left: 8px;
    margin-right: 8px;
}

.map-view-icon {
    margin-left: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.map-view-icon img {
    width: 28px;
    height: 28px;
    opacity: 0.7;
}

.market-boss-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 128px;
    height: 32px;
    background: #fff9f2;
    border-radius: 4px;
    position: relative;
    margin-right: 12px;
}

.market-boss-btn::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background-image: linear-gradient(var(--rotate), rgba(163, 57, 224, 0.99) 3.78%, rgba(255, 119, 0, 0.99) 100.15%);
    filter: blur(1px);
    border-radius: 4px;
    animation: spin 2s linear infinite;
    z-index: -1;
}

.market-boss-btn span {
    font-size: 14px;
    font-weight: 500;
    background: linear-gradient(91.46deg, rgba(163, 57, 224, 0.99) 3.78%, rgba(255, 119, 0, 0.99) 100.15%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.market-boss-btn img {
    width: 21px;
    height: 21px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    font-weight: 500;
    margin-right: 18px;
    padding-left: 8px;
}

.nav-item {
    color: #0e0d25;
    transition: color 0.2s ease-in-out;
}

.nav-item:hover {
    color: var(--primary-color);
}

.queue-icon img {
    width: 28px;
    height: 28px;
    opacity: 0.6;
}

.divider-line {
    margin: 0 16px;
    height: 28px;
    width: 1px;
    background-color: #e5e7eb;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-login, .btn-signup {
    font-size: 14px;
    font-weight: 500;
    color: #0e0d25;
    transition: 0.2s ease;
    border: 1px solid #e5e7eb;
    padding: 6px 16px;
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    text-decoration: none;
}

.btn-login:hover, .btn-signup:hover {
    background-color: #f3f4f6;
    color: #0e0d25;
}

/* BANNER */
.banner {
    position: relative;
    padding-bottom: 140px;
    background-image: url('../assets/images/banner-bg.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: calc(100vh - 56px);
    min-height: 450px;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
}

.banner-container {
    width: 100%;
}

.banner-content {
    max-width: 500px;
    position: relative;
    z-index: 10;
    color: white;
    font-size: 20px;
    line-height: 28px;
    font-weight: 300;
}

.banner-content h1 {
    font-size: 40px;
    line-height: 48px;
    margin-bottom: 24px;
    color: white;
    font-weight: 600;
}

.banner-content p {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 12px;
}


.banner-btn-group {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 24px;
}

.banner-btn-group .btn-primary {
    width: 230px;
    height: 44px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.how-it-works {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
}

.how-it-works span {
    text-decoration: underline;
}

.how-it-works img {
    width: 18px;
    height: 18px;
}

.banner-phone {
    position: absolute;
    bottom: -64px;
    right: 7%;
    width: 500px;
    z-index: 5;
}
.banner-phone img {
    width: 100%;
}

.scroll-see-more-wrapper {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    z-index: 10;
}

.scroll-see-more {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    cursor: pointer;
    font-weight: 300;
}

/* MARKET */
.market {
    background: #f8f8f8;
    overflow: hidden;
}

.market-block {
    margin: 64px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.market h2 {
    font-size: 32px;
    line-height: 46px;
    font-weight: 600;
    color: #0e0d25;
    margin: 0;
}

.text-gradient {
    background: linear-gradient(
        264.03deg,
        #88308c 1.15%,
        #782d99 7.88%,
        #692aa6 14.42%,
        #5727b5 22.09%,
        #3e22c9 32.66%,
        #2b1ed8 40.57%,
        #1e1ce3 46.32%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.market .description-top,
.market .description-bottom {
    font-weight: 300;
    font-size: 16px;
    line-height: 20px;
    max-width: 884px;
}

.market .description-top {
    margin-bottom: -40px;
    margin-top: 16px;
}

.market .description-bottom {
    margin-bottom: 24px;
    margin-top: -40px;
}

.market-image {
    margin-bottom: -60px;
    width: 680px;
    position: relative;
    display: flex;
    justify-content: center;
}

.market-image::after {
    content: '';
    position: absolute;
    top: 50px;
    left: 100px;
    z-index: 1;
    width: 624px;
    height: 400px;
    background: linear-gradient(
        327.78deg,
        rgba(209, 172, 255, 0) 29.53%,
        rgba(195, 159, 241, 0.259912) 37.05%,
        rgba(237, 208, 255, 0.79) 48.92%,
        #c9deff 62.56%
    );
    filter: blur(150px);
}

.market-image img {
    max-width: 100%;
    position: relative;
    z-index: 2;
}

.market .btn-primary {
    height: 44px;
    width: 230px;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* TRAIN LIKE */
.home-page {
    display: flex;
    flex-direction: column;
    gap: 100px;
    color: #0e0d25;
}

.train-like-block, .mastered-block, .see-homes-block {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

.train-like-left {
    flex: 1;
    align-self: center;
    position: relative;
    z-index: 1;
}

.train-like .title {
    font-size: 32px;
    font-weight: 600;
    line-height: 40px;
    margin-bottom: 0;
}

.train-like .sub-text {
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
    margin-top: 24px;
    margin-bottom: 0;
}

.train-like .btn-primary {
    margin-top: 24px;
    width: 230px;
    height: 44px;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.train-like-right {
    position: relative;
    display: flex;
    flex: 0 0 55%;
    max-width: 55%;
    height: 500px;
    margin: auto;
    margin-right: -40px;
}

.train-like-right img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

/* MASTERED */
.mastered {
    max-width: 1142px;
    margin: auto;
}

.mastered-block {
    gap: 88px;
    align-items: center;
}

.mastered-left {
    position: relative;
    margin: auto;
    display: flex;
    flex: 0 0 49%;
    max-width: 49%;
    height: 570px;
}

.mastered-left img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.mastered-right {
    flex: 1;
}

.mastered-right .title {
    font-weight: 600;
    font-size: 32px;
    line-height: 40px;
    margin-bottom: 24px;
}

.content-list {
    padding-left: 16px;
    font-weight: 300;
    margin-bottom: 24px;
    list-style: disc;
}

.content-list li {
    font-size: 16px;
    line-height: 24px;
    display: list-item;
}

.content-list li:not(:first-child) {
    margin-top: 24px;
}

.mastered .btn-primary {
    width: 230px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SEE HOMES */
.see-homes-block {
    gap: 100px;
}

.see-homes-left {
    flex: 1;
    align-self: center;
    position: relative;
    z-index: 1;
}

.see-homes .title {
    font-size: 32px;
    font-weight: 600;
    line-height: 40px;
    margin-bottom: 24px;
}

.see-homes .content-list {
    padding-left: 16px;
}

.see-homes .btn-primary {
    width: 230px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.see-homes-right {
    position: relative;
    flex: 0 0 51%;
    max-width: 51%;
    height: 500px;
    margin: auto;
    margin-right: -40px;
}

.see-homes-right img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

/* SHOP AGENT */
.shop-agent {
    padding: 64px 0 40px;
}

.shop-agent-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.shop-agent .title-wrapper h2 {
    font-weight: 600;
    font-size: 32px;
    line-height: 40px;
    margin: 0;
}

.shop-agent .title-wrapper .description {
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
    max-width: 758px;
    margin: 24px auto 0;
}

.shop-agent-block {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 890px;
}

.shop-agent-left {
    display: flex;
    flex-direction: column;
}

.shop-agent-left .find {
    flex: 1;
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    text-align: left;
    margin-bottom: 12px;
}

.shop-agent-left .text-gradient {
    flex: 1;
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    text-align: left;
    margin-bottom: 0;
}

.shop-agent .get-agent-btn {
    margin-right: auto;
    margin-top: 24px;
    width: 230px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-agent-image {
    position: relative;
    flex: 0 0 528px;
}

.shop-agent-image::after {
    content: '';
    position: absolute;
    top: 120px;
    left: -60px;
    z-index: -1;
    width: 400px;
    height: 350px;
    background: linear-gradient(
        348.65deg,
        rgba(209, 172, 255, 0) 26.37%,
        rgba(195, 159, 241, 0.259912) 35.05%,
        rgba(237, 208, 255, 0.79) 48.75%,
        #c9deff 64.5%
    );
    filter: blur(160px);
}

/* PLAY GAME */
.play-game {
    padding-top: 0;
    padding-bottom: 300px;
}

.play-game h2 {
    text-align: center;
    margin-bottom: 16px;
    font-size: 32px;
    line-height: 40px;
    font-weight: 600;
}

.play-game .sub-title {
    text-align: center;
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 16px;
}

.play-game .description {
    text-align: center;
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
}

.play-game .box {
    width: 100%;
    padding: 0 32px;
    border-radius: 12px;
}

.box-play-game {
    background-color: #fff;
    padding: 32px 32px 0;
    border-radius: 12px;
}

.title-label {
    text-align: center;
    background: linear-gradient(
        264.03deg,
        #88308c 1.15%,
        #782d99 7.88%,
        #692aa6 14.42%,
        #5727b5 22.09%,
        #3e22c9 32.66%,
        #2b1ed8 40.57%,
        #1e1ce3 46.32%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    width: max-content;
    margin: 0 auto 24px auto;
}

.item-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
}

.item {
    flex: 0 0 33%;
    text-align: center;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F4FF 100%);
    border-radius: 12px;
    padding: 24px;
}

.item p {
    font-size: 16px;
    font-weight: 600;
    margin-top: 12px;
    color: #0e0d25;
}

/* FOOTER */
.footer {
    background-color: #f8f8f8;
}

.footer_content {
    padding: 0 16px;
    margin: 0 auto;
    max-width: 1170px;
}

.footer_main {
    padding: 25px 0 4px 0;
    margin: 0 auto;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.footer-col-12 {
    flex: 0 0 50%;
    max-width: 50%;
}

.footer-col-6 {
    flex: 0 0 25%;
    max-width: 25%;
}

.footer-col-18 {
    flex: 0 0 75%;
    max-width: 75%;
}

.list_link {
    padding-top: 7px;
}

.list_link .title {
    color: #4b4b4b;
    font-size: 16px;
    font-weight: 500;
    line-height: normal;
    margin-bottom: 12px;
}

.list_link_item {
    color: #4b4b4b;
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 20px;
    display: block;
}

.list_link_item:hover {
    color: var(--primary-color);
}

.text_getApp {
    color: #4b4b4b;
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 14px;
}

.app {
    display: flex;
    align-items: center;
    gap: 10px;
}

.last_link img {
    margin-bottom: 20px;
}

.last_link p {
    color: #4b4b4b;
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 20px;
}

.copyright a {
    color: var(--primary-color);
}

.line {
    height: 1px;
    background-color: #eaeaea;
}

.footer_bottom {
    padding: 20px 0;
    align-items: center;
}

.footer_bottom p {
    color: #4b4b4b;
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 0;
}

.footer_socials {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

.footer_socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer_socials a img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: none;
    opacity: 0.7;
}

.footer_socials a:hover img {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(0);
}

/* RESPONSIVE */
@media screen and (max-width: 1024px) {
    .train-like-block, .mastered-block, .see-homes-block {
        gap: 24px;
    }
    
    .train-like-right, .see-homes-right {
        margin: auto;
    }
}

@media screen and (max-width: 767px) {
    .home-page {
        gap: 60px;
    }

    .header-right .nav-menu, .header-right .auth-buttons, .header-left .search-bar {
        display: none;
    }
    
    .banner-phone {
        display: none;
    }
    
    .banner {
        height: 612px;
        min-height: auto;
    }
    
    .train-like-block, .see-homes-block {
        flex-direction: column;
    }
    
    .mastered-block {
        flex-direction: column-reverse;
    }
    
    .train-like-right, .see-homes-right, .mastered-left {
        max-width: 100%;
        height: auto;
    }
    
    .shop-agent-block {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 0;
    }
    
    .shop-agent-left .find, .shop-agent-left .text-gradient {
        display: none;
    }
    
    .item-wrapper {
        flex-direction: column;
        gap: 0;
    }
    
    .item {
        background: none;
        padding: 0 12px;
    }
    
    .footer-col-12, .footer-col-6, .footer-col-18 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .footer_main {
        padding-top: 20px;
        padding-bottom: 0;
    }
    
    .last_link {
        margin: 32px 0;
    }
    
    .footer_bottom {
        flex-direction: column-reverse;
        align-items: flex-start;
        padding-top: 0;
        padding-bottom: 32px;
    }
    
    .footer_socials {
        margin-bottom: 20px;
        justify-content: flex-start;
    }
}
