:root {
    --space-bg: #0b0c10;
    --space-text: #c5c6c7;
    --space-primary: #66fcf1;
    --space-secondary: #45a29e;
    --space-surface: #1f2833;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: var(--space-bg); color: var(--space-text);
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}
/* Starfield background */
body::before {
    content: ''; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, #ddd, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: stars 4s linear infinite;
    z-index: -1; opacity: 0.3;
}
@keyframes stars { 0% { transform: translateY(0); } 100% { transform: translateY(-200px); } }

a { text-decoration: none; color: inherit; }

.space-container { max-width: 1100px; margin: 0 auto; padding: 20px; }

/* Header */
.space-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 30px; background: rgba(31, 40, 51, 0.8);
    backdrop-filter: blur(10px); border-radius: 40px;
    border: 1px solid rgba(102, 252, 241, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 50px;
}
.space-brand {
    font-size: 28px; font-weight: 900; color: var(--space-primary);
    text-shadow: 0 0 10px rgba(102, 252, 241, 0.5); letter-spacing: 2px;
}
.space-nav { display: flex; gap: 25px; }
.space-nav a {
    font-weight: 700; color: #c5c6c7; transition: all 0.3s;
    padding: 8px 16px; border-radius: 20px;
}
.space-nav a:hover, .space-nav a.active {
    color: var(--space-bg); background: var(--space-primary);
    box-shadow: 0 0 15px var(--space-primary);
}

/* Hero */
.space-hero {
    display: flex; align-items: center; justify-content: space-between;
    padding: 60px 40px; background: linear-gradient(135deg, rgba(31, 40, 51, 0.9), rgba(11, 12, 16, 0.9));
    border-radius: 30px; border: 1px solid rgba(102, 252, 241, 0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); margin-bottom: 60px;
    position: relative; overflow: hidden;
}
.space-hero::after {
    content: ''; position: absolute; right: -100px; top: -100px; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(69, 162, 158, 0.2) 0%, transparent 70%);
    border-radius: 50%; z-index: 0;
}
.hero-content { position: relative; z-index: 1; flex: 1; padding-right: 40px;}
.space-hero h1 { font-size: 48px; font-weight: 900; margin-bottom: 20px; color: #fff; line-height: 1.2;}
.space-hero p { font-size: 18px; margin-bottom: 40px; color: #c5c6c7;}
.hero-visual {
    flex: 1; display: flex; justify-content: center; align-items: center; z-index: 1;
}
.planet {
    width: 200px; height: 200px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--space-primary), var(--space-secondary), #000);
    box-shadow: 0 0 50px rgba(102, 252, 241, 0.4), inset -20px -20px 40px rgba(0,0,0,0.8);
    animation: float 6s ease-in-out infinite; display: flex; align-items: center; justify-content: center;
    font-size: 80px;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

.btn-space {
    display: inline-block; padding: 15px 35px; font-size: 18px; font-weight: 800;
    color: var(--space-bg); background: var(--space-primary); border-radius: 30px;
    box-shadow: 0 0 20px rgba(102, 252, 241, 0.4); transition: all 0.3s; margin-right: 15px; border: none; cursor: pointer;
}
.btn-space:hover { transform: translateY(-3px); box-shadow: 0 0 30px rgba(102, 252, 241, 0.6);}
.btn-space-outline {
    display: inline-block; padding: 13px 33px; font-size: 18px; font-weight: 800;
    color: var(--space-primary); background: transparent; border-radius: 30px;
    border: 2px solid var(--space-primary); transition: all 0.3s;
}
.btn-space-outline:hover { background: rgba(102, 252, 241, 0.1); box-shadow: 0 0 15px rgba(102, 252, 241, 0.2);}

/* Stats */
.space-stats {
    display: flex; justify-content: space-between; margin-bottom: 60px; gap: 20px;
}
.ss-item {
    flex: 1; padding: 30px; text-align: center; background: var(--space-surface);
    border-radius: 20px; border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.ss-val { font-size: 36px; font-weight: 900; color: var(--space-primary); margin-bottom: 5px; text-shadow: 0 0 10px rgba(102, 252, 241, 0.3);}
.ss-lbl { font-size: 14px; font-weight: 700; color: #c5c6c7; text-transform: uppercase; letter-spacing: 1px;}

/* Grid */
.space-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 60px;}
.sg-card {
    background: var(--space-surface); padding: 40px 30px; border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05); text-align: center;
    transition: all 0.3s; position: relative; overflow: hidden;
}
.sg-card::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 252, 241, 0.1), transparent);
    transition: 0.5s;
}
.sg-card:hover::before { left: 100%; }
.sg-card:hover { transform: translateY(-10px); border-color: var(--space-secondary); box-shadow: 0 15px 30px rgba(0,0,0,0.5);}
.sg-icon {
    width: 80px; height: 80px; margin: 0 auto 20px; background: rgba(102, 252, 241, 0.1);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 36px; color: var(--space-primary); border: 1px solid rgba(102, 252, 241, 0.3);
}
.sg-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 15px; color: #fff;}
.sg-card p { font-size: 15px; color: #c5c6c7;}

/* Nodes */
.space-nodes {
    background: var(--space-surface); padding: 40px; border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.05); margin-bottom: 60px; text-align: center;
}
.space-nodes h2 { font-size: 32px; font-weight: 900; margin-bottom: 30px; color: #fff;}
.node-orbit { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px;}
.n-orb {
    padding: 12px 25px; font-weight: 700; color: #fff;
    background: rgba(69, 162, 158, 0.2); border: 1px solid var(--space-secondary);
    border-radius: 30px; display: flex; align-items: center; gap: 10px;
    transition: all 0.3s;
}
.n-orb:hover { background: var(--space-secondary); box-shadow: 0 0 15px var(--space-secondary); transform: scale(1.05);}
.n-orb span { color: var(--space-primary); font-size: 12px;}

/* FAQ */
.space-faq { margin-bottom: 60px;}
.space-faq h2 { font-size: 32px; font-weight: 900; margin-bottom: 40px; text-align: center; color: #fff;}
.faq-box {
    background: var(--space-surface); padding: 25px; border-radius: 15px;
    margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.05);
}
.faq-q { font-size: 18px; font-weight: 800; color: var(--space-primary); margin-bottom: 10px;}
.faq-a { font-size: 15px; color: #c5c6c7;}

footer { text-align: center; padding: 30px; font-weight: 700; color: #45a29e; border-top: 1px solid rgba(255,255,255,0.05);}

@media (max-width: 900px) {
    .space-header { flex-direction: column; gap: 15px; padding: 20px;}
    .space-hero { flex-direction: column; text-align: center; padding: 40px 20px;}
    .hero-content { padding-right: 0; margin-bottom: 40px;}
    .hero-visual { display: none; } /* Hide on mobile to save space */
    .space-stats { flex-wrap: wrap; }
    .ss-item { min-width: 45%; }
    .space-grid { grid-template-columns: 1fr; }
    .btn-space, .btn-space-outline { display: block; margin: 10px auto; width: 100%;}
}