:root {
    --site-bg: #0b1020;
    --site-surface: rgba(15, 23, 42, 0.94);
    --site-border: rgba(148, 163, 184, 0.28);
    --site-text: #e5eefc;
    --site-muted: #a9b8cf;
    --site-accent: #67e8f9;
    --site-accent-strong: #22d3ee;
    --site-radius: 1rem;
    --site-shadow: 0 1rem 2.5rem rgba(2, 6, 23, 0.28);
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
}

body > .container-fluid {
    padding-right: 0;
    padding-left: 0;
}

body > .container-fluid > .row,
section > .row {
    --bs-gutter-x: 0;
}

body > .container-fluid > .row > [class*="col-"],
section > .row > [class*="col-"] {
    min-width: 0;
}

img,
video,
iframe,
svg {
    max-width: 100%;
}

img,
video {
    height: auto;
}

table {
    max-width: 100%;
}

input,
select,
textarea,
button {
    max-width: 100%;
}

a {
    overflow-wrap: anywhere;
}

[data-include="header.html"],
[data-include="footer.html"] {
    width: 100%;
}

.site-chrome-row {
    width: 100%;
    margin: 0 !important;
    --bs-gutter-x: 0;
}

.site-chrome-row > [class*="col-"] {
    padding: 0 !important;
}

.site-header {
    position: relative;
    z-index: 1030;
    border-bottom: 1px solid var(--site-border);
    background: var(--site-surface);
    box-shadow: 0 0.5rem 1.5rem rgba(2, 6, 23, 0.2);
    color: var(--site-text);
    backdrop-filter: blur(16px);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.site-header .navbar {
    width: min(100% - 2rem, 1200px);
    min-height: 4.5rem;
    margin-inline: auto;
}

.site-brand {
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.site-brand:hover,
.site-brand:focus-visible {
    color: var(--site-accent);
}

.site-header .nav-link {
    position: relative;
    color: var(--site-muted);
    font-weight: 600;
    border-radius: 0.6rem;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus-visible,
.site-header .nav-link.active {
    color: #fff;
    background: rgba(103, 232, 249, 0.12);
}

.site-footer {
    margin-top: 3rem;
    padding: 1.5rem max(1rem, env(safe-area-inset-right)) calc(1.5rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--site-border);
    background: var(--site-surface);
    color: var(--site-muted);
    text-align: center;
    font-size: 0.9rem;
    backdrop-filter: blur(16px);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.site-footer p {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: center;
    text-decoration: none;
}

.scroll-to-top {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 1020;
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: #0f172a;
    color: #fff;
    box-shadow: var(--site-shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.75rem);
    transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.scroll-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-to-top:hover,
.scroll-to-top:focus-visible {
    background: #164e63;
}

.page-section {
    width: min(100% - 2rem, 1200px);
    margin-inline: auto;
}

@media (max-width: 767.98px) {
    .site-header .navbar {
        width: calc(100% - 1rem);
    }

    .site-header .navbar-nav {
        gap: 0.25rem;
        padding: 0.75rem 0 0.25rem;
    }

    .site-header .nav-link {
        padding: 0.65rem 0.8rem;
    }

    h1,
    .display-1,
    .display-2,
    .display-3,
    .display-4 {
        overflow-wrap: anywhere;
    }

    .page-section {
        width: min(100% - 1.25rem, 1200px);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
