:root {
  --bg: #0a0a0f;
  --bg-2: #12121c;
  --text: #f2f3f7;
  --muted: #8b8fa3;
  --accent: #6d8bff;
  --accent-2: #b06dff;
  --border: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 50% -10%, var(--bg-2), var(--bg) 70%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 2rem;
}

img { height: auto; }

/* Ambient color glow behind the content */
.bg-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 60vmax;
  height: 60vmax;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 30% 30%, rgba(109, 139, 255, 0.22), transparent 60%),
              radial-gradient(circle at 70% 70%, rgba(176, 109, 255, 0.18), transparent 60%);
  filter: blur(40px);
  z-index: 0;
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate(-52%, -48%) scale(1); }
  to   { transform: translate(-48%, -52%) scale(1.15); }
}

.stage {
  position: relative;
  z-index: 1;
  max-width: 640px;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 1.75rem;
}

.name {
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--text) 30%, var(--accent) 70%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.25rem;
}

.tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--muted);
  max-width: 30ch;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.socials {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.socials a:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(109, 139, 255, 0.12);
  transform: translateY(-3px);
}

.footer {
  position: relative;
  z-index: 1;
  margin-top: 3.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* 404 page */
.code {
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(120deg, var(--text) 30%, var(--accent) 70%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.home-link {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.home-link:hover {
  border-color: var(--accent);
  background: rgba(109, 139, 255, 0.12);
  transform: translateY(-3px);
}

@media (max-width: 480px) {
  .socials a { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-glow, .stage { animation: none; }
}
