/* Self-hosted DM Sans (served from ssoAuth — no external CDN) */
@font-face { font-family: 'DM Sans'; font-weight: 400; font-display: swap; src: url('/sdk/fonts/dm-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-display: swap; src: url('/sdk/fonts/dm-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 600; font-display: swap; src: url('/sdk/fonts/dm-sans-600.woff2') format('woff2'); }

:root {
    --dark: #0D0F14; --mid: #161920; --card: #1C2030;
    --border: #2A2E3F; --text: #E8EAF0; --muted: #7A8099;
    --accent: #4F8EF7; --green: #4CAF82; --gold: #C8A45A;
}

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

body { font-family: 'DM Sans', system-ui, sans-serif; background: var(--dark); color: var(--text); line-height: 1.6; }

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

.header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(13,15,20,.92); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px; height: 56px;
    display: flex; align-items: center; justify-content: space-between;
}

.brand { font-size: 1.2rem; font-weight: 600; color: var(--text); }

.brand em { color: var(--accent); font-style: normal; }

.btn { display: inline-block; padding: 8px 20px; border-radius: 6px; font-size: .875rem; font-weight: 600; cursor: pointer; border: none; transition: all .15s; }

.btn-primary { background: var(--accent); color: #fff; }

.btn-primary:hover { background: #3d7ce5; }

.btn-outline { border: 1px solid var(--border); color: var(--text); background: transparent; }

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

.hero { text-align: center; padding: 64px 24px 48px; }

.hero h1 { font-size: 2.4rem; font-weight: 600; margin-bottom: 12px; }

.hero h1 em { color: var(--accent); font-style: normal; }

.hero p { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto 28px; }

.hero-actions { display: flex; gap: 12px; justify-content: center; }

.section { margin-bottom: 48px; }

.section-label { text-transform: uppercase; font-size: .7rem; font-weight: 600; letter-spacing: .1em; color: var(--accent); margin-bottom: 14px; }

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

.card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 10px; padding: 20px;
    transition: border-color .15s;
    display: block; text-decoration: none; color: inherit;
}

.card:hover { border-color: var(--accent); }

.footer { border-top: 1px solid var(--border); padding: 32px 24px; text-align: center; color: var(--muted); font-size: .8rem; }

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

/* ── SEO Tools card components ─────────────────────────────────────────────── */
.tool-card { display: flex; flex-direction: column; gap: 12px; }
.tool-card--soon { opacity: .55; }
.tool-card__header { display: flex; align-items: center; gap: 12px; }
.tool-card__initial { width: 36px; height: 36px; border-radius: 8px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.tool-card__name { font-weight: 600; font-size: .975rem; color: var(--text); }
.tool-card__desc { margin: 0; font-size: .875rem; color: var(--muted); flex: 1; }
.tool-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.tool-card__link { font-size: .875rem; color: var(--accent); text-decoration: none; font-weight: 500; }
.tool-card__link:hover { text-decoration: underline; }
.tool-badge { font-size: .8rem; padding: 3px 10px; border-radius: 999px; }
.tool-badge--ok   { background: rgba(76,175,130,.15); color: var(--green); }
.tool-badge--down { background: rgba(239,68,68,.12);  color: #f87171; }
.tool-badge--soon { background: rgba(122,128,153,.12); color: var(--muted); }
