/* ==========================================
   AI Discovery Lab
   Day 26 - 30 Days 30 AI Websites Challenge
========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{

    --bg:#07111f;
    --card:rgba(255,255,255,.08);
    --border:rgba(255,255,255,.12);

    --text:#ffffff;
    --text2:#b7c6dc;

    --primary:#4cc9f0;
    --secondary:#7b61ff;
    --success:#22c55e;
    --warning:#ffb703;

    --shadow:0 15px 40px rgba(0,0,0,.35);

}

body.light{

    --bg:#eef4ff;
    --card:rgba(255,255,255,.82);
    --border:rgba(0,0,0,.08);

    --text:#1b1f30;
    --text2:#58657c;

    --shadow:0 10px 30px rgba(0,0,0,.12);

}

html{
    scroll-behavior:smooth;
}

body{

    background:var(--bg);
    color:var(--text);

    font-family:'Poppins',sans-serif;

    overflow-x:hidden;
    min-height:100vh;

    transition:.35s;

}

/* ---------------------------- */

.bg-grid{

    position:fixed;
    inset:0;

    background-image:

        linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),
        linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);

    background-size:40px 40px;

    opacity:.3;

    pointer-events:none;

    z-index:-3;

}

/* ---------------------------- */

.gradient{

    position:fixed;

    width:550px;
    height:550px;

    border-radius:50%;
    filter:blur(110px);

    opacity:.35;

    z-index:-2;

}

.one{

    background:#4cc9f0;
    top:-180px;
    left:-120px;

}

.two{

    background:#7b61ff;
    right:-150px;
    bottom:-180px;

}

/* ---------------------------- */

header{

    width:min(1180px,92%);
    margin:auto;

    padding:28px 0;

    display:flex;
    justify-content:space-between;
    align-items:center;

}

.logo{

    display:flex;
    align-items:center;
    gap:12px;

    font-size:1.45rem;
    font-weight:700;

}

.logo i{

    color:var(--primary);

}

#themeBtn{

    width:50px;
    height:50px;

    border:none;
    outline:none;

    border-radius:50%;

    background:var(--card);

    color:var(--text);

    cursor:pointer;

    border:1px solid var(--border);

    transition:.3s;

}

#themeBtn:hover{

    transform:rotate(20deg) scale(1.08);

}

/* ---------------------------- */

.hero{

    width:min(1180px,92%);
    margin:30px auto 60px;

    text-align:center;

}

.badge{

    display:inline-block;

    background:rgba(76,201,240,.15);

    color:#7fdfff;

    border:1px solid rgba(76,201,240,.25);

    padding:10px 22px;

    border-radius:30px;

    margin-bottom:25px;

    font-size:.9rem;

}

.hero h1{

    font-size:3.5rem;

    margin-bottom:20px;

    line-height:1.1;

}

.hero p{

    max-width:850px;

    margin:auto;

    color:var(--text2);

    line-height:1.9;

    font-size:1.05rem;

}

#discoverBtn{

    margin-top:35px;

    border:none;
    cursor:pointer;

    padding:17px 38px;

    border-radius:50px;

    background:linear-gradient(135deg,var(--primary),var(--secondary));

    color:#fff;

    font-size:1rem;
    font-weight:600;

    transition:.35s;

}

#discoverBtn:hover{

    transform:translateY(-4px);

    box-shadow:0 18px 35px rgba(76,201,240,.25);

}

/* ---------------------------- */

.dashboard{

    width:min(1180px,92%);
    margin:auto;

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:28px;

}

.glass{

    background:var(--card);

    border:1px solid var(--border);

    backdrop-filter:blur(20px);

    border-radius:22px;

    box-shadow:var(--shadow);

}

/* ---------------------------- */

.panel{

    padding:28px;

}

.panel h2{

    display:flex;
    align-items:center;
    gap:10px;

    margin-bottom:22px;

}

.field-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:15px;

}

.field{

    border:none;

    cursor:pointer;

    background:rgba(255,255,255,.06);

    color:var(--text);

    border-radius:14px;

    padding:18px;

    transition:.3s;

    border:1px solid transparent;

}

.field:hover{

    transform:translateY(-4px);

    border-color:var(--primary);

}

.field.active{

    background:linear-gradient(135deg,var(--primary),var(--secondary));

    color:#fff;

}

/* ---------------------------- */

.console{

    background:#091624;

    border-radius:16px;

    overflow:hidden;

}

body.light .console{

    background:#dde8fa;

}

.console-header{

    background:rgba(255,255,255,.06);

    padding:14px 18px;

    display:flex;
    align-items:center;
    gap:10px;

    font-weight:600;

}

.live{

    width:11px;
    height:11px;

    background:#22c55e;

    border-radius:50%;

    animation:pulse 1.2s infinite;

}

.console-body{

    padding:22px;

    height:250px;

    overflow-y:auto;

    font-family:Consolas,monospace;

    line-height:1.8;

    color:#9ce3ff;

}

.console-body::-webkit-scrollbar{

    width:6px;

}

.console-body::-webkit-scrollbar-thumb{

    background:var(--primary);

}

/* ---------------------------- */

.result-section{

    width:min(1180px,92%);
    margin:40px auto;

}

.result-card{

    padding:28px;

}

.top{

    display:flex;
    justify-content:space-between;
    align-items:center;

}

#status{

    padding:8px 16px;

    border-radius:30px;

    background:rgba(34,197,94,.18);

    color:#67ff92;

    font-size:.85rem;

    font-weight:600;

}

.title{

    margin-top:25px;

    font-size:2rem;

    font-weight:700;

}

.description{

    margin-top:18px;

    color:var(--text2);

    line-height:1.9;

}

/* ---------------------------- */

.stats{

    width:min(1180px,92%);
    margin:20px auto 45px;

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:22px;

}

.stat{

    text-align:center;

    padding:30px 20px;

}

.stat h3{

    font-size:2.5rem;

    color:var(--primary);

}

.stat p{

    color:var(--text2);

    margin-top:8px;

}

/* ---------------------------- */

.timeline{

    width:min(1180px,92%);
    margin:25px auto 70px;

    padding:30px;

}

.timeline h2{

    margin-bottom:25px;

}

.timeline-item{

    position:relative;

    margin-bottom:16px;

    padding-left:28px;

    color:var(--text2);

}

.timeline-item::before{

    content:"";

    position:absolute;

    left:0;
    top:9px;

    width:10px;
    height:10px;

    border-radius:50%;

    background:var(--primary);

}

/* ---------------------------- */

footer{

    text-align:center;

    padding:35px 20px 50px;

    color:var(--text2);

}

footer h3{

    color:var(--text);

    margin-bottom:12px;

}

footer p{

    margin:8px 0;

}

/* ---------------------------- */

@keyframes pulse{

    0%{

        transform:scale(.8);
        opacity:.6;

    }

    50%{

        transform:scale(1.3);
        opacity:1;

    }

    100%{

        transform:scale(.8);
        opacity:.6;

    }

}

/* ---------------------------- */

@media(max-width:980px){

    .dashboard{

        grid-template-columns:1fr;

    }

    .stats{

        grid-template-columns:repeat(2,1fr);

    }

}

@media(max-width:700px){

    .hero h1{

        font-size:2.4rem;

    }

    .field-grid{

        grid-template-columns:1fr;

    }

    .stats{

        grid-template-columns:1fr;

    }

    .top{

        flex-direction:column;
        gap:18px;
        align-items:flex-start;

    }

}