* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

html {
    min-height: 100%;
}

body {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: clamp(20px, 5vw, 64px);
    place-items: center;
    background: radial-gradient(ellipse 55% 65% at 50% 5%, rgba(0, 116, 255, 0.13), transparent 80%), #090b10;
    color: #f5f7fb;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 5vw, 68px);
    width: min(100%, 1060px);
}

.visual {
    display: grid;
    justify-items: end;
    min-width: 0;
}

.visual img {
    display: block;
    width: min(100%, 410px);
    max-height: 78dvh;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 32px rgba(0, 117, 255, 0.17));
}

.content {
    min-width: 0;
}

h1 {
    margin: 0;
    font-size: clamp(42px, 5vw, 70px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.045em;
}

p {
    margin: 18px 0 0;
    color: #9ba6b5;
    font-size: clamp(16px, 1.4vw, 18px);
    line-height: 1.65;
}

.retry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 28px;
    padding: 0 22px;
    border: 1px solid #293447;
    border-radius: 9px;
    background: #121927;
    color: #f5f7fb;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s, border-color .2s;
}

.retry:hover,
.retry:focus-visible {
    border-color: #3b82f6;
    background: #182640;
}

.retry:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 3px;
}

@media (max-width: 760px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 22px;
        text-align: center;
    }

    .visual {
        justify-items: center;
    }

    .visual img {
        width: min(67vw, 300px);
        max-height: 49dvh;
    }

    h1 {
        font-size: clamp(38px, 9vw, 58px);
    }

    p {
        margin-top: 14px;
    }
}

@media (max-width: 400px) {
    .hero {
        gap: 16px;
    }

    .visual img {
        width: min(63vw, 238px);
    }

    h1 {
        font-size: clamp(36px, 10vw, 46px);
    }
}
