.hero{
    text-align: center;
    padding: 80px 20px 0;
}
.hero img{
    height: 100px;
    filter: drop-shadow(0px 4px 12px var(--dot5));
    margin-bottom: 20px;
}
.hero h1{
    font-size: 3rem;
    margin: 0 0 16px;
    text-shadow: 5px 5px 0px rgba(0,0,0,.4);
}
.hero p{
    font-size: 1rem;
    color: var(--foregroundHover);
    text-shadow: 2px 2px var(--dot3);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.8;
}

.aboutText{
    font-size: .85rem;
    line-height: 2;
    color: var(--foreground);
    text-shadow: 2px 2px var(--dot3);
    max-width: 680px;
}
.aboutText p{
    margin: 0 0 16px;
}

/* ── Stats bar ─────────────────────────────────────────────────────────────── */
#stats-bar{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 0;
    margin-top: 40px;
    opacity: 0;
    transition: opacity .5s ease;
}
#stats-bar.loaded{
    opacity: 1;
}
.stat-item{
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 0 24px;
    text-decoration: none;
    transition: opacity .15s;
}
a.stat-item:hover{ opacity: .75; }
.stat-num{
    font-size: 1.4rem;
    color: var(--main);
    text-shadow: 2px 2px var(--dot5);
}
.stat-label{
    font-size: 0.45rem;
    color: var(--foregroundHover);
    text-shadow: 1px 1px var(--dot3);
}
.stat-div{
    width: 1px;
    height: 18px;
    background: var(--foreground);
    opacity: .2;
    align-self: center;
    flex-shrink: 0;
}

/* ── Changelog popup ───────────────────────────────────────────────────────── */
#changelog-section{
    position: fixed;
    bottom: 0;
    right: 20px;
    width: 260px;
    z-index: 100;
}
#changelog-toggle{
    display: block;
    width: 100%;
    background: rgba(0,0,0,.92);
    color: var(--main);
    border: none;
    border-top: 2px solid var(--main);
    padding: 10px 16px;
    font-family: inherit;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-align: left;
    cursor: pointer;
    box-shadow: -4px 0 16px var(--dot5), 4px 0 16px var(--dot5);
    transition: background .15s;
}
#changelog-toggle:hover{ background: rgba(20,0,0,.95); }
#changelog-toggle .arrow{
    display: inline-block;
    margin-right: 6px;
    transition: transform .3s ease;
}
#changelog-section.open #changelog-toggle .arrow{ transform: rotate(180deg); }
#changelog-list{
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    background: rgba(0,0,0,.92);
    border-left: 3px solid var(--main);
    border-right: 3px solid var(--main);
    box-shadow: -6px 0 24px var(--dot5);
    padding: 0 16px;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}
#changelog-section.open #changelog-list{
    max-height: 380px;
    overflow-y: auto;
    padding: 14px 16px;
}
.commit-entry{
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    color: var(--foreground);
    text-decoration: none;
    transition: .15s color, .15s padding-left;
}
.commit-entry:first-child{
    border-top: none;
}
.commit-entry:hover{
    padding-left: 6px;
    color: var(--foregroundHover);
}
.commit-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}
.commit-repo{
    font-size: 0.45rem;
    background: var(--accent);
    padding: 2px 6px;
    box-shadow: 2px 2px var(--dot3);
    white-space: nowrap;
}
.commit-msg{
    font-size: 0.55rem;
    line-height: 1.5;
    text-shadow: 1px 1px var(--dot3);
}
.commit-time{
    font-size: 0.4rem;
    color: var(--foregroundHover);
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 500px){
    .hero h1{ font-size: 2rem; white-space: nowrap; }
    .hero img{ height: 64px; }
    .stat-item{ padding: 4px 12px; }
    .stat-num{ font-size: 1.1rem; }
    #changelog-section{ right: 0; width: 100%; }
}
