:root{
    --bg:#07111f;
    --bg2:#0b1b31;
    --panel:#0d2039cc;
    --line:#23d7ff;
    --text:#bff6ff;
    --bright:#ecfeff;
    --accent:#78ecff;
}

*{
    box-sizing:border-box;
}

html,body{
    margin:0;
    padding:0;
    background:
        radial-gradient(circle at top right, #103056 0%, transparent 28%),
        linear-gradient(180deg, var(--bg), #020814 70%);
    color:var(--text);
    font-family:Segoe UI, Arial, sans-serif;
    min-height:100%;
}

body{
    position:relative;
}

.scanlines{
    pointer-events:none;
    position:fixed;
    inset:0;
    background:repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.02) 0px,
        rgba(255,255,255,0.02) 1px,
        transparent 2px,
        transparent 4px
    );
    opacity:.25;
}

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:24px;
    padding:24px 32px;
    border-bottom:1px solid rgba(35,215,255,.4);
    background:rgba(4,12,24,.82);
    backdrop-filter:blur(6px);
}

.eyebrow{
    font-size:12px;
    letter-spacing:2px;
    color:var(--accent);
    text-transform:uppercase;
}

h1{
    margin:6px 0 4px 0;
    font-size:32px;
    color:var(--bright);
    text-shadow:0 0 12px rgba(120,236,255,.28);
}

h2,h3{
    color:var(--bright);
}

.subtext{
    color:#8fddeb;
    font-size:14px;
}

.nav{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.nav a{
    color:var(--accent);
    text-decoration:none;
    border:1px solid rgba(35,215,255,.35);
    padding:10px 14px;
    border-radius:10px;
    background:rgba(10,28,48,.65);
}

.nav a:hover{
    color:white;
    border-color:var(--line);
    box-shadow:0 0 14px rgba(35,215,255,.22);
}

.container{
    max-width:1200px;
    margin:0 auto;
    padding:28px;
}

.panel{
    background:var(--panel);
    border:1px solid rgba(35,215,255,.25);
    border-radius:18px;
    padding:22px;
    box-shadow:0 0 24px rgba(0,0,0,.24), inset 0 0 20px rgba(35,215,255,.03);
    margin-bottom:24px;
}

.panel-title{
    font-size:18px;
    font-weight:700;
    color:var(--bright);
    margin-bottom:18px;
    letter-spacing:.5px;
}

.hero{
    display:grid;
    grid-template-columns:1.3fr .9fr;
    gap:24px;
}

.hero p{
    line-height:1.6;
    max-width:650px;
}

.button-row{
    margin-top:20px;
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.button{
    display:inline-block;
    text-decoration:none;
    color:#04131d;
    background:var(--line);
    padding:12px 18px;
    border-radius:12px;
    font-weight:700;
}

.button-secondary{
    background:transparent;
    color:var(--accent);
    border:1px solid rgba(35,215,255,.4);
}

.stats-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.stat-card{
    padding:18px;
    border-radius:14px;
    background:rgba(7,22,40,.82);
    border:1px solid rgba(35,215,255,.24);
}

.stat-card.wide{
    grid-column:1 / span 2;
}

.stat-label{
    font-size:12px;
    letter-spacing:1px;
    text-transform:uppercase;
    color:#8fddeb;
    margin-bottom:8px;
}

.stat-value{
    font-size:28px;
    font-weight:800;
    color:white;
}

.stat-value.smaller{
    font-size:18px;
    line-height:1.4;
}

.grid-two{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
}

.list{
    margin:0;
    padding-left:20px;
    line-height:1.9;
}

.card-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:16px;
}

.member-card,
.event-card,
.gallery-card{
    background:rgba(6,18,34,.9);
    border:1px solid rgba(35,215,255,.22);
    border-radius:16px;
    padding:18px;
}

.member-role,
.event-date{
    color:var(--accent);
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:1px;
    margin-bottom:10px;
}

.member-line{
    margin-top:8px;
}

.event-list{
    display:grid;
    gap:16px;
}

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:16px;
}

.gallery-card{
    min-height:140px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#8fddeb;
    font-weight:700;
}

.form-panel{
    max-width:760px;
}

.join-form{
    display:grid;
    gap:10px;
}

.join-form label{
    margin-top:8px;
    font-weight:600;
    color:var(--bright);
}

.join-form input,
.join-form textarea{
    width:100%;
    background:#061321;
    color:var(--text);
    border:1px solid rgba(35,215,255,.25);
    border-radius:12px;
    padding:12px;
    outline:none;
}

.join-form input:focus,
.join-form textarea:focus{
    border-color:var(--line);
    box-shadow:0 0 0 3px rgba(35,215,255,.1);
}

.join-form button{
    margin-top:14px;
    background:var(--line);
    color:#04131d;
    border:none;
    border-radius:12px;
    padding:14px 18px;
    font-weight:800;
    cursor:pointer;
}

@media (max-width: 900px){
    .hero,
    .grid-two{
        grid-template-columns:1fr;
    }

    .topbar{
        flex-direction:column;
        align-items:flex-start;
    }
}