:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: #183b56;
    background:
        radial-gradient(circle at 15% 20%, rgb(255 255 255 / 72%) 0 7%, transparent 28%),
        radial-gradient(circle at 82% 75%, rgb(187 228 255 / 82%) 0 6%, transparent 30%),
        linear-gradient(135deg, #f2fbff 0%, #dff3ff 47%, #cbe9ff 100%);
}

body::before,
body::after {
    position: fixed;
    z-index: -1;
    width: 22rem;
    aspect-ratio: 1;
    content: "";
    border: 1px solid rgb(255 255 255 / 45%);
    border-radius: 50%;
}

body::before {
    top: -11rem;
    right: -7rem;
    box-shadow: 0 0 0 3rem rgb(255 255 255 / 12%), 0 0 0 7rem rgb(255 255 255 / 8%);
}

body::after {
    bottom: -15rem;
    left: -6rem;
    box-shadow: 0 0 0 4rem rgb(255 255 255 / 10%);
}

.home {
    display: grid;
    min-height: 100vh;
    padding: clamp(1.25rem, 4vw, 3.5rem);
    place-items: center;
}

.welcome-card {
    position: relative;
    display: grid;
    width: min(100%, 68rem);
    min-height: min(38rem, calc(100vh - 7rem));
    grid-template-columns: minmax(18rem, 0.9fr) minmax(22rem, 1.1fr);
    align-items: center;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 66%);
    border-radius: 2rem;
    background: rgb(255 255 255 / 62%);
    box-shadow: 0 2rem 5rem rgb(35 102 145 / 16%);
    backdrop-filter: blur(20px);
}

.welcome-card::after {
    position: absolute;
    inset: 1rem;
    pointer-events: none;
    content: "";
    border: 1px solid rgb(255 255 255 / 54%);
    border-radius: 1.35rem;
}

.harmony-mark {
    position: relative;
    display: grid;
    width: min(21rem, 70%);
    aspect-ratio: 1;
    margin: auto;
    place-items: center;
}

.harmony-mark__ring,
.harmony-mark__core {
    position: absolute;
    border-radius: 50%;
}

.harmony-mark__ring {
    border: 2px solid rgb(255 255 255 / 78%);
    box-shadow: inset 0 0 2.5rem rgb(255 255 255 / 24%);
}

.harmony-mark__ring--outer {
    inset: 0;
    animation: breathe 7s ease-in-out infinite;
}

.harmony-mark__ring--middle {
    inset: 18%;
    border-color: rgb(255 255 255 / 88%);
    animation: breathe 7s 0.5s ease-in-out infinite reverse;
}

.harmony-mark__core {
    inset: 34%;
    background: linear-gradient(145deg, #42ce8c, #1eae70);
    box-shadow: 0 1.25rem 3rem rgb(30 174 112 / 28%), inset 0 1px 1px rgb(255 255 255 / 55%);
}

.harmony-mark__core::before {
    position: absolute;
    top: 45%;
    left: 49%;
    width: 22%;
    height: 42%;
    content: "";
    border: solid rgb(255 255 255 / 96%);
    border-width: 0 0.38rem 0.38rem 0;
    border-radius: 0.08rem;
    transform: translate(-50%, -50%) rotate(45deg);
}

.welcome-card__content {
    position: relative;
    z-index: 1;
    padding: 4rem clamp(2rem, 6vw, 6rem) 4rem 2rem;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1.6rem;
    color: #3c6d8b;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.status__dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: #22b573;
    box-shadow: 0 0 0 0.28rem rgb(34 181 115 / 16%);
}

h1 {
    margin: 0;
    color: #173f5f;
    font-size: clamp(3.2rem, 7vw, 6.5rem);
    font-weight: 780;
    letter-spacing: -0.075em;
    line-height: 0.88;
}

h1 span {
    color: #287db6;
}

.intro {
    margin: 1.75rem 0 0;
    color: #50748d;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.6;
}

.request-details {
    margin: 2rem 0 0;
    padding: 0.35rem 1rem;
    overflow: hidden;
    border: 1px solid rgb(80 145 184 / 16%);
    border-radius: 1rem;
    background: rgb(255 255 255 / 44%);
    text-align: left;
}

.request-details__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 2.8rem;
    padding: 0.65rem 0;
}

.request-details__row + .request-details__row {
    border-top: 1px solid rgb(80 145 184 / 12%);
}

.request-details dt {
    flex: 0 0 auto;
    color: #50748d;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.request-details dd {
    min-width: 0;
    margin: 0;
    color: #173f5f;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

.request-details code {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 0.78rem;
}

.cloudflare-state {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.cloudflare-state::before {
    width: 0.45rem;
    height: 0.45rem;
    content: "";
    border-radius: 50%;
    background: currentcolor;
}

.cloudflare-state--confirmed {
    color: #16845a;
}

.cloudflare-state--diagnostic {
    color: #287db6;
}

.cloudflare-state--none,
.unavailable {
    color: #6d8799;
}

.unavailable {
    font-style: italic;
    font-weight: 550;
}

@keyframes breathe {
    0%, 100% {
        opacity: 0.65;
        transform: scale(0.96);
    }

    50% {
        opacity: 1;
        transform: scale(1.03);
    }
}

@media (max-width: 760px) {
    .welcome-card {
        min-height: auto;
        grid-template-columns: 1fr;
        padding: 3.5rem 1.5rem;
        text-align: center;
    }

    .harmony-mark {
        width: min(14rem, 60vw);
    }

    .welcome-card__content {
        padding: 2.75rem 0.5rem 1rem;
    }

    .status {
        margin-bottom: 1.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .harmony-mark__ring {
        animation: none;
    }
}
