:root {
    --bg: #0e1116;
    --card: #161b22;
    --text: #e6edf3;
    --muted: #9da7b3;
    --border: #2b3240;
    --radius: 14px;
    --shadow: 0 10px 25px rgba(0, 0, 0, .35);
    --sky: #38bdf8;
    --violet: #a78bfa;
    --emerald: #34d399;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: radial-gradient(900px 600px at 10% -10%, #22315633, transparent),
        radial-gradient(800px 500px at 110% 0%, #134d9a26, transparent),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 1rem;
}

h1 {
    font-size: 1.8rem;
    margin: 0.5rem 0;
}

p.muted {
    color: var(--muted);
    margin-top: 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 900px;
    margin-top: 2rem;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
}

.card h2 {
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

.card p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0.3rem 0 1rem;
}

.card a {
    display: inline-block;
    background: var(--sky);
    color: #0e1116;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.card a:hover {
    background: #0ea5e9;
}

.card.violet a {
    background: var(--violet);
}

.card.violet a:hover {
    background: #8b5cf6;
}

.card.emerald a {
    background: var(--emerald);
}

.card.emerald a:hover {
    background: #10b981;
}

footer {
    margin-top: 2rem;
    color: var(--muted);
    font-size: 0.8rem;
    text-align: center;
}