@font-face {
    font-family: 'Kalameh';
    src: url('/assets/fonts/KalamehWeb_Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Kalameh';
    src: url('/assets/fonts/KalamehWeb_Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'Kalameh';
    src: url('/assets/fonts/KalamehWeb_Black.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

:root {
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --bg: #f3f4f8;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
}

* { margin:0; padding:0; box-sizing:border-box; }

html, body { height:100%; }

body {
    font-family: 'Kalameh', sans-serif;
    background: radial-gradient(circle at top right, #e9e5ff, var(--bg));
    color: var(--text);
    display:flex;
    flex-direction:column;
    min-height:100vh;
    animation: fadeIn .6s ease forwards;
}

@keyframes fadeIn {
    from { opacity:0; transform:translateY(10px); }
    to { opacity:1; transform:translateY(0); }
}

.wrapper {
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:80px 20px;
}

.card {
    background: var(--card);
    border-radius: 28px;
    padding: 80px 60px;
    max-width: 650px;
    width:100%;
    text-align:center;
    box-shadow: 0 30px 90px rgba(124,58,237,0.12);
    border: 1px solid rgba(124,58,237,0.1);
}

.error-code {
    font-size: 120px;
    font-weight:900;
    margin-bottom:25px;
    background: linear-gradient(45deg, #7c3aed, #a78bfa);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    letter-spacing:-3px;
}

h1 {
    font-size: 34px;
    font-weight:700;
    margin-bottom:25px;
}

p {
    font-size:20px;
    color: var(--muted);
    line-height:2;
    margin-bottom:40px;
}

.trace {
    font-size:14px;
    color:#9ca3af;
    margin-bottom:35px;
}

.actions {
    display:flex;
    gap:15px;
    justify-content:center;
    flex-wrap:wrap;
    margin-bottom:30px;
}

.btn {
    padding:16px 36px;
    font-size:18px;
    font-weight:700;
    border-radius:14px;
    text-decoration:none;
    transition:.3s;
}

.primary {
    background: var(--primary);
    color:#fff;
}

.primary:hover {
    box-shadow:0 15px 35px rgba(124,58,237,0.35);
    transform:translateY(-3px);
}

.secondary {
    background:#eef2ff;
    color:var(--primary);
}

.secondary:hover {
    background:#e0e7ff;
}

.ai-note {
    font-size:15px;
    color:#9ca3af;
}

footer {
    text-align:center;
    padding:25px;
    font-size:15px;
    color:#6b7280;
    border-top:1px solid #e5e7eb;
}

footer a {
    color:var(--primary);
    text-decoration:none;
}

footer a:hover {
    text-decoration:underline;
}
@media (max-width:768px){
    .card { padding:60px 30px; }
    .error-code { font-size:90px; }
    h1 { font-size:26px; }
    p { font-size:18px; }
}
@media (max-width:420px){
    .error-code { font-size:70px; }
    h1 { font-size:22px; }
    p { font-size:16px; }
}