﻿:root{
    --title: #0C171D;
    --text: #262626;
    --footer: #ffffff;

    --lavender: #d9d0ff;
    --sky: #cfe6ff;
    --white: #ffffff;

    --accent: #6A47FF;
}

/*Main*/
*{
    font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", Helvetica;
    box-sizing: border-box;
}

html, body{
    height: 100%;
}

body{
    margin: 0;
}

img{
    max-width: 100%;
    height: auto;
    display: block;
}

a{
    color: inherit;
    text-decoration: none;
}

.title {
    color: var(--title);
    font-weight: 800;
    font-size: clamp(30px, 6vw, 56px);
    line-height: 1.05;
    margin: 0 0;
}

.description{
    color: var(--text);
    font-weight: 500;
    font-size: clamp(12px, 2vw, 18px);
    line-height: clamp(1.5em, calc(3em - 2vw), 2.5em);
}

/* Topbar */
.topbar__inner{
    width: 100%;
    height: 140px;
    align-items: center;
    display: flex;
    justify-content: space-between;
}
.topbar__icon{
    padding-left: 10%;
    padding-top: 10px;
    align-items: center;
    display: flex;
    flex: 0 0 auto;
}
.topbar__icon img{
    width: 100px;
    height: 100px;
    border-radius: 20%;
    object-fit: cover;
}

.topbar__nav{
    font-size: clamp(10px, 2.5vw, 16px);
    padding-right: 10%;
    gap: 15px;
    align-items: center;
    display: inline-flex;
}

.topbar__dot{
    opacity: 1.3;
}

/* Main part */
.hero .container{
    width: 100%;
    margin: 0;
    padding: 0 0 100px 10%;
}

.hero__grid{
    min-height: 700px;
    gap: 60px;
    align-items: center;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
}

.hero__title{
    margin: 0 0 25px;
}

.hero__text{
    max-width: 520px;
    margin: 0 0 40px;
}

.store-badge{
    align-items: center;
    display: inline-flex;
}

.store-badge img{
    width: 220px;
    height: auto;
}

.hero__media{
    align-self: start;
    justify-content: flex-end;
    display: flex;
}

.phone--hero{
    height: 100%;
}

/* Sections */
.section--lavender{
    background: var(--lavender);
    padding: 200px 0;
}

.section--sky{
    background: var(--sky);
    padding: 120px 0;
}

.section--white{
    background: var(--white);
    padding: 200px 0;
}

.section__title{
    text-align: center;
    padding: 0 0 20px;
}

.section__desc{
    margin: 0;
    max-width: 540px;
    text-align: center;
    padding: 0 0 30px;
}

/* Smart Cleaning layout */
.cleaning{
    padding: 0 20%;
    gap: 22px;
    align-items: center;
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
}

.cleaning__text{
    gap: 6px;
    place-items: center;
    display: grid;
}

.cleaning__stage{
    height: 320px;
    place-items: center;
    position: relative;
    display: grid;
}

.phone--horizontal{
    width: min(760px, 100%);
}

.float{
    width: 140px;
    top: 50%;
    left: 50%;
    border-radius: 18px;
    position: absolute;
}

.float--left{
    transform: translate(-50%, -50%) translateX(-380px) translateY(130px) rotate(15deg);
}

.float--right{
    transform: translate(-50%, -50%) translateX(380px) translateY(-260px) rotate(-15deg);
}

.float--right--outside{
    visibility: hidden;
}

/* Security layout */
.security{
    padding: 0 10%;
    gap: 10%;
    align-items: center;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
}

.security__media{
    min-height: 420px;
    position: relative;
}

.phone--security{
    height: 100%;
}

.badge{
    left: 75%;
    bottom: -5%;
    width: 30%;
    transform: rotate(14deg);
    transform-origin: right bottom;
    position: absolute;
}

.security__text .section__title,
.security__text .section__desc{
    margin-left: 0;
    text-align: left;
}

.security__text .section__desc{
    max-width: 520px;
}

/* Video layout */
.video{
    padding: 0 10%;
    gap: 30px;
    align-items: center;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
}

.video__text .section__title,
.video__text .section__desc{
    text-align: left;
}

.video_desc{
    max-width: 100%;
}

.video__media{
    justify-content: flex-end;
    display: flex;
}

.phone--tilt{
    height: 100%;
}

/* Footer */
.footer{
    background: var(--accent);
    color: var(--footer);
    padding: 20px 0;
}

.footer__left{
    position: relative;
    left: 5%;
}

.footer__right{
    position: relative;
    right: 5%;
}

.footer__inner{
    gap: 30px;
    align-items: center;
    justify-content: space-between;
    display: flex;
}

.footer__brand{
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 700;
    margin-bottom: 10px;
}

.footer__addr{
    font-size: clamp(12px, 2vw, 18px);
    line-height: clamp(1.5em, calc(3em - 2vw), 2.5em);
    margin-bottom: 12px;
    opacity: .85;
}

.footer__links{
    font-size: clamp(12px, 1.8vw, 14px);
    gap: 10px;
    opacity: .9;
    display: flex;
}

.footer__square{
    width: 130px;
    height: 130px;
    border-radius: 20%;
    place-items: center;
    overflow: hidden;
    position: relative;
}
.footer__square img{
    width: 100%;
    height: 100%;
}

/* Responsive Main */
@media (max-width: 950px){
    /* Topbar */
    .topbar__icon img{
        width: 100%;
        height: 100%;
    }

    .topbar__icon{
        width: 100%;
        min-width: min(25%, 20px);
        max-width: min(25%, 80px);
        aspect-ratio: 1 / 1;
        padding: 0;
    }

    .topbar__nav{
        padding-right: 0;
        justify-self: flex-end;
    }

    .topbar__link {
        white-space: nowrap;
    }

    .topbar__inner{
        height: 30%;
        padding: 5%;
        gap: 5%;
    }

    /* Main screen */
    .hero__grid{
        min-height: unset;
        padding-top: 8px;
        gap: 22px;
        grid-template-columns: 1fr;
    }

    .hero .container{
        margin: 0 auto;
        padding-left: 0;
    }

    .phone--hero{
        padding-left: 20%;
    }

    .hero__media{
        order: -1;
    }

    .hero__content{
        text-align: center;
        padding: 0 10%;
    }

    .hero__text{
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 20px;
    }

    .store-badge img{
        width: min(50%, 250px);
    }

    .store-badge{
        justify-content: center;
    }

    /* Security cleaning */
    .cleaning{
        padding: 0 5%;
    }

    .cleaning__stage{
        height: 100%;
    }

    .float{
        transform: none;
        width: min(20%, 100px);
        border-radius: 10px;
        top: auto;
        left: auto;
    }

    .float--left{
        rotate: 15deg;
        bottom: -60%;
        left: 5%;
    }

    .float--right{
        rotate: -15deg;
        top: -40%;
        right: 8%;
    }

    .float--right--outside{
        visibility: visible;
    }

    .float--right--inside{
        visibility: hidden;
    }

    /* Security section */
    .section--white{
        padding: 150px 0 50px 0;
    }

    .security{
        grid-template-columns: 1fr;
        gap: 100px;
    }

    .security__media{
        order: -1; /* media first on mobile like screenshot */
        min-height: auto;
    }

    .security__text .section__title,
    .security__text .section__desc{
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .section--sky{
        padding: 60px 0;
    }

    /* Video section */
    .video{
        padding: 0 5%;
        gap: 18px;
        grid-template-columns: 1fr;
    }

    .video__media{
        padding: 0 5% 60px 5%;
        justify-content: center;
        order: -1; /* phone first */
    }

    .video__text .section__title,
    .video__text .section__desc{
        text-align: center;
    }

    .badge{
        left: 23%;
        bottom: 9%;
        width: 46%;
        transform-origin: center bottom;
    }

    .footer__inner{
        flex-direction: row;
    }

    .footer__right{
        width: min(20%, 100px);
    }

    .footer__square{
        width: 100%;
        height: 100%;
    }
}

/* ===== Terms page (match style in screenshots) ===== */

.terms__wrap{
    padding: 20px min(20%, 300px) 60px min(20%, 300px);
    margin: 0;
}

.terms__title{
    color: var(--title);
    font-size: clamp(28px, 4.5vw, 56px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
}

.terms__pageTitle{
    color: var(--accent);
}

.terms__content{
    color: var(--text);
    font-size: clamp(12px, 1.5vw, 18px);
    line-height: 1.9;
    padding-top: 30px;
}

.terms__content_text{
    font-weight: 500;
    margin: 0;
}

.terms__content_title{
    font-weight: 700;
    padding-top: 20px;
    margin: 0;
}

.terms__content_list{
    font-weight: 500;
    margin: 0;
}

.terms__ul li::marker{
    font-size: clamp(8px, 1vw, 12px);
}

.terms__email{
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.terms__ctaInner{
    padding: 50px 10%;
    text-align: center;
}

.terms__ctaText{
    font-size: clamp(10px, 1.2vw, 16px);
    line-height: 1.7;
    margin: 0 0 10px;
    opacity: 0.95;
}

.terms__ctaEmail{
    font-weight: 600;
    font-size: clamp(15px, 1.8vw, 20px);
    display: inline-block;
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 950px){
    .terms__wrap{
        padding-left: 10%;
        padding-right: 10%;
    }

    .terms__ctaInner{
        padding: 35px 5%;
    }

    .terms__ul{
        padding-inline-start: 30px;
    }
}

@media (max-width: 520px){
    .terms__wrap{
        padding-left: 5%;
        padding-right: 5%;
    }

    .terms__ctaInner{
        padding: 15px 5%;
    }

    .terms__ctaText{
        font-size: clamp(12px, 1.5vw, 18px);
    }

    .terms__ctaEmail{
        font-size: clamp(14px, 1.6vw, 20px);
    }

    .terms__ul{
        padding-inline-start: 20px;
    }
}