/* index.css — jade + gold hub page */

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

.hero h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    color: var(--text);
}

.hero .subtitle {
    font-size: 1rem;
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto;
}

.hero .badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.badge {
    font-size: 0.76rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 99px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    letter-spacing: 0.01em;
}

.badge.accent {
    background: var(--accent-soft);
    color: var(--accent);
}

.tools {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.tool {
    display: block;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 20px 20px 22px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.tool:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
    border-color: #e8d9b8;
}

.tool:active {
    transform: translateY(0);
}

.tool-icon {
    font-size: 1.6rem;
    margin-bottom: 10px;
    display: block;
    line-height: 1;
}

.tool h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.tool p {
    font-size: 0.86rem;
    color: var(--muted);
    line-height: 1.5;
}

.tool .arrow {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
}

@media (prefers-color-scheme: dark) {
    .tool:hover {
        border-color: #4a3f1f;
    }

    .badge.accent {
        background: var(--accent-soft);
        color: var(--accent);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }
}