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

:root{
    --home-bg:#08111f;
    --home-bg-soft:#0d192c;
    --home-panel:rgba(16,29,50,0.86);
    --home-panel-solid:#101d32;
    --home-text:#f7f9ff;
    --home-muted:#aebbd0;
    --home-border:rgba(226,235,255,0.11);
    --home-primary:#2ea8ff;
    --home-primary-2:#73d7ff;
    --home-accent:#91e7c4;
    --home-warning:#f7c66d;
    --home-shadow:0 24px 70px rgba(0,0,0,0.32);
}

body.home-page[data-theme="day"]{
    --home-bg:#f5f7fb;
    --home-bg-soft:#e9eef7;
    --home-panel:rgba(255,255,255,0.82);
    --home-panel-solid:#ffffff;
    --home-text:#111827;
    --home-muted:#5d6a7f;
    --home-border:rgba(37,51,82,0.13);
    --home-primary:#086bdc;
    --home-primary-2:#2ea8ff;
    --home-accent:#0d9f72;
    --home-warning:#ad7117;
    --home-shadow:0 24px 70px rgba(34,48,74,0.16);
}

body.home-page{
    font-family:'Poppins',sans-serif;
    background:var(--home-bg);
    color:var(--home-text);
    overflow-x:hidden;
    transition:
    background 0.25s ease,
    color 0.25s ease;
}

.home-page .main-header{
    background:rgba(8,17,31,0.82);
    border-bottom:1px solid var(--home-border);
}

.home-page[data-theme="day"] .main-header{
    background:rgba(255,255,255,0.86);
}

.home-page[data-theme="day"] .nav-item,
.home-page[data-theme="day"] #userGreeting{
    color:#4d5b70;
}

.home-page[data-theme="day"] .logout-btn{
    background:#eef3fb;
    color:#172033;
}

.home-hero{
    min-height:78vh;
    display:flex;
    align-items:center;
    padding:
    104px 0 44px;
    background:
    linear-gradient(
        180deg,
        var(--home-bg),
        var(--home-bg-soft)
    );
    position:relative;
    overflow:hidden;
}

.home-hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:
    linear-gradient(
        90deg,
        rgba(46,168,255,0.10) 0 1px,
        transparent 1px 120px
    ),
    linear-gradient(
        180deg,
        rgba(46,168,255,0.08) 0 1px,
        transparent 1px 120px
    );
    opacity:0.34;
    pointer-events:none;
}

.home-page[data-theme="day"] .home-hero::before{
    opacity:0.5;
}

.home-shell{
    width:min(1160px,92%);
    margin:auto;
    display:grid;
    grid-template-columns:
    minmax(0,1.02fr) minmax(360px,0.78fr);
    gap:54px;
    align-items:center;
    position:relative;
    z-index:1;
}

.hero-copy{
    max-width:720px;
}

.hero-topline{
    display:flex;
    align-items:center;
    gap:14px;
    flex-wrap:wrap;
    margin-bottom:22px;
}

.hero-topline > span{
    display:inline-flex;
    padding:8px 14px;
    border-radius:999px;
    color:var(--home-primary);
    background:rgba(46,168,255,0.10);
    border:1px solid rgba(46,168,255,0.20);
    font-size:12px;
    font-weight:700;
}

.theme-toggle{
    display:inline-flex;
    align-items:center;
    gap:9px;
    height:38px;
    padding:0 13px;
    border-radius:999px;
    border:1px solid var(--home-border);
    background:var(--home-panel);
    color:var(--home-text);
    cursor:pointer;
    font-weight:700;
    font-size:12px;
}

.hero-copy h1{
    font-size:52px;
    line-height:1.06;
    letter-spacing:0;
    margin-bottom:22px;
}

.hero-copy p{
    max-width:650px;
    color:var(--home-muted);
    font-size:17px;
    line-height:1.85;
    margin-bottom:24px;
}

.hero-actions{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    margin-bottom:24px;
}

.home-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    min-height:48px;
    padding:0 20px;
    border-radius:13px;
    text-decoration:none;
    font-weight:700;
    transition:0.25s ease;
}

.primary-home-btn{
    color:white;
    background:
    linear-gradient(
        135deg,
        var(--home-primary),
        var(--home-primary-2)
    );
    box-shadow:
    0 16px 34px rgba(46,168,255,0.24);
}

.subtle-home-btn{
    color:var(--home-text);
    border:1px solid var(--home-border);
    background:var(--home-panel);
}

.home-btn:hover{
    transform:translateY(-3px);
}

.hero-metrics{
    display:grid;
    grid-template-columns:
    repeat(3,minmax(110px,1fr));
    gap:12px;
    max-width:540px;
}

.hero-metrics div{
    padding:16px;
    border-radius:16px;
    border:1px solid var(--home-border);
    background:var(--home-panel);
}

.hero-metrics strong{
    display:block;
    font-size:17px;
    margin-bottom:4px;
}

.hero-metrics span{
    color:var(--home-muted);
    font-size:13px;
}

.hero-visual{
    display:flex;
    justify-content:center;
}

.hero-exam-panel{
    width:100%;
    max-width:440px;
    display:flex;
    flex-direction:column;
    gap:14px;
    padding:18px;
    border-radius:24px;
    background:var(--home-panel-solid);
    border:1px solid var(--home-border);
    box-shadow:var(--home-shadow);
}

.hero-panel-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:4px 4px 10px;
}

.hero-panel-head span{
    color:var(--home-primary);
    font-size:12px;
    font-weight:800;
}

.hero-panel-head strong{
    color:var(--home-muted);
    font-size:13px;
}

.hero-exam-card{
    display:flex;
    align-items:center;
    gap:12px;
    padding:16px;
    border-radius:18px;
    border:1px solid var(--home-border);
    background:rgba(128,145,174,0.09);
    color:var(--home-text);
    text-decoration:none;
    transition:0.25s ease;
}

.hero-exam-card:hover{
    transform:translateY(-3px);
    border-color:rgba(46,168,255,0.34);
    background:rgba(46,168,255,0.08);
}

.hero-exam-card i{
    flex:0 0 auto;
    width:46px;
    height:46px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:14px;
    color:var(--home-primary);
    background:rgba(46,168,255,0.12);
    font-size:18px;
}

.hero-exam-card div{
    flex:1;
    min-width:0;
}

.hero-exam-card h2{
    font-size:18px;
    margin-bottom:4px;
}

.hero-exam-card p{
    margin:0;
    color:var(--home-muted);
    font-size:12px;
    line-height:1.55;
}

.hero-exam-card > span{
    color:var(--home-primary);
    font-size:12px;
    font-weight:800;
}

.hero-panel-line{
    margin:2px 4px 0;
    padding:14px 16px;
    border-radius:16px;
    border:1px dashed rgba(46,168,255,0.28);
    color:var(--home-muted);
    background:rgba(46,168,255,0.07);
    font-size:13px;
    line-height:1.6;
}

.home-section{
    padding:64px 0;
    background:var(--home-bg);
}

.popular-section{
    background:var(--home-bg);
}

.home-flow-section{
    background:var(--home-bg-soft);
}

.home-section-head{
    width:min(1160px,92%);
    margin:0 auto 28px;
}

.home-section-head span{
    display:inline-block;
    color:var(--home-primary);
    font-size:12px;
    font-weight:800;
    margin-bottom:10px;
}

.home-section-head h2{
    max-width:620px;
    font-size:34px;
    line-height:1.2;
    margin-bottom:10px;
}

.home-section-head p{
    max-width:620px;
    color:var(--home-muted);
    line-height:1.8;
}

.flow-grid{
    width:min(1160px,92%);
    margin:auto;
    display:grid;
    grid-template-columns:
    repeat(3,1fr);
    gap:18px;
}

.popular-grid{
    width:min(1160px,92%);
    margin:auto;
    display:grid;
    grid-template-columns:
    repeat(3,1fr);
    gap:18px;
}

.popular-card{
    min-height:210px;
    padding:24px;
    border-radius:20px;
    border:1px solid var(--home-border);
    background:var(--home-panel);
    color:var(--home-text);
    text-decoration:none;
    transition:0.25s ease;
}

.popular-card:hover{
    transform:translateY(-4px);
    box-shadow:var(--home-shadow);
    border-color:rgba(46,168,255,0.34);
}

.popular-card span{
    display:inline-block;
    color:var(--home-primary);
    font-size:12px;
    font-weight:800;
    margin-bottom:16px;
}

.popular-card h3{
    font-size:22px;
    line-height:1.3;
    margin-bottom:10px;
}

.popular-card p{
    color:var(--home-muted);
    line-height:1.75;
    margin-bottom:18px;
}

.popular-card b{
    color:var(--home-primary);
    font-size:13px;
}

.flow-step{
    min-height:240px;
    padding:24px;
    border-radius:20px;
    border:1px solid var(--home-border);
    background:var(--home-panel);
    color:var(--home-text);
    text-decoration:none;
    transition:0.25s ease;
}

.flow-step:hover{
    transform:translateY(-4px);
    box-shadow:var(--home-shadow);
    border-color:rgba(46,168,255,0.34);
}

.flow-step h3{
    font-size:22px;
    margin-bottom:10px;
}

.flow-step p{
    color:var(--home-muted);
    line-height:1.75;
    margin-bottom:18px;
}

.flow-step b{
    display:inline-block;
    color:var(--home-warning);
    margin-bottom:18px;
}

@media(max-width:980px){

    .home-shell{
        grid-template-columns:1fr;
    }

    .hero-copy h1{
        font-size:44px;
    }

    .flow-grid{
        grid-template-columns:1fr;
    }

    .popular-grid{
        grid-template-columns:1fr;
    }

    .flow-step{
        min-height:auto;
    }

}

@media(max-width:620px){

    .home-hero{
        padding:
        92px 0 34px;
    }

    .hero-copy h1{
        font-size:32px;
    }

    .hero-copy p{
        font-size:15px;
    }

    .hero-metrics{
        grid-template-columns:1fr;
    }

    .hero-actions{
        flex-direction:column;
    }

    .home-btn{
        width:100%;
    }

    .hero-exam-panel{
        max-width:none;
        padding:14px;
        gap:10px;
    }

    .hero-panel-head{
        padding-bottom:6px;
    }

    .hero-exam-card{
        align-items:flex-start;
        padding:14px;
    }

    .hero-exam-card > span{
        display:none;
    }

    .hero-panel-line{
        margin-top:4px;
        font-size:12px;
    }

}
