:root {
    color-scheme: dark;
    --navy-950: #020b1b;
    --navy-900: #06142c;
    --navy-800: #0d2b5e;
    --blue-600: #1e5cff;
    --blue-500: #3e7dff;
    --blue-300: #8db9ff;
    --ice: #e8f1ff;
    --muted: #9fb1cc;
    --line: rgba(157, 187, 231, 0.17);
    --panel: rgba(7, 22, 48, 0.72);
    --public-shell-max: 1280px;
    --public-shell-gutter: 1.5rem;
    --public-shell-mobile-gutter: 1rem;
    --public-shell-header-compact-gutter: 1.25rem;
    --public-shell-header-gutter: max(var(--public-shell-gutter), calc((100% - var(--public-shell-max)) / 2));
    font-family: Inter, Manrope, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--navy-950); scrollbar-gutter: stable; }

body {
    min-height: 100vh;
    margin: 0;
    color: #f8fbff;
    background:
        radial-gradient(circle at 70% 8%, rgba(22, 83, 190, 0.24), transparent 29rem),
        linear-gradient(135deg, #020a18 0%, #06152f 48%, #071a3a 100%);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.page-shell {
    position: relative;
    display: flex;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: clip;
    flex-direction: column;
    isolation: isolate;
}

.public-shell-container {
    width: min(calc(100% - 2 * var(--public-shell-gutter)), var(--public-shell-max));
    margin-inline: auto;
}

.public-shell-header {
    width: 100%;
    padding-inline: var(--public-shell-header-gutter);
}

.page-shell::before {
    position: absolute;
    z-index: -2;
    inset: 0;
    background-image:
        linear-gradient(rgba(95, 143, 211, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(95, 143, 211, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
    content: "";
}

.ambient {
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(2px);
}

.ambient--one {
    top: 18%;
    right: 4%;
    width: 28rem;
    height: 28rem;
    border: 1px solid rgba(80, 143, 255, 0.1);
    box-shadow: inset 0 0 8rem rgba(30, 92, 255, 0.1), 0 0 11rem rgba(30, 92, 255, 0.09);
}

.ambient--two {
    bottom: -18rem;
    left: -12rem;
    width: 36rem;
    height: 36rem;
    background: rgba(21, 70, 150, 0.12);
    filter: blur(80px);
}

.site-header {
    display: flex;
    min-height: 6rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 0.8rem; color: #fff; text-decoration: none; }
.brand__logo { width: 2.65rem; height: 2.65rem; border-radius: 0.8rem; object-fit: contain; box-shadow: 0 10px 30px rgba(24, 92, 255, 0.24); }
.brand__name { font-size: 1.22rem; font-weight: 690; letter-spacing: -0.025em; }
.header-login { padding: 0.66rem 1.15rem; border: 1px solid rgba(170, 198, 239, 0.22); border-radius: 0.7rem; color: #fff; background: rgba(255, 255, 255, 0.035); font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease, transform 220ms ease; }
.header-login:hover { border-color: rgba(129, 174, 255, 0.48); background: rgba(255, 255, 255, 0.07); box-shadow: 0 10px 28px rgba(0, 8, 25, 0.2); transform: translateY(-1px); }

.site-footer { display: flex; min-height: 4.5rem; flex: 0 0 auto; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #6f829f; font-size: 0.75rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-footer a { text-decoration: none; transition: color 180ms ease; }
.site-footer a:hover { color: #c0d8ff; }
.site-footer p { margin: 0; }

@media (max-width: 820px) {
    .site-header { min-height: 5.5rem; }
    .public-shell-header { padding-inline: var(--public-shell-header-compact-gutter); }
}

@media (max-width: 520px) {
    .public-shell-container { width: calc(100% - 2 * var(--public-shell-mobile-gutter)); }
    .brand__logo { width: 2.35rem; height: 2.35rem; }
    .site-footer { padding: 1.5rem 0; align-items: flex-start; flex-direction: column; gap: 1rem; }
}

@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; }
}
