/* =========================================================
   MAKDRIX — PUBLIC HOME
========================================================= */

:root {
    --makdrix-purple: #6f36d8;
    --makdrix-purple-dark: #5926b5;
    --makdrix-purple-light: #f4effc;

    --text-primary: #18181d;
    --text-secondary: #6f6f79;

    --border-color: #e9e9ef;

    --page-background: #ffffff;
    --soft-background: #f8f8fb;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    background:
        var(--page-background);

    color:
        var(--text-primary);
}


.home-container {
    width: min(
        1180px,
        calc(100% - 40px)
    );

    margin: 0 auto;
}


.home-section {
    padding: 100px 0;
}


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

.home-hero {
    position: relative;

    overflow: hidden;

    padding:
        80px 0 100px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #faf8fe 100%
        );
}


.hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(380px, 0.95fr);

    align-items: center;

    gap: 70px;
}


.hero-eyebrow,
.section-eyebrow,
.section-heading > span,
.download-eyebrow {
    display: block;

    margin-bottom: 14px;

    color:
        var(--makdrix-purple);

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

    letter-spacing: 0.09em;
}


.hero-content h1 {
    max-width: 700px;

    margin:
        0 0 22px;

    font-size:
        clamp(
            42px,
            6vw,
            70px
        );

    line-height: 1.02;

    letter-spacing: -0.045em;
}


.hero-content h1 span {
    color:
        var(--makdrix-purple);
}


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

    margin: 0;

    color:
        var(--text-secondary);

    font-size: 18px;

    line-height: 1.7;
}


.hero-actions {
    display: flex;

    gap: 12px;

    margin-top: 32px;
}


.home-primary-button,
.home-secondary-button {
    min-height: 50px;

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

    padding: 0 22px;

    border-radius: 12px;

    text-decoration: none;

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


.home-primary-button {
    background:
        var(--makdrix-purple);

    color: #ffffff;
}


.home-primary-button:hover {
    background:
        var(--makdrix-purple-dark);
}


.home-secondary-button {
    border:
        1px solid #dedee7;

    background: #ffffff;

    color:
        var(--text-primary);
}


.hero-trust {
    display: flex;

    gap: 32px;

    margin-top: 45px;
}


.hero-trust div {
    display: flex;
    flex-direction: column;

    gap: 3px;
}


.hero-trust strong {
    font-size: 13px;
}


.hero-trust span {
    color:
        var(--text-secondary);

    font-size: 11px;
}


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

.hero-visual {
    position: relative;

    min-height: 570px;

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


.hero-visual-glow {
    position: absolute;

    width: 430px;
    height: 430px;

    border-radius: 50%;

    background:
        rgba(111, 54, 216, 0.12);

    filter: blur(15px);
}


.hero-phone {
    position: relative;

    z-index: 2;

    width: 280px;

    padding: 9px;

    border-radius: 38px;

    background: #17171b;

    box-shadow:
        0 35px 80px
        rgba(38, 25, 61, 0.24);
}


.hero-phone-top {
    position: absolute;

    top: 17px;
    left: 50%;

    z-index: 5;

    width: 85px;
    height: 22px;

    transform:
        translateX(-50%);

    border-radius: 20px;

    background: #17171b;
}


.hero-phone-screen {
    min-height: 535px;

    padding:
        45px 18px 18px;

    border-radius: 31px;

    background: #ffffff;
}


.phone-brand {
    margin-bottom: 27px;

    color:
        var(--makdrix-purple);

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


.phone-greeting small,
.phone-greeting strong {
    display: block;
}


.phone-greeting small {
    margin-bottom: 4px;

    color: #8c8c95;

    font-size: 10px;
}


.phone-greeting strong {
    font-size: 17px;
}


.phone-location {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-top: 21px;
}


.location-dot {
    width: 10px;
    height: 10px;

    border:
        3px solid #d9c9f6;

    border-radius: 50%;

    background:
        var(--makdrix-purple);
}


.phone-location small,
.phone-location strong {
    display: block;
}


.phone-location small {
    color: #92929b;

    font-size: 8px;
}


.phone-location strong {
    margin-top: 2px;

    font-size: 10px;
}


.phone-search {
    margin-top: 15px;

    padding: 13px;

    border-radius: 11px;

    background: #f4f4f7;

    color: #8b8b94;

    font-size: 10px;
}


.phone-services {
    display: grid;

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

    gap: 7px;

    margin-top: 18px;
}


.phone-services div {
    padding: 10px 4px;

    border-radius: 10px;

    background:
        var(--makdrix-purple-light);

    text-align: center;
}


.phone-services span,
.phone-services small {
    display: block;
}


.phone-services span {
    margin-bottom: 5px;

    font-size: 16px;
}


.phone-services small {
    font-size: 8px;
}


.phone-map {
    position: relative;

    overflow: hidden;

    height: 215px;

    margin-top: 18px;

    border-radius: 15px;

    background: #eeeef2;
}


.map-road {
    position: absolute;

    height: 8px;

    border-radius: 20px;

    background: #ffffff;
}


.road-one {
    width: 300px;

    top: 55px;
    left: -30px;

    transform:
        rotate(-20deg);
}


.road-two {
    width: 270px;

    top: 130px;
    left: -20px;

    transform:
        rotate(28deg);
}


.road-three {
    width: 240px;

    top: 95px;
    left: 30px;

    transform:
        rotate(75deg);
}


.map-pin {
    position: absolute;

    top: 85px;
    left: 110px;

    width: 38px;
    height: 38px;

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

    border:
        5px solid #ffffff;

    border-radius: 50%;

    background:
        var(--makdrix-purple);

    color: #ffffff;

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

    box-shadow:
        0 7px 20px
        rgba(0, 0, 0, 0.15);
}


.hero-floating-card {
    position: absolute;

    right: 5px;
    bottom: 75px;

    z-index: 3;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 13px 16px;

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

    border-radius: 13px;

    background: #ffffff;

    box-shadow:
        0 15px 35px
        rgba(38, 25, 61, 0.12);
}


.hero-floating-card > span {
    width: 31px;
    height: 31px;

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

    border-radius: 50%;

    background: #eaf8ef;

    color: #16803c;

    font-weight: 800;
}


.hero-floating-card strong,
.hero-floating-card small {
    display: block;
}


.hero-floating-card strong {
    margin-bottom: 2px;

    font-size: 11px;
}


.hero-floating-card small {
    color: #8b8b94;

    font-size: 9px;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {
    max-width: 680px;

    margin:
        0 auto 50px;

    text-align: center;
}


.section-heading h2,
.safety-content h2,
.about-grid h2,
.download-card h2 {
    margin:
        0 0 15px;

    font-size:
        clamp(
            30px,
            4vw,
            44px
        );

    line-height: 1.12;

    letter-spacing: -0.035em;
}


.section-heading p {
    margin: 0;

    color:
        var(--text-secondary);

    line-height: 1.65;
}


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

.services-section {
    background: #ffffff;
}


.services-grid {
    display: grid;

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

    gap: 18px;
}


.service-card {
    position: relative;

    padding: 31px;

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

    border-radius: 20px;

    background: #ffffff;
}


.featured-service {
    border-color: #d8c8f3;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #faf7ff
        );
}


.service-featured-label {
    position: absolute;

    top: 20px;
    right: 20px;

    padding: 5px 9px;

    border-radius: 20px;

    background:
        var(--makdrix-purple);

    color: #ffffff;

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

    letter-spacing: 0.05em;
}


.service-icon {
    width: 48px;
    height: 48px;

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

    margin-bottom: 23px;

    border-radius: 13px;

    background:
        var(--makdrix-purple-light);

    color:
        var(--makdrix-purple);

    font-size: 21px;
}


.service-label {
    display: block;

    margin-bottom: 8px;

    color:
        var(--makdrix-purple);

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

    letter-spacing: 0.08em;
}


.service-card h3 {
    margin:
        0 0 12px;

    font-size: 22px;
}


.service-card p {
    min-height: 72px;

    margin: 0;

    color:
        var(--text-secondary);

    font-size: 14px;

    line-height: 1.65;
}


.service-actions {
    display: flex;
    align-items: center;

    gap: 18px;

    margin-top: 25px;
}


.service-primary-link {
    padding: 10px 15px;

    border-radius: 9px;

    background:
        var(--makdrix-purple);

    color: #ffffff;

    text-decoration: none;

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


.service-secondary-link {
    color:
        var(--makdrix-purple);

    text-decoration: none;

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


/* =========================================================
   HOW
========================================================= */

.how-section {
    background:
        var(--soft-background);
}


.how-grid {
    display: grid;

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

    gap: 20px;
}


.how-grid article {
    padding: 30px;

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

    border-radius: 17px;

    background: #ffffff;
}


.how-number {
    margin-bottom: 25px;

    color:
        var(--makdrix-purple);

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


.how-grid h3 {
    margin:
        0 0 10px;

    font-size: 18px;
}


.how-grid p {
    margin: 0;

    color:
        var(--text-secondary);

    font-size: 13px;

    line-height: 1.6;
}


/* =========================================================
   SAFETY
========================================================= */

.safety-grid {
    display: grid;

    grid-template-columns:
        1fr 0.8fr;

    align-items: center;

    gap: 90px;
}


.safety-content > p {
    max-width: 600px;

    color:
        var(--text-secondary);

    line-height: 1.7;
}


.safety-list {
    display: flex;
    flex-direction: column;

    gap: 22px;

    margin-top: 35px;
}


.safety-list > div {
    display: flex;

    gap: 14px;
}


.safety-list > div > span {
    width: 30px;
    height: 30px;

    flex-shrink: 0;

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

    border-radius: 50%;

    background: #eaf8ef;

    color: #16803c;

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


.safety-list strong {
    display: block;

    margin-bottom: 4px;

    font-size: 14px;
}


.safety-list p {
    margin: 0;

    color:
        var(--text-secondary);

    font-size: 12px;

    line-height: 1.5;
}


.safety-visual {
    min-height: 400px;

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

    padding: 40px;

    border-radius: 30px;

    background:
        var(--makdrix-purple-light);

    text-align: center;
}


.safety-shield {
    width: 115px;
    height: 130px;

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

    margin-bottom: 25px;

    border-radius:
        55px 55px 65px 65px;

    background:
        var(--makdrix-purple);

    color: #ffffff;

    font-size: 48px;
    font-weight: 900;
}


.safety-visual strong {
    margin-bottom: 8px;

    font-size: 19px;
}


.safety-visual span {
    max-width: 270px;

    color:
        var(--text-secondary);

    font-size: 12px;

    line-height: 1.5;
}


/* =========================================================
   DOWNLOAD
========================================================= */

.download-section {
    padding:
        40px 0 100px;
}


.download-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 60px;

    box-sizing: border-box;

    padding: 55px;

    border-radius: 28px;

    background:
        #17171d;

    color: #ffffff;
}


.download-card p {
    max-width: 530px;

    margin: 0;

    color: #bdbdc5;

    line-height: 1.6;
}


.store-buttons {
    display: flex;

    gap: 10px;

    margin-top: 28px;
}


.store-button {
    display: flex;
    align-items: center;

    gap: 10px;

    min-width: 145px;

    padding: 10px 14px;

    border:
        1px solid #414149;

    border-radius: 10px;

    color: #ffffff;

    text-decoration: none;
}


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


.store-button small,
.store-button strong {
    display: block;
}


.store-button small {
    color: #bdbdc5;

    font-size: 8px;
}


.store-button strong {
    margin-top: 2px;

    font-size: 13px;
}


.download-brand {
    min-width: 250px;

    text-align: center;
}


.download-brand div {
    width: 90px;
    height: 90px;

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

    margin:
        0 auto 16px;

    border-radius: 25px;

    background:
        var(--makdrix-purple);

    font-size: 45px;
    font-weight: 900;
}


.download-brand strong,
.download-brand span {
    display: block;
}


.download-brand strong {
    font-size: 23px;
}


.download-brand span {
    margin-top: 6px;

    color: #aaaab3;

    font-size: 11px;
}


/* =========================================================
   ABOUT
========================================================= */

.about-section {
    background:
        var(--soft-background);
}


.about-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 80px;
}


.about-grid h2 {
    max-width: 560px;
}


.about-copy p {
    margin:
        0 0 18px;

    color:
        var(--text-secondary);

    line-height: 1.75;
}


.about-copy a {
    display: inline-block;

    margin-top: 10px;

    color:
        var(--makdrix-purple);

    text-decoration: none;

    font-weight: 700;
}


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

@media (
    max-width: 950px
) {

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

        text-align: center;
    }


    .hero-description {
        margin:
            0 auto;
    }


    .hero-actions,
    .hero-trust {
        justify-content: center;
    }


    .hero-visual {
        min-height: 590px;
    }


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


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

        gap: 50px;
    }


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

        gap: 30px;
    }
}


@media (
    max-width: 700px
) {

    .home-container {
        width:
            calc(100% - 30px);
    }


    .home-section {
        padding: 75px 0;
    }


    .home-hero {
        padding:
            60px 0 70px;
    }


    .hero-grid {
        gap: 30px;
    }


    .hero-content h1 {
        font-size: 42px;
    }


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


    .hero-actions {
        flex-direction: column;
    }


    .hero-trust {
        gap: 18px;

        justify-content: space-between;
    }


    .hero-visual {
        min-height: 540px;

        transform:
            scale(0.9);
    }


    .hero-floating-card {
        right: 0;
    }


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


    .service-card {
        padding: 24px;
    }


    .service-card p {
        min-height: auto;
    }


    .service-actions {
        flex-direction: column;
        align-items: flex-start;
    }


    .download-card {
        flex-direction: column;

        padding: 35px 24px;

        text-align: center;
    }


    .store-buttons {
        justify-content: center;
    }
}


@media (
    max-width: 450px
) {

    .hero-content h1 {
        font-size: 37px;
    }


    .hero-trust {
        flex-direction: column;

        gap: 13px;
    }


    .hero-visual {
        margin:
            -25px 0;

        transform:
            scale(0.78);
    }


    .store-buttons {
        flex-direction: column;
    }
}