:root {
    --bg: #000000;
    --surface: #060607;
    --surface-2: #0b0b0d;
    --surface-3: #111114;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.18);
    --txt-1: #f4f4f5;
    --txt-2: #9d9da6;
    --txt-3: #64646d;
    --good: #4ade80;
    --warn: #facc15;
    --risk: #fb7185;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
    --sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shell-w: 1160px;
    --pad: clamp(20px, 4.5vw, 56px);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    color-scheme: dark;
    scroll-behavior: auto;
    scroll-padding-top: 96px;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: #000;
    color: var(--txt-1);
    font-family: var(--sans);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

#stars {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 28% at 50% -6%, rgba(255, 255, 255, 0.05), transparent 70%),
        radial-gradient(ellipse 55% 32% at 50% 112%, rgba(255, 255, 255, 0.03), transparent 70%);
}

.bg-vignette {
    position: fixed;
    inset: 0;
    z-index: 94;
    pointer-events: none;
    background: radial-gradient(ellipse 130% 100% at 50% 35%, transparent 62%, rgba(0, 0, 0, 0.42) 100%);
}

.scroll-fade-bottom,
.scroll-fade-top {
    position: fixed;
    right: 0;
    left: 0;
    z-index: 70;
    height: clamp(140px, 22vw, 220px);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.scroll-fade-top {
    top: 0;
    opacity: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.97) 0%, rgba(0, 0, 0, 0.82) 28%, rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0.15) 82%, transparent 100%);
}

.scroll-fade-bottom {
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.97) 0%, rgba(0, 0, 0, 0.82) 28%, rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0.15) 82%, transparent 100%);
}

::selection {
    background: #fff;
    color: #000;
}

:focus-visible {
    outline: 1.5px solid rgba(255, 255, 255, 0.72);
    outline-offset: 3px;
}

a {
    color: inherit;
}

img,
svg {
    display: block;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 200;
    padding: 10px 14px;
    transform: translateY(-160%);
    border-radius: 8px;
    background: #fff;
    color: #000;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 80;
    isolation: isolate;
    padding: 8px 12px 0;
    background: transparent;
    transform: translateZ(0);
}

.nav-shell {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: var(--shell-w);
    height: 58px;
    margin-inline: auto;
    padding: 0 clamp(14px, 2vw, 20px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    background: rgba(8, 8, 10, 0.18);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(3px) saturate(120%);
    -webkit-backdrop-filter: blur(3px) saturate(120%);
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 9px;
    color: var(--txt-1);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.nav-brand img {
    width: 48px;
    height: 48px;
    border-radius: 7px;
}

.nav-links {
    position: absolute;
    left: 50%;
    display: none;
    align-items: center;
    padding: 3px;
    gap: 2px;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 11px;
    background: rgba(0, 0, 0, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 8px 24px rgba(0, 0, 0, 0.18);
}

.nav-links a {
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--txt-3);
    font-size: 13.5px;
    font-weight: 550;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    border-color: rgba(255, 255, 255, 0.095);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.052));
    color: #fff;
}

.nav-links a:hover {
    transform: translateY(-1px);
}

.nav-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 10px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 18px;
    gap: 9px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button-solid {
    border-color: rgba(255, 255, 255, 0.72);
    background: linear-gradient(180deg, #fff, #d8d8dc);
    box-shadow: inset 0 1px 0 #fff, 0 5px 18px rgba(0, 0, 0, 0.42);
    color: #050506;
}

.button-line {
    background: rgba(255, 255, 255, 0.025);
    color: var(--txt-1);
}

.button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.nav-download {
    display: none;
}

.nav-download svg {
    width: 16px;
    height: 16px;
}

@media (min-width: 960px) {
    .nav-download {
        min-height: 0;
        padding: 8px 18px;
        border-radius: 8px;
        font-size: 14px;
    }
}

.nav-burger {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--txt-1);
    cursor: pointer;
}

.nav-burger svg {
    width: 18px;
    height: 18px;
}

.mobile-nav {
    display: none;
    position: relative;
    z-index: 1;
    width: calc(100% - 24px);
    max-width: var(--shell-w);
    margin: 8px auto 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    background: rgba(8, 8, 10, 0.42);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(3px) saturate(120%);
    -webkit-backdrop-filter: blur(3px) saturate(120%);
}

.mobile-nav.open {
    display: block;
    animation: menu-in 0.22s var(--ease) both;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    color: var(--txt-2);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.005em;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: rgba(255, 255, 255, 0.045);
    color: #fff;
}

.mobile-nav a:hover {
    padding-left: 19px;
}

@keyframes menu-in {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(100%, var(--shell-w));
    min-height: calc(100vh - 260px);
    margin-inline: auto;
    padding: clamp(30px, 4vw, 54px) var(--pad) 96px;
    border-inline: 1px solid var(--line);
    background: #000;
}

.hero {
    position: relative;
    padding: clamp(16px, 2.8vw, 34px) 0 clamp(46px, 7vw, 82px);
    background: #000;
}

.hero::after {
    position: absolute;
    right: calc(-1 * var(--pad));
    bottom: -1px;
    left: calc(-1 * var(--pad));
    height: 1px;
    background: var(--line);
    content: '';
}

.hero h1 {
    max-width: 900px;
    margin-bottom: 22px;
    background: linear-gradient(180deg, #fff 0%, #ececef 55%, #8e8e98 100%);
    background-clip: text;
    color: transparent;
    font-size: clamp(2.65rem, 6vw, 5.4rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 0.98;
    text-wrap: balance;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    max-width: 760px;
    color: var(--txt-2);
    font-size: clamp(1.02rem, 1.7vw, 1.24rem);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    margin-top: 30px;
    gap: 10px;
}

.section {
    padding: clamp(50px, 7vw, 88px) 0;
    border-bottom: 1px solid var(--line);
}

.section:last-child {
    border-bottom: 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 30px;
}

.section-heading h2,
.doc-content h2 {
    color: var(--txt-1);
    font-size: clamp(1.75rem, 3.3vw, 2.8rem);
    font-weight: 720;
    letter-spacing: -0.04em;
    line-height: 1.08;
    text-wrap: balance;
}

.section-heading p {
    margin-top: 13px;
    color: var(--txt-2);
    font-size: 1rem;
    line-height: 1.75;
}

.library-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    overflow: visible;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--line);
}

.library-card {
    position: relative;
    display: flex;
    min-height: 250px;
    flex-direction: column;
    padding: clamp(28px, 3.4vw, 40px);
    overflow: hidden;
    background: radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.055), transparent 36%), #020203;
    color: inherit;
    text-decoration: none;
    transition: background 0.25s ease;
}

.library-card::after {
    position: absolute;
    right: -72px;
    bottom: -112px;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    box-shadow: 0 0 0 32px rgba(255, 255, 255, 0.016), 0 0 0 64px rgba(255, 255, 255, 0.008);
    content: '';
    transition: transform 0.4s var(--ease), border-color 0.25s ease;
}

.library-card:hover {
    background: radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.09), transparent 40%), #050506;
}

.library-card:hover::after {
    border-color: rgba(255, 255, 255, 0.16);
    transform: translate(-10px, -10px);
}

.library-card h3,
.library-card p,
.card-link {
    position: relative;
    z-index: 1;
}

.library-card h3 {
    margin-bottom: 10px;
    color: var(--txt-1);
    font-size: 1.06rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.library-card p {
    max-width: 32rem;
    color: var(--txt-2);
    font-size: 0.9rem;
    line-height: 1.65;
}

.card-link {
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    padding-top: 24px;
    gap: 8px;
    color: var(--txt-1);
    font-family: var(--sans);
    font-size: 1.06rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    text-transform: none;
}

.card-link svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    transition: transform 0.2s ease;
}

.library-card:hover .card-link svg {
    transform: translateX(4px);
}

.principles-grid,
.truth-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.principle,
.truth-item {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.018);
}

.principle b,
.truth-item b {
    display: block;
    margin-bottom: 8px;
    color: var(--txt-1);
    font-size: 0.98rem;
}

.principle p,
.truth-item p {
    color: var(--txt-2);
    font-size: 0.9rem;
    line-height: 1.65;
}

.document-layout {
    display: grid;
    align-items: start;
    grid-template-columns: 1fr;
    gap: clamp(38px, 6vw, 74px);
    padding-top: clamp(48px, 7vw, 80px);
}

.doc-sidebar {
    display: none;
}

.doc-sidebar-inner {
    width: 100%;
}

.link-sidebar-inner {
    margin-top: 28px;
}

.sidebar-label {
    display: block;
    margin-bottom: 9px;
    padding-left: 12px;
    color: var(--txt-1);
    font-family: var(--sans);
    font-size: 1.06rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    text-transform: none;
}

.sidebar-nav {
    display: grid;
    gap: 6px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: 8px;
    color: var(--txt-2);
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.075);
    color: #fff;
}

.doc-content {
    min-width: 0;
    max-width: 800px;
    padding-bottom: 84px;
}

.doc-content section {
    padding: 0 0 52px;
    margin-bottom: 52px;
}

.doc-content section:last-child {
    margin-bottom: 0;
}

.doc-content h2 {
    margin-bottom: 20px;
    font-size: clamp(1.55rem, 2.5vw, 2.15rem);
}

.doc-content h3 {
    margin: 30px 0 12px;
    color: var(--txt-1);
    font-size: 1.04rem;
    font-weight: 650;
    letter-spacing: -0.015em;
}

.doc-content p {
    margin-bottom: 17px;
    color: var(--txt-2);
    font-size: 0.98rem;
    line-height: 1.78;
}

.doc-content p:last-child {
    margin-bottom: 0;
}

.doc-content strong {
    color: var(--txt-1);
    font-weight: 650;
}

.doc-content ul,
.doc-content ol {
    display: grid;
    margin: 18px 0 22px 1.1rem;
    gap: 11px;
    color: var(--txt-2);
}

.doc-content li {
    padding-left: 4px;
    font-size: 0.96rem;
    line-height: 1.7;
}

.doc-content li::marker {
    color: #fff;
    opacity: 1;
}

.callout {
    position: relative;
    margin: 26px 0;
    padding: 22px;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.045), transparent 72%);
}

.callout b {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-size: 0.92rem;
}

.callout p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.65;
}

.comparison {
    display: grid;
    grid-template-columns: 1fr;
    margin: 26px 0;
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--line);
}

.comparison > div {
    padding: 24px;
    background: #050506;
}

.comparison h3 {
    margin: 0 0 9px;
}

.comparison p {
    margin: 0;
    font-size: 0.9rem;
}

.data-table {
    width: 100%;
    margin: 26px 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 13px;
    font-size: 0.9rem;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.data-table th:last-child,
.data-table td:last-child {
    border-right: 0;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.data-table th {
    background: rgba(255, 255, 255, 0.045);
    color: var(--txt-1);
    font-family: var(--sans);
    font-size: 1.06rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    text-transform: none;
}

.data-table td {
    background: rgba(255, 255, 255, 0.012);
    color: var(--txt-2);
    line-height: 1.58;
}

.code-line {
    display: block;
    margin: 20px 0;
    padding: 15px 17px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #050506;
    color: #d8d8dc;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.55;
    white-space: nowrap;
}

.site-footer {
    position: relative;
    z-index: 1;
    background: #000;
    border-top: 1px solid var(--line);
}

.footer-shell {
    width: min(100%, var(--shell-w));
    margin-inline: auto;
    padding: 0;
}

.footer-grid {
    display: grid;
    position: relative;
    z-index: 2;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--line);
}

.footer-brand {
    max-width: none;
}

.footer-grid > * {
    padding: clamp(28px, 3.2vw, 42px) var(--pad);
    background: var(--bg);
}

.footer-brand a {
    display: inline-flex;
    align-items: center;
    margin-bottom: 13px;
    gap: 10px;
    color: var(--txt-1);
    font-weight: 650;
    text-decoration: none;
}

.footer-brand img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
}

.footer-brand p {
    color: var(--txt-3);
    max-width: 22rem;
    font-size: 0.85rem;
}

.footer-brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--txt-1);
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-brand-mark:hover {
    color: #fff;
}

.footer-brand .footer-brand-mark img {
    width: 48px;
    height: 48px;
    margin: 0;
    border-radius: 7px;
    flex-shrink: 0;
}

.footer-brand-mark + p {
    margin-top: 16px;
}

.footer-col a {
    display: block;
    padding: 5.5px 0;
    color: var(--txt-2);
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col a:hover {
    color: #fff;
    transform: translateX(3px);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 20px var(--pad);
    gap: 14px;
    border-top: 1px solid var(--line);
    color: var(--txt-3);
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-bottom .brand-name {
    color: #fff;
    font-family: var(--sans);
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
}

/* Landing-page navigation and footer chrome */
.nav {
    position: sticky;
    top: 0;
    z-index: 80;
    isolation: isolate;
    padding: 8px 12px 0;
    background: transparent;
    transform: translateZ(0);
}

.nav .nav-shell {
    z-index: 1;
    gap: 16px;
    border-color: rgba(255, 255, 255, 0.06);
    outline: 0;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

.nav.at-top .nav-shell {
    background: rgba(8, 8, 10, 0.08);
    box-shadow: 0 9px 26px rgba(0, 0, 0, 0.26);
}

.nav-meta,
.nav-meta-start {
    display: contents;
}

.nav-meta-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 9px;
    color: var(--txt-1);
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-meta-brand:hover {
    color: #fff;
}

.nav-meta-brand img {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 7px;
}

.nav-pill-group {
    display: none;
    position: absolute;
    left: 50%;
    align-items: center;
    gap: 2px;
    padding: 3px;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 11px;
    background: rgba(0, 0, 0, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 8px 24px rgba(0, 0, 0, 0.18);
}

.nav-pill-group a {
    position: relative;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--txt-3);
    font-family: var(--sans);
    font-size: 13.5px;
    font-weight: 550;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-pill-group a:hover {
    border-color: rgba(255, 255, 255, 0.055);
    background: rgba(255, 255, 255, 0.045);
    color: var(--txt-1);
    transform: translateY(-1px);
}

.nav-pill-group a.active {
    border-color: rgba(255, 255, 255, 0.095);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.105) 0%, rgba(255, 255, 255, 0.052) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 5px 14px rgba(0, 0, 0, 0.18);
    color: #fff;
}

.nav-social,
.nav-social a,
.nav-social svg {
    display: none;
}

.nav-meta-end {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 10px;
    margin-left: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), filter 0.3s var(--ease);
    will-change: transform;
}

.btn svg {
    width: 16px;
    height: 16px;
}

.btn-solid {
    background: linear-gradient(180deg, #ffffff, #d6d6db);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 20px 2px rgba(255, 255, 255, 0.12);
    color: #000;
}

.btn-solid:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.16), 0 6px 22px rgba(0, 0, 0, 0.5), 0 0 30px 6px rgba(255, 255, 255, 0.16);
}

.btn-solid:active {
    transform: translateY(0) scale(0.99);
    filter: brightness(0.95);
    transition-duration: 0.08s;
}

.nav-cta {
    display: none;
}

.nav .nav-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    color: var(--txt-1);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav .nav-burger:hover,
.nav .nav-burger[aria-expanded="true"] {
    border-color: rgba(255, 255, 255, 0.19);
    background: rgba(255, 255, 255, 0.07);
}

.nav .nav-burger:active {
    transform: scale(0.96);
}

.nav-mobile {
    display: none;
    position: relative;
    z-index: 1;
    max-width: var(--shell-w);
    margin: 8px auto 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    outline: 0;
    border-radius: 14px;
    background: rgba(8, 8, 10, 0.42);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(3px) saturate(120%);
    -webkit-backdrop-filter: blur(3px) saturate(120%);
}

.nav-mobile.open {
    display: block;
    animation: nav-mobile-in 0.22s var(--ease) both;
}

@keyframes nav-mobile-in {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nav-mobile a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    color: var(--txt-2);
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.005em;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
}

.nav-mobile a:hover {
    padding-left: 19px;
    background: rgba(255, 255, 255, 0.045);
    color: #fff;
}

.nav-mobile a:last-child {
    border-bottom: 0;
    background: rgba(255, 255, 255, 0.025);
    color: var(--txt-1);
    font-weight: 650;
}

.site-footer .shell {
    position: relative;
    width: min(100%, var(--shell-w));
    margin-inline: auto;
    padding-top: 0;
    background: #000;
}

.site-footer .footer-brand img {
    width: 38px;
    height: 38px;
    margin-bottom: 16px;
    border-radius: 8px;
}

.site-footer .footer-col h4 {
    margin-bottom: 18px;
    color: var(--txt-3);
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    color: var(--txt-3);
    transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.socials a:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    transform: translateY(-2px);
}

.socials svg {
    width: 17px;
    height: 17px;
}

.footer-bottom .socials {
    margin: 0;
}

.footer-bottom .socials a {
    width: 34px;
    height: 34px;
    border-radius: 7px;
}

.footer-bottom .socials svg {
    width: 14px;
    height: 14px;
}

@media (min-width: 680px) {
    .principles-grid,
    .truth-grid,
    .comparison {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (min-width: 700px) {
    .library-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 860px) {
    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
    }
}

@media (min-width: 960px) {
    .nav-pill-group {
        display: flex;
    }

    .nav-cta {
        display: inline-flex;
        padding: 8px 18px;
        border-radius: 8px;
        font-size: 14px;
    }

    .nav .nav-burger {
        display: none;
    }

    .nav-links,
    .nav-download {
        display: flex;
    }

    .nav-burger {
        display: none;
    }

    .document-layout {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .document-layout.has-sidebar {
        align-items: stretch;
        grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
        gap: 0;
        margin-left: calc(-1 * var(--pad));
        margin-bottom: -96px;
        padding-top: 0;
        padding-bottom: 96px;
    }

    .document-layout.has-sidebar .doc-sidebar {
        display: block;
        position: relative;
        align-self: stretch;
        width: 100%;
        padding-right: clamp(26px, 3.8vw, 54px);
    }

    .document-layout.has-sidebar .doc-sidebar::after {
        position: absolute;
        top: -1px;
        right: 0;
        bottom: 0;
        width: 1px;
        background: var(--line);
        content: '';
    }

    .document-layout.has-sidebar .doc-sidebar-inner {
        position: sticky;
        top: 172px;
        transform: translateX(40px);
    }

    .document-layout.has-sidebar .doc-content {
        padding-left: clamp(28px, 4.6vw, 74px);
        padding-top: clamp(48px, 7vw, 80px);
    }
}

@media (min-width: 1040px) {
    .principles-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .page-shell,
    .footer-shell {
        border-inline: 0;
    }

    .page-shell {
        padding-top: 30px;
    }

    .hero h1 {
        font-size: clamp(2.35rem, 13vw, 3.5rem);
    }

    .data-table {
        display: block;
        overflow-x: auto;
        white-space: normal;
    }

}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
