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

body{
    font-family:
        Inter,
        Arial,
        sans-serif;

    background:
        linear-gradient(
            180deg,
            #eef3ff 0%,
            #f8faff 100%
        );

    min-height:100vh;

    color:#1d1d1f;
}

.page{
    width:100%;
    max-width:1400px;
    margin:auto;
    padding:40px 30px 80px;
}

/* HEADER */

header{
    text-align:center;
    margin-bottom:60px;
}

.logo{
    font-size:54px;
    font-weight:900;
    letter-spacing:-2px;
    color:#2357ff;
}

.subtitle{
    margin-top:14px;
    color:#6b7280;
    font-size:22px;
}

/* HERO */

.hero h1{
    text-align:center;

    font-size:72px;
    line-height:1.05;

    font-weight:900;

    letter-spacing:-3px;

    margin-bottom:70px;

    color:#111827;
}

/* CARDS */

.cards{
    display:flex;
    justify-content:center;
    gap:30px;
    flex-wrap:wrap;
}

.card{

    width:360px;

    background:white;

    border-radius:36px;

    padding:40px 35px;

    box-shadow:
        0 20px 60px rgba(0,0,0,0.08);

    transition:0.25s ease;

    position:relative;

    overflow:hidden;
}

.card:hover{
    transform:
        translateY(-8px)
        scale(1.02);
}

.card::before{
    content:'';

    position:absolute;

    top:0;
    left:0;

    width:100%;
    height:10px;
}

.green::before{
    background:#69db7c;
}

.blue::before{
    background:#4c6fff;
}

.purple::before{
    background:#b66dff;
}

/* NUMBER */

.number{

    width:64px;
    height:64px;

    border-radius:50%;

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

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

    color:white;

    margin-bottom:28px;
}

.green .number{
    background:#69db7c;
}

.blue .number{
    background:#4c6fff;
}

.purple .number{
    background:#b66dff;
}

/* CARD CONTENT */

.card h2{

    font-size:34px;

    line-height:1.1;

    margin-bottom:18px;

    font-weight:900;

    letter-spacing:-1px;
}

.card p{

    color:#6b7280;

    font-size:18px;

    line-height:1.5;

    min-height:70px;
}

/* BUTTON */

.card button{

    margin-top:28px;

    width:100%;

    border:none;

    padding:18px;

    border-radius:18px;

    background:#2563ff;

    color:white;

    font-size:17px;

    font-weight:800;

    cursor:pointer;

    transition:0.2s;
}

.card button:hover{

    background:#1748c7;

    transform:scale(1.02);
}

/* RESULT BOX */

#result{

    margin:60px auto;

    max-width:1000px;

    min-height:120px;

    background:white;

    border-radius:30px;

    padding:35px;

    box-shadow:
        0 15px 40px rgba(0,0,0,0.06);

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

    text-align:center;

    font-size:32px;

    font-weight:700;

    color:#111827;
}

/* CHAT */

.chat-wrapper{

    margin:70px auto 0;

    max-width:1000px;

    background:white;

    border-radius:32px;

    padding:35px;

    box-shadow:
        0 15px 40px rgba(0,0,0,0.06);
}

.chat-header{

    font-size:34px;

    font-weight:900;

    margin-bottom:25px;

    letter-spacing:-1px;
}

#chatlog{

    height:420px;

    overflow-y:auto;

    background:#f5f7ff;

    border-radius:22px;

    padding:25px;

    margin-bottom:22px;
}

/* CHAT BUBBLES */

.message{

    max-width:78%;

    padding:16px 20px;

    border-radius:22px;

    margin-bottom:18px;

    line-height:1.5;

    font-size:17px;
}

.user{

    background:#2563ff;

    color:white;

    margin-left:auto;

    border-bottom-right-radius:6px;
}

.bot{

    background:white;

    border:1px solid #e5e7eb;

    border-bottom-left-radius:6px;
}

/* INPUT */

.chat-input{

    display:flex;

    gap:14px;
}

.chat-input input{

    flex:1;

    border:none;

    background:#f3f4f6;

    padding:18px 22px;

    border-radius:18px;

    font-size:17px;

    outline:none;
}

.chat-input button{

    border:none;

    background:#2563ff;

    color:white;

    padding:18px 26px;

    border-radius:18px;

    font-size:16px;

    font-weight:800;

    cursor:pointer;
}

/* FOOTER */

footer{

    text-align:center;

    margin-top:60px;

    color:#6b7280;

    font-size:15px;
}

/* MOBILE */

@media(max-width:900px){

    .hero h1{

        font-size:48px;
    }

    .card{

        width:100%;
    }

    .chat-input{

        flex-direction:column;
    }

    .chat-input button{

        width:100%;
    }

}

@media(max-width:600px){

    .hero h1{

        font-size:36px;
    }

    .logo{

        font-size:42px;
    }

    .card{

        padding:30px;
    }

    #result{

        font-size:24px;
    }

}