@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
    --page-bg: #080a0d;
    --surface: #11151b;
    --surface-raised: #151a22;
    --surface-soft: rgba(255, 255, 255, 0.045);
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #f7f7fa;
    --text-muted: #aab0bd;
    --text-subtle: #7e8696;
    --brand: #7867ff;
    --brand-bright: #9b8cff;
    --brand-blue: #4b71ff;
    --brand-glow: rgba(120, 103, 255, 0.28);
    --chrome-bg: #080d10;
    --chrome-border: rgba(255, 255, 255, 0.07);
}


:root[data-theme="dark"] {
    color-scheme: dark;
}

:root[data-theme="light"] {
    color-scheme: light;
    --page-bg: #f4f7f8;
    --surface: #ffffff;
    --surface-raised: #ffffff;
    --surface-soft: rgba(255, 255, 255, 0.78);
    --border: rgba(21, 42, 52, 0.14);
    --border-strong: rgba(21, 42, 52, 0.2);
    --text: #12212a;
    --text-muted: #566773;
    --text-subtle: #71808a;
}

html {
    background: var(--page-bg);
}

body,
.header,
.server-card,
.region-card,
.warning,
.footer,
.theme-selector,
.theme-option {
    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

/* Theme switch */

.header-inner {
    justify-content: space-between;
    gap: 28px;
}

.theme-selector {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.045),
        0 8px 24px rgba(0, 0, 0, 0.14);
}

.theme-option {
    min-width: 82px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 13px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #919ca5;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.theme-option svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-option.is-active {
    color: #071116;
    background: linear-gradient(135deg, #5bdcf2, #29bddc);
    box-shadow:
        0 7px 18px rgba(42, 194, 222, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.theme-option:hover:not(.is-active) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.theme-option:focus-visible {
    outline: 3px solid rgba(65, 207, 233, 0.35);
    outline-offset: 2px;
}

/* Light page treatment. The header remains dark so the white logo stays legible. */

:root[data-theme="light"] body {
    background:
        radial-gradient(circle at 83% 16%, rgba(40, 191, 219, 0.15), transparent 31%),
        radial-gradient(circle at 15% 82%, rgba(255, 112, 72, 0.08), transparent 32%),
        linear-gradient(180deg, #f8fafb 0%, #f2f6f7 58%, #ffffff 100%);
}

:root[data-theme="light"] body::before {
    opacity: 0.4;
    background-image:
        linear-gradient(rgba(21, 42, 52, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21, 42, 52, 0.04) 1px, transparent 1px);
}

:root[data-theme="light"] .content::before {
    border-color: rgba(39, 186, 214, 0.12);
}

:root[data-theme="light"] .region-card {
    background: rgba(255, 255, 255, 0.76);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 12px 30px rgba(26, 58, 72, 0.08);
}

:root[data-theme="light"] .visual::before {
    background: radial-gradient(circle, rgba(39, 190, 218, 0.17), transparent 67%);
}

:root[data-theme="light"] .visual-ring {
    border-color: rgba(39, 186, 214, 0.2);
    box-shadow: 0 0 80px rgba(39, 186, 214, 0.07);
}

:root[data-theme="light"] .visual-ring::before,
:root[data-theme="light"] .visual-ring::after {
    border-color: rgba(39, 186, 214, 0.12);
}

:root[data-theme="light"] .server-card {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(245, 249, 250, 0.86)),
        #ffffff;
    box-shadow:
        0 30px 70px rgba(26, 58, 72, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

:root[data-theme="light"] .server-card::after {
    background: linear-gradient(135deg, rgba(47, 196, 222, 0.11), transparent 42%);
}

:root[data-theme="light"] .server-icon {
    border-color: rgba(39, 186, 214, 0.24);
    background: linear-gradient(145deg, rgba(45, 202, 230, 0.18), rgba(45, 202, 230, 0.06));
    color: #139ebc;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 14px 34px rgba(30, 160, 187, 0.13);
}

:root[data-theme="light"] .server-text strong {
    color: #0b91ad;
}

:root[data-theme="light"] .footer {
    color: #82909a;
}

:root[data-theme="light"] .warning-production {
    color: #287345;
    background: rgba(46, 171, 91, 0.09);
}

:root[data-theme="light"] .warning-fastring {
    color: #5d52aa;
    background: rgba(105, 88, 203, 0.08);
}

:root[data-theme="light"] .warning-development {
    color: #8a511e;
    background: rgba(228, 111, 67, 0.09);
}

:root[data-theme="light"] .warning-title {
    color: var(--text);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    font-family: "Manrope", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 83% 16%, rgba(120, 103, 255, 0.18), transparent 31%),
        radial-gradient(circle at 15% 82%, rgba(75, 113, 255, 0.11), transparent 32%),
        linear-gradient(180deg, #090b0f 0%, #080a0d 58%, #0b0e13 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.24;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.header {
    min-height: 112px;
    display: flex;
    align-items: center;
    padding: 20px 56px;
    background: var(--chrome-bg);
    border-bottom: 1px solid var(--chrome-border);
}

.header-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.logo {
    display: block;
    width: auto;
    max-width: 360px;
    max-height: 72px;
    object-fit: contain;
}

.content {
    position: relative;
    width: min(1180px, calc(100% - 64px));
    margin: auto;
    padding: 84px 0 104px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 84px;
    align-items: center;
}

.content::before {
    content: "";
    position: absolute;
    top: 4%;
    right: -32%;
    width: 720px;
    height: 720px;
    border: 1px solid rgba(142, 125, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 24px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

h1 {
    max-width: 760px;
    margin: 0;
    color: var(--text);
    font-size: clamp(42px, 5vw, 67px);
    line-height: 1.02;
    letter-spacing: -0.055em;
    font-weight: 700;
    text-wrap: balance;
}

.description {
    max-width: 680px;
    margin: 28px 0 0;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.72;
    font-weight: 400;
}

.details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 40px;
}

.region-card {
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 13px 19px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(14px);
}

.region-label {
    color: var(--text-subtle);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.region-value {
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}

.button {
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 25px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: linear-gradient(135deg, #8b78ff 0%, #6757f4 52%, #5368ee 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(90, 73, 235, 0.24);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 18px 42px rgba(102, 84, 245, 0.34);
}

.button:focus-visible {
    outline: 3px solid rgba(155, 140, 255, 0.35);
    outline-offset: 3px;
}

/* Shared environment box */

.warning {
    max-width: 760px;
    margin-top: 32px;
    padding: 18px 20px;
    border: 1px solid;
    border-left-width: 4px;
    border-radius: 11px;
    line-height: 1.55;
    backdrop-filter: blur(12px);
}

.warning-title {
    display: block;
    margin-bottom: 5px;
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
}

/* Production: green */

.environment-production {
    color: #5fe094;
}

.environment-dot-production {
    background: #4bd682;
    box-shadow: 0 0 0 5px rgba(75, 214, 130, 0.13), 0 0 18px rgba(75, 214, 130, 0.34);
}

.warning-production {
    color: #a8d9bb;
    background: rgba(37, 123, 76, 0.11);
    border-color: rgba(78, 205, 126, 0.24);
    border-left-color: #4bd682;
}

/* FastRing: violet */

.environment-fastring {
    color: #aa9cff;
}

.environment-dot-fastring {
    background: #8b78ff;
    box-shadow: 0 0 0 5px rgba(139, 120, 255, 0.14), 0 0 18px rgba(139, 120, 255, 0.36);
}

.warning-fastring {
    color: #c8c0ff;
    background: rgba(108, 87, 244, 0.11);
    border-color: rgba(139, 120, 255, 0.28);
    border-left-color: #8b78ff;
}

/* Development: amber */

.environment-development {
    color: #ffba63;
}

.environment-dot-development {
    background: #f4a340;
    box-shadow: 0 0 0 5px rgba(244, 163, 64, 0.14), 0 0 18px rgba(244, 163, 64, 0.32);
}

.warning-development {
    color: #e9c18e;
    background: rgba(170, 104, 24, 0.11);
    border-color: rgba(244, 163, 64, 0.26);
    border-left-color: #f4a340;
}

/* Server visual */

.visual {
    position: relative;
    min-height: 400px;
    display: grid;
    place-items: center;
}

.visual::before {
    content: "";
    position: absolute;
    width: 285px;
    height: 285px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(120, 103, 255, 0.2), transparent 67%);
    filter: blur(18px);
}

.visual-ring {
    position: absolute;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(139, 120, 255, 0.22);
    border-radius: 50%;
    box-shadow: 0 0 80px rgba(105, 88, 240, 0.08);
}

.visual-ring::before,
.visual-ring::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(139, 120, 255, 0.14);
    border-radius: 50%;
}

.visual-ring::before {
    inset: 48px;
}

.visual-ring::after {
    inset: 98px;
}

.server-card {
    position: relative;
    z-index: 1;
    width: 278px;
    padding: 31px;
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025)),
        rgba(14, 17, 23, 0.9);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.46),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(22px);
}

.server-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(155, 140, 255, 0.12), transparent 42%);
}

.server-icon {
    position: relative;
    z-index: 1;
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    margin-bottom: 25px;
    border: 1px solid rgba(155, 140, 255, 0.24);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(139, 120, 255, 0.24), rgba(75, 113, 255, 0.1));
    color: #a99cff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 14px 34px rgba(78, 61, 218, 0.16);
}

.server-icon svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

.server-title {
    position: relative;
    z-index: 1;
    margin: 0 0 9px;
    color: var(--text);
    font-size: 21px;
    line-height: 1.28;
    font-weight: 750;
    letter-spacing: -0.025em;
}

.server-text {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
}

.server-text strong {
    color: #c1b8ff;
    font-weight: 700;
}

.footer {
    padding: 29px 56px;
    color: #737b8b;
    font-size: 14px;
    border-top: 1px solid var(--chrome-border);
    background: var(--chrome-bg);
}

.footer-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}



@media (max-width: 900px) {
    .header {
        min-height: 98px;
        padding: 18px 24px;
    }

    .logo {
        max-width: 290px;
        max-height: 62px;
    }

    .content {
        width: min(100% - 44px, 720px);
        grid-template-columns: 1fr;
        gap: 52px;
        padding: 58px 0 76px;
    }

    .content::before {
        display: none;
    }

    .visual {
        min-height: 320px;
        order: -1;
    }

    .visual-ring {
        width: 292px;
        height: 292px;
    }

    .server-card {
        width: 252px;
        padding: 27px;
    }

    .footer {
        padding: 26px 24px;
    }
}

@media (max-width: 520px) {
    .header {
        min-height: 86px;
    }

    .logo {
        max-width: 235px;
        max-height: 52px;
    }

    .theme-option {
        min-width: 40px;
        width: 40px;
        padding: 0;
    }

    .theme-option span {
        display: none;
    }

    .content {
        width: min(100% - 32px, 720px);
        padding-top: 42px;
    }
h1 {
        font-size: clamp(39px, 12vw, 52px);
    }

    .description {
        font-size: 17px;
    }

    .details {
        align-items: stretch;
        flex-direction: column;
    }

    .region-card,
    .button {
        width: 100%;
    }

    .region-card {
        justify-content: space-between;
    }
}

@media (prefers-reduced-motion: reduce) {
    body,
    .button,
    .theme-selector,
    .theme-option,
    .server-card,
    .region-card,
    .warning,
    .footer {
        transition: none;
    }
}
