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

:root {
    --primary: #6d3df5;
    --primary-dark: #5730d0;
    --text: #18181b;
    --muted: #71717a;
    --border: #e9e9ee;
    --background: #fafafa;
    --white: #ffffff;
    --soft: #f5f3ff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.5;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}


/* =========================================================
   HEADER
========================================================= */

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(12px);
}

.header-inner {
    width: min(1200px, 94%);
    min-height: 72px;
    margin: auto;

    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-right: auto;

    text-decoration: none;

    font-size: 23px;
    font-weight: 800;
    letter-spacing: -.6px;
}

.logo-icon {
    font-size: 22px;
}

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

.location-box {
    display: flex;
    align-items: center;
    gap: 6px;

    padding: 9px 13px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: white;

    font-size: 14px;
    font-weight: 600;
}

.location-box small {
    color: #999;
}

.header-link,
.header-login {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.header-link:hover,
.header-login:hover {
    color: var(--primary);
}

.header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 17px;

    border-radius: 9px;

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

    text-decoration: none;

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

    transition: .2s ease;
}

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


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

.hero {
    padding: 70px 20px;

    background:
        linear-gradient(
            135deg,
            #f5f1ff 0%,
            #ffffff 55%,
            #f7f9ff 100%
        );
}

.hero-content {
    width: min(1200px, 94%);
    margin: auto;

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

    gap: 60px;

    align-items: center;
}

.hero-text {
    max-width: 590px;
}

.hero-badge {
    display: inline-block;

    padding: 7px 12px;

    margin-bottom: 18px;

    border: 1px solid #ddd3ff;
    border-radius: 30px;

    background: #fff;

    color: var(--primary);

    font-size: 12px;
    font-weight: 700;
}

.hero h1 {
    margin-bottom: 20px;

    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.03;

    letter-spacing: -2.8px;
}

.hero h1 span {
    color: var(--primary);
}

.hero-text > p {
    max-width: 550px;

    margin-bottom: 26px;

    color: var(--muted);

    font-size: 17px;
    line-height: 1.7;
}


/* SEARCH */

.hero-search {
    width: 100%;
    max-width: 620px;

    min-height: 60px;

    display: flex;
    align-items: center;

    padding: 6px;

    background: white;

    border: 1px solid #dedee5;
    border-radius: 12px;

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

.hero-search > span {
    padding: 0 12px;

    font-size: 19px;
}

.hero-search input {
    flex: 1;

    min-width: 0;

    padding: 12px 4px;

    border: 0;
    outline: 0;

    background: transparent;

    font-size: 14px;
}

.hero-search input::placeholder {
    color: #a1a1aa;
}

.hero-search button {
    padding: 13px 22px;

    border: 0;
    border-radius: 8px;

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

    font-weight: 700;

    cursor: pointer;

    transition: .2s ease;
}

.hero-search button:hover {
    background: var(--primary-dark);
}


/* TRUST */

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;

    margin-top: 18px;

    color: #666;

    font-size: 12px;
}


/* HERO IMAGE */

.hero-image {
    position: relative;

    width: 100%;
}

.hero-image img {
    display: block;

    width: 100%;
    height: 420px;

    object-fit: cover;

    border-radius: 20px;

    box-shadow: 0 18px 45px rgba(0,0,0,.12);
}

.floating-card {
    position: absolute;

    padding: 11px 15px;

    background: white;

    border-radius: 10px;

    box-shadow: 0 8px 25px rgba(0,0,0,.14);

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

.floating-card-one {
    top: 22px;
    left: -16px;
}

.floating-card-two {
    right: -16px;
    bottom: 22px;
}


/* =========================================================
   COMMON SECTION
========================================================= */

.section {
    width: min(1200px, 94%);
    margin: auto;

    padding: 65px 0;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}

.section-heading h2 {
    margin-top: 5px;

    font-size: 29px;
    line-height: 1.2;

    letter-spacing: -.8px;
}

.section-heading a {
    color: var(--primary);

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;
}

.section-label {
    color: var(--primary);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.5px;
}


/* =========================================================
   CATEGORIES
========================================================= */

.category-grid {
    display: grid;

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

    gap: 16px;
}

.category-card {
    display: block;

    overflow: hidden;

    background: white;

    border: 1px solid var(--border);
    border-radius: 15px;

    text-decoration: none;

    transition:
        transform .22s ease,
        box-shadow .22s ease;
}

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

    box-shadow: 0 14px 35px rgba(0,0,0,.09);
}

.category-image {
    position: relative;

    width: 100%;
    height: 155px;

    overflow: hidden;

    background: #eee;
}

.category-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .4s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.04);
}

.image-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0,0,0,.28),
        transparent 55%
    );
}

.category-icon {
    position: absolute;

    left: 12px;
    bottom: 11px;

    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

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

    border-radius: 9px;

    font-size: 19px;

    box-shadow: 0 5px 15px rgba(0,0,0,.12);
}

.category-info {
    padding: 14px 15px 16px;
}

.category-info h3 {
    margin-bottom: 5px;

    font-size: 16px;
}

.category-info span {
    color: var(--primary);

    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   POPULAR SERVICES
========================================================= */

.popular-section {
    width: min(1200px, 94%);
}

.service-scroll {
    display: flex;

    gap: 16px;

    overflow-x: auto;

    padding: 3px 3px 18px;

    scrollbar-width: thin;
}

.service-thumbnail {
    flex: 0 0 260px;

    overflow: hidden;

    background: white;

    border: 1px solid var(--border);
    border-radius: 15px;

    text-decoration: none;

    transition:
        transform .22s ease,
        box-shadow .22s ease;
}

.service-thumbnail:hover {
    transform: translateY(-4px);

    box-shadow: 0 14px 35px rgba(0,0,0,.09);
}

.service-thumb-image {
    width: 100%;
    height: 160px;

    overflow: hidden;

    background: #eee;
}

.service-thumb-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .4s ease;
}

.service-thumbnail:hover .service-thumb-image img {
    transform: scale(1.04);
}

.service-thumbnail-content {
    padding: 15px;
}

.service-thumbnail-content h3 {
    margin-bottom: 6px;

    font-size: 16px;
}

.service-thumbnail-content p {
    margin-bottom: 7px;

    color: var(--muted);

    font-size: 13px;
}

.service-thumbnail-content span {
    color: var(--primary);

    font-size: 12px;
    font-weight: 800;
}


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

.how-section {
    padding: 70px 20px;

    background: white;
}

.how-section .section-heading {
    width: min(1200px, 94%);
    margin-left: auto;
    margin-right: auto;
}

.centered {
    justify-content: center;
    text-align: center;
}

.steps-grid {
    width: min(1100px, 94%);
    margin: 30px auto 0;

    display: grid;

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

    gap: 18px;
}

.step-card {
    padding: 27px;

    background: #fff;

    border: 1px solid var(--border);
    border-radius: 15px;

    transition: .22s ease;
}

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

    box-shadow: 0 12px 30px rgba(0,0,0,.07);
}

.step-number {
    margin-bottom: 5px;

    color: #d9d0ff;

    font-size: 34px;
    font-weight: 800;
}

.step-icon {
    margin-bottom: 12px;

    font-size: 29px;
}

.step-card h3 {
    margin-bottom: 7px;

    font-size: 17px;
}

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

    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   PROFESSIONAL CTA
========================================================= */

.professional-cta {
    width: min(1200px, 94%);

    margin: 65px auto;

    padding: 50px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #18121f,
            #35206d
        );

    color: white;
}

.professional-cta > div {
    max-width: 680px;
}

.professional-cta span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    opacity: .75;
}

.professional-cta h2 {
    margin: 10px 0;

    font-size: 34px;
    line-height: 1.15;

    letter-spacing: -1px;
}

.professional-cta p {
    max-width: 590px;

    margin-bottom: 18px;

    color: #c7c0d3;

    font-size: 15px;
    line-height: 1.6;
}

.cta-button {
    display: inline-flex;

    padding: 12px 19px;

    border-radius: 9px;

    background: white;
    color: #4d27bd;

    text-decoration: none;

    font-size: 14px;
    font-weight: 800;
}


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

footer {
    padding: 35px 20px;

    background: #151515;

    color: white;

    text-align: center;
}

.footer-logo {
    margin-bottom: 5px;

    font-size: 22px;
    font-weight: 800;
}

.footer-logo span {
    color: #9b78ff;
}

footer p {
    color: #999;

    font-size: 13px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .header-inner {
        gap: 14px;
    }

    .location-box {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .hero-text {
        max-width: 700px;
    }

    .hero-image img {
        height: 360px;
    }

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

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


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .header-inner {
        width: 94%;
        min-height: 64px;

        gap: 9px;
    }

    .logo {
        font-size: 19px;
    }

    .logo-icon {
        font-size: 18px;
    }

    .header-link {
        display: none;
    }

    .header-login {
        font-size: 13px;
    }

    .header-btn {
        padding: 9px 12px;

        font-size: 12px;
    }

    .hero {
        padding: 48px 0 55px;
    }

    .hero-content {
        width: 94%;
    }

    .hero h1 {
        font-size: 42px;
        letter-spacing: -1.8px;
    }

    .hero-text > p {
        font-size: 15px;
    }

    .hero-search {
        min-height: 56px;
    }

    .hero-search input {
        font-size: 13px;
    }

    .hero-search button {
        padding: 12px 14px;
    }

    .hero-trust {
        gap: 10px;

        font-size: 11px;
    }

    .hero-image img {
        height: 280px;

        border-radius: 15px;
    }

    .floating-card {
        padding: 9px 11px;

        font-size: 11px;
    }

    .floating-card-one {
        left: 8px;
        top: 12px;
    }

    .floating-card-two {
        right: 8px;
        bottom: 12px;
    }

    .section {
        padding: 50px 0;
    }

    .section-heading h2 {
        font-size: 24px;
    }

    .category-grid {
        grid-template-columns: 1fr 1fr;

        gap: 10px;
    }

    .category-image {
        height: 125px;
    }

    .category-info {
        padding: 12px;
    }

    .category-info h3 {
        font-size: 14px;
    }

    .category-info span {
        font-size: 11px;
    }

    .service-thumbnail {
        flex-basis: 235px;
    }

    .service-thumb-image {
        height: 145px;
    }

    .professional-cta {
        padding: 32px 25px;

        margin-top: 45px;
        margin-bottom: 45px;
    }

    .professional-cta h2 {
        font-size: 27px;
    }

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


/* =========================================================
   AUTHENTICATION UI
   ========================================================= */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background:
        radial-gradient(circle at top left, rgba(109,61,245,.10), transparent 35%),
        radial-gradient(circle at bottom right, rgba(109,61,245,.08), transparent 35%),
        #f7f7fb;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid #ececf2;
    border-radius: 24px;
    padding: 38px;
    box-shadow: 0 20px 60px rgba(20,20,40,.10);
}

.auth-brand {
    text-align: center;
    margin-bottom: 24px;
}

.auth-brand .logo {
    text-decoration: none;
    font-size: 25px;
    font-weight: 800;
    color: #17141f;
}

.auth-brand .logo span {
    color: #6d3df5;
}

.auth-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #f0ebff;
    font-size: 27px;
}

.auth-card h1 {
    margin: 0;
    text-align: center;
    font-size: 29px;
    color: #17141f;
}

.auth-subtitle {
    margin: 10px 0 28px;
    text-align: center;
    color: #777582;
    font-size: 14px;
    line-height: 1.6;
}

.flash-message {
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: 10px;
    background: #fff1f1;
    color: #c62828;
    font-size: 14px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 650;
    color: #302d38;
}

.form-group input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 15px;
    border: 1px solid #dddbe5;
    border-radius: 12px;
    background: #fff;
    color: #222;
    font-size: 15px;
    outline: none;
    transition: .2s ease;
}

.form-group input:focus {
    border-color: #6d3df5;
    box-shadow: 0 0 0 4px rgba(109,61,245,.10);
}

.auth-submit {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 15px;
    margin-top: 4px;
    background: #6d3df5;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(109,61,245,.25);
}

.auth-footer,
.auth-secondary {
    text-align: center;
    margin-top: 20px;
    color: #777582;
    font-size: 14px;
    line-height: 1.6;
}

.auth-footer a,
.auth-secondary a {
    color: #6d3df5;
    font-weight: 700;
    text-decoration: none;
}

.auth-footer a:hover,
.auth-secondary a:hover {
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 4px;
    color: #aaa7b2;
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #eceaf0;
}

.auth-home {
    display: block;
    margin-top: 25px;
    text-align: center;
    color: #777582;
    font-size: 13px;
    text-decoration: none;
}

.auth-home:hover {
    color: #6d3df5;
}

@media (max-width: 520px) {
    .auth-page {
        padding: 20px 14px;
    }

    .auth-card {
        padding: 28px 22px;
        border-radius: 20px;
    }

    .auth-card h1 {
        font-size: 25px;
    }
}
