/* Risenoow shared public chrome — the standard homepage header + footer,
   namespaced (hnpc-) with concrete colours so it drops onto any public page
   without depending on or colliding with that page's own styles. */

.hnpc-container { width: min(1220px, calc(100% - 48px)); margin-inline: auto; }

/* ── Header ───────────────────────────────────────────────────────── */
.hnpc-header {
    position: fixed; z-index: 100; top: 0; right: 0; left: 0;
    border-bottom: 1px solid transparent;
    transition: background-color 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
    font-family: "Inter", "Segoe UI", sans-serif;
}
.hnpc-header.is-scrolled {
    border-color: rgba(187,201,224,0.13);
    background: rgba(5, 8, 13, 0.82);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(18px);
}
.hnpc-header-spacer { height: 82px; }

.hnpc-nav { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 28px; }

.hnpc-brand {
    display: inline-flex; flex: 0 0 auto; align-items: center; gap: 11px;
    color: #f5f7fb; text-decoration: none;
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    font-size: 21px; font-weight: 800; letter-spacing: -0.05em;
}
.hnpc-brand em { color: #72dfcd; font-style: normal; }
.hnpc-brand-mark {
    position: relative; display: grid; width: 34px; height: 34px; place-items: center;
    border: 1px solid rgba(66, 232, 224, 0.45); border-radius: 50%;
    background: rgba(66, 232, 224, 0.06);
    box-shadow: inset 0 0 18px rgba(66, 232, 224, 0.12), 0 0 24px rgba(66, 232, 224, 0.08);
}
.hnpc-brand-mark::before, .hnpc-brand-mark::after {
    position: absolute; width: 3px; border-radius: 99px; background: #72dfcd;
    box-shadow: 7px 0 0 rgba(66, 232, 224, 0.6), -7px 0 0 rgba(66, 232, 224, 0.35); content: "";
}
.hnpc-brand-mark::before { height: 16px; }
.hnpc-brand-mark::after { height: 8px; transform: rotate(90deg); }

.hnpc-links { display: flex; align-items: center; gap: 29px; color: #c5cedc; font-size: 14px; font-weight: 600; }
.hnpc-links a { position: relative; padding-block: 8px; color: inherit; text-decoration: none; transition: color 180ms ease; }
.hnpc-links a::after {
    position: absolute; right: 0; bottom: 2px; left: 0; height: 1px; background: #72dfcd; content: "";
    transform: scaleX(0); transform-origin: right; transition: transform 180ms ease;
}
.hnpc-links a:hover { color: #f5f7fb; }
.hnpc-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.hnpc-find { color: #72dfcd !important; font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }

.hnpc-actions { display: flex; align-items: center; gap: 10px; }
.hnpc-btn {
    display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px;
    padding: 0 20px; border: 1px solid transparent; border-radius: 10px; cursor: pointer;
    font-size: 14px; font-weight: 800; letter-spacing: -0.01em; text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}
.hnpc-btn:hover { transform: translateY(-2px); }
.hnpc-btn-cyan { background: #72dfcd; box-shadow: 0 14px 34px rgba(66, 232, 224, 0.14); color: #061013; }
.hnpc-btn-cyan:hover { background: #78f4ed; box-shadow: 0 18px 42px rgba(66, 232, 224, 0.22); }
.hnpc-btn-text { min-height: auto; padding: 10px; color: #c5cedc; }
.hnpc-btn-text:hover { color: #f5f7fb; }

.hnpc-mfind {
    display: none; min-height: 40px; align-items: center; padding: 0 12px;
    border: 1px solid rgba(66, 232, 224, 0.35); border-radius: 9px; color: #72dfcd; text-decoration: none;
    font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
}
.hnpc-toggle {
    display: none; width: 44px; height: 44px; padding: 0;
    border: 1px solid rgba(187,201,224,0.13); border-radius: 10px; background: rgba(255, 255, 255, 0.025); cursor: pointer;
}
.hnpc-toggle span { display: block; width: 19px; height: 1px; margin: 5px auto; background: #f5f7fb; transition: transform 180ms ease, opacity 180ms ease; }
.hnpc-toggle[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
.hnpc-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hnpc-toggle[aria-expanded="true"] span:last-child { transform: translateY(-6px) rotate(-45deg); }
.hnpc-mpanel { display: none; }

/* ── Footer ───────────────────────────────────────────────────────── */
.hnpc-footer { border-top: 1px solid rgba(187,201,224,0.13); background: rgba(4, 8, 13, 0.68); font-family: "Inter", "Segoe UI", sans-serif; }
.hnpc-footer-main { display: grid; grid-template-columns: 1.5fr repeat(3, 0.7fr); gap: 70px; padding: 72px 0 58px; }
.hnpc-footer-brand p { max-width: 330px; margin: 20px 0 0; color: #93a2ba; font-size: 13px; }
.hnpc-footer-col h2 { margin: 3px 0 18px; color: #f5f7fb; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.hnpc-footer-col ul { display: grid; gap: 10px; margin: 0; padding: 0; color: #93a2ba; font-size: 13px; list-style: none; }
.hnpc-footer-col a { color: inherit; text-decoration: none; transition: color 180ms ease; }
.hnpc-footer-col a:hover { color: #72dfcd; }
.hnpc-footer-bottom {
    display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 24px;
    border-top: 1px solid rgba(187,201,224,0.13); color: #657b86;
    font-family: "IBM Plex Mono", monospace; font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase;
}

.hnpc-scrolltop {
    position: fixed; z-index: 70; right: 22px; bottom: 22px; display: grid; width: 44px; height: 44px; place-items: center;
    border: 1px solid rgba(187,201,224,0.24); border-radius: 50%; background: rgba(8, 16, 24, 0.86); color: #72dfcd; cursor: pointer;
    opacity: 0; pointer-events: none; visibility: hidden; transform: translateY(12px);
    transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease, visibility 180ms ease; backdrop-filter: blur(10px);
}
.hnpc-scrolltop.is-visible { opacity: 1; pointer-events: auto; visibility: visible; transform: translateY(0); }
.hnpc-scrolltop:hover { border-color: #72dfcd; }
.hnpc-scrolltop svg { width: 18px; height: 18px; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1080px) {
    .hnpc-links { display: none; }
    .hnpc-toggle { display: block; }
    .hnpc-mfind { display: inline-flex; }
    .hnpc-actions .hnpc-btn-text, .hnpc-actions .hnpc-btn-cyan { display: none; }
    .hnpc-mpanel {
        position: absolute; top: 80px; right: 20px; left: 20px; display: grid; padding: 14px;
        border: 1px solid rgba(187,201,224,0.24); border-radius: 14px; background: rgba(6, 12, 18, 0.97);
        box-shadow: 0 32px 90px rgba(0,0,0,0.32); opacity: 0; pointer-events: none; visibility: hidden; transform: translateY(-10px);
        transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease; backdrop-filter: blur(18px);
    }
    .hnpc-mpanel.is-open { opacity: 1; pointer-events: auto; visibility: visible; transform: translateY(0); }
    .hnpc-mpanel a { padding: 12px; border-bottom: 1px solid rgba(187,201,224,0.13); color: #c5cedc; text-decoration: none; font-weight: 700; }
    .hnpc-mpanel a:last-child { margin-top: 10px; border-bottom: 0; border-radius: 9px; background: #72dfcd; color: #07101d; text-align: center; }
}
@media (max-width: 860px) {
    .hnpc-footer-main { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 560px) {
    .hnpc-footer-main { grid-template-columns: 1fr; gap: 32px; padding: 52px 0 40px; }
    .hnpc-footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* Specificity armor. Some host pages carry a global `.hn-public a { font: inherit }`
   reset (public-brand.css) that would strip the chrome links' own fonts, so the
   logo/buttons render in the wrong face. Re-assert them scoped under the header/
   footer (higher specificity) so the chrome looks identical on every page. */
.hnpc-header .hnpc-brand,
.hnpc-footer .hnpc-brand { font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif; font-weight: 800; font-size: 21px; }
.hnpc-header .hnpc-brand em,
.hnpc-footer .hnpc-brand em { color: #72dfcd; font-style: normal; }
.hnpc-header .hnpc-find { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.04em; }
.hnpc-header .hnpc-mfind { font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 600; }
.hnpc-header .hnpc-btn { font-family: "Inter", "Segoe UI", sans-serif; font-size: 14px; font-weight: 800; }
.hnpc-footer .hnpc-footer-col h2 { font-family: "Inter", "Segoe UI", sans-serif; font-weight: 700; }
.hnpc-footer .hnpc-footer-brand p, .hnpc-footer .hnpc-footer-col a { font-family: "Inter", "Segoe UI", sans-serif; }
