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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
    text-align: center;
    padding: 50px 0 30px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-bottom: 1px solid #333;
}
header h1 { font-size: 2.5rem; margin-bottom: 8px; }
.tagline { color: #888; font-size: 1.1rem; }

/* Categories Nav */
.categories {
    padding: 20px 0;
    text-align: center;
    background: #111;
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 10;
}
.cat-btn {
    display: inline-block;
    padding: 8px 18px;
    margin: 4px;
    background: #1a1a2e;
    color: #ccc;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.cat-btn:hover { background: #2a2a4e; color: #fff; }

/* Sections */
.category { margin: 40px 0; }
.category h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

/* Tool Cards */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.tool-card {
    background: #151515;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 20px;
    transition: border-color 0.2s;
}
.tool-card:hover { border-color: #4a9eff; }
.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.tool-header h3 { font-size: 1.2rem; }
.badge {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
}
.badge.free { background: #1a3a1a; color: #4ade80; }
.badge.paid { background: #3a2a1a; color: #fbbf24; }
.tool-card p { color: #999; font-size: 0.9rem; margin-bottom: 12px; }
.tool-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}
.tool-meta a {
    color: #4a9eff;
    text-decoration: none;
}
.tool-meta a:hover { text-decoration: underline; }

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid #222;
    color: #666;
    font-size: 0.85rem;
}
footer p + p { margin-top: 5px; }

@media (max-width: 640px) {
    header h1 { font-size: 1.8rem; }
    .tools-grid { grid-template-columns: 1fr; }
}
