:root {
    color-scheme: dark;
    --background: #080a12;
    --text: #f7f8fc;
    --secondary: #b8bfd0;
    --muted: #7e879d;
    --accent: #7ee8ff;
    --control: rgba(19, 23, 35, .82);
    --stroke: rgba(255, 255, 255, .13);
    --selected: rgba(255, 255, 255, .11);
    font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
    background: var(--background);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

* {
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    background:
        radial-gradient(ellipse at 36% 38%, #2476ff12, transparent 45%),
        radial-gradient(ellipse at 65% 46%, #ef3dff0c, transparent 45%);
}

main {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px 32px;
    text-align: center;
}

.brand {
    --wordmark-size: clamp(44px, 7vw, 84px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    max-width: 100%;
}

.messenger-logo {
    display: block;
    width: calc(var(--wordmark-size) * 1.85);
    height: auto;
    flex-shrink: 0;
    object-fit: contain;
}

h1 {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    color: var(--text);
    font-family: "Segoe UI", system-ui, sans-serif;
    font-weight: 300;
    line-height: 1;
    text-align: left;
}

.brand-name {
    display: block;
    margin-left: .06em;
    font-size: calc(var(--wordmark-size) * .42);
    font-weight: 300;
    letter-spacing: -.025em;
}

.brand-product {
    display: block;
    font-size: var(--wordmark-size);
    font-weight: 400;
    letter-spacing: -.045em;
}

.launch-status {
    margin: 28px 0 0;
    color: var(--secondary);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.5;
}

footer {
    padding: 32px 24px;
    text-align: center;
}

footer a {
    color: var(--muted);
    font-size: 12px;
    text-decoration: none;
}

footer a span {
    margin-left: 6px;
}

footer a:hover {
    color: var(--accent);
}

footer a:focus-visible,
.theme-switcher button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 6px;
    border-radius: 2px;
}

.theme-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 3px;
    padding: 4px;
    border: 1px solid var(--stroke);
    border-radius: 11px;
    background: var(--control);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.theme-switcher[hidden] {
    display: none;
}

.theme-switcher button {
    min-width: 54px;
    min-height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--secondary);
    font: 600 12px "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
    cursor: pointer;
}

.theme-switcher button:hover {
    color: var(--text);
}

.theme-switcher button[aria-pressed="true"] {
    background: var(--selected);
    color: var(--text);
}

:root[data-theme="light"] {
    color-scheme: light;
    --background: #f5f6fa;
    --text: #161a25;
    --secondary: #515a6f;
    --muted: #646e82;
    --accent: #087b98;
    --control: rgba(255, 255, 255, .8);
    --stroke: rgba(20, 28, 48, .13);
    --selected: rgba(25, 33, 53, .08);
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) {
        color-scheme: light;
        --background: #f5f6fa;
        --text: #161a25;
        --secondary: #515a6f;
        --muted: #646e82;
        --accent: #087b98;
        --control: rgba(255, 255, 255, .8);
        --stroke: rgba(20, 28, 48, .13);
        --selected: rgba(25, 33, 53, .08);
    }
}

@media (max-width: 540px) {
    .brand {
        --wordmark-size: clamp(36px, 11vw, 58px);
        flex-direction: column;
        gap: 20px;
    }

    .messenger-logo {
        width: clamp(160px, 50vw, 220px);
    }

}
