:root {
    --bg-dark: #0f1115;
    --text-main: #f0f0f0;
    --text-muted: #8892b0;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(20, 25, 35, 1), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(20, 25, 35, 1), transparent 25%);
}

.hub-container {
    max-width: 1000px;
    width: 100%;
    padding: 2rem;
    z-index: 10;
}

.hub-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInDown 0.8s ease-out;
}

.hub-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.hub-header h1 span {
    color: #8892b0;
    font-weight: 700;
}

.hub-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.system-card {
    background: rgba(25, 30, 40, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    z-index: 2;
}

.system-card h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    z-index: 2;
}

.system-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
}

.card-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at 50% 0%, var(--glow-color), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

/* System Specific Theming */
.swade-card {
    --glow-color: rgba(212, 160, 23, 0.15);
}
.swade-card:hover {
    border-color: rgba(212, 160, 23, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 160, 23, 0.1);
    transform: translateY(-5px);
}

.nimble-card {
    --glow-color: rgba(139, 69, 19, 0.15);
}
.nimble-card:hover {
    border-color: rgba(139, 69, 19, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 69, 19, 0.1);
    transform: translateY(-5px);
}

.scifi-card {
    --glow-color: rgba(0, 240, 255, 0.15);
}
.scifi-card:hover {
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.1);
    transform: translateY(-5px);
}

.system-card:hover .card-glow {
    opacity: 1;
}

.system-card:hover .card-icon {
    transform: scale(1.1);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .hub-header h1 { font-size: 3rem; }
    .hub-header p { font-size: 1rem; }
    .system-card { padding: 2rem 1.5rem; }
}
