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

:root {
    --content-width: 1200px;
    --content-gutter: clamp(20px, 5vw, 48px);
    --reading-width: 800px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── NAV ── */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(5%, calc((100% - 1200px) / 2));
    height: 92px;
    background: #ffffffed;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.nav-logo-img {
    height: 46px;
    width: auto;
    display: block;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
}
.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--ink);
}
.nav-reseller {
    color: var(--muted) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border: 1px solid var(--line);
    padding: 7px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}
.nav-reseller:hover {
    color: var(--ink) !important;
    border-color: var(--muted);
    background: var(--surface);
}
.nav-cta {
    background: var(--blue);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 10px;
    font-weight: 600 !important;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.nav-cta:hover {
    opacity: 0.88;
}

/* ── PAGE HERO ── */
.page-hero {
    background: var(--tint);
    padding: 76px 0 68px;
}
.page-hero .inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--content-gutter);
}
.page-hero .eyebrow {
    color: var(--lavande);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.page-hero h1 {
    color: var(--ink);
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-top: 12px;
    margin-bottom: 0;
}
.page-hero .subtitle {
    color: var(--muted);
    font-size: 16px;
    margin-top: 14px;
    max-width: 600px;
}

/* ── MAIN CONTENT (white background, dark text) ── */
main {
    flex: 1;
    max-width: var(--content-width);
    width: 100%;
    margin: 0 auto;
    padding: 56px var(--content-gutter) 80px;
}

/* ── TYPOGRAPHY ── */
h1,
h2,
h3 {
    line-height: 1.2;
    color: var(--navy);
}
h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 40px 0 12px;
    letter-spacing: -0.01em;
}
h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 28px 0 10px;
}
p {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 14px;
}
a {
    color: var(--violet);
    text-decoration: none;
}
a:hover {
    color: var(--blue);
    text-decoration: underline;
}

/* ── PROSE (blog articles / changelog body) ── */
.prose {
    line-height: 1.8;
    font-size: 16px;
    max-width: var(--reading-width);
}
.prose p {
    margin-bottom: 1.2em;
    color: var(--text);
}
.prose h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    margin: 2em 0 0.6em;
}
.prose h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin: 1.5em 0 0.5em;
}
.prose ul,
.prose ol {
    padding-left: 1.5em;
    margin-bottom: 1.2em;
    color: var(--text);
}
.prose li {
    margin-bottom: 0.4em;
}
.prose a {
    color: var(--violet);
    text-decoration: underline;
}
.prose a:hover {
    color: var(--blue);
}
.prose img {
    border-radius: 12px;
    margin: 2em 0;
    max-width: 100%;
}
.prose blockquote {
    border-left: 3px solid var(--violet);
    padding-left: 1em;
    color: var(--muted);
    font-style: italic;
    margin: 1.5em 0;
}
.prose code {
    background: var(--light);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--navy);
}
.prose pre {
    background: var(--light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 16px;
    overflow-x: auto;
    margin: 1.5em 0;
}

/* ── FOOTER ── */
footer {
    border-top: 1px solid var(--line);
}
footer {
    background: var(--surface);
    padding: 32px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-brand {
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: 0.04em;
}
.footer-tagline {
    font-size: 13px;
    color: var(--muted);
    font-style: italic;
    margin-top: 2px;
}
.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}
.footer-links--columns {
    flex: 1 1 0;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 24px 40px;
    list-style: none;
}
.footer-column-group {
    display: grid;
    gap: 20px;
    align-content: start;
}
.footer-column ul {
    display: grid;
    gap: 6px;
    list-style: none;
}
.footer-column-title {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 8px;
}
.footer-link-icon {
    width: auto;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
}
.footer-link-icon-only {
    width: auto;
    height: 26px;
    vertical-align: middle;
}
.footer-links a {
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--ink);
}
.footer-copy {
    font-size: 12px;
    color: var(--muted);
}

/* ── HAMBURGER MOBILE ── */
.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 42px;
    height: 38px;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition:
        transform 0.2s,
        opacity 0.2s;
}
.site-nav.open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.site-nav.open .nav-toggle span:nth-child(2) {
    opacity: 0;
}
.site-nav.open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-right-group {
    display: flex;
    align-items: center;
    gap: 28px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1050px) {
    .site-nav {
        height: 72px;
    }
    .site-nav .nav-toggle {
        display: flex;
    }
    .nav-right-group {
        gap: 12px;
    }
    .nav-links {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #ffffffed;
        border-bottom: 0 solid var(--border);
        padding: 0 5%;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        transition:
            max-height 0.3s ease,
            padding 0.3s ease;
    }
    .site-nav.open .nav-links {
        visibility: visible;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        padding: 8px 5% 18px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links li {
        width: 100%;
    }
    .nav-links a {
        display: block;
        padding: 13px 0;
        font-size: 15px;
    }
    .nav-links .nav-cta,
    .nav-links .nav-reseller {
        display: inline-block;
        margin-top: 10px;
        text-align: center;
    }
    .page-hero {
        padding: 40px 0 36px;
    }
    .page-hero h1 {
        font-size: 36px;
    }
    main {
        padding: 36px var(--content-gutter) 56px;
    }
    footer {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    .footer-links--columns {
        flex: none;
        width: 100%;
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-column-title {
        margin: 0 0 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

.page-hero h1,
.prose,
.pb-title {
    overflow-wrap: anywhere;
}
.prose table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
}
