:root {
    --primary: #8B5CF6;
    --primary-dark: #7C3AED;
    --bg: #FAFAFA;
    --card-bg: #FFFFFF;
    --text: #1F2937;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --code-bg: #F3F4F6;
    --success: #10B981;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

header {
    text-align: center;
    padding: 4rem 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.25rem;
    opacity: 0.9;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.tool-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tool-header h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0;
}

.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.badge.cli {
    background: #F3F4F6;
    color: #374151;
}

.badge.npm {
    background: #EF4444;
    color: white;
}

.description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--code-bg);
    border-radius: 8px;
}

.stat {
    text-align: center;
}

.stat .label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stat .value {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
}

.quick-start {
    margin-bottom: 1.5rem;
}

.quick-start h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

pre {
    background: var(--code-bg);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
}

code {
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 0.875rem;
}

.links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn:not(.btn-primary) {
    background: var(--code-bg);
    color: var(--text);
}

.btn:not(.btn-primary):hover {
    background: var(--border);
}

.coming-soon {
    opacity: 0.6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 300px;
}

.philosophy {
    margin-top: 4rem;
}

.philosophy h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary);
}

.principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.principle {
    text-align: center;
}

.principle h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.principle p {
    color: var(--text-muted);
}

footer {
    text-align: center;
    padding: 3rem 1rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

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

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

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}