*{box-sizing:border-box;}

body{
    margin:0;
    font-family:'Segoe UI',Arial,sans-serif;
    background:#06162f;
    color:#e8f0ff;
    min-height:100vh;
}

a{color:inherit;text-decoration:none;}

/* ---------- NAV ---------- */
.site-nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:22px 40px;
    position:sticky;
    top:0;
    z-index:100;
    background:rgba(6,22,47,.85);
    backdrop-filter:blur(10px);
    border-bottom:1px solid rgba(255,255,255,.08);
    flex-wrap:wrap;
    gap:14px;
}

.site-nav .brand{
    font-size:1.3rem;
    font-weight:bold;
    letter-spacing:1px;
}

.site-nav .links{
    display:flex;
    gap:28px;
    font-size:.95rem;
}

.site-nav .links a{
    opacity:.85;
    transition:.2s;
}

.site-nav .links a:hover{
    opacity:1;
    color:#4fd1ff;
}

/* ---------- HERO ---------- */
.hub-hero{
    min-height:60vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:60px 20px;
    background:
        linear-gradient(rgba(6,22,47,.55), rgba(6,22,47,.85)),
        url('../images/xavier-hero.jpg');
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}

.hub-hero h1{
    font-size:3.2rem;
    margin:0 0 10px;
    letter-spacing:1px;
}

.hub-hero h1 span{
    color:#4fd1ff;
    text-shadow:0 0 20px rgba(79,209,255,.5);
}

.hub-hero p{
    font-size:1.15rem;
    color:#a9c0e6;
    max-width:600px;
    margin:0 auto;
}

/* ---------- WORLD CARDS ---------- */
.worlds{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:30px;
    padding:20px 40px 80px;
    max-width:1100px;
    margin:0 auto;
}

.world-card{
    position:relative;
    border-radius:22px;
    overflow:hidden;
    min-height:380px;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    padding:35px;
    border:1px solid rgba(255,255,255,.12);
    background-size:cover;
    background-position:center;
    transition:.3s;
}

.world-card:hover{
    transform:translateY(-10px);
    border-color:rgba(255,255,255,.3);
}

.world-card::before{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(180deg, rgba(6,22,47,.15) 0%, rgba(6,22,47,.95) 90%);
}

.world-card .content{
    position:relative;
    z-index:2;
}

.world-card .tag{
    display:inline-block;
    background:rgba(255,255,255,.15);
    backdrop-filter:blur(6px);
    border:1px solid rgba(255,255,255,.25);
    padding:6px 14px;
    border-radius:20px;
    font-size:.75rem;
    letter-spacing:1px;
    text-transform:uppercase;
    margin-bottom:14px;
}

.world-card.space .tag{color:#4fd1ff;}
.world-card.speedway .tag{color:#ff8c3a;}
.world-card.life .tag{color:#ffd76a;}

.world-card h2{
    font-size:2rem;
    margin:0 0 10px;
}

.world-card p{
    color:#c7d5f0;
    margin:0 0 18px;
    line-height:1.5;
}

.world-card .go-btn{
    display:inline-block;
    padding:12px 24px;
    border-radius:10px;
    font-weight:bold;
    font-size:.9rem;
}

.world-card.space .go-btn{background:#4fd1ff;color:#06162f;}
.world-card.speedway .go-btn{background:#ff6b00;color:#fff;}
.world-card.life .go-btn{background:#ffd76a;color:#06162f;}

/* ---------- GENERIC PAGE (About / Contact) ---------- */
.page-wrap{
    max-width:800px;
    margin:0 auto;
    padding:60px 24px 100px;
}

.page-wrap h1{
    font-size:2.4rem;
    margin-bottom:10px;
}

.page-wrap .lead{
    color:#a9c0e6;
    margin-bottom:40px;
}

.glass-card{
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.12);
    backdrop-filter:blur(10px);
    border-radius:18px;
    padding:35px;
    line-height:1.7;
}

.placeholder-img{
    width:100%;
    border-radius:16px;
    border:2px dashed rgba(255,255,255,.3);
    background:rgba(255,255,255,.04);
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    color:#a9c0e6;
    font-size:.9rem;
    padding:20px;
    min-height:220px;
    margin-bottom:30px;
}

/* ---------- CONTACT FORM ---------- */
form.contact-form label{
    display:block;
    margin:16px 0 6px;
    font-size:.85rem;
    color:#a9c0e6;
    text-transform:uppercase;
    letter-spacing:.5px;
}

form.contact-form input,
form.contact-form textarea{
    width:100%;
    padding:12px 14px;
    border-radius:8px;
    border:1px solid rgba(255,255,255,.2);
    background:rgba(0,0,0,.25);
    color:#fff;
    font-size:1rem;
    font-family:inherit;
}

form.contact-form textarea{min-height:150px;resize:vertical;}

form.contact-form button{
    margin-top:22px;
    padding:13px 30px;
    border:none;
    border-radius:10px;
    background:#4fd1ff;
    color:#06162f;
    font-weight:bold;
    font-size:1rem;
    cursor:pointer;
}

form.contact-form button:hover{background:#7ee0ff;}

.msg-ok{
    background:rgba(0,255,102,.12);
    border:1px solid #00cc44;
    color:#8dffb0;
    padding:14px 18px;
    border-radius:10px;
    margin-bottom:25px;
}

.msg-error{
    background:rgba(255,60,60,.12);
    border:1px solid #ff3333;
    color:#ffb3b3;
    padding:14px 18px;
    border-radius:10px;
    margin-bottom:25px;
}

/* ---------- FOOTER ---------- */
.site-footer{
    text-align:center;
    padding:30px;
    color:#6d84ab;
    font-size:.8rem;
    border-top:1px solid rgba(255,255,255,.08);
}

@media(max-width:600px){
    .hub-hero h1{font-size:2.2rem;}
    .site-nav{padding:16px 20px;}
    .site-nav .links{gap:16px;font-size:.85rem;}
}