@font-face {
    font-family: "Geist";
    src: url("../fonts/geist-regular.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "Geist";
    src: url("../fonts/geist-medium.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 500 700;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    background: #050505;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    padding: 16px;
    color: #fff;
    background: #050505;
    font-family: "Geist", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.error-page {
    position: relative;
    width: min(1440px, 100%);
    min-height: calc(100vh - 32px);
    min-height: calc(100svh - 32px);
    margin: 0 auto;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    background: #111;
}

.error-page::before,
.error-page::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
}

.error-page::before {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 28%, rgba(0, 0, 0, 0.12) 68%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, transparent 48%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, transparent 32%);
}

.error-page::after {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.error-image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.error-header {
    position: absolute;
    top: 30px;
    right: 32px;
    left: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.error-logo {
    display: block;
    width: 82px;
    height: auto;
}

.error-code {
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.error-content {
    position: absolute;
    bottom: 58px;
    left: 58px;
    width: min(540px, calc(100% - 116px));
}

.error-eyebrow {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1 {
    max-width: 520px;
    margin: 0;
    font-size: clamp(54px, 6vw, 88px);
    font-weight: 400;
    line-height: 0.94;
    letter-spacing: -0.07em;
}

.error-copy {
    max-width: 440px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.55;
    letter-spacing: -0.02em;
}

.error-action {
    width: 218px;
    height: 52px;
    min-height: 52px;
    margin-top: 30px;
    padding: 7px 7px 7px 21px;
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: rgba(250, 250, 250, 0.09);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transform: none;
    transition: transform 200ms ease;
}

.error-action-fill {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    background: #fff;
    pointer-events: none;
    clip-path: circle(19px at calc(100% - 26px) 50%);
    transition: clip-path 560ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: clip-path;
}

.error-action-label,
.error-action-mark {
    position: relative;
    z-index: 2;
}

.error-action-label {
    color: #fff;
    transition: color 480ms cubic-bezier(0.16, 1, 0.3, 1);
}

.error-action:hover,
.error-action:focus-visible {
    background: rgba(250, 250, 250, 0.09);
    color: #0d0d0f;
    transform: none;
}

.error-action:hover .error-action-fill,
.error-action:focus-visible .error-action-fill {
    clip-path: circle(220px at calc(100% - 26px) 50%);
}

.error-action:hover .error-action-label,
.error-action:focus-visible .error-action-label {
    color: #0d0d0f;
}

.error-action:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.error-action-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: transparent;
    color: #0d0d0f;
    font-size: 20px;
    line-height: 1;
    transition: font-size 480ms cubic-bezier(0.16, 1, 0.3, 1);
}

.error-action:hover .error-action-mark,
.error-action:focus-visible .error-action-mark {
    font-size: 23px;
}

.error-action:active {
    transform: scale(0.98);
}

@media (max-width: 720px) {
    body {
        padding: 12px;
    }

    .error-page {
        min-height: calc(100vh - 24px);
        min-height: calc(100svh - 24px);
        border-radius: 18px;
    }

    .error-page::before {
        background:
            linear-gradient(0deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.58) 46%, rgba(0, 0, 0, 0.18) 72%),
            linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 34%);
    }

    .error-image {
        object-position: 61% center;
    }

    .error-header {
        top: 24px;
        right: 24px;
        left: 24px;
    }

    .error-logo {
        width: 74px;
    }

    .error-content {
        bottom: 28px;
        left: 24px;
        width: calc(100% - 48px);
    }

    .error-eyebrow {
        margin-bottom: 12px;
    }

    h1 {
        max-width: 340px;
        font-size: clamp(46px, 15vw, 66px);
    }

    .error-copy {
        max-width: 330px;
        margin-top: 18px;
        font-size: 14px;
    }

    .error-action {
        margin-top: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .error-action,
    .error-action-fill,
    .error-action-label,
    .error-action-mark {
        transition-duration: 0.01ms;
    }
}

