:root {
    --bg: #090d16;
    --surface: #f4f6fb;
    --surface-strong: #ffffff;
    --text: #111827;
    --text-soft: #4c5a72;
    --line: #d6deee;
    --primary: #0f5be8;
    --primary-strong: #0a43ab;
    --success: #11815d;
    --error: #d0394d;
    --warning: #c37719;
    --radius-sm: 1rem;
    --radius-md: 1.4rem;
    --radius-lg: 1.8rem;
    --radius-pill: 999px;
    --container: 1200px;
    --shadow-xs: 0 8px 18px rgba(9, 14, 28, 0.06);
    --shadow-sm: 0 16px 34px rgba(9, 17, 34, 0.1);
    --shadow-lg: 0 30px 70px rgba(9, 17, 34, 0.16);
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100%;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 7%, rgba(78, 132, 255, 0.16) 0%, rgba(78, 132, 255, 0) 28%),
        radial-gradient(circle at 90% 12%, rgba(202, 153, 90, 0.14) 0%, rgba(202, 153, 90, 0) 29%),
        radial-gradient(circle at 52% 75%, rgba(76, 118, 206, 0.08) 0%, rgba(76, 118, 206, 0) 40%),
        linear-gradient(180deg, #f7f9ff 0%, #edf1f9 54%, #e9eef8 100%);
    line-height: 1.58;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(15, 91, 232, 0.32);
    outline-offset: 3px;
}

img {
    display: block;
    max-width: 100%;
}

.site-shell {
    min-height: 100vh;
    position: relative;
    isolation: isolate;
}

.site-shell::before,
.site-shell::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.site-shell::before {
    z-index: -2;
    background:
        radial-gradient(circle at 20% 12%, rgba(99, 146, 255, 0.12) 0%, rgba(99, 146, 255, 0) 42%),
        radial-gradient(circle at 84% 8%, rgba(226, 175, 111, 0.12) 0%, rgba(226, 175, 111, 0) 38%),
        radial-gradient(circle at 50% 100%, rgba(71, 109, 186, 0.08) 0%, rgba(71, 109, 186, 0) 45%);
}

.site-shell::after {
    z-index: -1;
    opacity: 0.1;
    background-image: radial-gradient(rgba(19, 34, 61, 0.35) 0.5px, transparent 0.5px);
    background-size: 7px 7px;
    mix-blend-mode: soft-light;
}

.container {
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent;
    border-bottom: 0;
    transition: box-shadow 280ms var(--ease-premium), background 280ms var(--ease-premium), border-color 280ms var(--ease-premium);
    opacity: 0;
    transform: translateY(-10px);
    will-change: transform, opacity, backdrop-filter;
}

.topbar::before,
.topbar::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.topbar::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 48%);
    opacity: 0;
}

.topbar::after {
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(15, 91, 232, 0) 0%, rgba(15, 91, 232, 0.1) 18%, rgba(255, 255, 255, 0.3) 50%, rgba(211, 157, 83, 0.08) 82%, rgba(15, 91, 232, 0) 100%);
    opacity: 0;
}

.topbar.is-mounted {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 320ms var(--ease-premium),
        transform 320ms var(--ease-premium),
        box-shadow 260ms var(--ease-premium),
        background 260ms var(--ease-premium),
        border-color 260ms var(--ease-premium),
        backdrop-filter 260ms var(--ease-premium);
}

.topbar.is-scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.topbar-inner {
    min-height: 3.82rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.94rem;
    transition: min-height 260ms var(--ease-premium);
    position: relative;
    isolation: isolate;
    padding-inline: 0.82rem;
}

.topbar.is-scrolled .topbar-inner {
    min-height: 3.34rem;
}

.topbar-inner::before {
    content: "";
    position: absolute;
    inset: 0.08rem 0.08rem 0.18rem;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(247, 250, 255, 0.52) 100%);
    border: 1px solid rgba(151, 168, 196, 0.16);
    box-shadow:
        0 14px 28px rgba(12, 24, 44, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(24px) saturate(145%);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
    pointer-events: none;
    transition:
        inset 260ms var(--ease-premium),
        box-shadow 260ms var(--ease-premium),
        background 260ms var(--ease-premium),
        border-color 260ms var(--ease-premium);
}

.topbar-inner::after {
    content: "";
    position: absolute;
    inset: -0.7rem -1.4rem -0.85rem;
    border-radius: 999px;
    background:
        radial-gradient(circle at 16% 24%, rgba(93, 138, 242, 0.18) 0%, rgba(93, 138, 242, 0) 32%),
        radial-gradient(circle at 84% 20%, rgba(214, 160, 91, 0.14) 0%, rgba(214, 160, 91, 0) 30%),
        radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 42%);
    filter: blur(18px);
    opacity: 0.62;
    pointer-events: none;
    z-index: -1;
    transition: opacity 260ms var(--ease-premium), transform 260ms var(--ease-premium);
}

.topbar.is-scrolled .topbar-inner::before {
    inset: 0.02rem 0.04rem 0.1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(246, 249, 255, 0.72) 100%);
    border-color: rgba(146, 164, 193, 0.2);
    box-shadow:
        0 12px 22px rgba(12, 24, 44, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.topbar.is-scrolled .topbar-inner::after {
    opacity: 0.46;
    transform: translateY(-0.06rem) scale(0.985);
}

.topbar-inner > * {
    position: relative;
    z-index: 1;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.56rem;
    transition: transform 200ms var(--ease-premium);
}

.brand-logo {
    width: clamp(2.08rem, 4.6vw, 2.5rem);
    height: clamp(2.08rem, 4.6vw, 2.5rem);
    border-radius: 0.8rem;
    background: #fff;
    border: 1px solid rgba(13, 21, 40, 0.1);
    padding: 0.16rem;
    box-shadow: 0 8px 18px rgba(14, 24, 43, 0.08);
    transition: transform 220ms var(--ease-premium), box-shadow 220ms var(--ease-premium);
}

.brand:hover {
    transform: translateY(-1px);
}

.brand:hover .brand-logo {
    transform: translateY(-1px) rotate(-1deg);
    box-shadow: 0 12px 22px rgba(14, 24, 43, 0.12);
}

.brand-text {
    display: block;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: clamp(0.88rem, 2vw, 1rem);
    font-weight: 620;
    letter-spacing: -0.018em;
    color: #0f1b38;
}

.brand-tag {
    display: block;
    margin-top: 0.1rem;
    color: #68768f;
    font-size: 0.56rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 620;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 0.38rem;
}

.nav-link,
.mobile-link {
    font-size: 0.88rem;
    font-weight: 560;
    color: #42516c;
    border-radius: 0.75rem;
    transition: color 180ms var(--ease-premium), background 180ms var(--ease-premium), opacity 180ms var(--ease-premium), transform 180ms var(--ease-premium);
}

.nav-link {
    padding: 0.38rem 0.64rem;
    font-size: 0.78rem;
    letter-spacing: 0.004em;
    line-height: 1.25;
    opacity: 0.84;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0.72rem;
    right: 0.72rem;
    bottom: 0.24rem;
    height: 1.4px;
    background: linear-gradient(90deg, rgba(15, 91, 232, 0.66) 0%, rgba(115, 163, 255, 0.66) 100%);
    border-radius: 99px;
    opacity: 0;
    transform: scaleX(0.6);
    transform-origin: center;
    transition: opacity 200ms var(--ease-premium), transform 200ms var(--ease-premium);
}

.mobile-link {
    padding: 0.62rem 0.78rem;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: #13284c;
    background: rgba(15, 91, 232, 0.07);
    opacity: 1;
    transform: translateY(-1px);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.menu-toggle {
    width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    border: 1px solid rgba(112, 130, 158, 0.28);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 249, 255, 0.92) 100%);
    color: #30405b;
    cursor: pointer;
    transition: border-color 180ms var(--ease-premium), box-shadow 180ms var(--ease-premium), transform 180ms var(--ease-premium);
}

.menu-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(108, 130, 168, 0.46);
    box-shadow: 0 10px 18px rgba(15, 28, 54, 0.1);
}

.menu-toggle svg {
    width: 1.2rem;
    height: 1.2rem;
}

.mobile-menu {
    display: none;
    background: rgba(248, 251, 255, 0.94);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    border-top: 1px solid rgba(129, 147, 177, 0.18);
}

.mobile-menu.is-open {
    display: block;
}

.menu-wrap {
    padding: 0.76rem 0 1rem;
    display: grid;
    gap: 0.45rem;
}

.btn {
    border: 0;
    cursor: pointer;
    border-radius: 0.88rem;
    padding: 0.72rem 0.98rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 590;
    line-height: 1.2;
    letter-spacing: 0.006em;
    transition: transform 220ms var(--ease-premium), box-shadow 220ms var(--ease-premium), background 220ms var(--ease-premium), color 220ms var(--ease-premium), border-color 220ms var(--ease-premium), filter 220ms var(--ease-premium);
    will-change: transform, box-shadow;
}

.btn:hover {
    transform: translateY(-1.5px);
}

.btn:active {
    transform: translateY(0) scale(0.992);
}

.btn:focus-visible {
    box-shadow: 0 0 0 4px rgba(15, 91, 232, 0.14);
}

.btn:disabled {
    opacity: 0.68;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary {
    color: #fff;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 18%),
        linear-gradient(120deg, #0b4fcb 0%, #1065f4 52%, #2e7bff 100%);
    box-shadow:
        0 12px 28px rgba(15, 91, 232, 0.18),
        0 0 0 1px rgba(59, 127, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.btn-primary:hover {
    filter: saturate(106%) brightness(1.02);
    box-shadow:
        0 16px 34px rgba(15, 91, 232, 0.23),
        0 0 22px rgba(66, 131, 255, 0.16),
        0 0 0 1px rgba(59, 127, 255, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-secondary {
    color: #17304f;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(247, 250, 255, 0.88) 100%);
    border: 1px solid rgba(95, 116, 148, 0.26);
    box-shadow:
        0 10px 22px rgba(15, 26, 48, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.btn-secondary:hover {
    border-color: rgba(15, 91, 232, 0.3);
    box-shadow:
        0 14px 24px rgba(15, 26, 48, 0.1),
        0 0 0 1px rgba(59, 127, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.btn-ghost {
    color: #f8fbff;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.06) 100%);
    border: 1px solid rgba(242, 247, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-ghost:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.11) 100%);
    box-shadow:
        0 12px 22px rgba(7, 14, 27, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn-block {
    width: 100%;
}

.topbar .nav-links .btn {
    border-radius: 0.76rem;
    padding: 0.5rem 0.82rem;
    font-size: 0.78rem;
    letter-spacing: 0.012em;
}

.topbar-cta {
    font-weight: 560 !important;
    letter-spacing: 0.007em;
    line-height: 1.2;
    padding: 0.5rem 0.84rem !important;
    border-radius: 0.74rem !important;
    box-shadow:
        0 10px 20px rgba(15, 91, 232, 0.14),
        0 0 0 1px rgba(59, 127, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.topbar-cta:hover {
    box-shadow:
        0 14px 26px rgba(15, 91, 232, 0.18),
        0 0 18px rgba(66, 131, 255, 0.12),
        0 0 0 1px rgba(59, 127, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.topbar-cta-mobile {
    font-weight: 560 !important;
    letter-spacing: 0.008em;
    line-height: 1.2;
    padding-block: 0.68rem;
}

.site-footer {
    padding: 2.2rem 0;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(241, 245, 252, 0.98) 100%);
    border-top: 1px solid rgba(154, 170, 196, 0.24);
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
    text-align: center;
}

.footer-brand-block {
    display: grid;
    gap: 0.65rem;
    justify-items: center;
}

.footer-summary {
    margin: 0;
    max-width: 31rem;
    color: #63748f;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.95rem;
    color: #52637f;
    font-size: 0.85rem;
    font-weight: 620;
}

.footer-links a:hover {
    color: #173d84;
}

.footer-copy {
    color: #6d7d98;
    font-size: 0.8rem;
    margin: 0;
}

.status-main {
    min-height: calc(100vh - 8rem);
    display: grid;
    place-items: center;
    padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.status-card {
    width: min(100%, 560px);
    border-radius: var(--radius-lg);
    padding: clamp(1.4rem, 4vw, 2rem);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.status-icon {
    width: 4.45rem;
    height: 4.45rem;
    border-radius: 1.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.status-icon svg {
    width: 2.2rem;
    height: 2.2rem;
}

.status-success .status-icon {
    background: rgba(17, 129, 93, 0.12);
    color: var(--success);
}

.status-error .status-icon {
    background: rgba(208, 57, 77, 0.13);
    color: var(--error);
}

.status-warning .status-icon {
    background: rgba(195, 119, 25, 0.14);
    color: var(--warning);
}

.status-title {
    margin: 0;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: clamp(1.5rem, 4.4vw, 2rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.status-description {
    margin: 0.8rem 0 0;
    color: #4d5f7b;
    font-size: 0.98rem;
}

.meta-block {
    margin-top: 1.15rem;
    padding: 0.92rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(143, 159, 186, 0.36);
    background: #f7f9fe;
}

.meta-item + .meta-item {
    margin-top: 0.7rem;
}

.meta-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #677792;
    font-weight: 620;
}

.meta-value {
    margin: 0.3rem 0 0;
    color: #192d4d;
    font-size: 0.88rem;
    font-weight: 700;
    word-break: break-word;
}

.status-actions {
    margin-top: 1.2rem;
    display: grid;
    gap: 0.68rem;
}

.legal-main {
    padding: clamp(2.2rem, 5vw, 4.5rem) 0;
}

.legal-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: clamp(1.25rem, 3.8vw, 2.3rem);
}

.legal-title {
    margin: 0;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: clamp(1.7rem, 4.3vw, 2.35rem);
    letter-spacing: -0.03em;
}

.legal-intro {
    margin: 0.9rem 0 0;
    color: #4b5d79;
    font-size: 0.95rem;
}

.legal-content h2 {
    margin: 1.35rem 0 0.55rem;
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: #132647;
}

.legal-content p,
.legal-content li {
    margin: 0;
    color: #3d4f69;
    font-size: 0.93rem;
}

.legal-content p + p {
    margin-top: 0.68rem;
}

.legal-content ul {
    margin: 0.6rem 0 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.45rem;
}

.reveal {
    opacity: 0;
    transform: translateY(14px) scale(0.992);
    filter: blur(3px);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    transition:
        opacity 420ms var(--ease-premium) var(--reveal-delay, 0ms),
        transform 420ms var(--ease-premium) var(--reveal-delay, 0ms),
        filter 420ms var(--ease-premium) var(--reveal-delay, 0ms);
}

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

@media (min-width: 768px) {
    .container {
        width: min(100% - 4rem, var(--container));
    }

    .nav-links {
        display: flex;
    }

    .menu-toggle,
    .mobile-menu {
        display: none !important;
    }

    .topbar.is-scrolled .brand-logo {
        width: clamp(1.95rem, 4vw, 2.34rem);
        height: clamp(1.95rem, 4vw, 2.34rem);
        box-shadow: 0 6px 14px rgba(11, 22, 40, 0.07);
    }

    .footer-grid {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        align-items: center;
    }

    .footer-brand-block {
        justify-items: start;
    }
}

@media (min-width: 1280px) {
    .container {
        width: min(100% - 6rem, var(--container));
    }
}

@media (min-width: 1660px) {
    :root {
        --container: 1420px;
    }
}

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