:root {
    --bg-color: #f5f5f7;
    --card-bg: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-color: #0066cc;
    --accent-hover: #0055b3;
    --border-color: #e5e5ea;
    --tag-bg: #f2f2f7;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #000000;
        --card-bg: #1c1c1e;
        --text-primary: #f5f5f7;
        --text-secondary: #98989d;
        --accent-color: #0a84ff;
        --accent-hover: #0070e0;
        --border-color: #2c2c2e;
        --tag-bg: #2c2c2e;
    }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 640px;
}

header {
    text-align: center;
    margin-bottom: 36px;
}

h1 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 15px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card.recommended {
    border: 1.5px solid var(--accent-color);
}

.badge {
    font-size: 12px;
    color: var(--accent-color);
    background-color: rgba(10, 132, 255, 0.12);
    padding: 2px 10px;
    border-radius: 99px;
    margin-bottom: 12px;
    font-weight: 500;
    display: none;
}

.card.recommended .badge {
    display: inline-block;
}

.icon {
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    fill: var(--text-primary);
}

.card h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
}

.meta {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 24px;
    background-color: var(--tag-bg);
    padding: 4px 12px;
    border-radius: 6px;
}

.download-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    width: 100%;
}

.btn {
    margin-top: auto;
    width: 100%;
    padding: 12px 20px;
    background-color: var(--accent-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 15px;
    transition: background-color 0.15s ease;
}

.btn:hover {
    background-color: var(--accent-hover);
}

@media (max-width: 360px) {
    .grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
