:root {
    --context-cyan: #25cbed;
    --context-cyan-bright: #55dcf5;
    --context-ink: #06111e;
    --context-text: #f5fbff;
    --context-muted: #91a8b8;
}

.context-page,
.context-page * {
    box-sizing: border-box;
}

.context-page {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 100svh;
    width: 100%;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 102px clamp(28px, 5vw, 80px) 24px;
    color: var(--context-text);
    background: var(--context-ink) url("/images/backgrounds/nexus-background.png") center / cover no-repeat;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.context-page::before {
    position: absolute;
    z-index: -2;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(2, 9, 17, .94), rgba(4, 16, 29, .77) 50%, rgba(3, 11, 20, .9)),
        linear-gradient(180deg, rgba(3, 12, 22, .18), rgba(3, 10, 18, .86));
}

.context-page::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    opacity: .15;
    background-image:
        linear-gradient(rgba(69, 193, 221, .09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(69, 193, 221, .09) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(circle at center, black, transparent 72%);
    pointer-events: none;
}

.context-page__glow {
    position: absolute;
    z-index: -1;
    top: 18%;
    left: 50%;
    width: min(900px, 75vw);
    height: 520px;
    border-radius: 50%;
    background: rgba(23, 187, 225, .12);
    filter: blur(140px);
    transform: translateX(-50%);
    pointer-events: none;
}

.context-topbar {
    position: absolute;
    top: 22px;
    right: clamp(28px, 5vw, 80px);
    left: clamp(28px, 5vw, 80px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.context-topbar__brand {
    display: block;
    width: 244px;
    height: 72px;
    text-decoration: none;
}

.context-topbar__brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 0 10px rgba(37, 203, 237, .4));
}



.context-content {
    display: flex;
    width: min(1160px, 100%);
    min-height: 0;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-self: center;
}

.context-heading {
    margin-bottom: 34px;
    text-align: center;
}

.context-heading__eyebrow {
    margin: 0 0 10px;
    color: var(--context-cyan);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .25em;
}

.context-heading h1 {
    margin: 0;
    color: #f7fcff;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 400;
    letter-spacing: -.035em;
}

.context-heading > p:last-child {
    margin: 11px 0 0;
    color: var(--context-muted);
    font-size: 14px;
}

.context-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 340px);
    justify-content: center;
    gap: 24px;
    width: 100%;
}

.context-card {
    position: relative;
    display: flex;
    flex: 0 1 340px;
    min-height: 330px;
    width: 100%;
    overflow: hidden;
    flex-direction: column;
    padding: 30px;
    border: 1px solid rgba(131, 195, 215, .2);
    border-radius: 20px;
    background:
        radial-gradient(circle at 12% 0, rgba(37, 203, 237, .09), transparent 34%),
        linear-gradient(150deg, rgba(13, 38, 53, .9), rgba(7, 21, 34, .94));
    box-shadow: 0 24px 65px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .035);
    backdrop-filter: blur(22px);
    transition: border-color .2s, transform .2s, box-shadow .2s;
}

.context-card--current {
    border-color: rgba(37, 203, 237, .5);
    box-shadow: 0 24px 65px rgba(0, 0, 0, .34), 0 0 28px rgba(37, 203, 237, .07);
}

.context-card:hover {
    border-color: rgba(37, 203, 237, .45);
    box-shadow: 0 28px 72px rgba(0, 0, 0, .42), 0 0 32px rgba(37, 203, 237, .06);
    transform: translateY(-2px);
}

.context-card__topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.context-card__logo {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(126, 192, 212, .18);
    border-radius: 14px;
    background: rgba(3, 15, 25, .52);
}

.context-card__logo img {
    width: 76%;
    height: 76%;
    object-fit: contain;
}

.context-card__status {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid rgba(50, 211, 167, .2);
    border-radius: 999px;
    color: #7fdbc1;
    background: rgba(25, 130, 102, .1);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.context-card__status i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #4bdbb2;
    box-shadow: 0 0 7px #4bdbb2;
}

.context-card__body {
    margin-top: 22px;
}

.context-card__type {
    color: var(--context-cyan);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.context-card__body h2 {
    margin: 6px 0 8px;
    color: #f5fbff;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -.025em;
}

.context-card__body p {
    min-height: 42px;
    margin: 0;
    color: #8fa6b6;
    font-size: 12px;
    line-height: 1.55;
}

.context-card__summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 22px 0;
    padding: 16px 0;
    border-top: 1px solid rgba(128, 173, 193, .12);
    border-bottom: 1px solid rgba(128, 173, 193, .12);
}

.context-card__summary div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.context-card__summary span {
    color: #627b8d;
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.context-card__summary strong {
    color: #c8d9e2;
    font-size: 11px;
    font-weight: 600;
}

.context-card__enter {
    display: flex;
    width: 100%;
    height: 45px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
    border: 0;
    border-radius: 9px;
    color: #03202b;
    background: linear-gradient(105deg, #20badd, #46d8f2);
    box-shadow: 0 10px 24px rgba(22, 182, 218, .15);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter .2s, box-shadow .2s, transform .2s;
}

.context-card--add {
    justify-content: flex-start;
    border-style: dashed;
    background: linear-gradient(150deg, rgba(12, 34, 48, .72), rgba(6, 19, 31, .82));
}

.context-card__add-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(37, 203, 237, .34);
    border-radius: 14px;
    color: var(--context-cyan);
    background: rgba(37, 203, 237, .07);
}

.context-card__add-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.6;
}

.context-card__enter--secondary {
    border: 1px solid rgba(37, 203, 237, .55);
    color: var(--context-cyan);
    background: rgba(37, 203, 237, .05);
    box-shadow: none;
}

.context-card__enter--secondary:hover {
    color: #03202b;
    background: var(--context-cyan);
}

.context-card__enter:hover {
    filter: brightness(1.06);
    box-shadow: 0 13px 30px rgba(28, 199, 237, .26);
    transform: translateY(-1px);
}

.context-card__enter svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.context-footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1160px, 100%);
    margin: 32px auto 0;
    color: #668093;
    font-size: 11px;
}

.context-footer nav {
    display: flex;
    gap: 25px;
}

.context-footer a {
    color: #8299a8;
    text-decoration: none;
}

.context-footer a:hover {
    color: var(--context-cyan-bright);
    text-decoration: underline;
}


@media (max-width: 760px) {
    .context-page {
        overflow: auto;
        padding: 96px 20px 24px;
    }

    .context-topbar {
        top: 17px;
        right: 20px;
        left: 20px;
    }

    .context-topbar__brand {
        width: 174px;
        height: 58px;
    }

    .context-content {
        display: block;
    }

    .context-heading {
        margin: 22px 0 28px;
    }

    .context-heading h1 {
        font-size: 34px;
    }

    .context-grid {
        grid-template-columns: minmax(0, 340px);
        max-width: 520px;
        margin: 0 auto;
    }

    .context-card {
        min-height: 320px;
    }

    .context-footer {
        flex-direction: column;
        gap: 8px;
        margin-top: 28px;
    }
}

@media (max-width: 430px) {
    .context-page {
        padding-right: 14px;
        padding-left: 14px;
    }

    .context-topbar {
        right: 16px;
        left: 16px;
    }

    .context-topbar__brand {
        width: 142px;
    }


    .context-heading h1 {
        font-size: 30px;
    }

    .context-card {
        padding: 25px;
        border-radius: 17px;
    }

    .context-card__enter { min-height: 46px; height: auto; }
}

@media (max-height: 760px) and (min-width: 761px) {
    .context-page {
        padding-top: 82px;
        padding-bottom: 52px;
    }

    .context-heading {
        margin-bottom: 22px;
    }

    .context-heading h1 {
        font-size: 38px;
    }

    .context-card {
        min-height: 300px;
        padding: 24px;
    }

    .context-card__body {
        margin-top: 15px;
    }

    .context-card__summary {
        margin: 15px 0;
        padding: 12px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .context-card,
    .context-card__enter {
        transition: none;
    }
}
