/* Shared public shell: background, sticky header, mobile menu and footer for the homepage and all public sections. */
body.site-public {
    margin: 0;
    min-height: 100vh;
    color: var(--vv-text);
    background:
        radial-gradient(circle at 78% 14%, rgba(52, 123, 255, .22), transparent 27%),
        radial-gradient(circle at 18% 74%, rgba(0, 222, 255, .1), transparent 24%),
        radial-gradient(circle at 90% 88%, rgba(139, 108, 255, .1), transparent 28%),
        linear-gradient(145deg, #030713 0%, var(--vv-bg) 52%, #071a39 100%);
    font-family: var(--vv-font);
    line-height: 1.55;
    overflow-x: hidden;
}
body.site-public::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: .3;
    pointer-events: none;
    background-image: linear-gradient(var(--vv-line) 1px, transparent 1px), linear-gradient(90deg, var(--vv-line) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 76%);
    mask-image: linear-gradient(to bottom, #000, transparent 76%);
}
body.site-public::after {
    content: "";
    position: fixed;
    inset: -20%;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(closest-side at 30% 30%, rgba(53, 232, 255, .16), transparent),
        radial-gradient(closest-side at 70% 60%, rgba(139, 108, 255, .16), transparent),
        radial-gradient(closest-side at 50% 90%, rgba(52, 123, 255, .14), transparent);
    filter: blur(40px);
}
html:has(body.site-public) { scroll-behavior: smooth; scroll-padding-top: 96px; }
.site-public a { text-decoration: none; }
.site-public .shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 8px; color: #02101d; background: var(--vv-cyan); font-weight: 900; }
.skip-link:focus { top: 12px; color: #02101d; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; transition: padding .3s ease; }
.site-header .site-bar { border: 1px solid transparent; border-radius: 22px; transition: min-height .3s ease, padding .3s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease; }
/* Once scrolled the bar detaches into a floating glass capsule. */
.site-header.is-scrolled { padding-top: 10px; }
.site-header.is-scrolled .site-bar { min-height: 64px; padding: 0 12px 0 10px; border-color: var(--vv-line); background: rgba(6, 13, 32, .62); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); box-shadow: 0 18px 50px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05); }
.site-header.is-scrolled .site-logo { width: 42px; height: 42px; flex-basis: 42px; }
.site-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.site-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--vv-text); font-size: 1.1rem; font-weight: 900; letter-spacing: -.04em; }
.site-brand:hover, .site-brand:focus-visible { color: var(--vv-text); }
.site-logo { width: 52px; height: 52px; flex: 0 0 52px; object-fit: contain; filter: drop-shadow(0 0 14px rgba(53, 232, 255, .55)); transition: transform .4s ease; }
.site-brand:hover .site-logo { transform: rotate(-12deg) scale(1.06); }
.site-nav { display: flex; align-items: center; gap: 24px; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.site-link { position: relative; color: var(--vv-muted); transition: color .2s ease; }
.site-link:not(.site-pill)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--vv-cyan); box-shadow: 0 0 10px var(--vv-cyan); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.site-link:hover, .site-link:focus-visible, .site-link[aria-current="page"] { color: var(--vv-cyan); }
.site-link:hover::after, .site-link:focus-visible::after, .site-link[aria-current="page"]::after { transform: scaleX(1); }
.site-pill { padding: 9px 16px; border: 1px solid var(--vv-line); border-radius: 99px; color: var(--vv-text); background: rgba(53, 232, 255, .06); }
.site-pill:hover { border-color: var(--vv-cyan); box-shadow: 0 0 18px rgba(53, 232, 255, .25); }
.site-pill:last-child { border-color: transparent; color: #02101d; background: linear-gradient(110deg, #8ef7ff, var(--vv-cyan) 45%, #6aa8ff); box-shadow: 0 0 22px rgba(53, 232, 255, .3); }
.site-pill:last-child:hover, .site-pill:last-child:focus-visible { color: #02101d; box-shadow: 0 0 32px rgba(53, 232, 255, .55); transform: translateY(-1px); }
.site-toggle { display: none; width: 44px; height: 44px; padding: 11px 10px; flex-direction: column; justify-content: space-between; border: 1px solid var(--vv-line); border-radius: 12px; background: rgba(11, 22, 48, .8); cursor: pointer; }
.site-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--vv-text); transition: transform .25s ease, opacity .25s ease; }
.site-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Pointer spotlight: js/site.js tags cards with data-spot and feeds the cursor position into --mx/--my. */
.site-public [data-spot] { position: relative; }
.site-public [data-spot]::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(53, 232, 255, .13), transparent 42%); transition: opacity .3s ease; }
.site-public [data-spot]:hover::after { opacity: 1; }

/* Footer */
.site-public .site-footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; margin-top: 24px; padding: 28px 0 42px; border-top: 1px solid var(--vv-line); color: var(--vv-muted); font-size: .76rem; }
.site-public .site-footer strong { color: var(--vv-cyan); text-shadow: 0 0 14px rgba(53, 232, 255, .45); }
.site-public .site-footer nav { display: flex; justify-content: flex-end; gap: 20px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.site-public .site-footer nav a { color: var(--vv-cyan); }
.site-public .site-footer nav a:hover { color: var(--vv-text); text-shadow: 0 0 14px rgba(53, 232, 255, .65); }

@media (max-width: 860px) {
    .site-toggle { display: flex; }
    .site-header, .site-header.is-scrolled { padding-top: 0; border-bottom: 1px solid var(--vv-line); background: rgba(5, 11, 29, .8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
    .site-header .site-bar, .site-header.is-scrolled .site-bar { min-height: 72px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; border-bottom: 1px solid var(--vv-line); background: #050b1d; box-shadow: 0 24px 40px rgba(3, 7, 19, .6); }
    .site-nav.is-open { display: flex; }
    .site-link { padding: 14px 0; border-bottom: 1px solid var(--vv-line); font-size: .85rem; }
    .site-link:not(.site-pill)::after { display: none; }
    .site-pill { margin-top: 12px; padding: 12px 16px; text-align: center; }
}
@media (max-width: 760px) {
    .site-public .shell { width: min(100% - 32px, 560px); }
    .site-bar { min-height: 72px; }
    .site-logo { width: 44px; height: 44px; flex-basis: 44px; }
    .site-nav { padding: 8px 16px 20px; }
    .site-public .site-footer { display: block; }
    .site-public .site-footer span, .site-public .site-footer nav { display: block; margin-top: 10px; }
    .site-public .site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
    body.site-public::after { animation: vv-aurora 28s ease-in-out infinite alternate; }
    @keyframes vv-aurora { 0% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(4%, -3%, 0) rotate(8deg); } 100% { transform: translate3d(-4%, 3%, 0) rotate(-6deg); } }
}
@media (prefers-reduced-motion: reduce) {
    html:has(body.site-public) { scroll-behavior: auto; }
    .site-public *, .site-public *::before, .site-public *::after { animation: none !important; transition-duration: .01ms !important; }
}
