:root {
    --ink: #172033;
    --muted: #697386;
    --soft: #f5f7fb;
    --line: #e7eaf0;
    --primary: #ff385c;
    --primary-dark: #e52d50;
    --white: #ffffff;
    --shadow: 0 20px 60px rgba(23, 32, 51, .12);
    --radius: 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--ink);
    background: var(--white);
    line-height: 1.5;
}

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

button,
input,
select {
    font: inherit;
}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    z-index: 100;

    color: white;
}

.nav-container {
    max-width: 1240px;
    margin: auto;

    height: 82px;

    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.brand-mark {
    width: 38px;
    height: 38px;

    border-radius: 12px;

    display: grid;
    place-items: center;

    background: var(--primary);

    color: white;
    font-weight: 800;
    font-size: 21px;

    transform: rotate(-4deg);
}

.brand-text {
    font-size: 20px;
    letter-spacing: -.6px;
}

.brand-text span {
    color: var(--primary);
}

.desktop-nav {
    display: flex;
    gap: 34px;
}

.desktop-nav a {
    font-size: 14px;
    font-weight: 600;

    opacity: .92;

    transition: .2s;
}

.desktop-nav a:hover {
    opacity: 1;
    color: #ffdce3;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-btn {
    background: transparent;
    border: 0;

    color: white;

    font-weight: 600;

    cursor: pointer;

    padding: 11px 15px;
}

.post-btn {
    border: 0;

    background: white;
    color: var(--ink);

    border-radius: 10px;

    padding: 11px 17px;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
}

.mobile-menu-btn {
    display: none;

    background: transparent;
    border: 0;

    color: white;

    font-size: 25px;
}

.mobile-menu {
    display: none;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    min-height: 720px;

    position: relative;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            120deg,
            #182033 0%,
            #27334c 48%,
            #506070 100%
        );
}

.hero::before {
    content: "";

    position: absolute;

    width: 700px;
    height: 700px;

    right: -200px;
    top: -160px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 56, 92, .28),
            transparent 65%
        );
}

.hero::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(16, 23, 38, .76),
            rgba(16, 23, 38, .28)
        );
}

.hero-content {
    width: 100%;
    max-width: 1240px;

    margin: auto;

    padding: 130px 24px 90px;

    position: relative;

    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 13px;

    border: 1px solid rgba(255,255,255,.18);

    background: rgba(255,255,255,.08);

    border-radius: 50px;

    backdrop-filter: blur(12px);

    font-size: 12px;
    font-weight: 600;

    margin-bottom: 22px;
}

.hero-badge span {
    color: #58e29b;
}

.hero h1 {
    max-width: 650px;

    font-size: clamp(50px, 7vw, 82px);

    line-height: .98;

    letter-spacing: -4px;

    color: white;

    margin-bottom: 22px;
}

.hero h1 span {
    color: #ff6d88;
}

.hero-description {
    max-width: 560px;

    color: rgba(255,255,255,.78);

    font-size: 17px;

    margin-bottom: 34px;
}


/* =====================================================
   SEARCH
===================================================== */

.search-card {
    max-width: 1000px;

    background: white;

    border-radius: 18px;

    box-shadow: var(--shadow);

    padding: 8px;
}

.search-tabs {
    display: flex;

    gap: 5px;

    padding: 5px 8px 8px;

    border-bottom: 1px solid var(--line);
}

.search-tab {
    border: 0;

    background: transparent;

    padding: 9px 19px;

    border-radius: 8px;

    cursor: pointer;

    color: var(--muted);

    font-weight: 700;

    font-size: 13px;
}

.search-tab.active {
    background: #fff0f3;
    color: var(--primary);
}

.search-fields {
    display: grid;

    grid-template-columns:
        1.4fr
        1fr
        1fr
        auto;

    gap: 4px;

    padding: 6px;
}

.search-field {
    display: flex;

    align-items: center;

    gap: 11px;

    padding: 10px 13px;

    border-right: 1px solid var(--line);
}

.field-icon {
    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    background: var(--soft);

    border-radius: 9px;

    color: var(--primary);

    flex-shrink: 0;
}

.search-field label {
    display: block;

    font-size: 9px;

    letter-spacing: 1px;

    font-weight: 800;

    color: #9ba2af;

    margin-bottom: 2px;
}

.search-field input,
.search-field select {
    width: 100%;

    border: 0;
    outline: 0;

    color: var(--ink);

    background: transparent;

    font-size: 13px;

    font-weight: 600;
}

.search-field select {
    cursor: pointer;
}

.search-button {
    min-width: 125px;

    border: 0;

    border-radius: 12px;

    background: var(--primary);

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 16px;

    cursor: pointer;

    font-weight: 800;

    transition: .2s;
}

.search-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.hero-trust {
    display: flex;

    gap: 24px;

    margin-top: 18px;

    color: rgba(255,255,255,.66);

    font-size: 11px;
}


/* =====================================================
   GENERAL
===================================================== */

.container {
    max-width: 1240px;

    margin: auto;

    padding: 0 24px;
}


/* =====================================================
   QUICK ACTIONS
===================================================== */

.quick-section {
    padding: 35px 0;

    background: white;
}

.quick-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 16px;
}

.quick-card {
    border: 1px solid var(--line);

    border-radius: 16px;

    padding: 19px;

    display: flex;

    align-items: center;

    gap: 15px;

    transition: .25s;
}

.quick-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 15px 35px rgba(20,30,50,.08);

    border-color: transparent;
}

.quick-icon {
    width: 46px;
    height: 46px;

    border-radius: 13px;

    display: grid;
    place-items: center;

    font-size: 20px;

    flex-shrink: 0;
}

.buy-icon {
    background: #fff0f3;
    color: var(--primary);
}

.rent-icon {
    background: #eef5ff;
}

.sell-icon {
    background: #eefbf4;
    color: #20a968;
}

.quick-card div:nth-child(2) {
    flex: 1;
}

.quick-card strong {
    display: block;
    font-size: 14px;
}

.quick-card span {
    display: block;

    font-size: 11px;

    color: var(--muted);

    margin-top: 3px;
}

.quick-card b {
    color: #a3a9b4;
}


/* =====================================================
   PROPERTIES
===================================================== */

.properties-section {
    padding: 85px 0;
    background: var(--soft);
}

.section-heading {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 35px;
}

.section-heading.centered {
    display: block;
    text-align: center;
}

.eyebrow {
    display: block;

    color: var(--primary);

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1.7px;

    margin-bottom: 8px;
}

.section-heading h2 {
    font-size: 34px;

    letter-spacing: -1.5px;

    margin-bottom: 7px;
}

.section-heading p {
    color: var(--muted);

    font-size: 14px;
}

.view-all {
    font-size: 13px;

    font-weight: 800;

    color: var(--primary);
}

.property-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;
}

.property-card {
    background: white;

    border-radius: var(--radius);

    overflow: hidden;

    border: 1px solid var(--line);

    transition: .25s;
}

.property-card:hover {
    transform: translateY(-6px);

    box-shadow: 0 20px 50px rgba(20,30,50,.10);
}

.property-image {
    height: 220px;

    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #dce4ef,
            #aebdce
        );

    color: white;

    font-size: 40px;
}

.property-image::after {
    content: "PROPERTYHUB";

    position: absolute;

    bottom: 14px;
    left: 15px;

    font-size: 9px;

    letter-spacing: 1.5px;

    font-weight: 800;

    opacity: .55;
}

.property-tag {
    position: absolute;

    top: 13px;
    left: 13px;

    padding: 6px 9px;

    border-radius: 7px;

    background: rgba(255,255,255,.92);

    color: var(--ink);

    font-size: 9px;

    font-weight: 900;

    letter-spacing: .5px;
}

.property-heart {
    position: absolute;

    top: 11px;
    right: 11px;

    width: 34px;
    height: 34px;

    border: 0;

    border-radius: 50%;

    background: rgba(255,255,255,.9);

    cursor: pointer;

    font-size: 17px;
}

.property-info {
    padding: 19px;
}

.property-price {
    font-size: 21px;

    font-weight: 850;

    letter-spacing: -.7px;

    margin-bottom: 5px;
}

.property-title {
    font-size: 14px;

    font-weight: 750;

    margin-bottom: 5px;
}

.property-location {
    color: var(--muted);

    font-size: 11px;

    margin-bottom: 15px;
}

.property-meta {
    border-top: 1px solid var(--line);

    padding-top: 13px;

    display: flex;

    gap: 16px;

    color: var(--muted);

    font-size: 11px;
}

.property-loading {
    grid-column: 1 / -1;

    padding: 70px;

    text-align: center;

    color: var(--muted);
}


/* =====================================================
   HOW IT WORKS
===================================================== */

.how-section {
    padding: 90px 0;
}

.steps-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;

    margin-top: 45px;
}

.step-card {
    position: relative;

    padding: 25px;

    border: 1px solid var(--line);

    border-radius: 18px;

    background: white;
}

.step-number {
    position: absolute;

    right: 18px;
    top: 17px;

    color: #d9dde5;

    font-size: 11px;

    font-weight: 900;
}

.step-icon {
    font-size: 28px;

    margin-bottom: 25px;
}

.step-card h3 {
    font-size: 16px;

    margin-bottom: 7px;
}

.step-card p {
    color: var(--muted);

    font-size: 12px;
}


/* =====================================================
   SELLER
===================================================== */

.seller-section {
    padding: 0 0 90px;
}

.seller-card {
    min-height: 330px;

    border-radius: 25px;

    padding: 55px 65px;

    overflow: hidden;

    position: relative;

    background:
        linear-gradient(
            110deg,
            #172033,
            #293750
        );

    color: white;

    display: flex;

    justify-content: space-between;

    align-items: center;
}

.seller-card h2 {
    font-size: 40px;

    line-height: 1.05;

    letter-spacing: -1.8px;

    margin-bottom: 15px;
}

.seller-card p {
    max-width: 450px;

    color: rgba(255,255,255,.68);

    font-size: 13px;

    margin-bottom: 25px;
}

.seller-button {
    border: 0;

    background: var(--primary);

    color: white;

    padding: 13px 19px;

    border-radius: 10px;

    font-size: 12px;

    font-weight: 800;

    cursor: pointer;
}

.seller-illustration {
    width: 350px;
    height: 260px;

    display: flex;

    align-items: flex-end;
    justify-content: center;
}

.building {
    width: 220px;
    height: 220px;

    background: #e6ebf2;

    border-radius: 8px 8px 0 0;

    padding: 25px;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 14px;

    transform: perspective(600px) rotateY(-15deg);
}

.building-window {
    background: #8092aa;

    border-radius: 3px;

    box-shadow: inset 0 0 0 3px #c6d0dd;
}


/* =====================================================
   FOOTER
===================================================== */

.footer {
    background: #101827;

    color: white;

    padding: 65px 0 25px;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        2fr
        1fr
        1fr
        1fr;

    gap: 40px;

    padding-bottom: 50px;
}

.footer-brand p {
    color: #8d97a8;

    max-width: 270px;

    font-size: 12px;

    margin-top: 15px;
}

.footer h4 {
    font-size: 12px;

    margin-bottom: 17px;
}

.footer-grid > div:not(.footer-brand) a {
    display: block;

    color: #8d97a8;

    font-size: 11px;

    margin-bottom: 10px;
}

.footer-grid > div:not(.footer-brand) a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);

    padding-top: 20px;

    display: flex;

    justify-content: space-between;

    color: #697386;

    font-size: 10px;
}


/* =====================================================
   MODAL
===================================================== */

.modal {
    position: fixed;

    inset: 0;

    z-index: 1000;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;
}

.modal.open {
    display: flex;
}

.modal-backdrop {
    position: absolute;

    inset: 0;

    background: rgba(8,13,24,.68);

    backdrop-filter: blur(5px);
}

.modal-card {
    width: 100%;

    max-width: 430px;

    background: white;

    border-radius: 22px;

    padding: 35px;

    position: relative;

    z-index: 2;

    box-shadow: 0 30px 100px rgba(0,0,0,.25);
}

.modal-close {
    position: absolute;

    right: 17px;
    top: 14px;

    width: 34px;
    height: 34px;

    border: 0;

    background: var(--soft);

    border-radius: 50%;

    cursor: pointer;

    font-size: 22px;
}

.modal-logo {
    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background: var(--primary);

    color: white;

    font-weight: 900;

    margin-bottom: 18px;
}

.modal-card h2 {
    font-size: 25px;

    letter-spacing: -1px;

    margin-bottom: 5px;
}

.modal-card > p {
    color: var(--muted);

    font-size: 12px;

    margin-bottom: 25px;
}

.modal-card form label {
    display: block;

    font-size: 11px;

    font-weight: 700;

    margin-bottom: 6px;

    margin-top: 13px;
}

.modal-card form input,
.modal-card form select {
    width: 100%;

    padding: 12px 13px;

    border: 1px solid var(--line);

    border-radius: 9px;

    outline: none;

    font-size: 13px;
}

.modal-card form input:focus,
.modal-card form select:focus {
    border-color: var(--primary);
}

.modal-primary {
    width: 100%;

    margin-top: 20px;

    padding: 13px;

    border: 0;

    border-radius: 10px;

    background: var(--primary);

    color: white;

    font-weight: 800;

    cursor: pointer;
}

.form-message {
    margin-top: 12px;

    font-size: 11px;

    text-align: center;
}

.modal-footer-text {
    text-align: center;

    margin-top: 18px !important;

    margin-bottom: 0 !important;
}

.modal-footer-text a {
    color: var(--primary);

    font-weight: 700;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {

    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .post-btn {
        display: none;
    }

    .mobile-menu {
        background: #172033;

        padding: 15px 24px;

        flex-direction: column;

        gap: 14px;
    }

    .mobile-menu.open {
        display: flex;
    }

    .mobile-menu a,
    .mobile-menu button {
        color: white;

        border: 0;

        background: transparent;

        text-align: left;

        padding: 8px 0;

        font-weight: 700;
    }

    .search-fields {
        grid-template-columns: 1fr 1fr;
    }

    .search-button {
        min-height: 48px;
    }

    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .seller-card {
        padding: 45px;
    }

    .seller-illustration {
        width: 250px;
    }

}


@media (max-width: 600px) {

    .nav-container {
        height: 70px;
    }

    .hero {
        min-height: 760px;
    }

    .hero-content {
        padding-top: 105px;
    }

    .hero h1 {
        font-size: 49px;
        letter-spacing: -2.5px;
    }

    .hero-description {
        font-size: 14px;
    }

    .search-fields {
        grid-template-columns: 1fr;
    }

    .search-field {
        border-right: 0;

        border-bottom: 1px solid var(--line);
    }

    .search-button {
        width: 100%;
    }

    .hero-trust {
        flex-wrap: wrap;
        gap: 10px;
    }

    .quick-grid {
        grid-template-columns: 1fr;
    }

    .properties-section,
    .how-section {
        padding: 60px 0;
    }

    .section-heading {
        display: block;
    }

    .view-all {
        display: inline-block;

        margin-top: 15px;
    }

    .property-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .seller-card {
        padding: 35px 25px;

        min-height: auto;
    }

    .seller-card h2 {
        font-size: 32px;
    }

    .seller-illustration {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    .modal-card {
        padding: 28px 22px;
    }
}
