*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:Arial,sans-serif;
    background:
        radial-gradient(circle at 80% 18%, #fff1dc 0, transparent 32%),
        radial-gradient(circle at 12% 70%, #f3ecff 0, transparent 35%),
        linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
    color:#07152d;
    overflow-x:hidden;
}

.home-page{
    max-width:1180px;
    margin:0 auto;
    padding:24px 18px 28px;
}

/* HEADER */

.home-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
    margin-bottom:28px;
}

.brand{
    display:flex;
    align-items:center;
    gap:12px;
}

.brand img{
    width:70px;
    height:auto;
    object-fit:contain;
}

.brand strong{
    display:block;
    font-size:32px;
    line-height:.95;
    font-weight:900;
}

.brand span{
    display:block;
    font-size:22px;
    color:#ff7300;
    font-weight:900;
}

.portal-pill{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:12px 18px;
    box-shadow:0 10px 30px rgba(15,23,42,.08);
    font-size:14px;
    font-weight:700;
    display:flex;
    align-items:center;
    gap:8px;
}

.login-open-btn{
    border:0;
    background:linear-gradient(135deg,#ff7300,#ff9800);
    color:#fff;
    padding:13px 18px;
    border-radius:16px;
    font-weight:900;
    cursor:pointer;
    box-shadow:0 12px 28px rgba(255,115,0,.22);
}

/* HERO */

.hero{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:26px;
    align-items:center;
}

.hello{
    font-size:48px;
    font-weight:900;
    margin-bottom:6px;
}

.hello span{
    display:inline-block;
    animation:wave 1.4s infinite;
    transform-origin:70% 70%;
}

@keyframes wave{
    0%,100%{transform:rotate(0)}
    25%{transform:rotate(18deg)}
    50%{transform:rotate(-8deg)}
    75%{transform:rotate(14deg)}
}

.hero h1{
    margin:0;
    font-size:64px;
    line-height:1;
    background:linear-gradient(90deg,#ff7300,#7c3aed);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.welcome{
    font-size:25px;
    margin:20px 0;
}

.line{
    width:72px;
    height:4px;
    background:#ff7300;
    border-radius:20px;
    margin-bottom:22px;
}

.intro{
    max-width:520px;
    font-size:21px;
    line-height:1.55;
    color:#334155;
}

/* ASSISTANT */

.assistant-wrap{
    position:relative;
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:430px;
}

.glow{
    position:absolute;
    width:360px;
    height:360px;
    border-radius:50%;
    background:linear-gradient(135deg,#fff0df,#ffe7cf);
    opacity:.9;
}

.assistant-image-wrap{
    position:relative;
    z-index:2;
}

.assistant-image{
    width:100%;
    max-width:360px;
    object-fit:contain;
    animation:float 3.5s ease-in-out infinite;
    filter:drop-shadow(0 25px 55px rgba(15,23,42,.15));
}

@keyframes float{
    0%,100%{transform:translateY(0)}
    50%{transform:translateY(-12px)}
}

.speech{
    position:absolute;
    left:-20px;
    bottom:-12px;
    width:320px;
    background:rgba(255,255,255,.95);
    border-radius:22px;
    padding:16px 18px;
    box-shadow:0 16px 40px rgba(15,23,42,.14);
    border:1px solid #e5e7eb;
    display:flex;
    gap:14px;
    align-items:center;
}

.spark{
    width:52px;
    height:52px;
    border-radius:50%;
    background:linear-gradient(135deg,#8b5cf6,#6d28d9);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    flex-shrink:0;
}

.speech strong{
    display:block;
    font-size:17px;
    line-height:1.35;
    margin-bottom:4px;
}

.speech p{
    margin:0;
    color:#475569;
    font-size:14px;
}

/* TITLE */

.choice-title{
    text-align:center;
    margin:26px 0 20px;
}

.choice-title h2{
    margin:0 0 8px;
    font-size:30px;
}

.dots{
    display:flex;
    justify-content:center;
    gap:8px;
}

.dots span{
    width:26px;
    height:5px;
    border-radius:20px;
    background:#ff7300;
}

.dots span:nth-child(2){
    width:10px;
}

.dots span:nth-child(3){
    background:#7c3aed;
}

/* CARDS */

.cards{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

.option-card{
    background:rgba(255,255,255,.95);
    border-radius:24px;
    padding:28px 24px;
    text-decoration:none;
    color:#07152d;
    border:1px solid #f3e4d2;
    box-shadow:0 16px 40px rgba(15,23,42,.08);
    transition:.25s;
}

.option-card:hover{
    transform:translateY(-6px);
}

.option-card.ai{
    border-color:#ddd6fe;
}

.icon{
    width:84px;
    height:84px;
    border-radius:50%;
    background:#fff0df;
    color:#ff7300;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 18px;
    font-size:38px;
}

.ai .icon{
    background:#efe7ff;
    color:#7c3aed;
}

.option-card h3{
    text-align:center;
    margin:0 0 10px;
    font-size:28px;
}

.option-card p{
    text-align:center;
    font-size:16px;
    line-height:1.55;
    color:#475569;
}

.btn{
    margin-top:18px;
    background:linear-gradient(135deg,#ff7300,#ff9800);
    color:#fff;
    padding:15px 18px;
    border-radius:14px;
    font-size:17px;
    font-weight:900;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:14px;
}

.ai .btn{
    background:linear-gradient(135deg,#6d28d9,#8b5cf6);
}

/* LOGIN NOTE */

.login-note{
    margin-top:22px;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:20px;
    padding:18px;
    display:flex;
    align-items:center;
    gap:14px;
    box-shadow:0 10px 28px rgba(15,23,42,.06);
}

.shield{
    width:52px;
    height:52px;
    border-radius:16px;
    background:#efe7ff;
    color:#7c3aed;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    flex-shrink:0;
}

.login-note strong{
    display:block;
    line-height:1.4;
}

.login-note p{
    margin:4px 0 0;
    color:#64748b;
    font-size:14px;
}

.login-note button{
    margin-left:auto;
    background:#fff;
    border:1px solid #ddd6fe;
    color:#6d28d9;
    border-radius:14px;
    padding:12px 18px;
    font-weight:800;
    cursor:pointer;
}

/* FEATURES */

.features{
    margin-top:22px;
    background:#061226;
    border-radius:20px;
    padding:20px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
    color:#fff;
}

.features div{
    text-align:center;
}

.features span{
    display:block;
    font-size:28px;
    margin-bottom:6px;
}

.features strong{
    display:block;
    margin-bottom:4px;
}

.features small{
    color:#cbd5e1;
}

footer{
    text-align:center;
    padding-top:18px;
    color:#64748b;
    font-size:13px;
}

/* LOGIN PANEL */

.login-overlay{
    position:fixed;
    inset:0;
    background:rgba(2,8,23,.32);
    backdrop-filter:blur(4px);
    opacity:0;
    pointer-events:none;
    transition:.25s ease;
    z-index:9998;
}

.login-overlay.show{
    opacity:1;
    pointer-events:auto;
}

.login-panel{
    position:fixed;
    top:90px;
    right:24px;
    width:360px;
    max-width:calc(100% - 32px);
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:26px;
    box-shadow:0 30px 80px rgba(15,23,42,.22);
    padding:24px;
    z-index:9999;
    opacity:0;
    pointer-events:none;
    transform:translateX(30px) scale(.96);
    transition:.28s cubic-bezier(.2,.8,.2,1);
}

.login-panel.show{
    opacity:1;
    pointer-events:auto;
    transform:translateX(0) scale(1);
}

.login-close{
    position:absolute;
    top:14px;
    right:14px;
    width:34px;
    height:34px;
    border:0;
    border-radius:50%;
    background:#f1f5f9;
    color:#0f172a;
    font-size:22px;
    cursor:pointer;
}

.login-panel-icon{
    width:58px;
    height:58px;
    border-radius:18px;
    background:#fff0df;
    color:#ff7300;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    margin-bottom:14px;
}

.login-panel h3{
    margin:0 0 8px;
    font-size:25px;
}

.login-panel p{
    margin:0 0 18px;
    color:#64748b;
    line-height:1.45;
}

.login-form{
    display:grid;
    gap:10px;
}

.login-form label{
    font-weight:800;
    font-size:13px;
    color:#334155;
}

.login-form input{
    width:100%;
    border:1px solid #dbe3ee;
    background:#f8fafc;
    border-radius:14px;
    padding:14px;
    font-size:15px;
    outline:none;
}

.login-form button{
    margin-top:8px;
    border:0;
    background:linear-gradient(135deg,#ff7300,#ff9800);
    color:#fff;
    padding:15px;
    border-radius:14px;
    font-weight:900;
    font-size:16px;
}

.login-small-note{
    margin-top:14px;
    background:#fff7ed;
    color:#9a3412;
    border:1px solid #fed7aa;
    padding:11px 12px;
    border-radius:14px;
    font-size:13px;
    font-weight:700;
}

/* TABLET */

@media(max-width:900px){
    .hero{
        grid-template-columns:1fr;
        text-align:center;
        gap:10px;
    }

    .line,
    .intro{
        margin-left:auto;
        margin-right:auto;
    }

    .speech{
        left:50%;
        transform:translateX(-50%);
    }
}

/* MOBILE COMPACT FIX */

@media(max-width:520px){

    body{
        background:#fff;
    }

    .home-page{
        padding:8px 10px 16px;
    }

    .home-header{
        display:grid;
        grid-template-columns:1fr auto;
        gap:8px;
        margin-bottom:8px;
        align-items:center;
    }

    .brand{
        gap:7px;
        min-width:0;
    }

    .brand img{
        width:38px;
    }

    .brand strong{
        font-size:22px;
        line-height:.95;
    }

    .brand span{
        font-size:17px;
    }

    .portal-pill{
        padding:8px 9px;
        border-radius:14px;
        font-size:10px;
        line-height:1.1;
        max-width:130px;
    }

    .login-open-btn{
        grid-column:1 / -1;
        padding:9px;
        font-size:13px;
        border-radius:12px;
    }

    .hero{
        display:block;
        text-align:center;
    }

    .hello{
        font-size:26px;
        margin:2px 0 0;
    }

    .hero h1{
        font-size:32px;
        line-height:1;
        margin:0 0 6px;
    }

    .welcome,
    .line{
        display:none;
    }

    .intro{
        font-size:13px;
        line-height:1.3;
        max-width:340px;
        margin:0 auto 0;
    }

    .assistant-wrap{
        min-height:205px;
        margin-top:-2px;
        padding-bottom:22px;
    }

    .glow{
        width:185px;
        height:185px;
    }

    .assistant-image{
        max-width:145px;
    }

    .speech{
        width:76%;
        max-width:225px;
        bottom:0;
        padding:8px 10px;
        border-radius:15px;
        gap:8px;
    }

    .spark{
        width:30px;
        height:30px;
        font-size:14px;
    }

    .speech strong{
        font-size:12px;
        line-height:1.15;
    }

    .speech p{
        font-size:10.5px;
        line-height:1.15;
    }

    .choice-title{
        margin:0 0 8px;
    }

    .choice-title h2{
        font-size:23px;
        line-height:1.05;
    }

    .dots span{
        height:4px;
    }

    .cards{
        grid-template-columns:1fr 1fr;
        gap:10px;
    }

    .option-card{
        padding:12px 9px;
        border-radius:18px;
    }

    .icon{
        width:50px;
        height:50px;
        font-size:23px;
        margin-bottom:8px;
    }

    .option-card h3{
        font-size:16px;
        margin-bottom:4px;
    }

    .option-card p{
        display:none;
    }

    .btn{
        margin-top:8px;
        padding:9px;
        font-size:12px;
        border-radius:10px;
    }

    .login-note{
        margin-top:12px;
        padding:12px;
        gap:10px;
    }

    .shield{
        width:38px;
        height:38px;
        font-size:17px;
    }

    .login-note strong{
        font-size:12px;
    }

    .login-note p{
        font-size:11px;
    }

    .login-note button{
        display:none;
    }

    .features{
        margin-top:12px;
        grid-template-columns:repeat(3,1fr);
        gap:8px;
        padding:12px;
    }

    .features span{
        font-size:19px;
    }

    .features strong{
        font-size:10px;
    }

    .features small{
        display:none;
    }

    footer{
        font-size:10px;
        padding-top:12px;
    }

    .login-panel{
        top:auto;
        right:10px;
        left:10px;
        bottom:12px;
        width:auto;
        border-radius:24px;
        padding:20px;
        transform:translateY(30px) scale(.96);
    }

    .login-panel.show{
        transform:translateY(0) scale(1);
    }
}

@media(max-width:520px){

    .speech{
        width:96%;
        max-width:330px;
        min-height:92px;
        display:grid;
        grid-template-columns:42px 1fr;
        align-items:center;
        text-align:left;
        gap:12px;
        padding:14px 16px;
        bottom:-6px;
    }

    .speech strong{
        font-size:14px;
        line-height:1.15;
        max-width:210px;
    }

    .speech p{
        font-size:12px;
        line-height:1.15;
        margin-top:3px;
    }

    .spark{
        width:42px;
        height:42px;
        font-size:18px;
    }
}