:root {
  --bg: #080808;
  --card: #111111;
  --text: #f5f5f5;
  --muted: #a7a7a7;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #d6111d;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(214, 17, 29, 0.18), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(214, 17, 29, 0.10), transparent 30rem),
    var(--bg);
  color: var(--text);
  display: grid;
  place-items: center;
  padding: 24px;
}

.error-page {
  width: min(100%, 720px);
  text-align: center;
}

.logo {
  width: min(360px, 82vw);
  height: auto;
  margin-bottom: 42px;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 44px 34px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(12px);
}

.code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(214, 17, 29, 0.12);
  border: 1px solid rgba(214, 17, 29, 0.32);
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.05;
  margin: 0 0 16px;
}

p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  background: var(--accent);
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(214, 17, 29, 0.24);
}

a.button.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}

.footer {
  margin-top: 28px;
  color: #6f6f6f;
  font-size: 0.9rem;
}

.footer strong {
  color: #9a9a9a;
  font-weight: 700;
}

@media (max-width: 520px) {
  .card {
    padding: 34px 22px;
    border-radius: 22px;
  }

  .logo {
    margin-bottom: 30px;
  }
}
