:root {
  --bg: #050816;
  --surface: rgba(15, 23, 42, 0.72);
  --surface-strong: rgba(15, 23, 42, 0.92);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --line: rgba(148, 163, 184, 0.2);
  --primary: #60a5fa;
  --primary-strong: #2563eb;
  --cyan: #22d3ee;
  --green: #34d399;
  --red: #fb7185;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  --radius: 32px;
}

* { box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 18%, rgba(37, 99, 235, 0.32), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(167, 139, 250, 0.22), transparent 24%),
    linear-gradient(135deg, #020617 0%, #07111f 48%, #0f172a 100%);
}
a { color: inherit; text-decoration: none; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}
.glow {
  position: fixed;
  width: 34vw;
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.42;
  pointer-events: none;
  animation: floatGlow 9s ease-in-out infinite;
}
.glow-one { left: -10vw; bottom: 6vh; background: rgba(37, 99, 235, 0.6); }
.glow-two { right: -8vw; top: 10vh; background: rgba(34, 211, 238, 0.45); animation-delay: -4s; }
.cursor-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.17), transparent 68%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}
.page-shell {
  position: relative;
  z-index: 1;
  height: 100dvh;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(14px, 2.4vw, 30px);
  display: grid;
  place-items: center;
}
.error-card {
  width: 100%;
  max-height: calc(100dvh - clamp(28px, 4.8vw, 60px));
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,0.11), rgba(255,255,255,0.03)), var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  overflow: hidden;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(18px, 3vh, 34px);
}
.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.35), rgba(34, 211, 238, 0.18));
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 18px 50px rgba(37, 99, 235, 0.22);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-mark img[src] + span { display: none; }
.brand-mark span { font-weight: 900; letter-spacing: -0.08em; }
.brand-name { margin: 0; font-weight: 850; letter-spacing: -0.04em; }
.brand-role { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.error-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.82fr);
  gap: clamp(22px, 5vw, 66px);
  align-items: center;
}
.status-pill {
  width: max-content;
  margin: 0 0 16px;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(96, 165, 250, 0.26);
  background: rgba(37, 99, 235, 0.12);
}
h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.92;
  letter-spacing: -0.075em;
}
h1 span {
  display: block;
  background: linear-gradient(90deg, #f8fafc, #60a5fa, #22d3ee, #a78bfa);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textShift 6s ease-in-out infinite;
}
.summary {
  margin: 18px 0 0;
  max-width: 620px;
  color: var(--soft);
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.65;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(18px, 3vh, 28px); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.btn.primary { color: white; background: linear-gradient(135deg, var(--primary-strong), var(--cyan)); box-shadow: 0 20px 48px rgba(37, 99, 235, 0.34); }
.btn.secondary { color: var(--text); background: rgba(255,255,255,0.07); border-color: var(--line); }
.btn:hover { transform: translateY(-3px); }
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.quick-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255,255,255,0.035);
  transition: color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.quick-links a:hover { color: var(--text); transform: translateY(-2px); border-color: rgba(96, 165, 250, 0.35); }
.visual { position: relative; min-height: 430px; display: grid; place-items: center; }
.number-wrap {
  position: relative;
  width: min(390px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 44px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: radial-gradient(circle at 50% 42%, rgba(96, 165, 250, 0.22), transparent 38%), rgba(255,255,255,0.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 26px 80px rgba(0,0,0,0.35);
  animation: floatCard 6s ease-in-out infinite;
}
.big-number {
  font-size: clamp(88px, 13vw, 172px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.12em;
  transform: translateX(-0.05em);
  background: linear-gradient(135deg, #f8fafc, #60a5fa 48%, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.orbit { position: absolute; border-radius: 999px; border: 1px solid rgba(96, 165, 250, 0.28); animation: rotate 12s linear infinite; }
.orbit-one { inset: 30px; }
.orbit-two { inset: 68px; animation-duration: 8s; animation-direction: reverse; }
.orbit::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 48%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 28px var(--cyan);
}
.code-window {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 12px;
  width: min(280px, 78%);
  padding: 14px;
  border-radius: 20px;
  background: var(--surface-strong);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 24px 70px rgba(0,0,0,0.4);
  transform: rotate(-3deg);
}
.window-dots { display: flex; gap: 6px; margin-bottom: 12px; }
.window-dots span { width: 8px; height: 8px; border-radius: 999px; background: rgba(148, 163, 184, 0.6); }
.code-line { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 13px; line-height: 1.8; }
.code-line.muted { color: var(--muted); }
.code-line.error { color: var(--red); }
.code-line.success { color: var(--green); }
.reveal { opacity: 0; transform: translateY(16px); animation: reveal 0.85s cubic-bezier(.2,.8,.2,1) forwards; }
.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
@keyframes floatGlow { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(24px, -20px, 0) scale(1.08); } }
@keyframes textShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes floatCard { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes rotate { to { transform: rotate(360deg); } }
@media (max-width: 820px) {
  .page-shell { padding: 14px; }
  .error-card { padding: 18px; }
  .brand { margin-bottom: 16px; }
  .error-grid { grid-template-columns: 1fr; gap: 14px; }
  .visual { min-height: 210px; }
  .number-wrap { width: min(245px, 72vw); border-radius: 30px; }
  .code-window { width: min(230px, 70vw); left: 50%; bottom: -4px; transform: translateX(-50%) rotate(-2deg); }
  .summary { max-width: 100%; }
}
@media (max-width: 520px) {
  .brand-mark { width: 44px; height: 44px; border-radius: 15px; }
  h1 { font-size: clamp(38px, 14vw, 56px); }
  .summary { font-size: 13px; line-height: 1.5; }
  .btn { flex: 1 1 auto; min-height: 42px; padding: 10px 13px; }
  .quick-links { gap: 8px; }
  .quick-links a { padding: 8px 10px; }
  .visual { min-height: 180px; }
  .code-window { display: none; }
  .orbit-two { display: none; }
}
@media (max-height: 640px) {
  .brand { margin-bottom: 10px; }
  .error-card { padding: 16px; }
  .summary { margin-top: 12px; line-height: 1.45; }
  .actions { margin-top: 14px; }
  .quick-links { margin-top: 10px; }
  .visual { min-height: 180px; }
  .number-wrap { width: 220px; }
  .code-window { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
