:root {
    --bg: #ececec;
    --surface: #ffffff;
    --line: #d4d4d4;
    --text: #212121;
    --muted: #5c5c5c;
    --accent: #9dd748;
    --accent-soft: #7cc04b;
    --accent-dark: #4f8e39;
}

* {
    box-sizing: border-box;
}

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

body {
    font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 260px at 50% -120px, #ffffff 0, #f3f3f3 55%, var(--bg) 100%),
        var(--bg);
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-wrap {
    width: min(100%, 980px);
    margin: 0 auto;
    padding: 0 24px;
}

.top-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
    animation: fade-slide-down 500ms ease-out;
}

.top-bar .content-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo {
    height: 34px;
    width: auto;
    display: block;
}

.domain {
    color: #8f8f8f;
    font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
    font-size: 1.95rem;
    letter-spacing: 0.015em;
    font-weight: 700;
}

.content-area {
    flex: 1;
    border-bottom: 1px solid var(--line);
    padding: 34px 0 48px;
}

.card {
    background: rgba(255, 255, 255, 0.88);
    padding: 28px 30px;
    border-radius: 12px;
    border: 1px solid #dedede;
    box-shadow: 0 16px 36px -26px rgba(0, 0, 0, 0.35);
    animation: fade-slide-up 620ms ease-out;
}

.error-card {
    position: relative;
    overflow: hidden;
}

.error-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 160px;
    height: 160px;
    border-radius: 0 0 140px 0;
    background: linear-gradient(140deg, rgba(157, 215, 72, 0.26), rgba(157, 215, 72, 0));
    pointer-events: none;
}

.error-code {
    margin: 0 0 6px;
    color: #5b8f2f;
    font-size: 0.9rem;
    letter-spacing: 0.14em;
    font-weight: 800;
}

h1 {
    font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
    margin: 0 0 18px;
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 800;
}

p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    max-width: 78ch;
}

p + p {
    margin-top: 14px;
}

strong {
    color: #313131;
}

.bottom-bar {
    background: #e7e7e7;
    padding: 16px 0;
}

.bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

nav {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.95rem;
    font-weight: 600;
}

a {
    color: #2f5f1e;
    text-decoration: none;
    transition: color 180ms ease;
}

a:hover {
    color: #244b17;
    text-decoration: underline;
}

.brand-stripe {
    display: inline-flex;
    height: 4px;
    border-radius: 99px;
    overflow: hidden;
}

.brand-stripe span {
    width: 42px;
}

.brand-stripe span:nth-child(1) {
    background: var(--accent);
}

.brand-stripe span:nth-child(2) {
    background: var(--accent-soft);
}

.brand-stripe span:nth-child(3) {
    background: var(--accent-dark);
}

@keyframes fade-slide-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-slide-down {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .content-wrap {
        padding: 0 16px;
    }

    .top-bar {
        padding: 14px 0;
    }

    .top-bar .content-wrap {
        gap: 12px;
    }

    .logo {
        height: 28px;
    }

    .domain {
        font-size: 1.45rem;
    }

    .content-area {
        padding-top: 22px;
    }

    .card {
        padding: 20px 18px;
    }

    h1 {
        font-size: 1.45rem;
    }

    .bottom-content {
        align-items: flex-start;
        flex-direction: column;
    }
}
