:root {
    font-family:
        'Inter',
        'SF Pro Text',
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;
    color: #111827;
    --accent: #0aa0d2;
    --accent-dark: #0c84ad;
    --bg-panel: #ffffff;
    --bg-muted: #f1f5f9;
    --text-muted: #6b7280;
}

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

body.brand-body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #f0f8ff 0%, #f8fafc 30%, #ffffff 100%);
    color: #111827;
    font-family: inherit;
}

.site-header {
    background: var(--bg-panel);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
    position: sticky;
    top: 0;
    z-index: 20;
}

.brand-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.4rem;
    color: #0b1f33;
    text-decoration: none;
}
.logo-mark {
    width: 42px;
    height: 42px;
}

.inline-preview-shell {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.inline-preview {
    position: relative;
    width: 100%;
    padding-top: 60%;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.1);
}

.inline-preview__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
}

.inline-preview__frame.light {
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.inline-preview__frame.dark {
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

.inline-preview__label {
    position: absolute;
    top: 0.6rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    z-index: 2;
}

.light-label {
    left: 0.85rem;
    background: rgba(10, 160, 210, 0.9);
    color: #fff;
}

.dark-label {
    right: 0.85rem;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
}

.preview-empty {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
}

.brand-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex-wrap: wrap;
}

.brand-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.brand-links a:hover {
    color: var(--accent);
}

.page-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.site-footer {
    margin-top: 4rem;
    background: #0f172a;
    color: #e2e8f0;
    padding: 3rem 1.5rem 3.5rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: rgba(226, 232, 240, 0.9);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-meta {
    border-top: 1px solid rgba(226, 232, 240, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.footer-meta h3 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-link {
    color: #0b1f33;
    background: #e0f2fe;
    border-radius: 999px;
    padding: 0.2rem 0.75rem;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 700px) {
    .brand-links {
        width: 100%;
        justify-content: space-between;
    }

    .brand-nav {
        flex-direction: column;
        align-items: flex-start;
    }
}
