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

:root {
    --bg: #f8f8f6;
    --surface: #ffffff;
    --border: #e4e3dd;
    --text-primary: #1a1a18;
    --text-secondary: #6b6b66;
    --text-muted: #9e9e99;
    --accent: #4a6cf7;
    --accent-bg: #eef1fe;
    --radius: 10px;
    --nav-h: 56px;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── NAVBAR ── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-h);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--text-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo-icon svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.nav-logo-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.nav-links a:hover {
    background: var(--bg);
    color: var(--text-primary);
}

.nav-links a.active {
    color: var(--text-primary);
    background: var(--bg);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.nav-btn {
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

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

.nav-btn.ghost:hover { background: var(--bg); color: var(--text-primary); }

.nav-btn.solid {
    background: var(--text-primary);
    color: #fff;
}

.nav-btn.solid:hover { background: #333; }

/* ── MAIN ── */
main {
    flex: 1;
    padding: 3rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

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

h1 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.4px;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ── SECTION HEADINGS ── */
main h2 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

main h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

/* ── MOSAIC ── */
.mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    cursor: pointer;
}

.tile:hover {
    border-color: #ccc;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    transform: translateY(-2px);
}

.tile-icon {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.tile-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.tile-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: auto;
}

.tile-tag {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
    width: fit-content;
}

.tag-blue  { background: #fffaed; color: #3451c7; }
.tag-green { background: #fffaed; color: #2e7d32; }
.tag-amber { background: #fffaed; color: #c47a00; }
.tag-pink  { background: #fffaed; color: #a3256e; }

.icon { background: #fffaed; }

/* ── FOOTER ── */
footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-left span {
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-left strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-center {
    text-align: center;
}

.footer-center p {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-center a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
}

.footer-center a:hover { color: var(--text-primary); text-decoration: underline; }

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.footer-right span {
    font-size: 13px;
    color: var(--text-secondary);
}

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

.footer-links a {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
}

.footer-links a:hover { color: var(--text-primary); }

@media (max-width: 640px) {
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-right { align-items: center; }
    .nav-links { display: none; }
}
