:root {
    color-scheme: light;
    --text: #21313f;
    --muted: #65798a;
    --dim: #485f70;
    --soft: rgba(255, 255, 255, 0.74);
    --line: rgba(38, 77, 93, 0.14);
    --teal: #087f8c;
    --card-bg: rgba(255, 255, 255, 0.58);
    --card-hover-bg: rgba(255, 255, 255, 0.86);
    --backdrop-overlay: rgba(244, 251, 255, 0.24);
    --shadow: 0 24px 60px rgba(18, 54, 69, 0.18);
}
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --text: #e1e7ed;
        --muted: #94a3b8;
        --dim: #64748b;
        --soft: rgba(15, 23, 42, 0.82);
        --line: rgba(255, 255, 255, 0.08);
        --teal: #2dd4bf;
        --card-bg: rgba(30, 41, 59, 0.5);
        --card-hover-bg: rgba(51, 65, 85, 0.65);
        --backdrop-overlay: rgba(15, 23, 42, 0.55);
        --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    }
}
body {
    margin: 0;
    font-family: Inter, "Noto Sans SC", system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, rgba(9, 93, 112, 0.28), rgba(245, 184, 75, 0.12));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body::before {
    content: ""; position: fixed; inset: 0;
    background: var(--backdrop-overlay); backdrop-filter: blur(4px); z-index: -1;
}
.shell {
    width: min(800px, calc(100% - 40px));
    margin: 80px auto auto;
    background: var(--soft);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 18px;
    padding: 50px 40px;
    text-align: center;
}
h1 { margin-top: 0; color: var(--teal); font-size: 2.5rem; letter-spacing: 2px;}
p.lead { color: var(--dim); margin-bottom: 40px; line-height: 1.6;}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}
.tool-card:hover {
    transform: translateY(-5px);
    background: var(--card-hover-bg);
    border-color: var(--teal);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.tool-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}
.tool-card strong { font-size: 1.1rem; display: block; margin-bottom: 8px; color: var(--text); }
.tool-card small { color: var(--muted); font-size: 0.85rem; }

.site-footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: auto;
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin: 5px 0; }
