:root{
  --bg:#0b1326; --bg2:#111b33; --ink:#dae2fd; --muted:#8e9abb;
  --blue:#4d8eff; --blue-d:#2f6fe0; --blue-edge:#1d4fb0;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  min-height:100vh; display:flex; flex-direction:column;
  background:
    radial-gradient(900px 520px at 50% 38%, rgba(77,142,255,.16), transparent 70%),
    linear-gradient(180deg,var(--bg2),var(--bg));
  color:var(--ink); font-family:'Cairo',system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
}
.stage{
  flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding:48px 16px;
}

/* raised logo tile — same "key" language as the portal sidebar */
.mark{
  width:148px; height:148px; border-radius:38px; background:#fff;
  display:grid; place-items:center;
  box-shadow:
    0 2px 0 #fff inset,
    0 -6px 0 #d7dff2 inset,
    0 10px 0 #a9b6d6,
    0 28px 50px rgba(0,0,0,.45),
    0 0 0 1px rgba(255,255,255,.4);
  transform:perspective(700px) rotateX(10deg);
  margin-bottom:46px;
  animation:rise .9s cubic-bezier(.2,.8,.2,1) both;
}
.mark img{width:112px;height:112px;display:block}

.word{
  font-family:'Outfit',sans-serif; font-weight:800; font-size:clamp(34px,6vw,52px);
  letter-spacing:-.02em; color:#fff; line-height:1.1;
}
.title{font-weight:700;font-size:clamp(24px,4.4vw,32px);color:#fff;margin-bottom:6px}
.line{color:var(--muted); font-size:17px; margin-top:10px; max-width:34ch}
.line.en{font-family:'Outfit',sans-serif;font-size:14px;margin-top:4px;opacity:.75}

.actions{display:flex;gap:14px;align-items:center;justify-content:center;flex-wrap:wrap;margin-top:34px}
.key{
  display:inline-flex; align-items:center; gap:10px;
  margin-top:34px; padding:14px 30px; border-radius:16px;
  background:linear-gradient(180deg,var(--blue),var(--blue-d));
  color:#fff; text-decoration:none; font-weight:700; font-size:17px;
  box-shadow:0 1px 0 rgba(255,255,255,.35) inset, 0 6px 0 var(--blue-edge), 0 14px 26px rgba(29,79,176,.45);
  transition:transform .12s, box-shadow .12s;
}
.actions .key{margin-top:0}
.key:hover{transform:translateY(-1px)}
.key:active{transform:translateY(5px);box-shadow:0 1px 0 rgba(255,255,255,.35) inset,0 1px 0 var(--blue-edge),0 4px 10px rgba(29,79,176,.4)}
.key:focus-visible,.ghost:focus-visible{outline:3px solid #adc6ff;outline-offset:4px}
.ghost{color:var(--ink);text-decoration:none;font-weight:600;padding:12px 18px;border-radius:14px;border:1px solid rgba(218,226,253,.18)}
.ghost:hover{background:rgba(218,226,253,.06)}

/* 404 — extruded numeral */
.code{
  font-family:'Outfit',sans-serif; font-weight:800; line-height:1;
  font-size:clamp(110px,26vw,200px); letter-spacing:-.04em; color:#fff;
  text-shadow:
    0 2px 0 #c9d4f0, 0 4px 0 #a9b6d6, 0 6px 0 #8a99bf, 0 8px 0 #6c7ca6,
    0 10px 0 #4f5f8a, 0 12px 0 #3a4970, 0 30px 40px rgba(0,0,0,.5);
  transform:perspective(800px) rotateX(14deg);
  margin-bottom:34px;
  animation:rise .9s cubic-bezier(.2,.8,.2,1) both;
}

.foot{text-align:center;color:#5d6a8c;font-family:'Outfit',sans-serif;font-size:13px;padding:22px 16px}

@keyframes rise{from{opacity:0;transform:perspective(700px) rotateX(30deg) translateY(24px)}}
@media (prefers-reduced-motion:reduce){.mark,.code{animation:none}}
