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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #0f1117;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem 3rem;
    background: #161822;
    border-bottom: 1px solid #2a2d3a;
}

.logo {
    height: 48px;
    width: auto;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

main.grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2.5rem 3rem;
}

.card {
    display: block;
    background: #1c1f2e;
    border: 1px solid #2a2d3a;
    border-radius: 12px;
    padding: 1.8rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #4a6cf7;
    box-shadow: 0 8px 24px rgba(74, 108, 247, 0.15);
}

.card h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.9rem;
    color: #9a9db0;
    line-height: 1.5;
}

footer {
    text-align: center;
    padding: 1.5rem;
    color: #555;
    font-size: 0.8rem;
    border-top: 1px solid #2a2d3a;
}

footer a {
    color: #9a9db0;
    text-decoration: none;
    transition: color 0.15s ease;
}

footer a:hover {
    color: #4a6cf7;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1.5rem;
}

.modal-content {
    background: #1c1f2e;
    border: 1px solid #2a2d3a;
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 640px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    color: #e0e0e0;
}

.modal-content h2 {
    color: #fff;
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
}

.modal-content h3 {
    color: #fff;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.modal-content p {
    line-height: 1.6;
    margin-bottom: 0.6rem;
    color: #9a9db0;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: #9a9db0;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s ease;
}

.modal-close:hover {
    color: #fff;
}

@media (max-width: 600px) {
    header {
        padding: 1.5rem;
    }
    main.grid {
        padding: 1.5rem;
        grid-template-columns: 1fr;
    }
}
