:root {
    color-scheme: dark;
    --navy: #061121;
    --panel: #09172a;
    --line: #234463;
    --gold: #deb267;
    --green: #5df2a3;
    --muted: #a9b1c0;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    background: #050e1b;
    color: #f7f8fb;
    font-family: Inter, Arial, sans-serif;
}

.health-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 42px 24px 28px;
    isolation: isolate;
    background:
        radial-gradient(circle at 50% 40%, rgba(20, 56, 85, 0.55), transparent 42%),
        linear-gradient(145deg, #041020 0%, #0b1c31 55%, #030b16 100%);
}

.health-page::before {
    content: "";
    position: absolute;
    inset: auto -10% -13% -10%;
    height: 42%;
    z-index: -1;
    opacity: 0.95;
    background:
        linear-gradient(165deg, transparent 0 30%, #0a1627 30.2% 45%, transparent 45.2%),
        linear-gradient(195deg, transparent 0 38%, #071222 38.2% 55%, transparent 55.2%),
        linear-gradient(175deg, transparent 0 50%, #020a14 50.2%);
    filter: drop-shadow(0 -18px 38px rgba(36, 55, 78, 0.35));
}

.health-page::after {
    content: "";
    position: absolute;
    width: 120%;
    height: 160px;
    left: -10%;
    bottom: 45px;
    z-index: -1;
    border-top: 1px solid rgba(222, 178, 103, 0.8);
    border-radius: 50%;
    transform: rotate(1deg);
    box-shadow: 0 -38px 70px rgba(224, 158, 83, 0.08);
}

.brand {
    margin-bottom: 25px;
    text-align: center;
}

.brand-mark {
    width: 110px;
    margin: 0 auto 9px;
    filter: drop-shadow(0 6px 12px rgba(218, 167, 88, 0.12));
}

.brand-mark svg {
    display: block;
    width: 100%;
}

.brand h1 {
    margin: 0;
    color: #ead3aa;
    font: 500 clamp(24px, 3vw, 40px) / 1.1 Montserrat, sans-serif;
    letter-spacing: 0.27em;
    text-shadow: 0 2px 8px #000;
}

.brand p {
    margin: 13px 0 16px;
    color: #929caf;
    font: 500 16px / 1 Montserrat, sans-serif;
    letter-spacing: 0.42em;
}

.gold-rule {
    display: block;
    width: 52px;
    height: 2px;
    margin: auto;
    background: var(--gold);
}

.status-card {
    width: min(976px, 100%);
    padding: 31px 32px;
    text-align: center;
    border: 1px solid #294c6e;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(13, 31, 52, 0.76), rgba(5, 16, 30, 0.82));
    box-shadow:
        0 22px 65px rgba(0, 0, 0, 0.28),
        inset 0 1px rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(8px);
}

.success-icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border: 7px solid var(--green);
    border-radius: 50%;
    box-shadow:
        0 0 25px rgba(59, 245, 147, 0.72),
        inset 0 0 16px rgba(59, 245, 147, 0.16);
}

.success-icon span {
    width: 30px;
    height: 16px;
    border-left: 7px solid white;
    border-bottom: 7px solid white;
    border-radius: 2px;
    transform: rotate(-45deg) translate(3px, -3px);
}

.status-card h2 {
    margin: 0;
    font-size: clamp(28px, 3.1vw, 43px);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.status-copy {
    margin: 10px 0 25px;
    color: #b8bfcb;
    font-size: 17px;
}

.details {
    display: grid;
    grid-template-columns: 1.15fr 1fr 0.92fr 1fr;
    padding-top: 28px;
    text-align: left;
    border-top: 1px solid rgba(76, 105, 132, 0.45);
}

.detail {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 0 28px;
    border-right: 1px solid rgba(54, 85, 113, 0.56);
}

.detail:first-child {
    padding-left: 0;
}

.detail:last-child {
    padding-right: 0;
    border: 0;
}

.detail svg {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.detail div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.detail span {
    color: #aeb5c2;
    font: 500 12px / 1 Montserrat, sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.detail strong {
    font-size: 16px;
    white-space: nowrap;
}

.detail strong.running {
    color: #43eca0;
}

.detail strong.unavailable {
    color: #f08a8a;
}

.detail small {
    margin-top: -2px;
    color: #aeb5c2;
    font-size: 14px;
}

.endpoint {
    position: relative;
    width: min(538px, 90%);
    height: 78px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 34px auto 0;
    padding: 0 20px;
    border: 1px solid #2b4d6e;
    border-radius: 18px;
    background: rgba(5, 17, 31, 0.8);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.32);
}

.endpoint .code-icon {
    width: 39px;
    box-sizing: content-box;
    padding-right: 16px;
    fill: none;
    stroke: var(--gold);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    border-right: 1px solid #233d57;
}

.method {
    color: #42ee9e;
    font: 600 16px / 1 Montserrat, sans-serif;
    letter-spacing: 0.05em;
}

.endpoint code {
    flex: 1;
    color: #f1f3f7;
    font-size: 16px;
    white-space: nowrap;
}

.endpoint button {
    width: 36px;
    height: 40px;
    padding: 7px;
    color: #aeb8c6;
    cursor: pointer;
    background: transparent;
    border: 0;
    border-radius: 7px;
}

.endpoint button:hover,
.endpoint button:focus-visible {
    color: white;
    background: #172b41;
    outline: none;
}

.endpoint button svg {
    width: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.copy-message {
    position: absolute;
    top: -27px;
    right: 12px;
    color: var(--green);
    font-size: 12px;
    opacity: 0;
    transition: 0.2s;
}

.copy-message.show {
    opacity: 1;
}

footer {
    margin-top: 63px;
    color: #aeb3be;
    font: 500 11px / 1 Montserrat, sans-serif;
    letter-spacing: 0.26em;
    text-align: center;
}

footer b {
    padding: 0 8px;
    color: #d0a75e;
}

footer .gold-rule {
    width: 48px;
    margin-top: 24px;
}

@media (max-width: 760px) {
    .health-page {
        justify-content: flex-start;
        padding: 28px 14px;
    }

    .brand-mark {
        width: 82px;
    }

    .brand h1 {
        letter-spacing: 0.16em;
    }

    .brand p {
        font-size: 12px;
    }

    .status-card {
        padding: 26px 20px;
        border-radius: 20px;
    }

    .status-copy {
        font-size: 15px;
    }

    .details {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .detail {
        padding: 18px 12px;
        border-bottom: 1px solid rgba(54, 85, 113, 0.56);
    }

    .detail:nth-child(2) {
        border-right: 0;
    }

    .detail:nth-child(3) {
        padding-left: 0;
        border-bottom: 0;
    }

    .detail:last-child {
        padding: 18px 0 0 12px;
    }

    .endpoint {
        gap: 12px;
        margin-top: 22px;
        padding: 0 14px;
    }

    .endpoint code {
        font-size: 13px;
    }

    .endpoint .code-icon {
        width: 28px;
        padding-right: 10px;
    }

    footer {
        margin-top: 42px;
    }
}

@media (max-width: 440px) {
    .brand h1 {
        font-size: 21px;
    }

    .success-icon {
        width: 68px;
        height: 68px;
    }

    .details {
        grid-template-columns: 1fr;
    }

    .detail,
    .detail:nth-child(2),
    .detail:nth-child(3),
    .detail:last-child {
        padding: 15px 0;
        border-right: 0;
        border-bottom: 1px solid rgba(54, 85, 113, 0.56);
    }

    .detail:last-child {
        border-bottom: 0;
    }

    .endpoint {
        width: 100%;
    }

    .method {
        font-size: 14px;
    }

    footer p {
        line-height: 1.8;
    }

    .status-card h2 {
        font-size: 27px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
