/* ===========================
   Princehacky Cube Trainer
   =========================== */

:root{
    --bg:#0f172a;
    --surface:#1e293b;
    --surface2:#334155;
    --text:#f8fafc;
    --primary:#3b82f6;
    --secondary:#22c55e;
    --border:#475569;
    --shadow:0 10px 30px rgba(0,0,0,.35);
    --radius:16px;
    --transition:.25s ease;
}

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

html{
    scroll-behavior:smooth;
}

body{
    background:var(--bg);
    color:var(--text);
    font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
    line-height:1.6;
}

/* ===== Header ===== */

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 8%;
    background:var(--surface);
    border-bottom:1px solid var(--border);
    position:sticky;
    top:0;
    z-index:100;
}

.logo a{
    color:var(--primary);
    text-decoration:none;
    font-size:1.3rem;
    font-weight:700;
}

nav{
    display:flex;
    gap:20px;
}

nav a{
    text-decoration:none;
    color:var(--text);
    transition:var(--transition);
}

nav a:hover{
    color:var(--secondary);
}

/* ===== Main ===== */

main{
    width:min(1100px,92%);
    margin:auto;
}

/* ===== Hero ===== */

.hero{
    text-align:center;
    padding:50px 20px 35px;
}

.hero h1{
    font-size:2.6rem;
    color:var(--primary);
    margin-bottom:10px;
}

.hero p{
    max-width:650px;
    margin:auto;
    color:#cbd5e1;
}

/* ===== Cube ===== */

.trainer{
    display:flex;
    justify-content:center;
    margin:40px 0;
}

.cube-face{
    display:grid;
    grid-template-columns:repeat(3,100px);
    grid-template-rows:repeat(3,100px);
    gap:10px;
}

.cell{
    background:#666;
    border:3px solid #ffffff20;
    border-radius:12px;
    transition:background .3s,transform .2s;
    box-shadow:var(--shadow);
}

.cell:hover{
    transform:scale(1.06);
}

.center{
    outline:4px solid var(--secondary);
}

/* ===== Buttons ===== */

.controls{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:16px;
    margin-bottom:40px;
}

.controls button{
    background:var(--primary);
    color:white;
    border:none;
    border-radius:12px;
    padding:14px 24px;
    cursor:pointer;
    font-size:1rem;
    transition:var(--transition);
    box-shadow:var(--shadow);
}

.controls button:hover{
    background:var(--secondary);
    transform:translateY(-2px);
}

/* ===== Stats ===== */

.stats{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    margin-bottom:40px;
}

.card{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:var(--radius);
    text-align:center;
    padding:25px;
    box-shadow:var(--shadow);
}

.card h3{
    margin-bottom:12px;
    color:var(--secondary);
}

.card p{
    font-size:2rem;
    font-weight:bold;
}

/* ===== Info ===== */

.info{
    background:var(--surface);
    padding:30px;
    border-radius:var(--radius);
    border:1px solid var(--border);
    margin-bottom:50px;
}

.info h2{
    color:var(--primary);
    margin-bottom:18px;
}

.info ol{
    padding-left:22px;
}

.info li{
    margin-bottom:10px;
}

/* ===== Footer ===== */

footer{
    margin-top:40px;
    text-align:center;
    padding:25px;
    background:var(--surface);
    border-top:1px solid var(--border);
    color:#cbd5e1;
}

/* ===== Mobile ===== */

@media (max-width:700px){

.topbar{
    flex-direction:column;
    gap:12px;
}

nav{
    flex-wrap:wrap;
    justify-content:center;
}

.hero h1{
    font-size:2rem;
}

.cube-face{
    grid-template-columns:repeat(3,80px);
    grid-template-rows:repeat(3,80px);
}

.controls button{
    width:100%;
}

}
