*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: 'Be Vietnam Pro', system-ui, sans-serif; }

body {
    min-height: 100vh;
    background: #f4f6fb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    max-width: 860px;
    width: 100%;
    animation: fadeUp 0.6s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.content { flex: 1; min-width: 0; }

.error-code {
    font-size: clamp(90px, 18vw, 150px);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #008e9e 0%, #00b8cc 55%, #7ddce8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -5px;
    filter: drop-shadow(0 4px 20px rgba(0,142,158,0.2));
}

.heading {
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 800;
    color: #008e9e;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.desc {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.75;
    max-width: 400px;
    margin-bottom: 36px;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #008e9e 0%, #00a8bc 60%, #00b8cc 100%);
    color: #fff;
    font-family: 'Be Vietnam Pro', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
    box-shadow: 0 4px 18px rgba(0,142,158,0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #006e7e 0%, #008e9e 55%, #5cc8d8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,142,158,0.4);
}

.btn-primary:active { transform: scale(0.97); }
.btn-primary svg { width: 18px; height: 18px; flex-shrink: 0; }

.sep { width: 1px; height: 22px; background: #e5e7eb; }

.illustration {
    flex-shrink: 0;
    width: clamp(180px, 36vw, 340px);
    animation: floatIllo 5s ease-in-out infinite;
}

@keyframes floatIllo {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

.illustration svg { width: 100%; height: auto; }

@media (max-width: 640px) {
    .wrapper { flex-direction: column-reverse; text-align: center; gap: 20px; }
    .desc { margin: 0 auto 28px; }
    .btn-group { justify-content: center; }
    .illustration { width: clamp(160px, 60vw, 240px); }
    .sep { display: none; }
}
