/* =====================================
   HABITQUEST DOWNLOAD PAGE
===================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;

    font-family:
        Inter,
        Arial,
        sans-serif;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 75% 20%,
            rgba(99, 102, 241, 0.18),
            transparent 35%
        ),
        radial-gradient(
            circle at 15% 60%,
            rgba(139, 92, 246, 0.12),
            transparent 35%
        ),
        #070711;
}


/* =====================================
   BACKGROUND GLOW
===================================== */

.background-glow {
    position: fixed;
    z-index: -1;

    width: 450px;
    height: 450px;

    border-radius: 50%;

    filter: blur(130px);

    opacity: 0.2;

    pointer-events: none;
}

.glow-one {
    top: -150px;
    right: -100px;

    background: #6366f1;
}

.glow-two {
    bottom: -180px;
    left: -120px;

    background: #8b5cf6;
}


/* =====================================
   HEADER
===================================== */

.header {
    width: min(1180px, 90%);

    margin: auto;
    padding: 28px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;

    color: white;

    font-size: 20px;
    font-weight: 800;

    text-decoration: none;
}

.brand-icon {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #8b5cf6,
            #4f46e5
        );

    box-shadow:
        0 0 25px
        rgba(124, 58, 237, 0.35);
}

.brand > span > span {
    color: #a78bfa;
}

.website-link {
    padding: 10px 16px;

    color: #c4b5fd;

    border:
        1px solid
        rgba(167, 139, 250, 0.22);

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.025);

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition: 0.25s ease;
}

.website-link:hover {
    color: white;

    border-color:
        rgba(167, 139, 250, 0.55);

    background:
        rgba(139, 92, 246, 0.08);

    transform: translateY(-2px);
}


/* =====================================
   HERO
===================================== */

.hero {
    width: min(1180px, 90%);

    min-height: 650px;

    margin: 30px auto 0;

    display: grid;

    grid-template-columns:
        1.08fr
        0.92fr;

    align-items: center;

    gap: 70px;
}

.hero-content {
    max-width: 650px;
}

.android-badge {
    display: inline-flex;

    align-items: center;

    padding: 8px 14px;

    margin-bottom: 22px;

    border:
        1px solid
        rgba(167, 139, 250, 0.25);

    border-radius: 100px;

    background:
        rgba(139, 92, 246, 0.08);

    color: #c4b5fd;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.3px;
}

.hero h1 {
    font-size:
        clamp(
            48px,
            6vw,
            78px
        );

    line-height: 1.03;

    letter-spacing: -3px;
}

.hero h1 span {
    background:
        linear-gradient(
            90deg,
            #a78bfa,
            #818cf8,
            #60a5fa
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.hero-description {
    max-width: 570px;

    margin-top: 25px;

    color: #9ca3af;

    font-size: 16px;
    line-height: 1.8;
}


/* =====================================
   DOWNLOAD BUTTON
===================================== */

.download-btn {
    width: fit-content;

    min-width: 235px;

    margin-top: 32px;
    padding: 14px 22px;

    display: flex;

    align-items: center;

    gap: 14px;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #8b5cf6,
            #4f46e5
        );

    color: white;

    text-decoration: none;

    box-shadow:
        0 12px 40px
        rgba(79, 70, 229, 0.3);

    transition: 0.25s ease;
}

.download-btn:hover {
    transform:
        translateY(-4px)
        scale(1.015);

    box-shadow:
        0 18px 50px
        rgba(79, 70, 229, 0.45);
}

.download-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 11px;

    background:
        rgba(255, 255, 255, 0.12);

    font-size: 23px;
    font-weight: 700;
}

.download-btn strong {
    display: block;

    font-size: 16px;
}

.download-btn small {
    display: block;

    margin-top: 3px;

    color:
        rgba(255, 255, 255, 0.7);

    font-size: 11px;
}


/* =====================================
   APP DETAILS
===================================== */

.app-details {
    margin-top: 20px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 9px;

    color: #6b7280;

    font-size: 11px;
}

.app-details .dot {
    color: #4b5563;
}


/* =====================================
   PHONE MOCKUP
===================================== */

.phone-area {
    position: relative;

    min-height: 580px;

    display: flex;

    align-items: center;
    justify-content: center;
}

.phone-glow {
    position: absolute;

    width: 320px;
    height: 420px;

    border-radius: 50%;

    background:
        rgba(99, 102, 241, 0.25);

    filter: blur(100px);
}

.phone {
    position: relative;

    width: 285px;
    height: 565px;

    padding: 8px;

    border:
        1px solid
        rgba(255, 255, 255, 0.15);

    border-radius: 42px;

    background:
        linear-gradient(
            145deg,
            #26263b,
            #0d0d18
        );

    box-shadow:
        0 40px 100px
        rgba(0, 0, 0, 0.55);

    transform:
        rotate(4deg);

    animation:
        phoneFloat
        5s ease-in-out
        infinite;
}

@keyframes phoneFloat {

    0%,
    100% {
        transform:
            rotate(4deg)
            translateY(0);
    }

    50% {
        transform:
            rotate(2deg)
            translateY(-14px);
    }
}

.phone-top {
    position: absolute;

    z-index: 5;

    top: 18px;
    left: 50%;

    transform:
        translateX(-50%);

    width: 75px;
    height: 21px;

    display: flex;

    align-items: center;
    justify-content: flex-end;

    padding-right: 10px;

    border-radius: 20px;

    background: #050509;
}

.camera {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #17173a;
}

.phone-screen {
    width: 100%;
    height: 100%;

    padding:
        62px
        20px
        25px;

    overflow: hidden;

    border-radius: 35px;

    background:
        radial-gradient(
            circle at top,
            rgba(99, 102, 241, 0.18),
            transparent 35%
        ),
        #090914;
}

.mini-logo {
    width: 46px;
    height: 46px;

    margin-bottom: 13px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #8b5cf6,
            #4f46e5
        );

    font-size: 21px;

    box-shadow:
        0 0 25px
        rgba(139, 92, 246, 0.3);
}

.phone-screen h2 {
    font-size: 24px;
}

.phone-screen > p {
    margin-top: 4px;

    color: #6b7280;

    font-size: 11px;
}

.mini-level-card {
    margin-top: 28px;

    padding: 15px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    border:
        1px solid
        rgba(255, 255, 255, 0.07);

    border-radius: 15px;

    background:
        rgba(255, 255, 255, 0.04);
}

.mini-level-card small {
    display: block;

    margin-bottom: 4px;

    color: #6b7280;

    font-size: 8px;
}

.mini-level-card strong {
    font-size: 15px;
}

.mini-progress {
    margin-top: 24px;
}

.progress-info {
    display: flex;

    justify-content: space-between;

    color: #9ca3af;

    font-size: 10px;
}

.progress-bar {
    height: 7px;

    margin-top: 9px;

    overflow: hidden;

    border-radius: 20px;

    background:
        rgba(255, 255, 255, 0.07);
}

.progress-bar div {
    width: 75%;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #8b5cf6,
            #60a5fa
        );
}

.mini-habits {
    margin-top: 25px;

    display: grid;

    gap: 10px;
}

.mini-habits div {
    padding: 12px;

    display: flex;

    align-items: center;

    gap: 10px;

    border:
        1px solid
        rgba(255, 255, 255, 0.06);

    border-radius: 11px;

    background:
        rgba(255, 255, 255, 0.03);

    color: #d1d5db;

    font-size: 10px;
}

.mini-habits span {
    width: 21px;
    height: 21px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        rgba(139, 92, 246, 0.15);

    color: #a78bfa;
}


/* =====================================
   FEATURES
===================================== */

.features {
    width: min(950px, 90%);

    margin:
        70px auto
        30px;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;
}

.feature {
    padding: 20px;

    display: flex;

    align-items: center;

    gap: 15px;

    border:
        1px solid
        rgba(255, 255, 255, 0.07);

    border-radius: 17px;

    background:
        rgba(255, 255, 255, 0.025);
}

.feature > span {
    font-size: 26px;
}

.feature strong {
    font-size: 13px;
}

.feature p {
    margin-top: 4px;

    color: #6b7280;

    font-size: 10px;
}


/* =====================================
   SAFE DOWNLOAD
===================================== */

.safe-download {
    width: min(720px, 90%);

    margin:
        45px auto
        80px;

    padding: 22px;

    display: flex;

    align-items: center;

    gap: 17px;

    border:
        1px solid
        rgba(34, 197, 94, 0.14);

    border-radius: 17px;

    background:
        rgba(34, 197, 94, 0.035);
}

.shield {
    font-size: 28px;
}

.safe-download strong {
    font-size: 13px;
}

.safe-download p {
    margin-top: 5px;

    color: #6b7280;

    font-size: 11px;
    line-height: 1.6;
}


/* =====================================
   FOOTER
===================================== */

footer {
    width: min(1180px, 90%);

    margin: auto;

    padding:
        30px 0
        45px;

    text-align: center;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.06);
}

footer span {
    font-size: 17px;
    font-weight: 800;
}

footer p {
    margin-top: 7px;

    color: #4b5563;

    font-size: 11px;
}

footer a {
    display: inline-block;

    margin-top: 10px;

    color: #8b5cf6;

    font-size: 11px;

    text-decoration: none;
}


/* =====================================
   MOBILE
===================================== */

@media (max-width: 850px) {

    .header {
        padding-top: 20px;
    }

    .website-link {
        padding: 8px 11px;

        font-size: 11px;
    }

    .hero {
        margin-top: 55px;

        grid-template-columns: 1fr;

        gap: 60px;

        text-align: center;
    }

    .hero-content {
        margin: auto;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .download-btn {
        margin-left: auto;
        margin-right: auto;
    }

    .app-details {
        justify-content: center;
    }

    .phone-area {
        min-height: 600px;
    }

    .features {
        grid-template-columns: 1fr;
    }
}


/* =====================================
   SMALL PHONES
===================================== */

@media (max-width: 480px) {

    .brand {
        font-size: 17px;
    }

    .brand-icon {
        width: 34px;
        height: 34px;
    }

    .hero {
        width: 92%;

        margin-top: 35px;
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero-description {
        font-size: 14px;
    }

    .phone {
        width: 260px;
        height: 520px;
    }

    .phone-area {
        min-height: 545px;
    }

    .safe-download {
        align-items: flex-start;
    }
}