:root {
    --electric-blue: #3E6AE1;
    --pure-white: #FFFFFF;
    --carbon-dark: #171A20;
    --graphite: #393C41;
    --pewter: #5C5E62;
    --silver-fog: #8E8E8E;
    --cloud-gray: #EEEEEE;
    --pale-silver: #D0D1D2;
    --light-ash: #F4F4F4;
    --frosted-glass: rgba(255, 255, 255, 0.75);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--graphite);
    background: var(--pure-white);
    line-height: 1.43;
    font-weight: 400;
    font-size: 14px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 16px 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 0.33s cubic-bezier(0.5, 0, 0, 0.75);
}
nav.scrolled { background: var(--frosted-glass); }
.nav-logo {
    font-size: 28px; font-weight: 700; color: var(--carbon-dark);
    letter-spacing: 0.15em; text-decoration: none;
    text-shadow: 0 0 1px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero {
    height: 100vh; display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center;
    background: linear-gradient(180deg, var(--pure-white) 0%, var(--light-ash) 100%);
    padding: 0 32px;
}
.hero h1 { font-size: 56px; font-weight: 600; color: var(--carbon-dark); line-height: 1.2; margin-bottom: 16px; }
.hero p { font-size: 16px; font-weight: 400; color: var(--pewter); max-width: 600px; margin-bottom: 32px; }

/* Buttons */
.cta-group { display: flex; gap: 16px; justify-content: center; }
.btn {
    padding: 14px 36px; font-size: 15px; font-weight: 500; border-radius: 4px;
    border: none; cursor: pointer; transition: background-color 0.33s, color 0.33s;
    text-decoration: none; min-height: 44px;
}
.btn-primary { background: var(--electric-blue); color: var(--pure-white); }
.btn-primary:hover { background: #2D5AD0; }
.btn-secondary { background: var(--pure-white); color: var(--graphite); border: 1px solid var(--pale-silver); }
.btn-secondary:hover { background: var(--light-ash); }

/* Modules Section */
.modules { padding: 64px 32px; max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 24px; font-weight: 500; color: var(--carbon-dark); margin-bottom: 32px; text-align: center; }
.module-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* Module Card */
.module-card {
    position: relative; height: 240px; border-radius: 12px; overflow: hidden;
    cursor: pointer; transition: transform 0.33s; text-decoration: none; color: var(--pure-white);
}
.module-card:hover { transform: translateY(-4px); }

/* Wiki Card Style */
.mod-wiki { background: radial-gradient(circle at 20% 80%, rgba(62,106,225,0.3) 0%, #171A20 60%); }
.mod-wiki .card-overlay { background: linear-gradient(135deg, rgba(62,106,225,0.1) 0%, rgba(23,26,32,0.9) 100%); }

/* Game Card Style */
.mod-game { background: linear-gradient(135deg, #0f0f0f 0%, #2d2d2d 100%); }
.mod-game .card-overlay { background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.8) 100%); }

.card-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.6));
    transition: background 0.33s;
}
.module-card:hover .card-overlay { background: linear-gradient(to bottom, rgba(62,106,225,0.1), rgba(0,0,0,0.7)); }

.module-label {
    position: absolute; bottom: 32px; left: 24px;
    font-size: 20px; font-weight: 500; color: var(--pure-white);
}
.module-desc {
    position: absolute; bottom: 16px; left: 24px;
    font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.7);
}

/* Footer */
footer { padding: 32px; text-align: center; color: var(--silver-fog); font-size: 14px; border-top: 1px solid var(--cloud-gray); }

/* Responsive */
@media (max-width: 768px) {
    .module-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 36px; }
    .nav-logo { font-size: 22px; }
}
