* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0f1419;
    --bg-card: #1a2332;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --text: #e7e9ea;
    --text-muted: #8b98a5;
    --border: #2f3640;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

.header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 2rem 1.5rem;
    text-align: center;
}

.header-content {
    max-width: 900px;
    margin: 0 auto;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.tagline {
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-size: 1rem;
}

.main {
    flex: 1;
    padding: 2rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    text-align: center;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.tool-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.tool-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.tool-card:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.tool-icon {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tool-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.tool-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer {
    padding: 1rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .logo {
        font-size: 1.5rem;
    }
}
